‎2006 Jan 10 6:44 AM
Hello,
Is there any way to find out the print pgm from SAP script form?
Thanks and Regards,
Pankaj.
‎2006 Jan 10 6:47 AM
Use table TNAPR . This works like a charm.
Reward points if it helps.
Ankur Bhandari
‎2006 Jan 10 6:50 AM
Hi pankaj,
1. one way is : (not 100% perfect)
2. goto se71 - display mode
3. goto menu :
FORM --> CHECK ---> TEXTS
4. A small window will popup
5. select 1,2, 4 radio button (by default seelcted)
6. click ok
7. A new window will come which
will list out the available driver programs.
regards,
amit m.
‎2006 Jan 10 6:54 AM
This doesn't work for MEDRUCK form. Also is it 1, 2, 4, or 1,3,4. Please confirm
Ankur Bhandari
‎2006 Jan 10 6:56 AM
Hi,
If you have attached the output type to your layout, then you can use the table TNAPR by giving the output type (KSCHL) you can get the print program.
or Just go to the layout and check the syntax of Texts then it will show the possible print programs(if there are more than one Print Program).
Regards
vijay
‎2006 Jan 10 6:57 AM
Hi pankaj,
1. TNAPR is for layouts
which are used in customization.
hence, probably, for Z programs
it won't have any entry !
2. Only checkbox no 1
will also do.
*----
3. Such method is not 100%
The reason is :
4. Sapscript layouts are usually called
using OPEN_FORM
which takes the layout name as HARDCODED
OR VARIABLE.
5. Hence, there no find utility can
search such variable value for layout in question.
regards,
amit m.
Message was edited by: Amit Mittal
‎2006 Jan 10 7:11 AM
There is this utility program which SAP has provided which can search for a string in source codes.
RPR_ABAP_SOURCE_SCAN , although it takes time to find, it can be used to find any hard coded value.
Regards,
Ankur Bhandari.
p.s Reward points if it helps.