Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create idoc for PO create?

Former Member
0 Kudos

Hi All,

I want to develop an outbound interface for PO create.The requirement is that user will put PO nos on selection screen. I have to fetch the data and pass to FM to create multiple Idocs i.e one idoc for one po.

The all will be in Z report. Can anyone tell me how to bring port,partner profile info,message type and FM to pass the data.

Thanks in advance

2 REPLIES 2

Former Member
0 Kudos

Hello

You will have to do following steps for Custom Idoc:

1. Create custom message type

2. Create custom IDOC type, which will have all Z-Fields in Z-Table

3. Link Message Type and IDOC Type

4. Create RFC Destination for Receiver System

5. Create PORT for Receiver, asign RFC Destination to the PORT

6. Create the Partner Profile

7. Assign Message Type & Port in Outbound parameters

8. Create the Distribution Model

9. Create Z-Report which will create the IDOC for Selected Z-Data using Function Module MASTER_IDOC_DISTRIBUTE

You may put Message Type, Sender System and Receiver System on selection screen with default values..and use the same to create the IDOC...

Thanks

Amol Lohade

Former Member
0 Kudos

Hi,

Plz go through this link very good link.

saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm

Sequence of transaction :

1.BD54(Create Logical Systems on Sender & Reciever), or through SALE

2.SALE(Assignment of Logical System to client on Sender & Reciever)

3.SM59(To create RFC destination on Sender only)

Outbound settings:

1.WE31(Create Segments),

2.WE30(Create IDOC types),

3.WE81(Creation of Logical Message type),

4.WE82(To attach message type and idoc type),

5.BD64(To create a distribution model),

6.WE20(To create Partner Profile).

7.WE21(To create Ports)

Write Program to Trigger Idoc from Sender Side.

Inbound settings:

1.WE31(Creation of Segments)

2.WE30(Creation of IDOC Objs)

3.WE81(Creation of Message Types)

4.WE82(TO link Message Types and Idoc Type Objs)

5.WE42(To Create Process Code)

6.BD67(To attach FM to Process Code , On saving it goes to BD51 directly)

6.1 BD51 (To Configure FM as per input)

7.WE57(Assign. of FM to Msg Type and IDOC Type)

8.WE20(To create Partner Profile)

Write code for accepting data from IDOC send by sender . This has to be written in FM source tab with appropriate inport fields

and export fields .

Tips: The name of message type , idoc type , segment type and logical systems name on both sides should be same.

thanx.