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

GET and SET parameter!!

Former Member
0 Likes
1,362

Hi

I hav declared a selection screen parameter:

p_vkorg1 TYPE tvko-vkorg, " Sales Organisation

This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...

how shall i go abt this?

Regards

Gunjan

4 REPLIES 4
Read only

Former Member
0 Likes
1,009

Check this:

<b>PARAMETERS: P_VKORG TYPE VKORG MEMORY ID VKO.</b>

Regards

Eswar

Read only

Former Member
0 Likes
1,009

SET PARAMETER ID 'VKO' FIELD p_vkorg.

set the value to sap memory under id vko for p_vkorg.

GET PARAMETER ID 'VKO' FIELD p_vkorg1.

get the value from sap memory under id vko to p_vkorg1.

regards

shiba dutta

Read only

Former Member
0 Likes
1,009

data vkorg type tvko-vkorg.

p_vkorg1 TYPE tvko-vkorg.

initialization.
clear vkorg.
get parameter id VKO field vkorg.
if not vkorg is initial.
p_vkorg1 = vkorg.
endif.
Read only

Sathish
Product and Topic Expert
Product and Topic Expert
0 Likes
1,009

set parameter id: 'VKO' field p_vkorg1.

in the calling program

get parameter id: 'VKO' field p_vkorg.

free memory id: 'VKO'.

it is always necessary to free memory id after setting it.