Skip to Content

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

GET_SELECTED_ROWS

hiii experts..

i am working on a ALv grid and in that i am selecting a row for for updating the changed valuse to DB table..

i am using GET_SELECTED_ROWS for the same . i want to check this seleced row to a DB table and if key fields are changed then i have to give error mesg.

so plz any 1 tell how to check the selected rows against the original DB values..

i tried selcting DB into ITAB

SELECT * FROM Y4ARC_RES_PERIOD INTO CORRESPONDING FIELDS OF TABLE ZT_102.

  • loop at ZT_102.

  • IF ZT_102-RES_ID EQ LT_102-RES_ID.

  • MESSAGE E002(ZMSG).

  • EXIT.

  • ENDIF.

and comparing with changed valuse but when we chang key fields and existing key field ..ie..enter r same that condition will not work..

plz suggest

mahesh

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question