Application Development and Automation 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: 
Read only

Table storing transactions in the report program

former_member314455
Participant
0 Likes
2,159

Hi Experts,

I have a report ZTEST.

In the report I have few CALL TRANSACTION statements calling different transactions.

Is there a table in which these Transactions are stored against the program name?

Thanks in advance.

Ajith

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,727

hi Ajith

you can find all the transaction codes in the table TSTC,

and the texts of the transaction codes in the table TSTCT, through which you can find the

T-code easily.

Regards,

Jaya rama kumar

Hi Experts,

I have a report ZTEST.

In the report I have few CALL TRANSACTION statements calling different transactions.

Is there a table in which these Transactions are stored against the program name?

Thanks in advance.

Ajith

8 REPLIES 8
Read only

Former Member
0 Likes
1,727

hi,

u can found those in TSTC tables lets check it once.

thanq,

rajesh.k

Read only

Former Member
0 Likes
1,728

hi Ajith

you can find all the transaction codes in the table TSTC,

and the texts of the transaction codes in the table TSTCT, through which you can find the

T-code easily.

Regards,

Jaya rama kumar

Read only

0 Likes
1,727

Hi,

I think I was not clear with the question earlier.

I'll explain in detail.

I have a report ZTEST.

Report ZTEST.

......

CALL TRANSACTION 'ZZ01'.

.......

CALL TRASACTION 'ZZ02'.

.......

Is there any table in which this information is stored? i.e ZZ01 and ZZ02 are called in the report ZTEST.

Thanks.

Ajith

Read only

0 Likes
1,727

Well I don't think so because, the CALL TRANSACTION is a satatement and it is executed at runtime ,

Read only

0 Likes
1,727

hi Ajith

i agree with Pavan Bhamidipati, i dont think it stored in any table . if you want to check just find out the package where you saved your Custom transactions and use where used list for finding Where it is used or in which program it used.

Read only

Former Member
0 Likes
1,727

Hello

There are no exist such table.

Try this code:


REPORT ZSEARCH.
PARAMETERS: P_NAME LIKE D010SINF-PROG.
DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
DATA: TRANS TYPE TCODE OCCURS 0 WITH HEADER LINE.

READ REPORT P_NAME INTO PROGTXT.
LOOP AT PROGTXT.
  IF PROGTXT CS 'CALL TRANSACTION'.
    SEARCH PROGTXT FOR ''''.
    IF SY-SUBRC = 0.
      DO.
        SHIFT PROGTXT LEFT BY 1 PLACES.
        IF PROGTXT(1) = ''''.
          SHIFT PROGTXT LEFT BY 1 PLACES.
          DO.
            SHIFT PROGTXT RIGHT BY 1 PLACES.
            IF PROGTXT+71(1) = ''''.
              SHIFT PROGTXT RIGHT BY 1 PLACES.
              CONDENSE PROGTXT.
              TRANS = PROGTXT. COLLECT TRANS. EXIT.
            ENDIF.
          ENDDO.
          EXIT.
        ENDIF.
      ENDDO.
    ENDIF.
  ENDIF.
ENDLOOP.
LOOP AT TRANS.
  WRITE: TRANS. NEW-LINE.
ENDLOOP.

Read only

Former Member
0 Likes
1,727

Hi KRISHNA,

Try the standard program through which we can scan the abap source code :RPR_ABAP_SOURCE_SCAN

AND

Standard table REPOSRC which stores abap source code.'

Hope this will help you

Regards,

Sreenivasa Sarma K

Read only

Former Member
0 Likes
1,727

HI,

IN TSTC Table u will have the TCode and the Programs related to it.

Tanks And Regards]

Suraj S Nair