cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve the error(SupplierInvoice WSDL)?

baeyounghwan
Participant
0 Kudos
330

Hi SAP Developers,

I was an error sending the API(ManageSupplierInvoiceIn).

The Request is below

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:a4a0="http://sap.com/xi/AP/CustomerExtension/BYD/A4A0B" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:SupplierInvoiceBundleMaintainRequest_sync>
         <BasicMessageHeader>
         </BasicMessageHeader>
            <SupplierInvoice actionCode="01">
	        <BusinessTransactionDocumentTypeCode>004</BusinessTransactionDocumentTypeCode>
	        <MEDIUM_Name>BNHSupplierInvoice</MEDIUM_Name>
	        <Date>2022-05-11</Date>
	        <ReceiptDate>2022-05-11</ReceiptDate>
	        <TransactionDate>2022-05-11</TransactionDate>
	        <DocumentItemGrossAmountIndicator>true</DocumentItemGrossAmountIndicator>
	        <GrossAmount currencyCode="KRW">11000.0</GrossAmount>
	        <Status>
	          <DataEntryProcessingStatusCode>03</DataEntryProcessingStatusCode>
	        </Status>
	        <BuyerParty actionCode="01">
	          <PartyKey>
	            <PartyTypeCode>200</PartyTypeCode>
	            <PartyID>100</PartyID>
	          </PartyKey>
	        </BuyerParty>
	        <BillToParty actionCode="01">
	          <PartyKey>
	            <PartyTypeCode>200</PartyTypeCode>
	            <PartyID>100</PartyID>
	          </PartyKey>
	        </BillToParty>
	        <PayeeParty actionCode="01">
	          <PartyKey>
	            <PartyTypeCode>147</PartyTypeCode>
	            <PartyID>1000030</PartyID>
	          </PartyKey>
	        </PayeeParty>
	        <CashDiscountTerms ActionCode="01">
	          <Code>0007</Code>
	          <PaymentBaselineDate>2022-05-11</PaymentBaselineDate>
	        </CashDiscountTerms>
	        <Item actionCode="01">
	          <BusinessTransactionDocumentItemTypeCode>02</BusinessTransactionDocumentItemTypeCode>
	          <Quantity unitCode="EA">1.0</Quantity>
	          <SHORT_Description languageCode="KO">야근식대</SHORT_Description>
	          <GrossAmount currencyCode="KRW">11000.0</GrossAmount>
	          <GrossUnitPrice>
	            <Amount currencyCode="KRW">11000.0</Amount>
	            <BaseQuantity unitCode="EA">1.0</BaseQuantity>
	            <BaseQuantityTypeCode>EA</BaseQuantityTypeCode>
	          </GrossUnitPrice>
	          <Product>
	            <CashDiscountDeductibleIndicator>true</CashDiscountDeductibleIndicator>
	            <ProductKey>
	              <ProductTypeCode>2</ProductTypeCode>
	            </ProductKey>
	          </Product>
	          <AccountingCodingBlockDistribution>
	            <TotalAmount currencyCode="KRW">11000.0</TotalAmount>
	            <TotalQuantity unitCode="EA">1.0</TotalQuantity>
	            <AccountingCodingBlockAssignment actionCode="01">
	              <AccountingCodingBlockTypeCode>5110</AccountingCodingBlockTypeCode>
	              <GeneralLedgerAccountAliasCode>A032</GeneralLedgerAccountAliasCode>
	              <CostCentreID>100-20-01</CostCentreID>
	              <CompanyID>100</CompanyID>
	            </AccountingCodingBlockAssignment>
	          </AccountingCodingBlockDistribution>
	        </Item>
	      </SupplierInvoice>
      </glob:SupplierInvoiceBundleMaintainRequest_sync>
   </soapenv:Body>
</soapenv:Envelope><br>

the Response is below

Endlees loop due BO Modify, one or more precondition unaccomplishable

Do you see anything wrong?

thank you

Beyo

Accepted Solutions (0)

Answers (1)

Answers (1)

VVancalbergh
Contributor
0 Kudos

Only suggestion I can think of is to remove the ActionCodes on the subnodes or changing them to "04" (Save). You're making a whole new document anyway.

baeyounghwan
Participant
0 Kudos

I tried to accept your suggestion, but I failed.

Same Error appeared