Escolar Documentos
Profissional Documentos
Cultura Documentos
sy-tcode = 'ME23N'.
READ TABLE tekpo INDEX 1 INTO lwa_ekpo. IF sy-subrc = 0 AND lwa_ekpo-banfn NE ''. IF lwa_ekpo-ebeln NE ''. SELECT SINGLE zzreq_plan zzrea_aris INTO (gs_char1 , gs_char2 ) FROM ekko WHERE ebeln = lwa_ekpo-ebeln. ELSE. SELECT SINGLE zzreq_planos zzrea_aris INTO (gs_char1 , gs_char2 FROM eban WHERE banfn = lwa_ekpo-banfn. ENDIF. gv_req_plan = gs_char1. gv_rea_aris = gs_char2. ELSE. gv_req_plan = i_ci_ekko-zzreq_plan. gv_rea_aris = i_ci_ekko-zzrea_aris. ENDIF.
ENDIF.
e_ci_ekko = gl_ekko_ci. e_ci_ekko-zzreq_plan = gv_req_plan. e_ci_ekko-zzrea_aris = gv_rea_aris. IF ( gl_ekko_ci-zzreq_plan NE ekko_ci-zzreq_plan ) or ( gl_ekko_ci-zzrea_aris NE ekko_ci-zzrea_aris ) . e_ci_ekko-zzreq_plan = gv_req_plan. e_ci_ekko-zzrea_aris = gv_rea_aris."ekko_ci-zzrea_aris. IF gl_aktyp NE 'A'. e_ci_update = 'X'. ENDIF. ENDIF. ENDIF.
READ TABLE im_eban IF sy-subrc = 0. SET PARAMETER ID SET PARAMETER ID SET PARAMETER ID ENDIF.
INDEX 1 INTO wa_eban. 'BAN' FIELD wa_eban-banfn. 'BAP' FIELD wa_eban-bnfpo. 'BBA' FIELD wa_eban-bsart.