2006 Apr 24 10:59 AM
How to pass the internal table through a PERFORM statement in SAP Script.
How to pass the internal table through a PERFORM statement in SAP Script.
2006 Apr 24 11:02 AM
Pass the internal table without header line to the input parameters:
For ex:
perform get_data in program zprog
using itab[]
changing lines.
2006 Apr 24 11:02 AM
Hi Eswar,
Why do you want to pass a internal table to a SAP Script? within SAP script you can't use the internal table so why would you want to use an internal table?
Are you looking to pass the data of the internal table to write the data into the script? If yes then you can use the FM WRITE_FORM_LINES which accepts an internal table and writes it in the window which is passed as a parameter in the FM.
Hope this helps
Cheers
VJ
2006 Apr 24 11:05 AM
As you have the data in ur internal tables your program stands as the driver program for your SAPScript So you can use "Open_form", "Write_form" and "Close_Form" to pass the data to SAPScript.
2006 Apr 24 11:08 AM
hi
i can not change the driver program.I am calling a perform statement in the script. i donot want to call a perform statement for each item of internal table.
i have to modify whole data of internal table based on some conditions.so i want to pass a internal table there in the routine.
so can you send me the sample code for that.
Regards
-
2006 Apr 24 11:43 AM
Hi,
Hi,
Check whether following syntax is helps you to start off :
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
......
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
......
/: ENDPERFORM
Regds,
Akshay
2007 May 28 10:50 AM
hi eswar,
see this link might give you a better idea.
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm
anuj
award pionts if useful.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |