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

dynamic programming

Former Member
0 Likes
608

GV_ZALVL = '%ALVL'.

ASSIGN (GV_ZALVL) TO <ALVL>.

GV_ZVARI = '/1'.

<ALVL> = GV_ZVARI.

What does the above statements mean?

I dont have any idea about dynammic programming. Please explain me.

4 REPLIES 4
Read only

Former Member
0 Likes
581

well <ALVL>. this is a field symbol . c above in ur eeport if it has been declared as field-symbol <ALVL>.

reward points if helpfull

Thanking you

rohit gupta

Read only

0 Likes
581

in this statemnt ur field symbol has been used instead of ur field . so ur field has been assigned to ur feild symbol by the assign statemnt

hope this solves ur problem ..

Read only

Former Member
0 Likes
581

%ALVL will be assigned the value /1. Please see the explanation below.

GV_ZALVL = '%ALVL'.

GV_ZALVL is assigned the value %ALVL. %ALVL might be an variable in your program.

ASSIGN (GV_ZALVL) TO <ALVL>.

Content of the field %ALVL ia assigned to the field symbol <ALVL>

GV_ZVARI = '/1'.

GV_ZALVL is assigned the value /1.

<ALVL> = GV_ZVARI.

This statement will assign /1 to the variable %ALVL.

-Kiran

*Please reward useful answers

Read only

Former Member
0 Likes
581

Hi,

Kindly find my answers below ur questions...

Reward points if helpful..

GV_ZALVL = '%ALVL'.

<b>%ALVL -- SAP STANDARD FUNCTION CODES are represented this way.</b>

GV_ZVARI = '/1'.

<b>A Function Code (f1 fUNCTION KEY) is passed.</b>

ASSIGN (GV_ZALVL) TO <ALVL>.

<b>Here <ALVL> is a field-symbol, it has to be declared before this statement occurs. Field-symbols have to be assigned to any object before using them. Field-symbols are used to dynamically refer to the address of a object in runtime. Field-symbols can be related to Dereferenced Pointers in C.</b>

For further reference on Field-symbols refer to SAP HELP DOCUMENT.

Hope the info. is helpful, if any more clarifications revert back, else close the thread.

Reward points if convinced with the answer.

Regards