Application Development 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: 

Regarding modularization Technique

Former Member
0 Kudos
85

Hi,

Did anyone know about these syntax below :

ASSIGN LOCAL COPY OF <f> TO <FS>.

ASSIGN LOCAL COPY OF INITIAL <f> TO <FS>.

ASSIGN LOCAL COPY OF INITIAL LINE OF <itab> TO <FS>.

ASSIGN LOCAL COPY OF INITIAL LINE OF (<f>) TO <FS>.

Regards

sekar

1 REPLY 1

Former Member
0 Kudos
50

Hi,

ASSIGN LOCAL COPY OF <f> TO <FS>.

The system places a copy of the specified global field <f> on the stack. In the subroutine, you can access and change this copy without changing the global data by addressing the field symbol <FS>.

You can use the LOCAL COPY OF addition with all variants of the ASSIGN statement except ASSIGN COMPONENT.

Other variants of the ASSIGN statement that are used in subroutines are:

ASSIGN LOCAL COPY OF INITIAL <f> TO <FS>.

This statement creates an initialized copy of the global field <f> on the stack without copying the field contents.

ASSIGN LOCAL COPY OF INITIAL LINE OF <itab> TO <FS>.

This statement creates an initial copy of the line of a global internal table <itab> on the stack.

ASSIGN LOCAL COPY OF INITIAL LINE OF (<f>) TO <FS>.

This statement creates an initial copy of the line of a global internal table <itab> on the stack. The internal table is specified dynamically as the contents of the field <f>.

for more information please check out the link below it might help you

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db982c35c111d1829f0000e829fbfe/content.htm

************please reward points if the information is helpful to you***************