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

Hoe to pass internal table - SAP Script

Former Member
0 Likes
929

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.

6 REPLIES 6
Read only

Former Member
0 Likes
849

Pass the internal table without header line to the input parameters:

For ex:

perform get_data in program zprog

using itab[]

changing lines.

Read only

Former Member
0 Likes
849

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

Read only

0 Likes
849

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.

Read only

0 Likes
849

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

-


Read only

0 Likes
849

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

Read only

0 Likes
849

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.