Skip to Content
0
Former Member
Dec 17, 2013 at 06:47 AM

Drop down in alv grid and catching line selection

1958 Views

hi

i am displaying output in a grid to a screen with below method where it_datab has severla lfields and below is displaying output in alv frid format

i have a requierment to have a input field( ie one of the field of a record to be available for input and as dropdown with 3 values and user will selecte on value and then I will be updating the same to data base with the value inpout in the particular record

for eg

field1 field 2 feield 3 field4

ab ni test (here user will input values as Acc or AP or DP ) and then i will udpate thi record accordingly in the data base with the field 4 as inputted

pplease suggest a sample code to dod the same and correspoinding update in database on line selection and also sample code to have drop down for field 4 in the grid record.

CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'STRUCTIRE'
is_layout = gs_layout
CHANGING
it_outtab = lt_dtab.

regards

Nishant