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

Find sap script from report program

kethanuppalapati
Explorer
0 Likes
5,325

Hi,

I have a Report program. There is a subroutine with tables parameter of structure ''itcsy''.  ITCSY structure is used in sap scripts. I want to know the name of the sap script which is calling this subroutine. The where used list does not show where this report program is called from.

9 REPLIES 9
Read only

Former Member
0 Likes
3,470

Check in database table TNAPR, give print pgm name and get form name

You can also try NACE tcode

Read only

hemanth_kumar21
Contributor
0 Likes
3,470

There are so many ways to find out: below are the few

1. You can find the Script name from the table TNAPR or TTXFP..

     Navigation: Go to SE11

                   give   TNAPR display - Contents - give program name and execute.

2. Transaction SE38 open the program RSNAST00.

     Find for the subroutine TNAPR_LESEN.

     Set a break point at that subroutine and leave.

     When printing the data from a transaction to a script or form (Like VA01 or VL02N), debugger is started when the processing reaches the subroutine in RSNAST00. There double click on the field TNAPR-FONAM. continue step-by-step execution. The field will display the name of the script or form that is currently being used. (http://scn.sap.com/thread/774625)

Read only

0 Likes
3,470

Hi Hemanth,

     Thanks for the reply. The report program i have is not a driver program. It has all subroutines which are called in SAP Scripts. How to find the script name now?

Read only

hemanth_kumar21
Contributor
0 Likes
3,470

There are so many ways to find out: below are the few

1. You can find the Script name from the table TNAPR or TTXFP..

     Navigation: Go to SE11

                   give   TNAPR display - Contents - give program name and execute.

2. Transaction SE38 open the program RSNAST00.

     Find for the subroutine TNAPR_LESEN.

     Set a break point at that subroutine and leave.

     When printing the data from a transaction to a script or form (Like VA01 or VL02N), debugger is started when the processing reaches the subroutine in RSNAST00. There double click on the field TNAPR-FONAM. continue step-by-step execution. The field will display the name of the script or form that is currently being used. (http://scn.sap.com/thread/774625)

Read only

Former Member
0 Likes
3,470

Hi,

Did you try below steps

1)Go to transaction NACE, select appropriate application type and output type, you could see print program and sapscript assigned in under processing routines.

2) SE11- TNAPR table, give the print program name, you will get the script name.

Please let us know whether you were able to get the script name.

Best Regards,

Abirami

Read only

Former Member
0 Likes
3,470

Hi,

You can use table tnapr

TNAPR-is sap-script program table

or

  you know the output type of the report then you can get the script/form name attached with the report throught he tcode NACE

Read only

Former Member
0 Likes
3,470

Hi kethan,

              Goto SE11->TNAPR table ->give program name -> Execute.

After that u can cross check in se71->give form name->click on display->goto Form->Check->texts

here we will get form name and program name.pls find the below screen shot.

Regards,

OmChandra.

Read only

Former Member
0 Likes
3,470

Hi Kethan,

Before executing your report, activate debugger and put break point at function module.

Give these two function modules:

1. START_FORM

2. OPEN_FORM

You can find the script name in either of these FM passed in export parameter FORM.

Reward if helpful.

Thanks,

Ajay

Read only

0 Likes
3,470

Hi,

1. Check the View VN_TNAPR.

    And also check the table/join conditions in same view.

2. NACE   ( Application and output type you should know)

2. TNAPR ( just pass your report in PGNAM = your report , RONAM-subroutine )