2020 Apr 17 5:32 PM
Hi All,
Is there any enhancement for ALE_OUTB_DELIVERY_SAVEREPLICA Function module ?
My requirement is to fill the segment E1BPADR11 with email-address when the PARTN_ROLE = 'XX'. Is there any enhancement for this as i cannot find any Exit for this.
Please let me know if you have any suggestions.
2020 Apr 28 10:55 AM
You can use the central BADIs
IDOC_DATA_MAPPER
IDOC_DATA_INSERT
for all incoming and outgoing IDOCs
I prefer to have all manipulations of IDOCs in these BADIs, you have everything in one single point and you can (should) add a protocol (status 69) as well.
As I said, if you have an active implementation every IDOC is transferred through these BADIs
Do a central case for the control-mestyp and/or partner and add a method for this combination
* check, fill here
* don't forget the counter
IF ls_edid4-segnam = YOUR_SEGNAM_WHERE TO_ADD.
lv_new_counter = ls_edid4-counter + 1.
ls_new_entries-counter = lv_new_counter.
ls_new_entries-segnam = 'E1BPADR11'.
ls_new_entries-segnum = lv_segnum.
ls_new_entries-sdata = YOUR DATA.
APPEND ls_new_entries TO e_tab_idocins.
* must be filled if changes should work
have_to_change = abap_true.
* also fill the protocol
e_protocol-stamid = 'ZXYZ'.
e_protocol-stamno = '123'.
e_protocol-stapa1 = YOUR_VALUE.
e_protocol-repid = sy-repi2.
2021 Jan 20 11:39 AM
Hi Aniket,
I have almost the same requirement, it is to clear the E1BPADR11 email address in some cases.
I did some searching and came across user exit EXIT_SAPLV50K_012 that contains the email address field.
Since your post is from April 2020 you probably solved this one already?