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

Script print program

Former Member
0 Likes
771

hi friends,

1.how to find print program for script

2.if print program is subroutine pool how will it get triggered when script is executed

thanks in advance

soorya

6 REPLIES 6
Read only

Former Member
0 Likes
741

Hi,

You will find details in the TNAPR table.

The tnapr table has the field for Form name. The program is triggered through output mechanism. When user creates the output type in any transaction and saves it , the output processing program(RSNAST00) picks the data from NAST and calls the picks the processing program name from TNAPR based on the output type(KSCHL). The form name in the TNAPR will be the triggering point for the print program.

If you donot find entry in TNAPR then you can find print program by displaying the Form in SE71 and goto menu Form->check Texts. Select the include res check box and press enter. you will get the print program name.

Hope this helps.

Read only

Former Member
0 Likes
741

hi,

To find the driver program of script,

Use fm -> SAPSCRIPT_SELECT_PROGRAM or

SAPSCRIPT_USELIST_LIST_PROGS

Regards,

Sailaja.

Read only

Former Member
0 Likes
741

even you can check it in NACE transaction.

some layouts can be triggered from the transaction.we dont execute the print program directly.

For Example,

to display PO layout, we will goto ME22N/ME21N transction and we will select the output type and say PRINT PREVIEW.that time,your Print program will be executed and in turn your layout.

for some layouts,we directly execute the print program by using a transaction code.that program will have some selection parameters and we will give them and execute it.

Regards

Srikanth

Message was edited by: Srikanth Kidambi

Read only

Former Member
0 Likes
741

Hello Soorya,

GO to SE71 and enter the form name and click display button.

In the menu FORM >CHECK> TEXT.

This will diplay all the print programs apppended to the form.

If it is function pool .

With the know Formname use the TNAPR table and find out the routine name.

Put the breakpoint in the routine.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
741

use transaction NACE to view the output types and print programs/ forms.

Read only

Former Member
0 Likes
741

Hi

In the script go to page windows, then go to text elements, then select menu insert->program symbols. You will get the name of the driver program of that script.

Regards

Haritha