Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Remove Header Node in File Content Conversion

Hi Guys,

In our scenario receiver payload is

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

<ns1:MarketInventoryResponse xmlns:ns1="PRINCIPALS/MarketInventory">

<Header>

<CurrentDate>200809</CurrentDate>

</Header>

<MarketInventory>

<Local_ProductCode>121</Local_ProductCode>

<WH_QTY>20</WH_QTY>

<WH_Cost>3000</WH_Cost>

<Store_QTY>40</Store_QTY>

<Store_Cost>5000</Store_Cost>

</MarketInventory>

</ns1:MarketInventoryResponse>

We are using File content conversion method. Now we got the output is

200809

121#20#3000#40#5000

But We need below mentioned format.

121#20#3000#40#5000

we don't need CurrentDate which is in Header node. So, how to ignore Header node in FCC method. Please any one help me.

Note : Now we using following parameters in FCC

Recordset Structure : MarketInventory

MarketInventory.addHeaderLine : 0

MarketInventory.fieldSeparator : #

MarketInventory.endSeparator : 'nl'

Thanks & Regards

Vijay

Former Member
Former Member replied

Hi,

Either do not map the Header in the mapping or use the following FCC in additional

Recordset Structure : Header,MarketInventory

Header.fieldFixedLengths = 0

Header.fixedLengthTooShortHandling = Cut

Header.endSeparator = '0'

Thanks

SaNv...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question