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

How to find out a print program for a script?

Former Member
0 Likes
1,386

Hi

New to script development,

How to find out a print program for a script?

how to declare variables in script?

I need to associate the internal table from print program to script. i.e same flds of output table need to display in the script.

Please help me ..

Hi

New to script development,

How to find out a print program for a script?

how to declare variables in script?

I need to associate the internal table from print program to script. i.e same flds of output table need to display in the script.

Please help me ..

7 REPLIES 7
Read only

Former Member
0 Likes
1,031

in the transparent Table TNAPR.

this is the table which holds the information about which form is beeing related to which print program.

Read only

Former Member
0 Likes
1,031

If you know the output type <b>KSCHL</b>, secify the value in <b>TNAPR table</b> adn get the corresponding program name and script.

Hope this olves ur query, reward points.

Read only

Former Member
0 Likes
1,031

HI ,

You can find the print program name from TNAPR table.

the fields are:

TNAPR-PGNAM for program name

TNAPR-FONAM for script name

Reward helpful answers.

Regards,

Siddhesh Sanghvi

Read only

Former Member
0 Likes
1,031

Hi,

you can find the print program for a sap script by using the table TNAPR give the output type KSCHL and the form name and find out the print program name which is assigned to it.

For ur second ques, u can declare the variables bny using the DEFINE statement in the SAp script.

Read only

Former Member
0 Likes
1,031

you can check NACE tcode for finding out the print rogram for a script... if it is standard.

for defining the program symbol in your script write code like

P1 &itab-matnr& where p1 is paragraph format and itab is your int table in print program.

regards

shiba dutta

Read only

Former Member
0 Likes
1,031

Hi,

<b>1. Method1:</b> In TNAPR table the driver program name and form nanes will be stored

go to se11 enter tnapr table

give the form name and execute u will get the driver program of that particular form

fields,

PGNAM - Program name

FONAM - Form name

<b>Method 2 :</b>

1. Go to nace

2. select application (eg, EA)

3. click output type button and select output type

(eg, NEU)

4. double click on processing routines

5. Application - EA

Output Types - NEU (RFQ)

Program - program name

Form - Form name

u can get there

<b>Method 3 :</b>

if u want to directly see without going to nace

1. in se11 give view name as VN_TNAPR

2. execute it

3. it will ask for o/p type and application give it

4. then u can directly go to nace "display view processing routines" screen

2. You can define variable in SAPscript by apply statement <b>’DEFINE’</b>.

Example: Define variable name = ’TXT1’ and initial value = ’Text1’.

<b>/: DEFINE &TXT1& = ’Text1’

  • Test Define Text = &TXT1&</b>

The Output is

Test Define Text = Text1

3. loop at internaltable

call function 'WRITE_FORM'

-


-


-


endloop.

Read only

Former Member
0 Likes
1,031

Check in V_TNAPR view/table