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

VRM_SET_VALUES Function module issue

Former Member
0 Likes
1,453

Dear Experts,

i am using FM VRM_SET_VALUES to show my drop down list,i have some hardcoded address in my drop down list.

but the issue i am facing is that VRM_VALUES had size limit of 80 character but my hardcoded address in drop down list have length 120,

Here is Sample code

DATA:PLANT-NAME TYPE VRM_ID,
PLANT-LIST TYPE VRM_VALUES,
PLANT-VALUE LIKE LINE OF PLANT-LIST.
PARAMETERS: SHIP_TO AS LISTBOX VISIBLE LENGTH 30.

INITIALIZATION.
CLEAR: SHIP_TO,PLANT-LIST..
AT SELECTION-SCREEN.
PLANT-NAME = 'SHIP_TO'.

IF PLANT EQ '1100'.
CLEAR: PLANT-LIST.
PLANT-VALUE-KEY = '1'.
PLANT-VALUE-TEXT = 'Address of character 120 length'.
APPEND PLANT-VALUE TO PLANT-LIST.

PLANT-VALUE-KEY = '2'.
PLANT-VALUE-TEXT = 'Address of character 120 length'.
APPEND PLANT-VALUE TO PLANT-LIST.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = PLANT-NAME
VALUES = PLANT-LIST.

Thanks and Regards,

Asjad Ali

1 ACCEPTED SOLUTION
Read only

Former Member
1,157

standard field length you cannot change.use FM ( F4IF_INT_TABLE_VALUE_REQUEST ).

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,157

Technical limit. As a workaround, instead of listbox, you may define a F4 button or any button you want, to display an ALV grid in a popup for instance. ALV cells can show up to 128 characters.

Read only

Former Member
1,158

standard field length you cannot change.use FM ( F4IF_INT_TABLE_VALUE_REQUEST ).