cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping

Former Member
0 Kudos

Hello all,

My Scenario is FILE XI IDoc. Here i am using FCC in case of sender. I am mapping to the IDoc WGSREQ.WGSREQ02.

The Structure of the Idoc is

-->EDI_DC40 --- > For this i will disable and activate control record

-->E1WGRK1 --- > 1....5000

-


>E1WGRP1 -


> 1.....9999

-


>E1EDK05 -


> 0.....4

What will be the suggested Sending Message Type.

Because my current Message Type is Flat containing all the fields under a single node.

Regards

Ramesh P

Message was edited by:

Ramesh Parashivamurthy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

If your idoc occurence is less the 0...9999 or something to that effect then you may may have to use idoc packaging ..

that is when the occurence is 0 to1 for the present idoc.

For this export the xsd of the idoc ...open it in notepad ...manually change it to 0.....99999 .Reimport it as an xsd .

so it should look something like this

<b>idoc ---> 1...9999</b>

EDI_DC40 --- > For this i will disable and activate control record

-->E1WGRK1 --- > 1....5000

-


>E1WGRP1 -


> 1.....9999

-


>E1EDK05 -


.then use it for mapping ...

what I understand ...you have n number of records in a file and you would like to post that many idocs ...what you are showing here is the segements under the idoc ...you need to fiddle the idoc occurence itself.

Once you are done with that map the recordset structure ..(the one with multiple occurence ) with the idoc field .

Rest of the fields can be mapped using context function ...if you face any problem kindly reply

Former Member
0 Kudos

Hello Deepak,

Let me reframe my question.

I have a target file for Inventory with <b>0...unbounded</b> records but in single structure.

But the IDoc structure is mentioned above.

I am encountering Runtime Exception in Mapping. I even tried Michal Blog for testing message, there i will receive the following error.

<i>Cannot produce target element /WGSREQ02/IDOC/E1WGRK1. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</i>

Any suggestions.

Regards,

Ramesh P

Former Member
0 Kudos

Hi

Clearly , at runtime you are not getting any source node for the targetnode

/WGSREQ02/IDOC/E1WGRK1 that you have mapped earlier

Use , "Display Queue" in mapping editor for the above Target node and you will find Full of suppress entries only.

Action you need to take: Make sure the targer node gets some value in its source node during runtime

regards

krishna

Former Member
0 Kudos

Hi Krishna,

Thanks for you reply.

As you said i looked the nodes with suppress entries. There are only three values i am mapping from Source file.

Eventhough the same error is encountered..

Any suggestion

Regards,

Ramesh P

Answers (2)

Answers (2)

former_member184619
Active Contributor
0 Kudos

Hi Ramesh,

As u are using FCC at sender the Structure should be like this

<?xml version="1.0" encoding="UTF-8"?>

<recordset>

<DATA>

<FNAME>n</FNAME>

<LNAME>md</LNAME>

</DATA>

</recordset>

check this for such scenario

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38...

check my reply in this thread

and my postiing on wiki for File to IDOC scenario

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

Sachin

Former Member
0 Kudos

Parahivamurthy,

Map the repeating element from the flat source sturcture to E1WGRK1 so that this segment repeats. Use node functions to map them.

Regards,

---Satish