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

How to write a perform in Sap Script

Former Member
0 Likes
789

Hi Guys,

Can anyone let me know how to write a perform statement in Sap Script.

Thanks,

Ramesh

Hi Guys,

Can anyone let me know how to write a perform statement in Sap Script.

Thanks,

Ramesh

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
414

I just took this example from SAP Help

=======================================

Syntax in a form window:

/: PERFORM <form> IN PROGRAM <prog>

/: USING &INVAR1&

/: USING &INVAR2&

......

/: CHANGING &OUTVAR1&

/: CHANGING &OUTVAR2&

......

/: ENDPERFORM

INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.

OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.

The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:

FORM <form> TABLES IN_TAB STRUCTURE ITCSY

OUT_TAB STRUCTURE ITCSY.

...

ENDFORM.