Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Listbox with Function code in Table control

Hi ,

I have a table control with a column as a listbox. On the basis of what the user selects from the list, it should accordingly populate some data to show in the F4 help implemented through POV . For this I assigned Fctcode to the listbox .

But whenever I select a value from the list, that particular value does not stay.

I have coded the following in PBO:

loop at it_zmattb into zmattb with control tbcontrol .

MODULE INITIALISE.

endloop.

&----


*& Module INITIALISE OUTPUT

&----


  • text

----


MODULE initialise OUTPUT.

if g_list[] is initial. "SO THAT LIST does not contain repeating values .

value-key = 1.

value-text = 'Material'.

append value to g_list.

value-key = 2.

value-text = 'Plant'.

append value to g_list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'ZMATTB-TEXT'

values = g_list.

MODIFY IT_ZMATTB FROM ZMATTB INDEX SY-TABIX.

ENDIF.

ENDMODULE. " INITIALISE OUTPUT

Please guide how to implement dynamic values in F4 on a second column according to value selected from Listbox in first column.

Note that I want to use only listbox.

Thanks in advance.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question