SAP BLOG IDoc DESADV trigger inbound delivery after PGI for inter-company STO’s outbound delivery

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,851
Tepki puanı
7
Puanları
6
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,

4d3bdf2c44264b218081f3b434495b79~tplv-tt-shrink:640:0.image



Here I created a new output type ZZIB,

de25f775741e4bf58e9a46405aad8846~tplv-tt-shrink:640:0.image



Access sequence Z001,

a1cc6cfe76c047aa8c7d43fc84f603f1~tplv-tt-shrink:640:0.image



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

The program is RSNASTED.

The form routine is EDI_PROCESSING



699a2a5a749d44d482fd97666aaab253~tplv-tt-shrink:640:0.image



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





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

b82fea5e5435458da86edb6fc420dffc~tplv-tt-shrink:640:0.image



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.

5d3a34522e4d4081816e5c312cf8a3b9~tplv-tt-shrink:640:0.image



The partner specified here should be maintained in tcode WE20.





4,Define confirmation control key .



28b043c239884aefb8d5035336434d9d~tplv-tt-shrink:640:0.image







5, The outbound IDoc setting.



5.1), IDoc type – DELVRY03

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

T.Code – WE30

055ce0dc826b4ff0a2f6ae7e387f8c0d~tplv-tt-shrink:640:0.image


29734d2f4f5247b1b81043f11fe11980~tplv-tt-shrink:640:0.image



5.2), Message Type – DESADV

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

T.Code – WE81.

26ebb9c69e3c4a38a811cca338e2545c~tplv-tt-shrink:640:0.image



5.3), Process Code – DELV

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

T.Code – WE41.

f448ac04fce8413da9c15e27732038d5~tplv-tt-shrink:640:0.image


51a5c3db543a4a78935d52d3a2ace8e8~tplv-tt-shrink:640:0.image



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

27da4c67694b49d49da93318d5b58d78~tplv-tt-shrink:640:0.image


8f8fc9ed9fa7480fa2a9bfa3d32833e2~tplv-tt-shrink:640:0.image


f68a52e23041490f9672ffa27201cb82~tplv-tt-shrink:640:0.image



Receiver Port: A000000002

8feb66777c7044619a06165e4033a0de~tplv-tt-shrink:640:0.image



RFC Destination:

7ec1e0afe1214375b1b7d24f9ad9fa2e~tplv-tt-shrink:640:0.image









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

2a35b243622344aab2267128cfdec5ac~tplv-tt-shrink:640:0.image



Function Module – IDOC_INPUT_DESADV1,

9ee393e51bb14565b1554518d218f29a~tplv-tt-shrink:640:0.image



Maintain the partner profile for inbound parameter.



Tcode WE20. Partner Type – LS (Logical system)

96055f85724b4588b138ad9ac52b1656~tplv-tt-shrink:640:0.image


8fbea43da0bc47be9a2b48e1f86d6efe~tplv-tt-shrink:640:0.image







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



c1103c57e7aa4893b492df3eee25818b~tplv-tt-shrink:640:0.image


de0f113bd2d24b2d8d41d79847b1174e~tplv-tt-shrink:640:0.image



The assignment between logical system and SAP client.

585f8c4121e7441ca5fc34090fc7bffd~tplv-tt-shrink:640:0.image


f4139de7768242a498e38f81fc0b5744~tplv-tt-shrink:640:0.image



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





8, Create document and to see the effect.



STO#4500000768,

886c6e98653e4df3bb166808318f60e6~tplv-tt-shrink:640:0.image



VL10B created an outbound delivery 80000784,

4ebf30dc72334f72a9abb7fcd55a9316~tplv-tt-shrink:640:0.image



The PGI was done for this outbound delivery,

e71de05195784fd3abdf73e3222ed7c0~tplv-tt-shrink:640:0.image



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

50620b4776714e1aadfe341c694d20dc~tplv-tt-shrink:640:0.image





The Inbound delivery was triggered successfully.



ac670360ed0e42b39950386a3623026a~tplv-tt-shrink:640:0.image


Okumaya devam et...
 
Üst