Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Tcodes and SM30

Former Member
0 Kudos

Hello !

I need to write a report that shows wich tcodes has a maintenace view related, that means that calls TCODE SM30 with the viewname....

Does anybody knows how to do that? I already checked on tables TSTC* , but I cant find the table where the SM30 is related to my Z tcode....any Ideas?

Gabriel!!

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Check table TSTCP. This is kind of weird, cuz it stores this info in a string. For example, one in my system looks like this. This is the PARAM field value in table TSTCP. YOu can see that SM30 is the first value and then the viewname and update flag.

/*SM30 VIEWNAME=ZSDPROMOD;UPDATE=X;

Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Check table TSTCP. This is kind of weird, cuz it stores this info in a string. For example, one in my system looks like this. This is the PARAM field value in table TSTCP. YOu can see that SM30 is the first value and then the viewname and update flag.

/*SM30 VIEWNAME=ZSDPROMOD;UPDATE=X;

Regards,

Rich Heilman

0 Kudos

So a quick program might look like this.



report zrich_0001 .

data: itstcp type table of tstcp with header line.

select * into table itstcp
            from tstcp
                 where PARAM like '/*SM30%'.

loop at itstcp.
  write:/ itstcp-tcode, itstcp-PARAM(50).
endloop.

Regards,

RIch Heilman

0 Kudos

Hello Rich and Seshu

Thanks for answering....I already have found that table....but I was wondering if the TCODE sm30 was saved somewhere else....It seems like it is the only table in the system.

10nks again

Gabriel

Former Member
0 Kudos

Check the table TSTCP

Thanks

Seshu