IDoc DESADV trigger inbound delivery after PGI for inter-company STO's outbound delivery

In the inter-company purchase (inter-company stock transfer) process, a common solution is to automatically trigger the inbound delivery document of the receive company after the issue company completes the goods issue posting. In addition to using the SAP standard output type SPED, it can also be implemented through IDoc.

This blog describes how to realize this function through IDoc.

It mainly consists of the following steps:

1, Create a new output type for outbound delivery.

T.Code – V/34,or using below configuration menu,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他

Here I created a new output type ZZIB,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_02

Access sequence Z001,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_03

The value of the field Transm.Medium is 6 (EDI).

The program is RSNASTED.

The form routine is EDI_PROCESSING

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_04

In the partner functions, create a new entry:6/SH, see above screen.

2,Assign the output type to output determination procedure V10000.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_05

Requirement should be set as 1, means the output will be triggered after PGI for the outbound delivery.

3, Maintain the condition record for the output type.

Transaction code: VV21/VV22.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_06

The partner specified here should be maintained in tcode WE20.

4,Define confirmation control key .

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_07

5, The outbound IDoc setting.

5.1), IDoc type – DELVRY03

Tools > ALE > ALE Development > IDoc > IDoc Type Development > IDoc Types

T.Code – WE30

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_08

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_09

5.2), Message Type – DESADV

Tools > ALE > ALE Development > IDoc > IDoc Type Development >Logical Messages

T.Code – WE81.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_10

5.3), Process Code – DELV

Tools > ALE > ALE Development > IDoc > Outbound Processing > Define Process Code

T.Code – WE41.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_11

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_12

Function Module – IDOC_OUTPUT_DELVRY.

5.4), Maintain the partner profile for outbound parameter.

SPRO > Materials Management > Purchasing > Messages > EDI > Set Up Partner Profile

T.Code – WE20.

Partner Type – KU (Customer)

Partner Role – SH

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_13

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_14

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_15

Receiver Port: A000000002

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_16

RFC Destination:

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_17

6, Inbound IDOC setting

IDoc type – DELVRY01

Message Type – DESADV

Process Code – DELS

Tools > ALE > ALE Development > IDoc > Inbound Processing > Define Process Code

T.Code – WE42

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_18

Function Module – IDOC_INPUT_DESADV1,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_19

Maintain the partner profile for inbound parameter.

Tcode WE20. Partner Type – LS (Logical system)

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_20

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_21

7, The definition of Logical system by code SALE or by tcode BD54.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_公司间STO_22

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_23

The assignment between logical system and SAP client.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_24

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_25

Note: Currently I did this testing in CLIENT 100 system.

8, Create document and to see the effect.

STO#4500000768,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_26

VL10B created an outbound delivery 80000784,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_其他_27

The PGI was done for this outbound delivery,

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_28

Check the output for this outbound delivery, IDoc triggered successfully.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_29

The Inbound delivery was triggered successfully.

IDoc DESADV trigger inbound delivery after PGI for inter-company STO‘s outbound delivery_IDoc DESADV_30