‎2010 Jul 29 5:27 AM
Hi Experts,
I have created a list box for a field on the screen and i have filled the list using VRM_SET_VALUES function in the PBO of the screen. The values are appearing fine but after i choose a value from the list and trigger PAI of the screen, the value for that field goes out and the value is not being saved.
I have searched for possible reasons but no fruits.
Please advice how to overcome this problem.
Thanks,
Nagraj
‎2010 Jul 29 6:20 AM
Hi
Check the below thread
REFRESH car.
wcar-key = 'AA'. " The Key and Text Value should be same for Normal List Box and can vary if the List Box is with key
wcar-text = 'AA'. " This is to the best of my knowledge and Observation
APPEND wcar TO car.
wcar-key = 'LH'.
wcar-text = 'LH'.
APPEND wcar TO car.
cid = 'P_CARRID'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = cid
values = car
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.Cheerz
Ram
‎2010 Jul 29 6:20 AM
Hi
Check the below thread
REFRESH car.
wcar-key = 'AA'. " The Key and Text Value should be same for Normal List Box and can vary if the List Box is with key
wcar-text = 'AA'. " This is to the best of my knowledge and Observation
APPEND wcar TO car.
wcar-key = 'LH'.
wcar-text = 'LH'.
APPEND wcar TO car.
cid = 'P_CARRID'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = cid
values = car
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.Cheerz
Ram
‎2010 Jul 29 7:10 AM
Thanks Ram. I have done the same but the problem is the content selected from list box is not getting saved to the corresponding variable.
Anyway I solved the problem myself by replacing the function module with 'F4IF_INT_TABLE_VALUE_REQUEST'.
Thanks again.
Nagraj
‎2010 Jul 29 7:15 AM
Problem is solved by replacing the function module with 'F4IF_INT_TABLE_VALUE_REQUEST'.