on 03-20-2019 12:16 PM
Hello Everyone,
I have created a scenario for updating the userdefined fields of an invoice.but I couldn't able to update it .Please do check my code below and kindly help me out.
U_Delivery_Boy is the userdefined field.
<xsl:template name="transform">
<QueryParams>
<DocNum>
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/bfa:io/bfa:object/bfa:string[./@name='invoiceNum']"></xsl:value-of>
</DocNum>
</QueryParams>
<U_Delivery_Boy>
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/bfa:io/bfa:object/bfa:string[./@name='deliveryBoy']"></xsl:value-of>
</U_Delivery_Boy>
</xsl:template>
In the place of keyName I have used DocNum in the b1Object configuration
Please do let me know my mistakes and kindly guide me .
Hi,
Please try to pass DocEntry instead of DocNum !
Also, you can check the processing of "sap.sl.purchquote.resp" step of "sap.B1RFQ" scenario package to get an idea of how to use the Synchronous Update !
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<xsl:template name="transform">
<QueryParams>
<DocEntry>
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/bfa:io/bfa:object/bfa:string[./@name='invoiceNum']"></xsl:value-of>
</DocEntry>
</QueryParams>
<U_Delivery_Boy>
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/bfa:io/bfa:object/bfa:string[./@name='deliveryBoy']"></xsl:value-of>
</U_Delivery_Boy>
</xsl:template>
<Result>
<Payload xmlns="urn:com.sap.b1i.vplatform:entity" Role="C" id="atom4" system="001sap0005" status="success" b1login="Technical User" method="Synchronous Update" objectid="17" payload="atom1" keyname="DocEntry" keyvalue="atom1" DIresult="success" DImsg=""/>
</Result>
but in the db its not getting updated..
For the KeyValue define the xPath expression instead of atom1
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.