Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Is it possible to set a variable in a program from outside before calling

Suppose I have a program as follows

******************************************

Report Program1.

data: prog1data(10) type c.

start-of-selection.

perform Prog1Form.

form Prog1Form.

write: prog1data.

endform.

******************************************

Now if I have another program which calls the Prog1Form from outside, is there some way I can set value of variable prog1data from my second program before I call Prog1Form routine e.g

*******************************************

Report Program2.

start-of-selection.

->>>>Somehow set the variable prog1data in Program1 ?

perform PROG1FORM in PROGRAM1.

***********************************************

Will give points for the right answer. Thanks for reading.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question