cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to file scenario

former_member187437
Contributor
0 Kudos

Can anyone help me in creating a IDOC to file scenario? Though there are blogs on scenario creation, i could not find any blog on the configuration steps needed in the sender system and XI server.

Accepted Solutions (1)

Accepted Solutions (1)

prasanthi_chavala
Active Contributor
0 Kudos

Hi Aarthi,

Do the following settings:

Configurations in R/3 side

1. Create RFC destination to ur XI system in Tcode sm59.

2. Create a port in WE 21.Do create a trfc and give the RFC destination created before in this.

3. Using Tcode BD 54 create a logical system.

4. Create partner profile in WE 20 under partner type LS and assign the MT in outbound parameter .

Configurations in XI System:

1. SM59 (RFC destination)

Configure the RFC destination specific to the R/3 system.

2. Using Tcode IDX1 create a port and give the RFC destination here.

You can use we19 (test tool) to push the idoc to XI via TRFC port.

Hope it is clear.

Regards,

Prasanthi.

Former Member
0 Kudos

hi Aarthi,

Plz do the following steps for IdocxiFile scenario

SAP XI

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (IDX1)

a) Select create new button

b) Enter the port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Load Meta Data for IDOC (IDX2) a) Create new

b) IDOC Message Type

c) Enter port created in IDX1.

SAP R/3

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (We21)

a) First Select Transactional RFC and then click create button

b) Enter the destination port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Create Partner Profile (WE20)

a) Create New

b) Create the Partner no. name as same the logical system name of the destination system.

c) Select Partner type LS

d) Enter details for Type: US/USER, Agent, and Lang.

e) Click on the + button to select the message type.

f) Select Partner no. and LS which ever create above.

g) Select Message type

h) Select Process code related to the Message type.

I) save.

In SLD – System Landscape Directory

TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.

Ts for Third Party (Logical system):-

BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.

BS for Third Party (Logical system):-Enter the XI logical system name.

In Transaction SALE

Define and Assign the logical system name.

Regards,

Ashwin M

Reward if helpful

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Aarthi,

In sender R/3 system, you need to create a partner profile as you create to send an IDoc from one R/3 to another R/3 system.

Here your RFC destination will point towards the XI system.

Hence, the IDoc is pushed to the Integration engine of XI.

In XI you need to import the IDoc structure. map that to ur target str .

U dont need to use any sender communication channel.

Regards

Pushkar

former_member529475
Active Contributor
0 Kudos

Hi Aarthi

Maintain the Sender R/3 System

Create a RFC Destination to XI using the Tcode SM59

Create a TRFC Port and specify RFC Destination created above using the TCode WE21

Create the partner profile for Inbound and Outbound Parameters using WE20

Maintain the Receiver XI System

Create the RFC Destination for sender system using SM59

Create the port to get IDOC Metadata from Sender System using the Tcode IDX1. Here the Port name we are given and port name in the IDOC header will be identical.

Maintain the IDOC Metadata using the Tcode IDX2.

Integration Builder (Design)

Import the IDOC in the Imported Objects

Create the Datatype for the XML file Receiver say for example the datatype will be Vendor_Master_DT

Create the Message Type for the Vendor_Master_DT say for example the Message Type will be Vendor_Master_MT

Create Message Interface for the Vendor_master_MT. Here we are creating 3 intefaces.

Vendor_Master_MI -> Inbound, Asynchronous, Vendor_Master_MT

Vendor_Master_MIAA -> Abstract, Asynchronous, Vendor_Master_MT

Vendor_Master_IDOC_MIAA -> Abstract, Asynchronous, IDOC

Create the Message Mapping to conver Outbound type of IDOC into Abstract type so that they can collect it in our BPM as follows. Say for example the Message Mapping will be Vendor_Master_MM

Create the Interface Mapping say for example Vendor_Master_IM

Create the Integration Process to Collect IDOCs to one place and after the specified time interval it will be posted to XML file in some specific format.

Add the Container Variables say

COLLECT : AI, Vendor_Master_IDOC_MIAA

INPUT : AI, Vendor_Master_IDOC_MIAA

OUTPUT : AI, Vendor_Master_MIAA

RECEIVE STEP is used to receive the IDOCs

APPEND STEP is used to append the IDOCs

RECEIVE BLOCK is used to receive all the IDOCs

The loop for receiving the messages is defined as an infinite loop

A receive Step is defined in the loop to receive the Messages that ends the process Save and activate the change list.

Integration Directory (Configuration)

- Import the Business Systems

- Creat the Receiver Communication Channel with File Adapter

- Create the Integration Process.

- Here Idoc is in the Sender side i.e., in R/3 Side so no need to create the Sender Agreement. Create the Receiver Agreement.

- Create the Interface Determination for R/3 - > BPM and BPM - > File. Similarly for Receiver Determination also.

Save and Activate the Change lists.

see the below links

/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi

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

idoc settings /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi

Also

/people/sravya.talanki2/blog/2005/10/27/idoc146s-not-reaching-xi133-not-posted-in-the-receiver-sap-systems133

IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario

Cheers..

Vasu

<i>** Reward Points if found useful **</i>

former_member184619
Active Contributor
0 Kudos

Hi Aarthi,

Just chk this blog

/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi

and

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapR3(Idocs)ToXI--Steps+Summarized&

Regards

Sachin

Former Member
0 Kudos

Hi,

The following Blog may help you.

<a href="/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi">/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi</a>

Regards,

kiran kumar

Former Member
0 Kudos

Hi,

The following Blog may help you.

<a href="/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi">/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi</a>

Regards,

kiran

Message was edited by:

kiran kamisetty

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

all steps for IDOC from R3 to XI with screenshots can be found in:

<a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

former_member187437
Contributor
0 Kudos

Hi isn't there any free resource i can refer?