cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in FILE to IDOC scenario

Former Member
0 Kudos

Hi All,

In IDOC to FILE scenario we create RFC Destination in SAP R/3 system and in XI Server. And we create ports at SAP R/3 system(WE21) and in XI Server(IDX1).

Coming to FILE to IDOC scenario, Do we create RFC Destination and PORT in SAP R/3 system at receiver side?And i think we need to create RFC Destination and PORT at XI server? Is this correct?

If this is the case please explain me why we don't create RFC destination at SAP R/3 side....while we are creating it in the IDOC to FILE scenario?

Regards,

Ramana.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member556603
Active Contributor
0 Kudos

Hi Ramana,

/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

File to IDOC

Check these configurations in R/3 and in XI...

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.

Former Member
0 Kudos

Hi,

In IDOC to FILE scenario we create RFC Destination in SAP R/3 system and in XI Server. And we create ports at SAP R/3 system(WE21) and in XI Server(IDX1).

YES, Exactly. Here the Purpose of the creation of the RFC Destination from SAP R/3 towards Xi is to post the Idoc to the Target System

The purpose of the creation of the RFC Destination from XI towards SAP R/3 is to Load the meta Data from SAP R/3

Coming to FILE to IDOC scenario, Do we create RFC Destination and PORT in SAP R/3 system at receiver side?

No Need

And i think we need to create RFC Destination and PORT at XI server? Is this correct?

Yes

If this is the case please explain me why we don't create RFC destination at SAP R/3 side....while we are creating it in the IDOC to FILE scenario?

Why because it is enough to create the RFC Destination in XI inorder to post the Idoc to the Target Application and no need of presense of RFC Destination in SAP R/3 towards XI

Regards

Seshagiri

Former Member
0 Kudos

Hi,

IDOC to File:

RFC destination is created at R3 end and that RFC destination

should be pointing to XI system. In this case ur R3 system should be aware of to which system it should send the IDOC hence u create the RFC destination with Xi details.

where as in reverse case of File to IDOC u do not need to create the RFC destination at R3 end as R3 system is acting as ur recevier system but u need to do the configuration at Xi end so that Xi should come to know to which R3 system the IDOC need to be send.

refer the below configuration for File to IDOC scenario.

File To IDOC - Part1 (SLD and Design):

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&

File To IDOC - Part2 (Configuration):

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&

File To IDOC - Part3 (Steps required in XI and R3):

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&

chirag

Former Member
0 Kudos

Chirag,

According to your answer my doubt is clarified regarding RFC Destination.

What about creating PORT and PARTNER PROFILES at the receiver side that means at the Receiving SAP R/3 System? DO we create port or not ?and why?

Regards,

Ramana.

former_member240483
Contributor
0 Kudos

Sorry wrong post

Edited by: PT Rao on May 15, 2008 11:57 AM

former_member240483
Contributor
0 Kudos

If receiver system is R3 u have to create port and partner profile (inbound)..

Regards

Rao

Former Member
0 Kudos

Hi,

PORT: it is a gateway for R3 system through which ur IDOC will be send or received..

and PARTNER PROFILES- has to be created for XI system and in the inbound u will specify the message type that will be received by R3 system.

chirag

Former Member
0 Kudos

hI,

If Idoc in the receiver side even..we should cerate RFC destination pORT and patner profiles.....but we need not create DISTRIBUTION MODEL VIEW.

Yup..you have create all in the XI SERVER .

IDOC to File steps to be followed please verify your scenario with it

R3 system.

1. Create SM 59 RFC destination to XI,.

2. We21 - Create port to XI.

3. We 20 -- Maintain Partner Profile for the outbound Idoc.

XI SLD

1. Create technical system for R3 system

2. Create Business System for the Client of the R3 system.

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

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

Collecting IDocs without using BPM

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

These are the required steps for IDoc to File scenario...

In R3 (i.e., your IDES system)...

RFC dest to XI (sm59) - any name

Logical system (bd54) - any name

Port to XI (we21) - any name

Partner profile for the logical system (we20) - use Logical system name created in bd54

In XI...

RFC dest to R3 (sm59) -

Port to R3 (idx1) -

create metadata for the idoc (idx2)

Regards

Former Member
0 Kudos

And i think we need to create RFC Destination and PORT at XI server? Is this correct?

YES....

If this is the case please explain me why we don't create RFC destination at SAP R/3 side....while we are creating it in the IDOC to FILE scenario?

Here the data is passing to SAP system through RFC Receiver adapter.