Hi All,
To give you background on this. I want to check DOI Number (doi_no) from OIU_DO_DI table to check whether that DOI is approved and its not checked out. Once I check this then I need to modify below highlighted (bold) record from internal table lt_oiu_do_do. If you need any further information please let me know.
SELECT bukrs vname doi_no doi_appr_cd checked_out_fl
FROM oiu_do_di
INTO TABLE lt_oiu_do_di.
SORT lt_oiu_do_di BY bukrs vname.
READ TABLE lt_oiu_do_di INTO wa_oiu_do_di WITH KEY wa_oiu_do_di-bukrs.
wa_oiu_do_do-doi_no = wa_oiu_do_di-doi_no.
MODIFY lt_oiu_do_do FROM wa_oiu_do_do TRANSPORTING doi_no
WHERE wa_oiu_do_di-bukrs = lt_oiu_do_do-bukrs AND
wa_oiu_do_di-vname = lt_oiu_do_do-vname AND
wa_oiu_do_di-doi_appr_cd = 'X' AND
NOT wa_oiu_do_di-checked_out_fl = 'X'.
LOOP AT lt_oiu_do_do INTO wa_oiu_do_do.
CLEAR l_gri_pc.
wa_e_t_data-bukrs = wa_oiu_do_do-bukrs.
wa_e_t_data-vname = wa_oiu_do_do-vname.
wa_e_t_data-doi_no = wa_oiu_do_do-doi_no.
wa_e_t_data-cust_vend_cd = wa_oiu_do_do-cust_vend_cd.
I am getting Error as "WA_OIU_DO_DO and the line of "LT_OIU_DO_DO" are incompatible."
Can someone please help me in writing this code?
With Regards,
Sarika