Skip to Content
0
Jun 12, 2023 at 04:52 AM

How to create Cost Distribution of Supplier Invoice with CBO ?

305 Views Last edit Aug 31, 2023 at 05:39 AM 2 rev

Hi !

I'm developing a CBO that Create Supplier Invoice.

I wnat to add a Cost Distribution line, but I can't....

Even if I use the mange supllier invoice WSDL, I can't add the Cost Distribution line.

How to create Cost Distribution of Supplier Invoice with CBO ?

image.png

This is the WSDL I used.

http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob=" http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1=" http://sap.com/xi/AP/Globalization">

<soapenv:Header/>

<soapenv:Body>

<glob:SupplierInvoiceBundleMaintainRequest_sync>

<BasicMessageHeader>

</BasicMessageHeader>

<SupplierInvoice actionCode="01" itemListCompleteTransmissionIndicator="false">

<BusinessTransactionDocumentTypeCode>004</BusinessTransactionDocumentTypeCode>

<MEDIUM_Name>20230609wsdlTest</MEDIUM_Name>

<Date>2023-06-09</Date>

<ReceiptDate>2023-06-09</ReceiptDate>

<TransactionDate>2023-06-09</TransactionDate>

<DocumentItemGrossAmountIndicator>true</DocumentItemGrossAmountIndicator>

<GrossAmount currencyCode="KRW">10000</GrossAmount>

<Status>

<DataEntryProcessingStatusCode>2</DataEntryProcessingStatusCode>

</Status>

<CustomerInvoiceReference actionCode="04">

<BusinessTransactionDocumentReference>

<ID>testeste222</ID>

<TypeCode>28</TypeCode>

</BusinessTransactionDocumentReference>

</CustomerInvoiceReference>

<BuyerParty actionCode="01">

<PartyKey>

<PartyTypeCode>200</PartyTypeCode>

<PartyID>100</PartyID>

</PartyKey>

</BuyerParty>

<BillToParty actionCode="01">

<PartyKey>

<PartyTypeCode>117</PartyTypeCode>

<PartyID>170045</PartyID>

</PartyKey>

</BillToParty>

<BillFromParty actionCode="01">

<PartyKey>

<PartyTypeCode>147</PartyTypeCode>

<PartyID>170045</PartyID>

</PartyKey>

</BillFromParty>

<SellerParty actionCode="01">

<PartyKey>

<PartyTypeCode>147</PartyTypeCode>

<PartyID>170045</PartyID>

</PartyKey>

</SellerParty>

<PayeeParty actionCode="01">

<PartyKey>

<PartyTypeCode>147</PartyTypeCode>

<PartyID>170045</PartyID>

</PartyKey>

</PayeeParty>

<CashDiscountTerms ActionCode="01">

<Code>0007</Code>

<PaymentBaselineDate>2023-06-09</PaymentBaselineDate>

</CashDiscountTerms>

<Item actionCode="01">

<BusinessTransactionDocumentItemTypeCode>002</BusinessTransactionDocumentItemTypeCode>

<Quantity unitCode="EA">1</Quantity>

<SHORT_Description>테스트</SHORT_Description>

<GrossAmount currencyCode="krw">10000</GrossAmount>

<GrossUnitPrice>

<Amount currencyCode="krw">10000</Amount>

<BaseQuantity >1</BaseQuantity>

<BaseQuantityTypeCode>EA</BaseQuantityTypeCode>

</GrossUnitPrice>

<Product actionCode="01">

<CashDiscountDeductibleIndicator>true</CashDiscountDeductibleIndicator>

<ProductKey>

<ProductTypeCode>2</ProductTypeCode>

</ProductKey>

</Product>

<AccountingCodingBlockDistribution AccountingCodingBlockAssignmentListCompleteTransmissionIndicator="true" ActionCode="01" >

<CompanyID>100</CompanyID>

<GeneralLedgerAccountAliasCode>Z585</GeneralLedgerAccountAliasCode>

<HostObjectTypeCode>127</HostObjectTypeCode>

<TotalAmount currencyCode="krw">10000</TotalAmount>

<TotalQuantity unitCode="ea">1</TotalQuantity>

<AccountingCodingBlockAssignment ActionCode="01">

<AccountingCodingBlockTypeCode>CC</AccountingCodingBlockTypeCode>

<GeneralLedgerAccountAliasCode>Z585</GeneralLedgerAccountAliasCode>

<CostCentreID>100-20-03</CostCentreID>

<CompanyID>100</CompanyID>

<Percent>50</Percent>

<Amount currencyCode="krw">5000</Amount>

<Quantity unitCode="ea">0.5</Quantity>

</AccountingCodingBlockAssignment>

<AccountingCodingBlockAssignment ActionCode="01">

<AccountingCodingBlockTypeCode>CC</AccountingCodingBlockTypeCode>

<GeneralLedgerAccountAliasCode>Z585</GeneralLedgerAccountAliasCode>

<CostCentreID>100-20</CostCentreID>

<CompanyID>100</CompanyID>

<Percent>50</Percent>

<Amount currencyCode="krw">5000</Amount>

<Quantity unitCode="ea">0.5</Quantity>

</AccountingCodingBlockAssignment>

</AccountingCodingBlockDistribution>

<ProductTax actionCode="01">

<ProductTaxationCharacteristicsCode listID="KR">P120</ProductTaxationCharacteristicsCode>

<CountryCode>KR</CountryCode>

</ProductTax>

<BudgetCategory>OTHER</BudgetCategory>

</Item>

</SupplierInvoice>

</glob:SupplierInvoiceBundleMaintainRequest_sync>

</soapenv:Body>

</soapenv:Envelope>

Attachments

image.png (131.4 kB)