cancel
Showing results for 
Search instead for 
Did you mean: 

How add Message type in input XML file

former_member196519
Participant
0 Kudos

Hi Expert,

My requirement is to add message type in the payload.

Data:

-

<Planning>

- <User UserID="" FirstName="Paradowski" LastName="Margaret" MI="">

- <Form>

<input name="txtPostitionId" value="1234" />

<input name="txtApplicantId" value="234567" />

Expected data:

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

- <ns:MT_ABC xmlns:ns="urn:sap:pi:abc_us">

<Planning>

- <User UserID="" FirstName="Paradowski" LastName="Margaret" MI="">

- <Form>

<input name="txtPostitionId" value="1234" />

<input name="txtApplicantId" value="234567" />

Thanks,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

former_member201264
Active Contributor
0 Kudos

Hi,

You use XSLT Mapping.

MM: source file to TEMP Target  File.

XSLT: TEMP Target File to target file ( Here you can use the logic to add your Message type as per you r business) 

See the below: examples:

http://dev.ektron.com/blogs.aspx?id=10472

Regards,

Sreeni.

former_member196519
Participant
0 Kudos

Hi Sreeni,

I can not use XSLT mapping as of now. Do you have any standard approch using any adapter module or other technique.

Thanks,

Kumar

Former Member
0 Kudos

Hi Kumar,

Check the below link, it may help you.

http://scn.sap.com/thread/1997390

Thanks,

Satish.

former_member196519
Participant
0 Kudos

Hi Satish,

Can we handle without java mapping.. I have already gone with this blog..

Thanks,

Kumar

anupam_ghosh2
Active Contributor
0 Kudos

Hi Kumar,

                 You need XSLT or java mapping. Otherwise you cannot resolve this problem.

Regards

Anupam

Answers (3)

Answers (3)

former_member196519
Participant
0 Kudos

Hi Team,

Client is sending XML file without any header. I am adding encoding - utf-8 by adapter module. But I am not able to add Message type.

Thats why I was asking how we can add message type in input xml payload.

Thanks,

Kumar

Former Member
0 Kudos

Hi Kumar,

Can you let me know how did you add the encoding in Adapter module.

I have a requirement where I need to add encoding alone.

appreciate your help.

Thanks

Sarada

nabendu_sen
Active Contributor
0 Kudos

Hi Kumar,

why your data does not have xml header? (<?xml version="1.0" encoding="utf-8" ?>). Who is sending this xml? It will fail at message mapping step.

former_member184789
Active Contributor
0 Kudos

Hi,

Could you please elaborate your requirement. The message type will be there if you take the payload from test tab in the message mapping. You provide the input values to the source fields over there & then you can get the desired payload.