on 2020 Sep 24 9:56 AM
I am fetching the Serial numbers from BAPI inside my transaction and i am needed to convert this XML output to String format separated by comma so that it can be passed as a single parameter in[Param.1] defined inside my MDO Update query.
<INPUT>
<IM_LGNUM>PAST</IM_LGNUM>
<IM_LGPLA>FRR01</IM_LGPLA>
</INPUT>
<OUTPUT>
<EX_BINDATA>
<item>
<HUIDENT>00000000000010041767</HUIDENT>
<SER_DATA>
<item>
<SERID>TFLMM2N0AC1</SERID>
</item>
<item>
<SERID>TFLMM2N0AC2</SERID>
</item>
<item>
<SERID>TFLMM2N0AC3</SERID>
</item>
</SER_DATA>
<MATID>CL-MM29N0</MATID>
</item> <item>
</item>
</EX_BINDATA>
<EX_ERROR/>
</OUTPUT>
A very simple way would be to repeat on SER_DATA/Item and concatenate "," & SERID in a local property before mapping it to your MDO query. Probably several other means of doing so such as an xslt.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.