cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC Sender (ORDERS)

Former Member
0 Kudos

HI,

I want to get ORDERS.ORDERS03 IDOC from R/3 to File..

Actually i decided to do this by looking at this blog.

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

The problem is, how to create receiver datatype from such a IDOC (which has more elements) ?

Any Sugg?

Thanks

Seshu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What are all the steps required for Scenario IDOC -> File

i know on R/3,

1. SM59 -- Create an RFC destination poitning to XI.

Is it of type TCP/IP ?

2. We20 -- Create Partner Profiles.

How to create for ORDERS.ORDERS03

3. We21 -- Create a port.

How to create?

in XI,

1. I Created Technical System of type ABAP for Sender IDOC

and of Type Third party for File receiver.

2. I Created Business systems for above.

and T-Codes i need to maintain in XI?

Thanks

Seshu

Former Member
0 Kudos

Hi Seshu,

SLD-

1) Create a Product/Software Component

2) Technical System pointing to R/3 system

3) Business System for the above technical system

In the Repository

1) Import the Software component created in the sld

2) Create a namespace,

3) import the idoc and then create sender data type/message type etc and mapping

4) Mapping Rules is depends on the requirement

In the Directory

1) Create a Scenario /import the business system

2) Create Receiver/Interface determination

3) Create communication channels for sender and receiver

4) Sender Agreeement and Receiver Agreement.

XI:

1. SM 59 - Create RFC destination pointing to R3.

2. IDX1 - Create a port for R3

3. IDX2 - Import IDOC metadata.

if you have any other doubts regarding IDOC-XI-FILE scenario, please go through the information below and clear all your doubts.

While doing an IDOC -> XI -> File scenario, The Points to noted are:

1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.

2. You import the IDOC and use the same in your mapping.

3. In this configuration note that you don’t have a sender agreement as you don’t have a sender IDOC adapter.

If it is that you wanted to send an IDOC from XI (File to IDOC) , then in this case:

points 1 and 2 will remain, but the 3 will not. You will need a sender agreement for the file and a receiver agreement for the IDOC.

IDOC -> File scenario ref:

<a href="/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters scenario</a>

File -> IDOC ref:

<a href="/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping to IDOC</a>

To be able to trigger your IDOC from the SAP ISU system, you will have to set the partner profile in we20. Select your Business System (mostly under Logical system) and then create Outbound entries for whichever IDOC you want to trigger.

You define your basic type also in your partner profile settings, Please go thru the following links to get a better idea about partner profile:

http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b833243d711d1893e0000e8323c4f/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7cd343d711d1893e0000e8323c4f/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/32/692037b1f10709e10000009b38f839/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/5e/b8f8bf356dc84096e4fedc2cd71426/frameset.htm

Also, I would suggest that you go through this blog by michal if any issue arises,

/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system

/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions

Regards,

Abhy

Message was edited by: Abhy Thomas

Former Member
0 Kudos

Hi Seshu,

I thought i will give you some more additional information which will help you complete this Scenario without any problem...

These are steps to follow:

STEPS IN DESIGN

1. Import idoc from the SAP System (SAP02) through imported objects.

2. Create Data Type, Message Type, Message Interface for the Outbound File.

3. Create Message Mapping with file Message and idoc (ORDERS03)

5.Create Interface mapping between File Interface and the idoc.

Steps to be followed in Creation of Technical and Business System

Technical System

In SLD, click on technical landscape->New Technical System->WebAS ABAP.

Business System.

1.Goto Business Landscape->New Business System->Name the business system.

2. Choose the technical system that needs to be attached->WebAS ABAP->Technical System Name.

Preconfiguration steps for transfer of data to IDOCS

1.Create a RFC Destination in SM59 of XI Server of type.

2.In transaction IDX1 ,create a port for the client of XI server.

3. The port has to be displayed in the idx2 transaction and we should be able to view the idoc’s which we imported through integration repository.

Steps in Configuration

1. Goto service without party, right click->Assign a business system.

2. Choose the business system to be added.

3. Create a File Sender Service with communication channel for the same.

4. Create an idoc receiver channel under the business system. Mention the RFC Destination and the port created for the same.

5. Mention the logical Name in the Service->Adapter Specific Parameters of both the File Sender Service as well as the business system.

6.Create the Receiver Determination and Interface Determination for the business system.

7.Create the Receiver Agreement for File Receiver with communication channel.

TCODES for File>XI>IDoc or IDoc>XI>File

SM59-rfc destination on recving side

IDX1-port on recving side

IDX2-load metadata

Bus. service adapter specific Identifiers-->Logical sys name (check this blog:/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system )

we05-IDoc status records

BD54-Create Partner Number

We20-Create Partner Profile

and also go thru this blog on

IDOC to File

and also these links:

https://websmp201.sap-ag.de/nw-howtoguides

http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/frameset.htm

In R/3 Side, Partner profiles should be created.

Have a look into this document for the same...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38...

And also since the Blog on IDOC to File looks quite complecated... I thought of giving you more info...

You can take a look at this document.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb...

Apart from that other details like SLD , R3 config etc you can look into the document and the info i have given.

Regards,

Abhy

Message was edited by: Abhy Thomas

bhavesh_kantilal
Active Contributor
0 Kudos

Seshu,

<i>Is it of type TCP/IP ?</i>

You create an <b>R3 destination in SM59 type R3 connection.</b>

<i>How to create for ORDERS.ORDERS03</i>

Go to We20 --> Create a new partner profile --> In the Outbound entries , Create an entry for the IDOC ORDERS.ORDERS03

<i>We21 -- Create a port.</i>

Go to We21 --> create a new port --> give name of prt and then mention RFC destination to be used.

This article has step by step guide,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb...

Regards,

Bhavesh

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Seshu,

Look at this blog also.. Talks on T-Codes in XI.

/people/morten.wittrock/blog/2006/03/23/getting-started-with-xi-part-1-xi-30-cheat-sheet

cheers,

Prashanth

Former Member
0 Kudos
moorthy
Active Contributor
0 Kudos

Hi,

You can go for Idoc xsd and import it into a External definition in XI and use this as a Target Structure.

If you are doing content conversion in the Target side i.e in Receiver file adapter , then it is advisable to create the Flat data type for the all the elements.

Generally for the file type, you will not be sending all idoc informations. So this is a pure manual/time consuming work. But it is easy task.

Regards,

moorthy

Former Member
0 Kudos

Hi,

Thanks for reply.

I want to do this scenario for testing.. so i can use all fields right..

Few questions,

1. how many records will be imported to file if i execute this scenario? lets say if idoc has 100 records and i want to import only 5 records, how can i do that?

2.Suppose we are sending Order booked from web to ORDERS.ORDERS05 IDOC in R/3 and we want to give response to user (who gave order), which IDOC and which field in IDOC is responsible for acknowledgement?

I mean if Order successfully processed?

and

If No stock?

Please suggest me.

thanks

Seshu

moorthy
Active Contributor
0 Kudos

Hi,

<i>1. how many records will be imported to file if i execute this scenario? lets say if idoc has 100 records and i want to import only 5 records, how can i do that?</i>

>>>One idoc is for one PO. so you can generate one file for each PO i.e Idoc or you can collect all the idocs into single file. i.e if you post 100 idocs, you can get 100 PO information in one file.

<i>lets say if idoc has 100 records</i> >>>what do you mean by Records here ?

<i>2.Suppose we are sending Order booked from web to ORDERS.ORDERS05 IDOC in R/3 and we want to give response to user (who gave order), which IDOC and which field in IDOC is responsible for acknowledgement?</i>

>>You can configure acknoledgement for the idoc processing with the help of ALEAUDIT feature.

To feel this -

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50...

Regards,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>lets say if idoc has 100 records and i want to import only 5 records, how can i do that?

if you want to filter IDOC's data you can do it in the mapping (so create a mapping which will only pass

5 out of 100 records

>>>>2.Suppose we are sending Order booked from web to ORDERS.ORDERS05 IDOC in R/3 and we want to give response to user

if you want to send Sales Order response you can

also use orders05

when SO is saved it can generate an orders IDOC

with order confirmation which can be used

as an acknowledgment

Regards,

michal

Former Member
0 Kudos

Hi,

Many Many thanks for replies and docs. One last question,

for sender idoc, do i need to create, Business System of type ABAP? IDOC as Sender needs sender agreement?

thanks

Seshu

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Business System of type ABAP?

you need a business system (these are not ABAP or java)

business systems are based on technical systems

(this is how you create them

/people/michal.krawczyk2/blog/2005/03/10/registering-a-new-technical-system-in-sld--abap-based )

>>>IDOC as Sender needs sender agreement?

from service pack Sp16 yes if lower SP then no

but jus tuse the Directory wizard if will create it

(or not) for you

Regards,

michal