data: ls_extension type bapiparex.
loop at extensionin into ls_extension .
read table extensionout index 1.
case extensionout-structure.
when 'BAPI_TE_MEREQITEM' ."CUST_EBAN.
move ls_extension-valuepart1+0(5) to ls_eban-preq_item.
move ls_extension-valuepart2+217(1) to ls_eban-zz_cost_section.
move ls_extension-valuepart2+218(3) to ls_eban-zz_cost_cust.
move ls_extension-valuepart2+221(19) to ls_eban-zz_cost_model.
update eban set zz_cost_section = ls_eban-zz_cost_section
zz_cost_cust = ls_eban-zz_cost_cust
zz_cost_model = ls_eban-zz_cost_model
where banfn = number
and bnfpo = ls_eban-preq_item.
endcase.
endloop.
这里的bapiparex-valuepartX长度是240,从valuepart1往下排'BAPI_TE_MEREQITEM' 字段长度,如果1不够,剩下的就放在2.