‎2013 Sep 23 8:01 AM
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.
‎2013 Sep 23 10:30 AM
Check in database table TNAPR, give print pgm name and get form name
You can also try NACE tcode
‎2013 Sep 23 10:33 AM
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)
‎2013 Sep 23 11:15 AM
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?
‎2013 Sep 23 10:34 AM
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)
‎2013 Sep 23 10:47 AM
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
‎2013 Sep 23 10:51 AM
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
‎2013 Sep 23 11:15 AM
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.
‎2013 Sep 23 11:31 AM
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
‎2013 Sep 23 3:59 PM
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 )