cancel
Showing results for 
Search instead for 
Did you mean: 

Billing Document Request - Create API splitting criteria

Expert
Active Contributor
0 Kudos

Hi Experts,  We are using the following API to create billing document requests in the system:  https://api.sap.com/api/BDR_REQUEST_IN/overview  We are trying to create a single billing document request with three items by sending the following message:      <?xmlversion="1.0"encoding="ISO-8859-1"?>      <soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:sd="http://sap.com/xi/SD-BIL"xmlns:yy1="http://SAPCustomFields.com/YY1_">    <soapenv:Body>    <sd:BillingDocumentRequestRequest>    <MessageHeader>    <CreationDateTime>2020-07-08T15:06:11.00Z</CreationDateTime>    <SenderBusinessSystemID>HCP_TEST</SenderBusinessSystemID>    <SenderParty>    <InternalID>FI11A</InternalID>    </SenderParty>    </MessageHeader>    <GlobalParameters>    <ReferenceDocumentLogicalSystem>REV_SYSTEM</ReferenceDocumentLogicalSystem>    </GlobalParameters>    <BillableDocument>    <ReferenceDocument>183933XXX</ReferenceDocument>    <BillableDocumentItem>    <ReferenceDocumentItem>10</ReferenceDocumentItem>    <SalesDocumentType>EO01</SalesDocumentType>    <SalesDocumentItemCategory>ED01</SalesDocumentItemCategory>    <BillingDocumentRequestType>BDR1</BillingDocumentRequestType>    <DistributionChannel>10</DistributionChannel>    <Division>00</Division>    <BillingDocumentDate>2020-03-04</BillingDocumentDate>    <SoldToParty>17973</SoldToParty>    <TransactionCurrency>EUR</TransactionCurrency>    <TaxDepartureCountry>DE</TaxDepartureCountry>    <CustomerReference>LX6112A692AD</CustomerReference>    <Material>LX6112A692AD</Material>    <ProductHierarchyNode></ProductHierarchyNode>    <Quantity>3.000</Quantity>    <ServicesRenderedDate>2020-03-03</ServicesRenderedDate>    <HigherLevelItem></HigherLevelItem>    <PricingDate>2020-03-03</PricingDate>    <PriceDetnExChangeRate>1.000</PriceDetnExChangeRate>      <Plant>ES20</Plant>    <PricingElement>    <ConditionType>PMP0</ConditionType>    <ConditionRateValue>620826</ConditionRateValue>    <ConditionCurrency>EUR</ConditionCurrency>    <ConditionQuantity>1000</ConditionQuantity>    </PricingElement>    <yy1:YY1_SD_SB>C83FE099</yy1:YY1_SD_SB>    </BillableDocumentItem>    <BillableDocumentItem>    <ReferenceDocumentItem>20</ReferenceDocumentItem>    <SalesDocumentType>EO01</SalesDocumentType>    <SalesDocumentItemCategory>ED01</SalesDocumentItemCategory>    <BillingDocumentRequestType>BDR1</BillingDocumentRequestType>    <DistributionChannel>10</DistributionChannel>    <Division>

Accepted Solutions (1)

Accepted Solutions (1)

Expert
Active Contributor
0 Kudos

Hello Jorge,

the customer reference in your example is different for each item. The customer reference field is a split criteria when creating billing document requests. It should create one single billing document request when using the same customer reference for all items in your example. Hope this helps.

Thanks,

Jens

Answers (1)

Answers (1)

Expert
Active Contributor
0 Kudos

This is a re-posted Q&A of an earlier question on this community