Skip to Content
0

sap po request xml main and 1st node deletion

Aug 15, 2017 at 12:04 PM

24

avatar image

hi

I am receiving input in SAP PO as -

I want to remove first node RegisterOutgoingInvoicesRequest and then process message mapping.

my source structure is without RegisterOutgoingInvoicesRequest node in sap pi request.

I think it can be done by using xsl code or udf and placing it before real message mapping.

Can you please suggest how can i receive messages and delete RegisterOutgoingInvoicesRequest node and use rest of the xml in message mapping.

regards

ubo9y.png (2.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeniy Kolmakov Aug 15, 2017 at 12:46 PM
1

Hi Vijay!

You can do it using XSLT:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
        <xsl:copy-of select="/RegisterOutgoingInvoicesRequest/SuministroLRFacturasEmitidas"/>
    </xsl:template>
</xsl:stylesheet>

but I believe that the most straightforward way is to adopt your current source message structure to actual request.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded