Inbound Setting

<< Click to Display Table of Contents >>

Navigation:  All About ABAP Technique > English > Costumized IDOC >

Inbound Setting

Source Code and setting in client receiver.

Inbound IDoc Posting Function Module

In the receiving system, create a function module Z_IDOC_INPUT_ZYZSO_MT using SE37. Below, I have described the logic for the same.

Add Include MBDCONWF. This include contains predefined ALE constants. Loop at EDIDC table

Check if the message type is ZRZORDER. Otherwise raise WRONG_FUNCTION_CALLED exception

Loop at EDIDD table

oAppend data from the segments to appropriate internal tables

oFor example: append data from ZRZSEG1 segment to the internal table of type ZCUSTOMERS

Update the DDic tables from internal tables

Depending on the result of the update, fill the IDoc status record (type BDIDOCSTAT) and append it to the corresponding table.

oStatus 53 => Success

oStatus 51 => Error

SE37-1

SE37-2

SE37-3

Source Code

 

Inbound Settings

Define Logical Systems – Transaction SALE (Please refer to Outbound Settings). You have to do it if SAP R/3 Receiver has a different IP.

Assign Client to Logical System – Transaction SALE (Please refer to Outbound Settings). You have to do it if SAP R/3 Receiver has a different IP.

Maintain RFC Destinations – Transaction SM59 (Please refer to Outbound Settings)

SM59-3

SM59-4

Define Ports – Transaction WE21 (Please refer to Outbound Settings)

WE21-3

Assign Function Module to Logical message – Transaction WE57

oCreate a new entry

oSpecify name of the Function Module as Z_IDOC_INPUT_ZYZSO_MT

oAlso, specify Type as F, Basic IDoc type as ZYZORDER, Message type as ZYZSO_MT and Direction as 2 (Inbound)

oSave the entry

       WE57-1

Define Input method for Inbound Function Module – Transaction BD51

oCreate a new entry

oProvide Function Module name as Z_IDOC_INPUT_ZYZSO_MT

oSpecify the Input method as 2

oSave the entry

       BD51-1

Create a Process Code – Transaction WE42

oCreate a new Process Code ZPCRZ2

oSelect Processing with ALE Service

oChoose Processing type as Processing by function module

oSave the entry

WE42-1

oOn the next screen, select your function module from the list

oSave the changes

       WE42-2

oNow you will be taken to the next screen

oDouble-click on Logical message

oIn the Assignment to logical message, specify the message type ZYZSO_MT

oSave the changes

WE42-3

Generate/Create Partner Profile – Transactions BD82/WE20 (Please refer to Outbound Settings)

oClick WE20-2 in Inbound Parameters

oSpecify the message type ZYZSO_MT

oSpecify the process code ZPCRZ2

oSave the changes

       WE20-3