Custom IDoc configuration Steps

Custom IDoc configuration Steps

Custom IDOC configuration steps:

1)   Logical system

   1)   Tcode for logical system is BD54.

2)   Click on new entries and enter logical system name and description.

3)      Save the changes and logical system is created.
 
2)      Create RFC Destination:

1)      Enter Tcode SM59 to create RFC destination.

2)      Select ABAP Connection and click on create button to create RFC destination a new screen will open where enter Target host in technical setting.

3)      Enter logon credentials in logon and security tab and save to create RFC destination.

  3) Create Port:

1) Tcode to create port is WE21 where different ports to create transactional Port select transactional RFC and click on create button to create port.

2) A new popup window will open where we have to select own port name and enter port name and click on continue.

3) After clicking on continue a new window will open where we have to enter the RFC Destination and       save the port.
                  
4) Create Segment

 TCODE for create segment is WE31
               
Here we need to add field names and data element details.


5) Basic Type

Tcode for creation of basic type is WE30.


  
Enter object name and click on create button and enter required details and click on Continue.

  Enter description of your Basic Type.

                 
6) Message type


         1) Tcode to create message type is WE81


       Click on new entries to create message type.

7) Assign message type to basic type:

       Tcode to assign message type to basic type is WE82.
 
8) Outbound program:

  We have to write program to trigger custom IDoc.

  In these I have used the below function modules:

  MASTER_IDOC_DISTRIBUTE: to collect data and create Idoc in ready to dispatch step.

  DEQUEUE_ES_EDIDOCE: to unlock and release the created IDoc.

9) Partner profile:
 
 
Tcode to create partner profile is WE20

1) Enter TCode WE20 for partner profile creation where a new screen will open where  

    Select Partner type LS partner type and click on create to create partner profile.


          2) A new screen will open where we need to fill partner no and partner type and agent     

            Details.

                  

 3) After that add message type in outbound parameters and save the partner profile.10) Output:

1) Execute the above report it will trigger IDOC and also gives IDOC number in pop up window.            

2) After execution you can check the status of IDOC in WE02 where enter IDOC number generated and click on execute button.

Here,

GREEN indicates IDOC processed successfully.

RED indicates error in IDOC processing.

YELLOW  -  indicates IDOC is in process.



Post a Comment

0 Comments