简体   繁体   中英

How to replicate outbound delivery in SAP?

I have to replicate an outbound delivery from ecc to wm system; I know i have to use the idoc SHP_OBDLV_SAVE_REPLICA02.

I Have the following questions :

  1. How to trigger the replication by creating the outbound delivery?
  2. Do I have to do only the configuration in t-code WE20, or do I have to create a distribution model?
  3. Where in the standard ABAP code is that triggered, or do I have to create an output message?
  4. I want to fill the segments E1BPEXTC, E1BPEXT with data before creating/distributing the IDOC. Any idea how to achieve this?

Thanks in advance

First of all, SHP_OBDLV_SAVE_REPLICA02 is a workflow-based IDoc which is triggered by Workflow process ID WS30000483. So you should check if your event (creation of outbound delivery) is triggered in this process to be sure it will work.

Secondly, if you want to fill segments in a customized way you should find the FM which is fired during IDoc sending. Here is how to do this:

  1. Go to Tcode WE57 (equivalent of VEDIEDIFCT view or EDIFCT table) and search by IDOCTYP field to find your FM by IDoc.
  2. In our case it is BAPI_IDOC_INPUT1 which just a generic FM which searches corresponding FM from TBDBA/TBDBE mapping tables and if it is not found it throws error.
  3. In this processing FM you will find segment filling procedure

Thirdly, are you at all sure you need especially SHP_OBDLV_SAVE_REPLICA02 for your aims? It is inbound IDoc which is not your case, you need outbound.

I assume you need DESADV message and SD05 process code. Here is how to find FM for this IDoc: go to WE64 tcode, select message type and process code and you will see processing FM for this IDoc

在此处输入图片说明

Here is the processing FM for this IDoc in which there is a SEGMENTS_FILL form where the segments are filled.

Just copy this FM to Z, make necessary corrections and fill into this customizing record in WE64.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM