Hi, First capture the the additional fields in SRM ROS Screen and save it. Then use an RFC call to SRM from ECC from the Badi with the address number. Sample code in Badi BBP_ES_VENDOR_CHECK to get the address number
loop at ct_idoc_data assigning
where segnam eq 'E1LFA1M'.
move -sdata to ls_e1lfa1m1.
if ls_e1lfa1m1-ADRNR is not initial.
lv_adnr = ls_e1lfa1m1-ADRNR.
endif.
endloop.
You can update back to Idoc Structure in ECC like
loop at ct_idoc_data assigning
where segnam eq 'E1LFM1M'.
move -sdata to ls_E1LFM1M.
ls_E1LFM1M-waers = lv_waers.
MOVE ls_E1LFM1M to -sdata.
ENDLOOP.
Similarly other fields you can pass in the iDoc structure. If it is not found,trigger a background job from this exit and update TIN and CST values( these are J_* tables for CIN can be updated directly)
Regards Aromal