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

Print program from Form

Former Member
0 Likes
709

Hello,

Is there any way to find out the print pgm from SAP script form?

Thanks and Regards,

Pankaj.

6 REPLIES 6
Read only

Former Member
0 Likes
667

Use table TNAPR . This works like a charm.

Reward points if it helps.

Ankur Bhandari

Read only

Former Member
0 Likes
667

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.

Read only

0 Likes
667

This doesn't work for MEDRUCK form. Also is it 1, 2, 4, or 1,3,4. Please confirm

Ankur Bhandari

Read only

Former Member
0 Likes
667

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

Read only

Former Member
0 Likes
667

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

Read only

0 Likes
667

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.