cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping : Testing at Runtime

Former Member
0 Kudos

Hi all,

I am doing scenario File XI IDoc...

I was encountering error.. Runtime exception in Mapping...

So i tried the testing step described by michal.

if i paste the payload of the data obtained from SXMB_MONI in test tab of message mapping editor i will get 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>

but for the same paylod in "src" of testing tab if i add namespace the testing is working fine.

Kindly can anybody give me suggestion

Regards,

Ramesh P

Message was edited by:

Ramesh Parashivamurthy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The above issue was solved but still i am encountering Runtime exception

Former Member
0 Kudos

What is the runtime exception?

Former Member
0 Kudos

Hi Barry,

After adding constant to the node E1WGRK1 the scenario was success. But i am interested to know why do we need to add constant.

Thank you very much for the help

Regards,

Ramesh P

Former Member
0 Kudos

I guess it can be a "feature".

I had one similar on EDI_DC40 and had to load a patch.

Former Member
0 Kudos

Hi Barry,

If there are more than 1 record in my flat file also but the corresponding IDoc generated is has only one record information

What i have to do in order to make changes for multiple occurance...

Please suggest.

Regards,

Ramesh P

Former Member
0 Kudos

You can create a UDF or an IF Statement to accomodate the changes.

Former Member
0 Kudos

Hi barry,

Thanks for your reply.

Can you give me some links for the same.

Regards,

Ramesh P

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try Below,

1.In case of Idoc/Begin you can populate a constant value such as '1' .For the required fields in the target structure if there is no mapping element in the source strucuture you can use constant values.

2. Try removing XML Namespace below IDOC.

    • Dont forget to give reward points **

Regards,

Akshay.

Former Member
0 Kudos

Try setting a constant in graphical mapping.

Former Member
0 Kudos

Hi Barry,

Please, can you be more detail on the same

brgds,

Ramesh P

Former Member
0 Kudos

Map a "Constant Value" to the target field.

Then it will always be populated!

Search for constant:

http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm

If you are using XLST mapping use this:

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm