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

Not able to set the parameter through SET/GET

Former Member
0 Likes
739

Hi,

I have created a parameter in TPARA table. I have to set/get a 8 character string to/from this parameter. i used the below statements

DATA lv_char_pernr type char8.

SET PARAMETER ID 'ZSIM_PERNR' FIELD lv_char_pernr.

GET PARAMETER ID 'ZSIM_PERNR' FIELD lv_char_pernr.

I am not able to set/get the value to/from ZSIM_PERNR. Can anyone help?

Regards,

Reena

Hi,

I have created a parameter in TPARA table. I have to set/get a 8 character string to/from this parameter. i used the below statements

DATA lv_char_pernr type char8.

SET PARAMETER ID 'ZSIM_PERNR' FIELD lv_char_pernr.

GET PARAMETER ID 'ZSIM_PERNR' FIELD lv_char_pernr.

I am not able to set/get the value to/from ZSIM_PERNR. Can anyone help?

Regards,

Reena

4 REPLIES 4
Read only

Former Member
0 Likes
700

Reena,

Are you getting any error.same code is working for me

Thanks

Bala Duvvuri

Read only

Former Member
0 Likes
700

You did populate LV_CHAR_PERNER before you issued the set command, right? If not, set/get is setting initial values (in this case 8 spaces).

Read only

ThomasZloch
Active Contributor
0 Likes
700

try

DATA lv_char_pernr type char8.

lv_char_pernr = 'Wonky'.
SET PARAMETER ID 'ZSIM_PERNR' FIELD lv_char_pernr.
clear lv_char_pernr.
GET PARAMETER ID 'ZSIM_PERNR' FIELD lv_char_pernr. 
write lv_char_pernr.

Thomas

Edit: see Breakpoint's, I hate this forum bug...

Read only

Former Member
0 Likes
700

pass some thing ..

then you will get value

data : lv_abc type char8 VALUE '10'.
DATA : lv type char8 VALUE '9'.
set PARAMETER ID 'ZSIM_PERNR'  field lv_ZOMM_SESSION.
GET PARAMETER ID'ZSIM_PERNR'  field lv.

WRITE / lv.