Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SHP_OBDLV_SAVE_REPLICA Modification - for external warehouse

former_member6345
Participant
0 Kudos

Dear Colleagues,

I created a new Z Idoc for Shipment Outbound Delivery Save Replica for our new external warehouse. These Idoc are generated.

I know that SAP provide a BaDI to extend the IDoc with segment E1BPEXTC, E1BPEXT but it's very unconformtable, if the external warehouse needs more than 50 special fields.

Therefore I created a new one:

My procedure:

1. Create new Business Object ZLIKP with Super Type LIKP.

2. Create new Method ZSAVEREPLICA.

3. Copy and create a new function module ZBAPI_OUTB_DELIVERY_SAVEREPLICA and assign as API on my method.

4. Generate a new Message type ZSHP_OBDLV_SAVE_REPLICA  from Z function module.

5. Assign & generated the basis type ZSHP_OBDLV_SAVE_REPLICA04

6. Create new partner profile and distribution model with my new BAPI

So this settings are fine.

My problem:

How can I trigger my new IDoc/Message type for Shipment Outbound Delivery Save Replica, if a new outbound delivery created for external warehouse in SAP.

There are no customizing settings to set or assign the warehouse no. with my new message type.

Currently the systems works only with the standard Message Type SHP_OBDLV_SAVEREPLICA.

Have anyone the solution?

Thanks in advance.

BR

Armin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Dear Armin,

Have you found a solution for this issue?

Best wishes,

Atul

2 REPLIES 2

Former Member
0 Kudos

Dear Armin,

Have you found a solution for this issue?

Best wishes,

Atul

0 Kudos

Hello Atul,

There is no a solution by SAP to assign a new Message Type (Basis Idoc) for one external warehouse. Message type SHP_OBDLV_SAVEREPLICA is hardcorded in the SAP standard program. So you have to modify the standard program. But it's not recommend.

You have to use the extension segments E1BPEXTC or E1BPEXT in SHP_OBDLV_SAVEREPLICA .

BR

Armin