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
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
i_structure_name = 'STRUCTIRE'
is_layout = gs_layout
it_outtab = lt_dtab.