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

pass internal table to SapScript

Former Member
0 Likes
1,243

hello experts,

how will i pass an internal table to the Sapscript? i can't edit the print program since it is a standard program. i have an internal table and i have to pass its contents to the sapscript to display them together with existing fields in the form. how will i do this?

please help me. thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,057

if u want to pass a internal table convert it to a zprogram........

and do change....

else.

create a zreport and that u call it in a sap script form

using perform statement..

Reward IF....

Regards

Anbu

5 REPLIES 5
Read only

Former Member
0 Likes
1,058

if u want to pass a internal table convert it to a zprogram........

and do change....

else.

create a zreport and that u call it in a sap script form

using perform statement..

Reward IF....

Regards

Anbu

Read only

GauthamV
Active Contributor
0 Likes
1,057

hi ,

copy the form to zform and write performs ,configure ur zform in nace transaction..

using that performs in ur script and write the form in a seperate program.declare all ur internal tables and data there and pass it to ur script.

reward points if hlpful.

Read only

Former Member
0 Likes
1,057

Hi,

Please use Perform XXXXXXXXX

EndPerform.

In SAP Script if you want to pass a value in the sap script.

Read only

Former Member
0 Likes
1,057

Hi,

Create a Z program for this.In the script write it as

PERFORM <Subroutine name> IN PROGRAM <prg name>.

ENDPERFORM.In this you can make use of int.table.

In the Z program you can write the FORM and fill the data in internal table.

Read only

Former Member
0 Likes
1,057

i have created a perform in the Sapscript already to call the subroutine in the program. here is the scenario:

1. i collected the line items from the sapscript and passed it to the program i made because i have to add another column of records. in the program, i placed the data in an internal table..

2. i have to pass all the contents in the internal table i made to the sapscript so that it will be displayed.

sample:

PROGRAM code:

loop at outab.

call 'write_form'

endloop.

can i do it this way?