Application Development 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: 

how to populate the data in LISTBOX of Dialog programming

Former Member
0 Kudos

Hi All,

I know how to create a Listbox in Modulepool programming, But i do n't know how to populate the data in LISTBOX. Does anyone knows , please help me ?

Thanks in advance

KR

3 REPLIES 3

Former Member
0 Kudos

Hi KR,

have you tried function module VRM_SET_VALUES?

I hope this helps. Best regards,

Alvaro

Former Member
0 Kudos

hi,

u need to write this after all modules of PAI in screen flow logic

PROCESS ON VALUE-REQUEST.

FIELD ifmtp-form_type MODULE fm_drop.

MODULE fm_drop INPUT.

CLEAR ifmtp.

REFRESH ifmtp.

ifmtp-form_type = 'C'.

APPEND ifmtp.

ifmtp-form_type = 'F'.

APPEND ifmtp.

ifmtp-form_type = 'H'.

APPEND ifmtp.

ifmtp-form_type = 'D'.

APPEND ifmtp.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'FORM_TYPE'

value_org = 'S'

TABLES

value_tab = ifmtp.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDMODULE. " fm_drop INPUT

here ifmtp-form_type is my list box field on screen in which ifmtp is my internal table and form_type is my field name

i have declared internal table like

DATA : BEGIN OF ifmtp OCCURS 0,

form_type LIKE zform_track_mast-form_type,

END OF ifmtp.

reward if useful...

Former Member
0 Kudos

Hi,

Make the field type in screen painter as listbox.

then use the function module VRM_SET_VALUES. In top include add the type pools VRM.

Hope ethis helps.

Regards,

Renjith Michael.