cancel
Showing results for 
Search instead for 
Did you mean: 

How to read an IDOC flat file and send it to XI

Former Member
0 Kudos

Hi,

I'm looking for a way to read a complicated Idoc structured flat file sent to XI by a legacy system and then pushing that data to and R/3 system. Can anyone recommend a good technique?

Thanks,

Steeve

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Steven,

I understand your issue, to pickup an IDOC flat file & post it to R/3 (with or without mapping).

There is no straight forward solution but there are some ways (Normal way of Working as of now ?!!!) provided in the "How to"

check this link

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

and look for this guide

How To Convert Between IDoc XML and Flat Files in XI.30

Probably you need to automate this using some programs,

- Create an ALE port of type File

using transaction WE21 on your

Integration Engine.

- Run report RSEINB00 on your

Integration Engine. The report will

upload the file, filter the IDoc header

data, perform the conversion to IDoc

XML and put the data into the

pipeline of the Integration Server.

Therefore it is crucial, that the IDoc

control record data is populated

correctly and corresponds to the

adapter-specific identifiers of your

sender service. Once the message

is put successfully into the pipeline

of the Integration Server, the file is

deleted.

Hope this fixes your issue

Regards

Vishnu

Answers (1)

Answers (1)

Former Member
0 Kudos

hi steven....

this shud help u...

for FileXIIDoc

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

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

hope it helps....

regards...

vishal

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