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

generic performs

Former Member
0 Likes
537

hi,

i want to know the best ways to use perform statements.(with using and changing).

any body having documents?

thanks,

krishna.

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
517

Refer the link -

Regards,

Amit

Reward all helpful replies.

4 REPLIES 4
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
517

Hi Krishna

Take this as an example:

Not sure of the full form. But the structure ITCSY is used in relation with SAPScripts. You can call a Routine in any program in SAPScript.

For eg: if you have a subroutine named ADD_INCOME in a program ZSHAIL_BASIC, you can call the subroutine in SAPScript as follows:

/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC

/: USING &var1&

/: CHANGING &var2&

/: ENDPERFORM.

Here the input parameter to the subroutine is var1 and the value returned by the subroutine is var2.

In the program ZSHAIL_BASIC, you have to call the subroutine as

FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.

ENDFORM.

IN_TAB is a structure of type ITCSY,which has 2 components, NAME and value.

So in the program, var1(which is sent from SAPScript) , will be stored as IN_TAB-NAME and its value will be in IN_TAB-VALUE. You can utilise the IN_TAB-VALUE and after performing the required operations, the return value should be assigned to table OUT_TAB.

This value can thus be obtained in var2 specified in SAPScript.

Regards,

Sree

Read only

0 Likes
517

hi ram,

thanks for your reply,

but what i want is not regarding scripts.

general program level.

my intension is call by reference and call by value concepts.

thanks,

krishna.

Read only

amit_khare
Active Contributor
0 Likes
518

Refer the link -

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
517

Thanks,

Krishna.