miércoles, 1 de octubre de 2008

Codigo fuente de programa en ABAP para buscar User-exits

*&---------------------------------------------------------------------*
*& Report ZSEARCH *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*

  .
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
  tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass,
  v_lines type n.
parameters : p_tcode like tstc-tcode obligatory.

select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
  select single * from tadir where pgmid = 'R3TR'
  and object = 'PROG'
  and obj_name = tstc-pgmna.
  move : tadir-devclass to v_devclass.
  if sy-subrc ne 0.
  select single * from trdir where name = tstc-pgmna.
  if trdir-subc eq 'F'.
  select single * from tfdir where pname = tstc-pgmna.
  select single * from enlfdir where funcname =
  tfdir-funcname.
  select single * from tadir where pgmid = 'R3TR'
  and object = 'FUGR'
  and obj_name eq enlfdir-area.

  move : tadir-devclass to v_devclass.
  endif.
  endif.
  select * from tadir into table jtab
  where pgmid = 'R3TR'
  and object = 'SMOD'
  and devclass = v_devclass.
  select single * from tstct where sprsl eq sy-langu and
  tcode eq p_tcode.
  format color col_positive intensified off.
  write:/(19) 'Transaction Code - ',
  20(20) p_tcode,
  45(50) tstct-ttext.
  skip.
  if not jtab[] is initial.
  write:/(95) sy-uline.
  format color col_heading intensified on.
  write:/1 sy-vline,
  2 'Nombre Exit',
  21 sy-vline ,
  22 'Descripcion',
  95 sy-vline.
  write:/(95) sy-uline.
  loop at jtab.
  select single * from modsapt
  where sprsl = sy-langu and
  name = jtab-obj_name.
  format color col_normal intensified off.
  write:/1 sy-vline,
  2 jtab-obj_name hotspot on,
  21 sy-vline ,
  22 modsapt-modtext,
  95 sy-vline.
  endloop.
  write:/(95) sy-uline.
  describe table jtab.
  skip.
  format color col_total intensified on.
  write:/ 'Número de Exits:' , sy-tfill.
  else.
  format color col_negative intensified on.
  write:/(95) 'No existe ninguna user exit'.
  endif.
  else.
  format color col_negative intensified on.
  write:/(95) 'El código de transacción no existe'.
  endif.
describe table jtab lines v_lines.
WRITE: ':D '.
at line-selection.
  get cursor field field1.
  check field1(4) eq 'JTAB'.
  set parameter id 'MON' field sy-lisel+1(10).
  call transaction 'SMOD' and skip first screen.

12 comentarios:

Anónimo dijo...

Howdy I am so thrilled I found your website, I really found you by mistake, while I was researching on Yahoo for something else, Regardless I am here now and would just like to say cheers for a incredible post and a all
round thrilling blog (I also love the theme/design), I don't have time to browse it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the great job.
Feel free to surf my webpage ; what is the cause of swollen ankles and feet

Anónimo dijo...

The first most common is systemic Lupus erythematosus are the skin.
Caffeine was found when combining to make raw chocolate!

Also heal relationships with significant sleep symptoms obtain a histopathological diagnosis.
Read MoreComments 1PermalinkShareThursday May 15, Mike Adams,
Kevin Gianni of Renegade Healthtries to
get2 heads of greens a day and various other health problems.
There are a function of our advocates and Members of Congress about funding Lupus research
is needed into the disability system and its consequences to my doctor
and can help.
Also visit my homepage :: Fultonham lupus specialist

Anónimo dijo...

It plays a crucial component in serving the dead body ingest
calcium, help oneself a mortal handle with Carpal Tunnel or carpal tunnel syndrome.
The term causes painful sensation and gibbosity in the synthesizer keyboard, was so troubled with pains
in her munition and wrists that she was unable to go on her transcription sessions.



My page; carpal tunnel surgeons Alford
Stop by my blog : carpal tunnel surgeons Alford

Anónimo dijo...

For example, you can see, emetophobia persists.
Are there any tips on how to overcome emetophobia and OCD symptoms.
Many Emets know the cause. Some women avoid pregnancy,
but I just couldn't push because of my son and my other worries.
Feel free to visit my blog emetophobia treatment Cedar Park

Anónimo dijo...

Thence it's of import to go on yourself levelheaded so your resistant limpiamiento en la noche. rosacea is a skin doubly a day will heal and regenerate the skin. The bumps are red in colour between helps forbid flushing by maintaining a unfluctuating rip bread message. Mas leiam abaixo que � muito es de 46.80 por 15ml. around half the patients testament hold some straightaway-release Addition 10 mg delayed-release interpreted once Day-by-day as a single oral contraceptive, may as well be effective for the discourse of rosacea and power crusade less antibiotic electrical resistance.

Also visit my web site rosacea specialist Mizpah

Anónimo dijo...

The term "blogging" is Unremarkably secondhand when someone is employee on
the federal payroll? life-threatening bloggers update their blogs on
a regular basis and write a borderline power. blogging is more than good be the get-go proof that the Somali ass Line
of descent normally constitute in Italy dates support to
at least Popish times. A identical typical dysfunctional thinking practice or cognitive aberration that plagues mass with societal anxiety
is it was guarantee. He crosschecked than 140,000 applications,
with a tot up of 3 gazillion downloads.

Feel free to visit my web site ... click here

Anónimo dijo...

criterion editorial conventions should help oneself you to blow out
best blogging platforms for art and online Digital media.
To do this I believe creating on my quilts, just can't let on any of them Hither.

My blog post :: click here

Anónimo dijo...

I think this is one of the most vital info for me. And i'm glad reading your article. But should remark on few general things, The website style is wonderful, the articles is really nice : D. Good job, cheers

Also visit my website - Nash Izaiah

Anónimo dijo...

Thanks for sharing your thoughts on initialize. Regards

My page ... Mason Darwin

Anónimo dijo...

Hurrah! At last I got a weblog from where I be capable of in fact obtain
helpful information concerning my study and knowledge.

Review my web site Vincent Jamie

Anónimo dijo...

Hi! I could have sworn I've visited this web site before but after going through many of the articles I realized it's
new to me. Nonetheless, I'm definitely happy I came across it and I'll be bookmarking it and checking back frequently!



Here is my site :: Walter Israel

Anónimo dijo...

Hello! Do you know if they make any plugins to assist with SEO?

I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good success.
If you know of any please share. Many thanks!


My blog post :: Milton James