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

Problem with VRM_SET_VALUES

Former Member
0 Likes
1,443

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,008

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,009

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

Read only

Former Member
0 Likes
1,008

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

Read only

Former Member
0 Likes
1,008

Problem is solved by replacing the function module with 'F4IF_INT_TABLE_VALUE_REQUEST'.