cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Customer Checkout Series on Incoming Payments

antonell
Explorer
0 Likes
387

Hi,

Can anyone help me to set a Series on the Incoming Payment when I post a sales transaction from Customer Checkout?

I am using the vBIU.sap.CCO.CreatePayPreUDF scenario and i have tried two different way to mapping my Series

1. I have add my series in generic values and i tried to map this information with the following code in the above atom inside the

<Payments><row>

<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='XS']/Payments/row/* [not (name() = 'GenericValues')]"></xsl:copy-of>

<xsl:for-each select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='XS']/Payments/row/GenericValues/KeyValPair"> <xsl:variable name="Node"> <<xsl:value-of select="./Key"></xsl:value-of>> <xsl:value-of select="./Value"></xsl:value-of> </<xsl:value-of select="./Key">

</xsl:value-of>> </xsl:variable> <xsl:value-of disable-output-escaping="yes" select="$Node"></xsl:value-of>

</row> </Payments>

But it seems that it doesn't works with this way

2.So I have tried to add my value from a plugin in the Series field and i tried to map this with the following code in the above atom

<Payments><row>

<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='XS']/Payments/row/*"></xsl:copy-of>

<Series> <xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='XS']/Payments/row/Series"></xsl:value-of> </Series>

</row> </Payments>

and for both testing I have import this scenario in the sap.POS.POSTInvoice_Payments but nothing happens.

Can you please anyone tell me if i did something wrong?

I use the same code with the my first try with the generic values for the Documents and it works.

Accepted Solutions (0)

Answers (2)

Answers (2)

JoergAldinger
Active Contributor

Hello antonell

Try this, it works for us:

<Payments>
  <row>
    <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='XS']/Payments/row/*" />
    <xsl:if test="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom1']/jdbc:ResultSets/jdbc:ResultSet[2]/jdbc:Row[1]/jdbc:Series">
      <Series>
        <xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom1']/jdbc:ResultSets/jdbc:ResultSet[2]/jdbc:Row[1]/jdbc:Series" />
      </Series>
    </xsl:if>
  </row>
</Payments>

Be aware that we obtain our Series from a SQL query in a step before, not from the incoming message. Unfortunately the GenericValues within the Payment handling was not working for us and while we reported the issue, it was not classified as a bug but rather as a missing feature. Since there is also no safe way to actually know if an incoming or outgoing payment is being created you will have to do some guessing there as well.

Have a look at open Improvement Requests to vote on the ones you need. For example, this one: Payment Extension Step Improvement

If you do open a new improvement request be sure to post back the URL so all interested parties can vote on it.

Hope this helps,

Joerg.

antonell
Explorer
0 Likes

Dear @Joerg Aldinger

Thank you for your response.

I will try this out, but I was hoping to find a way to the mapping with the result of the Incoming message.

I found a way to include the series in my incoming message from a plug in that I wrote and I want to map the Series from the Incoming message.