cancel
Showing results for 
Search instead for 
Did you mean: 

sap po request xml main and 1st node deletion

former_member183906
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor

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.

Answers (0)