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,925
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,

bdf2c44264b218081f3b434495b79~tplv-tt-shrink:640:0.png



Here I created a new output type ZZIB,

5f775741e4bf58e9a46405aad8846~tplv-tt-shrink:640:0.png



Access sequence Z001,

c6cfe76c047aa8c7d43fc84f603f1~tplv-tt-shrink:640:0.png



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

The program is RSNASTED.

The form routine is EDI_PROCESSING



a2a5a749d44d482fd97666aaab253~tplv-tt-shrink:640:0.png



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





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

fea5e5435458da86edb6fc420dffc~tplv-tt-shrink:640:0.png



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.

a34522e4d4081816e5c312cf8a3b9~tplv-tt-shrink:640:0.jpg



The partner specified here should be maintained in tcode WE20.





4,Define confirmation control key .



043c239884aefb8d5035336434d9d~tplv-tt-shrink:640:0.png







5, The outbound IDoc setting.



5.1), IDoc type – DELVRY03

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

T.Code – WE30

ce0dc826b4ff0a2f6ae7e387f8c0d~tplv-tt-shrink:640:0.jpg


34d2f4f5247b1b81043f11fe11980~tplv-tt-shrink:640:0.png



5.2), Message Type – DESADV

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

T.Code – WE81.

bb9c69e3c4a38a811cca338e2545c~tplv-tt-shrink:640:0.png



5.3), Process Code – DELV

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

T.Code – WE41.

8ac04fce8413da9c15e27732038d5~tplv-tt-shrink:640:0.png


5c3db543a4a78935d52d3a2ace8e8~tplv-tt-shrink:640:0.png



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

a4c67694b49d49da93318d5b58d78~tplv-tt-shrink:640:0.png


fc9ed9fa7480fa2a9bfa3d32833e2~tplv-tt-shrink:640:0.png


a52e23041490f9672ffa27201cb82~tplv-tt-shrink:640:0.png



Receiver Port: A000000002

b66777c7044619a06165e4033a0de~tplv-tt-shrink:640:0.png



RFC Destination:

1e0afe1214375b1b7d24f9ad9fa2e~tplv-tt-shrink:640:0.png









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

5b243622344aab2267128cfdec5ac~tplv-tt-shrink:640:0.png



Function Module – IDOC_INPUT_DESADV1,

393e51bb14565b1554518d218f29a~tplv-tt-shrink:640:0.png



Maintain the partner profile for inbound parameter.



Tcode WE20. Partner Type – LS (Logical system)

55f85724b4588b138ad9ac52b1656~tplv-tt-shrink:640:0.png


ea43da0bc47be9a2b48e1f86d6efe~tplv-tt-shrink:640:0.png







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



03c57e7aa4893b492df3eee25818b~tplv-tt-shrink:640:0.jpg


f113bd2d24b2d8d41d79847b1174e~tplv-tt-shrink:640:0.jpg



The assignment between logical system and SAP client.

f8c4121e7441ca5fc34090fc7bffd~tplv-tt-shrink:640:0.jpg


39de7768242a498e38f81fc0b5744~tplv-tt-shrink:640:0.png



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





8, Create document and to see the effect.



STO#4500000768,

c6e98653e4df3bb166808318f60e6~tplv-tt-shrink:640:0.png



VL10B created an outbound delivery 80000784,

f30dc72334f72a9abb7fcd55a9316~tplv-tt-shrink:640:0.png



The PGI was done for this outbound delivery,

de05195784fd3abdf73e3222ed7c0~tplv-tt-shrink:640:0.png



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

20b4776714e1aadfe341c694d20dc~tplv-tt-shrink:640:0.png





The Inbound delivery was triggered successfully.



70360ed0e42b39950386a3623026a~tplv-tt-shrink:640:0.png


Okumaya devam et...
 
Üst