cancel
Showing results for 
Search instead for 
Did you mean: 

how to Sending XML data to idoc

Former Member
0 Kudos

hi friends,

in my c drive there is one folder called sales...inwhich xml files are there...........

now how to convert that XML to idoc.........?in XI

give me steps..how do that in XI and how to send that idoc to R/3...........?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

if you are using NFS mode, then you can pick the file from your local machine and can put it on application server (xi server) by tcode <b>sxda_tools</b>.

If you need more infor on sxda_tools, plz let me know.

Regards,

Sarvesh

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

I thought i will just share a few basic thoughts that you need to take care while doing an File to IDoc Scenario. Just see if it helps you in anyways.

While doing an File -> XI -> IDoc 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 will need a sender agreement for the file.

4. In this configuration note that you will also need a receiver agreement for the IDOC.

For any File -> XI -> IDoc scenario ref:

There is a weblog on file to multiple idocs,

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

for FileXIIDoc

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

also check this blog for specifying adapter specific identifiers in this scenario

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

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 (Matmas04)

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. Make the Sender Agreement for theFile Sender with communication channel.

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

8.Create the Receiver Agreement for the Business system.

TCODES for File>XI>IDoc

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...

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

Please go through this link:

How to sample Idocs within XI:

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

With Regards,

Vidya

justin_santhanam
Active Contributor
0 Kudos

hi,

please follow the https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/fileToIDOC&

PS: You can't take files from your local desktop, unless until XI is installed in ur machine. If you give c:/ then it will look for the c: drive where XI got installed. Hence u can use FTP tools like Guild FTP and use FTP Protocol.

raj.

nisarkhan_n
Active Contributor
0 Kudos

you use the file adapter to pick the XML from the fodler ( Make sure the file adapter has the all the required rights to pick the data from that folder) then on the reciver side import the idoc and do the mapping..

your case will be instead of FILE TO IDOC it will be XML file to IDOC ( NO FCC here)