cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC field name as one of the field in target file.

vijender_p
Active Participant
0 Kudos

Hi All,

I am working on IDOC to file scenario in which in PI 7.4.

One of my requirement is that the field name should be sent as value in target file. For example if IDOC filed is like:

Like for example:

<MANDT>100</MANDT>

<PLVAR>01</PLVAR>

<OTYPE>C</OTYPE>

<OBJID>20000077</OBJID>

<INFTY>1001</INFTY>

My target file should be like

a|b|c|d|MANDT|100|x|y|z

a|b|c|d|PLVAR0|1|x|y|z

a|b|c|d|OTYPE|C|x|y|z

a|b|c|d|OBJID|20000077|x|y|z

a|b|c|d|INFTY|1001|x|y|z

Regards,

Vijender

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member183816
Active Participant
0 Kudos

<xmlTagName>[Constant(field name)]+[concat]+[Constant( | )]+[concat]+[field value]</xmlTagName>

You can not escape the hardcoding of field name in this case, using any kind of mapping (message,java ,xslt).

former_member184720
Active Contributor
0 Kudos

You can even use return as xml and parse it to get the fieldname and value.

vijender_p
Active Participant
0 Kudos

Hi Hareesh,

Can you please elaborate !! am not getting your point .

Harish
Active Contributor
0 Kudos

Hi Vijender,

Hareesh is talking about return as XML option in message mapping. Please refer the below blog about the option

you can parse the XML and take the field name from the XML.

regards,

Harish

Former Member
0 Kudos

Hi Vijender,

     One question over here. Do you have multiple header or single header?