Skip to Content
0
Former Member
Dec 08, 2009 at 02:59 PM

IDOC to Flat file and Flat file to IDOC

326 Views

Hello Experts,

I have the following requirement in my current project:

Third Party Sender sends the data in the in the below XML format via HTTP:

<?xml version="1.0"?>

<fxEnvelope>

<header>

<message>

<exchangeID></exchangeID>

<messageID></messageID>

<subject></subject>

<payloadType>IDOC</payloadType>

</message>

<from>

<orgID></orgID>

<locationID></locationID>

<messageID></messageID>

</from>

<to>

<orgID></orgID>

<locationID></locationID>

</to>

</header>

<body>

<Opaque>

<DataType></DataType>

<DataStream></DataStream>

</Opaque>

</body>

</fxEnvelope>

In the above XML, the Tag <DataStream> is a string which contains the IDOC flat file.

Now, the scenario is HTTP to IDOC, where the sender sends the above XML payload and PI needs to convert <DataStream> to IDOC XML and pass it on to the receiver R/3.

But the challange i am facing is converting this <DataStream> tag which contains the IDOC flat file to IDOC XML using a Mapping program.Since both adapters are running on ABAP stack i can not go for Adapter Modules available(We are using PI 7.10).

Looking for some guidance on the same.

Thanks in advance.

Cheers,

Manasa.