Skip to Content
0
Former Member
Oct 31, 2007 at 02:17 AM

case statment for changeid

40 Views

Hi Experts

I want to modify a code by displaying CDPOS-CHNGIND = 'EDIT' if

CDPOS-CHNGIND ='E' . U as Update, I as Insert , D as delete.

It is displying in my ALV grid as U,I,E,D in the type

clear st_fieldcat.

add 1 to lva_col_pos.

st_fieldcat-tabname = 'PA_IT_MERGED'.

st_fieldcat-fieldname = 'CHNGIND'.

st_fieldcat-ref_tabname = 'CDPOS'.

st_fieldcat-ref_fieldname = 'CHNGIND'.

st_fieldcat-row_pos = '6'.

st_fieldcat-col_pos = lva_col_pos.

append st_fieldcat to pa_it_fieldcat.

regards