cancel
Showing results for 
Search instead for 
Did you mean: 

API_CREDIT_MEMO_REQUEST_SRV Item pricing issue

SFY50013
Explorer
0 Kudos
391

Hello experts,

Before raisong an incident to SAP, i would like to know if you guys are able to create a Credit Memo with Pricing Data at Item Level. When filling Pricing Data, i'm getting a "An exception was raised" Message. So tried different calls:

1 - Without the princing item data -> OK

2- With pricing Data (ConditionType and ConditionRateValue) -> An exception was raised

3- With Pricing Data but only the ConditionType without a ConditionRateValue -> Document created but with a pricing error:

Here is my Payload:

<?xml version="1.0" encoding="utf-8"?>

<A_CreditMemoRequest>

  <A_CreditMemoRequestType>

      <CreditMemoRequest></CreditMemoRequest>

      <CreditMemoRequestType>CR</CreditMemoRequestType>

      <SalesOrganization>1000</SalesOrganization>

      <DistributionChannel>10</DistributionChannel>

      <OrganizationDivision>10</OrganizationDivision>

      <SoldToParty>10000030</SoldToParty>

      <PurchaseOrderByCustomer>TEST</PurchaseOrderByCustomer>

      <SDDocumentReason>008</SDDocumentReason>

      <to_Partner>

         <A_CreditMemoReqPartnerType>

            <PartnerFunction>SH</PartnerFunction>

            <CreditMemoRequest></CreditMemoRequest>

            <Customer>10000030</Customer>

            <Supplier></Supplier>

         </A_CreditMemoReqPartnerType>

         <A_CreditMemoReqPartnerType>

            <PartnerFunction>PY</PartnerFunction>

            <CreditMemoRequest></CreditMemoRequest>

            <Customer>10000030</Customer>

            <Supplier></Supplier>

         </A_CreditMemoReqPartnerType>

         <A_CreditMemoReqPartnerType>

            <PartnerFunction>BP</PartnerFunction>

            <CreditMemoRequest></CreditMemoRequest>

            <Customer>10000030</Customer>

            <Supplier></Supplier>

         </A_CreditMemoReqPartnerType>

      </to_Partner>

    <to_Item>

      <A_CreditMemoRequestItemType>

            <Material>300250</Material>

            <CreditMemoRequest></CreditMemoRequest>

            <CreditMemoRequestItem></CreditMemoRequestItem>

            <RequestedQuantity>1</RequestedQuantity>

        <to_PricingElement>

          <A_CreditMemoReqItemPrcgElmntType>

                 <CreditMemoRequest></CreditMemoRequest>

                  <CreditMemoRequestItem></CreditMemoRequestItem>

                  <PricingProcedureStep></PricingProcedureStep>

                  <PricingProcedureCounter></PricingProcedureCounter>

                  <ConditionType>PPR0</ConditionType>

                  <ConditionRateValue>5.00</ConditionRateValue>

                  <ConditionCurrency>EUR</ConditionCurrency>

                  <ConditionQuantity>1</ConditionQuantity>     

                  <ConditionQuantityUnit>ROL</ConditionQuantityUnit>     

          </A_CreditMemoReqItemPrcgElmntType>

        </to_PricingElement>

      </A_CreditMemoRequestItemType>

    </to_Item>

  </A_CreditMemoRequestType>

</A_CreditMemoRequest>

View Entire Topic
Nancy
Product and Topic Expert
Product and Topic Expert
0 Kudos

What is the exception? Could you upload the response xml to check?

SFY50013
Explorer
0 Kudos

It looks like a short dump in backend system:

00/001

An exception was raised

SD-SLS

/SAP/

API_CREDIT_MEMO_REQUEST_SRV

0001

3cf1e9d8d6e04beaa6e3bf57a3207bb6

20201116204646.1887940

For backend administrators: use ADT feed reader "SAP Gateway Error Log" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details

See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)

/IWBEP/CX_MGW_BUSI_EXCEPTION

An exception was raised

error

false