Skip to Content

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

Enhance datasource 0FI_AR_3

Dear experts,

I've appended MATNR to 0FI_AR_3 (RSA6), created project (CMOD), activated the extract structures but still cannot populate ZZMATNR in my extract structure (RSA3).

Appreciate if somebody could look at my codes below and tell me if they are ok..

data: l_s_DTFIAR_3 like DTFIAR_3,

lv_zzmatnr like bseg-matnr.

case i_datasource.

when '0FI_AR_3'.

loop at c_t_data into l_s_DTFIAR_3.

l_tabix = sy-tabix.

clear lv_zzmatnr.

select matnr into lv_zzmatnr from bseg where belnr = l_s_DTFIAR_3-belnr and bukrs = l_s_DTFIAR_3-bukrs and buzei = l_s_DTFIAR_3-buzei and gjahr = l_s_DTFIAR_3-gjahr.

if sy-subrc = 0.

l_s_DTFIAR_3-zzmatnr = lv_zzmatnr.

modify c_t_data from l_s_DTFIAR_3 index l_tabix.

endif.

endselect.

endloop.

endcase.

Thanks a lot for the help!

mael

Message was edited by: mael

Helpful Answer

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