Skip to Content
0
Former Member
May 18, 2010 at 12:11 PM

Drop down list in Table Control - Value disappeared after pressing ENTER

658 Views

Dear Gurus,

I have a problem in one of my development where I used a table control in which one field is a drop down list.

I used VRM_SET_VALUES and VRM_GET_VALUES for populating the values from the programand not use any domain level value table for that field.

My problem is when I select one value from this list , and pressing enter , the value get disappeared. But if I use a domain for this field with value table then everything working properly.

My doubt is am I doing some miss coding or using the VRM_ function modules improperly ?

I am sharing some code with you

in PAI :

CALL FUNCTION 'VRM_GET_VALUES'

EXPORTING

id = 'ITAB-FIELD3' "This is drop down list element on screen

IMPORTING

values = values[] " even it is not the expor parameter...it will work..

EXCEPTIONS

id_not_found = 1

OTHERS = 2.

IF sy-subrc NE 0.

  • No sy-subrc check required.

ENDIF.

IN PBO

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'IVBAP-ERNAM'

values = values[].

Can you please help me.

Thanks .