cancel
Showing results for 
Search instead for 
Did you mean: 

API billingdocumentrequest_in no partial creation if any error

SFY50013
Explorer
0 Kudos
279

Hello Experts,

is there a way reject the integration of a Billing document using billingdocumentrequest_in if at least one item contains an error ?

When trying to create a billing with 3 items without error and with an error, the result is :

Here is the payload, we tried using DoNotCheckMaterial flag but is seems to be on item level. Is it possible de reject the entire document if any error ?

        <sd:BillingDocumentRequest xmlns:yy1="http://SAPCustomFields.com/YY1_" xmlns:sd="http://sap.com/xi/SD-BIL">
            <MessageHeader>
                <CreationDateTime>2021-03-29T14:16:26Z</CreationDateTime>
            </MessageHeader>
            <GlobalParameters>
                <ReferenceDocumentLogicalSystem>SYS01</ReferenceDocumentLogicalSystem>
            </GlobalParameters>
            <ActionControl>
                <IsTestRun>0</IsTestRun>
            </ActionControl>
            <BillableDocument>
                <ReferenceDocument>ZDC489134</ReferenceDocument>
                <BillableDocumentItem>
                    <BillingDocumentDate>2021-03-29</BillingDocumentDate>
                    <SalesDocumentType>EOX1</SalesDocumentType>
                    <SalesDocumentItemCategory>EDX1</SalesDocumentItemCategory>
                    <BillingDocumentType>CIX1</BillingDocumentType>
                    <SalesOrganization>1900</SalesOrganization>
                    <DistributionChannel>10</DistributionChannel>
                    <Division>30</Division>
                    <Plant>1900</Plant>
                    <SoldToParty>10027030</SoldToParty>
                    <PayerParty>10027030</PayerParty>
                    <TransactionCurrency>EUR</TransactionCurrency>
                    <ReferenceDocumentItem>10</ReferenceDocumentItem>
                    <Material>300635</Material>
                    <DoNotCheckMaterial>0</DoNotCheckMaterial>
                    <ProductTaxClassification>1</ProductTaxClassification>
                    <RequestedQuantity unitCode="_02">1</RequestedQuantity>
                    <ServicesRenderedDate>2021-03-24</ServicesRenderedDate>
                    <WBSElement></WBSElement>
                    <PricingElement>
                        <ConditionType>PPR0</ConditionType>
                        <ConditionRateValue>4005.37</ConditionRateValue>
                        <ConditionQuantity unitCode="_02">1</ConditionQuantity>
                        <ConditionCurrency>EUR</ConditionCurrency>
                    </PricingElement>
                </BillableDocumentItem>
                <BillableDocumentItem>
                    <BillingDocumentDate>2021-03-29</BillingDocumentDate>
                    <SalesDocumentType>EOX1</SalesDocumentType>
                    <SalesDocumentItemCategory>EDX1</SalesDocumentItemCategory>
                    <BillingDocumentType>CIX1</BillingDocumentType>
                    <SalesOrganization>1900</SalesOrganization>
                    <DistributionChannel>10</DistributionChannel>
                    <Division>30</Division>
                    <Plant>1900</Plant>
                    <SoldToParty>10027030</SoldToParty>
                    <PayerParty>10027030</PayerParty>
                    <TransactionCurrency>EUR</TransactionCurrency>
                    <ReferenceDocumentItem>30</ReferenceDocumentItem>
                    <RequestedQuantity unitCode="_02">2</RequestedQuantity>
                    <ProductTaxClassification>1</ProductTaxClassification>
                    <ServicesRenderedDate>2021-03-24</ServicesRenderedDate>
                    <WBSElement></WBSElement>
                    <Material>blablablabla</Material>
                    <DoNotCheckMaterial>0</DoNotCheckMaterial>
                    <ProductTaxClassification1>1</ProductTaxClassification1>
                    <BillingDocumentItemText>Text</BillingDocumentItemText>
                    <PricingElement>
                        <ConditionType>PPR0</ConditionType>
                        <ConditionRateValue>152</ConditionRateValue>
                        <ConditionQuantity unitCode="_02">1</ConditionQuantity>
                        <ConditionCurrency>EUR</ConditionCurrency>
                    </PricingElement>
                </BillableDocumentItem>
            </BillableDocument>
        </sd:BillingDocumentRequest>
View Entire Topic
neerajmohta
Newcomer
0 Kudos

Try using X rather than 0 or 1.