2007 Jan 30 7:05 AM
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 ..
2007 Jan 30 7:08 AM
in the transparent Table TNAPR.
this is the table which holds the information about which form is beeing related to which print program.
2007 Jan 30 7:29 AM
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.
2007 Jan 30 7:32 AM
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
2007 Jan 30 7:37 AM
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.
2007 Jan 30 8:20 AM
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
2007 Jan 30 8:31 AM
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.
2007 Jan 30 8:34 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |