Skip to Content
Technical Articles
Author's profile photo Wesley Yin

Payload Examples for API Journal Entry – Post

In this blog post I provide some payload example about API Journal Entry – Post. Hope these examples could help you understand how to fill the request.

To learn more about Journal Entry APIs at Guidelines for API Journal Entry – Post.

 

G/L Accounting Document

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-10-31</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-10-31T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-10-31</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-10-31T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>SA</AccountingDocumentType>
               <DocumentReferenceID>123</DocumentReferenceID>
               <DocumentHeaderText>Test JE Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-12-05</DocumentDate>
               <PostingDate>2018-12-05</PostingDate>
               <Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
               <Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
               <Item>
                  <!--Optional:-->
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0066000000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">1000</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Test Item 1</DocumentItemText>
                  <AccountAssignment>
                     <!--Optional:-->
                     <CostCenter>0010101101</CostCenter>
                  </AccountAssignment>
               </Item>
               <Item>
                  <!--Optional:-->
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <GLAccount>0010010000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Test Item 2</DocumentItemText>
                  <AccountAssignment>
                     <CostCenter>0010101201</CostCenter>
                  </AccountAssignment>
               </Item>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Customer Invoice

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-06-05</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-06-05</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>DR</AccountingDocumentType>
               <DocumentReferenceID>123</DocumentReferenceID>
               <DocumentHeaderText>Test AR Item Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-06-05</DocumentDate>
               <PostingDate>2018-06-05</PostingDate>
               <Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
               <Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
               <Item>
                  <!--Optional:-->
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0041000000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Test Item 2</DocumentItemText>
                  <AssignmentReference>123</AssignmentReference>
                  <Tax>
                     <TaxCode>A1</TaxCode>
                  </Tax>
                  <AccountAssignment>
                     <ProfitCenter>YB700</ProfitCenter>
                     <Segment>1000_C</Segment>
                     <FunctionalArea>YB30</FunctionalArea>
                  </AccountAssignment>
                  <ProfitabilitySupplement>
                     <Customer>S10100252</Customer>
                  </ProfitabilitySupplement>
               </Item>
               <!--Zero or more repetitions:-->
               <DebtorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Debtor>S10100252</Debtor>
                  <AmountInTransactionCurrency currencyCode="EUR">1190</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Customer item 1</DocumentItemText>
               </DebtorItem>
               <ProductTaxItem>
                  <!--<ReferenceDocumentItem></ReferenceDocumentItem>-->
                  <TaxCode>A1</TaxCode>
                  <TaxItemClassification>MWS</TaxItemClassification>
                  <AmountInTransactionCurrency currencyCode="EUR">-190</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <TaxBaseAmountInTransCrcy currencyCode="EUR">-1000</TaxBaseAmountInTransCrcy>
               </ProductTaxItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
One-Time Customer Invoice

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-06-05</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-06-05</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>DR</AccountingDocumentType>
               <DocumentReferenceID>123</DocumentReferenceID>
               <DocumentHeaderText>Test AR Item Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-06-05</DocumentDate>
               <PostingDate>2018-06-05</PostingDate>
               <Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
               <Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
               <Item>
                  <!--Optional:-->
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0041000000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Test Item 1</DocumentItemText>
                  <Tax>
                     <TaxCode>A1</TaxCode>
                  </Tax>
                  <AccountAssignment>
                     <ProfitCenter>YB700</ProfitCenter>
                     <Segment>1000_C</Segment>
                     <FunctionalArea>YB30</FunctionalArea>
                  </AccountAssignment>
                  <ProfitabilitySupplement>
                     <Customer>0010100273</Customer>
                  </ProfitabilitySupplement>
               </Item>
               <!--Zero or more repetitions:-->
               <DebtorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Debtor>0010100273</Debtor>
                  <AmountInTransactionCurrency currencyCode="EUR">1190</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Customer item</DocumentItemText>
                  <CashDiscountTerms>
                     <DueCalculationBaseDate>2018-07-31</DueCalculationBaseDate>
                     <CashDiscount1Days>0</CashDiscount1Days>
                     <CashDiscount1Percent>0</CashDiscount1Percent>
                     <CashDiscount2Days>0</CashDiscount2Days>
                     <CashDiscount2Percent>0</CashDiscount2Percent>
                     <NetPaymentDays>0</NetPaymentDays>
                  </CashDiscountTerms>
                  <OneTimeCustomerDetails>
                     <!--Optional:-->
                     <Name>ABC</Name>
                     <!--Optional:-->
                     <CityName>SH</CityName>
                     <!--Optional:-->
                     <Country>CN</Country>
                  </OneTimeCustomerDetails>
               </DebtorItem>
               <ProductTaxItem>
                  <!--<ReferenceDocumentItem></ReferenceDocumentItem>-->
                  <TaxCode>A1</TaxCode>
                  <TaxItemClassification>MWS</TaxItemClassification>
                  <AmountInTransactionCurrency currencyCode="EUR">-190</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <TaxBaseAmountInTransCrcy currencyCode="EUR">-1000</TaxBaseAmountInTransCrcy>
               </ProductTaxItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Withholding Tax for Customer Invoice

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-06-05</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-06-05</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>DR</AccountingDocumentType>
               <DocumentHeaderText>Test WHTAX Item Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>5110</CompanyCode>
               <DocumentDate>2018-11-20</DocumentDate>
               <PostingDate>2018-11-20</PostingDate>
               <DocumentReferenceID>SCOMP</DocumentReferenceID>
               <Item>
                  <GLAccount>0041000000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="IDR">-100</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Test Withholding Item</DocumentItemText>
                  <AccountAssignment>
                     <ProfitCenter>YB700</ProfitCenter>
                     <Segment>1000_A</Segment>
                     <FunctionalArea>YB10</FunctionalArea>
                  </AccountAssignment>
                  <ProfitabilitySupplement>
                     <Customer>0051100010</Customer>
                  </ProfitabilitySupplement>
               </Item>
               <DebtorItem>
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <Debtor>0051100010</Debtor>
                  <AmountInTransactionCurrency currencyCode="IDR">100</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Customer Item</DocumentItemText>
                  <AssignmentReference>1234</AssignmentReference>
               </DebtorItem>
               <WithholdingTaxItem>
                  <WithholdingTaxType>A1</WithholdingTaxType>
                  <WithholdingTaxCode>01</WithholdingTaxCode>
                  <AmountInTransactionCurrency currencyCode="IDR">0</AmountInTransactionCurrency>
                  <TaxBaseAmountInTransCrcy currencyCode="IDR">100</TaxBaseAmountInTransCrcy>
               </WithholdingTaxItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Customer Payment
It does not support the clearing of open item

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-10-31</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-06-05</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>DZ</AccountingDocumentType>
               <DocumentReferenceID>123</DocumentReferenceID>
               <DocumentHeaderText>Test  Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-11-07</DocumentDate>
               <PostingDate>2018-11-07</PostingDate>
               <Item>
                  <!--Optional:-->
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0011001080</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">100</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Test Item</DocumentItemText>
                  <ValueDate>2018-11-07</ValueDate>
               </Item>
               <!--Zero or more repetitions:-->
               <DebtorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Debtor>0010200001</Debtor>
                  <AmountInTransactionCurrency currencyCode="EUR">-100</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Customer item 1</DocumentItemText>
               </DebtorItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Customer Down Payment

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-07-31</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-07-18</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>DZ</AccountingDocumentType>
               <DocumentHeaderText>Test AP Item Posting</DocumentHeaderText>
               <CreatedByUser>_SAPI312578</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-11-15</DocumentDate>
               <PostingDate>2018-11-15</PostingDate>
               <DocumentReferenceID>123</DocumentReferenceID>
               <Item>
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0010010000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">100.00</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Test Item 1</DocumentItemText>
                  <AssignmentReference>20180723</AssignmentReference>
               </Item>
               <Item>
                  <ReferenceDocumentItem>4</ReferenceDocumentItem>
                  <GLAccount>0021191500</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">6.54</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Test Item 4</DocumentItemText>
                  <AssignmentReference>20180723</AssignmentReference>
                  <Tax>
                     <TaxCode>A2</TaxCode>
                  </Tax>
               </Item>
               <DebtorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Debtor>S10100252</Debtor>
                  <AmountInTransactionCurrency currencyCode="EUR">-100.00</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Customer Item</DocumentItemText>
                  <AssignmentReference>DOWN PAYMENT</AssignmentReference>
                  <!--Optional:-->
                  <Reference1IDByBusinessPartner>REF1</Reference1IDByBusinessPartner>
                  <!--Optional:-->
                  <Reference2IDByBusinessPartner>REF2</Reference2IDByBusinessPartner>
                  <!--Optional:-->
                  <Reference3IDByBusinessPartner>REF3</Reference3IDByBusinessPartner>
                  <CashDiscountTerms>
                     <DueCalculationBaseDate>2018-11-20</DueCalculationBaseDate>
                     <CashDiscount1Days>0</CashDiscount1Days>
                     <CashDiscount1Percent>0</CashDiscount1Percent>
                     <CashDiscount2Days>0</CashDiscount2Days>
                     <CashDiscount2Percent>0</CashDiscount2Percent>
                     <NetPaymentDays>0</NetPaymentDays>
                  </CashDiscountTerms>
                  <DownPaymentTerms>
                     <SpecialGLCode>A</SpecialGLCode>
                     <SalesOrder>13674</SalesOrder>
                     <!--Optional:-->
                     <SalesOrderItem>10</SalesOrderItem>
                     <!--Optional:-->
                     <TaxCode>A2</TaxCode>
                  </DownPaymentTerms>
               </DebtorItem>
               <ProductTaxItem>
                  <ReferenceDocumentItem>3</ReferenceDocumentItem>
                  <TaxCode>A2</TaxCode>
                  <TaxItemClassification>MWS</TaxItemClassification>
                  <AmountInTransactionCurrency currencyCode="EUR">-6.54</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <TaxBaseAmountInTransCrcy currencyCode="EUR">93.46</TaxBaseAmountInTransCrcy>
               </ProductTaxItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Vendor Invoice

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-10-31</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
            <!--<TestDataIndicator>true</TestDataIndicator>-->
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-10-31</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-10-31T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>KR</AccountingDocumentType>
               <DocumentReferenceID>123</DocumentReferenceID>
               <DocumentHeaderText>Test AR Item Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>5110</CompanyCode>
               <DocumentDate>2018-11-12</DocumentDate>
               <PostingDate>2018-11-12</PostingDate>
               <Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
               <Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
               <Item>
                  <!--Optional:-->
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0063009000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="IDR">91</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Test Item</DocumentItemText>
                  <Tax>
                     <TaxCode>V2</TaxCode>
                  </Tax>
                  <AccountAssignment>
                     <CostCenter>0051101101</CostCenter>
                  </AccountAssignment>
               </Item>
               <!--Zero or more repetitions:-->
               <CreditorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Creditor>S5130003</Creditor>
                  <AmountInTransactionCurrency currencyCode="IDR">-100</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Vender item</DocumentItemText>
               </CreditorItem>
               <ProductTaxItem>
                  <TaxCode>V2</TaxCode>
                  <TaxItemClassification>VST</TaxItemClassification>
                  <AmountInTransactionCurrency currencyCode="IDR">9</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <TaxBaseAmountInTransCrcy currencyCode="IDR">91</TaxBaseAmountInTransCrcy>
               </ProductTaxItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Withholding Tax for Vender Invoice

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-06-05</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-06-05</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument></OriginalReferenceDocument>
               <OriginalReferenceDocumentLogicalSystem></OriginalReferenceDocumentLogicalSystem>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>KR</AccountingDocumentType>
                <DocumentHeaderText>Test WHTAX Item Posting</DocumentHeaderText>
               <CreatedByUser>CC0000000044</CreatedByUser>
               <CompanyCode>5110</CompanyCode>
               <DocumentDate>2018-06-05</DocumentDate>
               <PostingDate>2018-06-05</PostingDate>
               <DocumentReferenceID>SCOMP</DocumentReferenceID>
               <Item>
                  <GLAccount>0063009000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="IDR">91</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Test Withholding Item </DocumentItemText>
                  <Tax>
                     <TaxCode>V2</TaxCode>
                  </Tax>
                  <AccountAssignment>
                     <CostCenter>0051101101</CostCenter>
                  </AccountAssignment>
               </Item>
               <CreditorItem>
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <Creditor>S5130003</Creditor>
                  <AmountInTransactionCurrency currencyCode="IDR">-100</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Vender Item</DocumentItemText>
                  <AssignmentReference>1234</AssignmentReference>
                  <CashDiscountTerms>
                     <DueCalculationBaseDate>2018-06-05</DueCalculationBaseDate>
                     <NetPaymentDays>2</NetPaymentDays>
                  </CashDiscountTerms>
               </CreditorItem>
               <ProductTaxItem>
                  <TaxCode>V2</TaxCode>
                  <TaxItemClassification>VST</TaxItemClassification>
                  <AmountInTransactionCurrency currencyCode="IDR">9</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <TaxBaseAmountInTransCrcy currencyCode="IDR">91</TaxBaseAmountInTransCrcy>
               </ProductTaxItem>
               <WithholdingTaxItem>
                  <WithholdingTaxType>I4</WithholdingTaxType>
                  <WithholdingTaxCode>01</WithholdingTaxCode>
                  <AmountInTransactionCurrency currencyCode="IDR">0</AmountInTransactionCurrency>
                  <TaxBaseAmountInTransCrcy currencyCode="IDR">91</TaxBaseAmountInTransCrcy>
               </WithholdingTaxItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Vendor Payment
It does not support the clearing of open item

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-07-31</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-07-18</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument/>
               <OriginalReferenceDocumentLogicalSystem/>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>KZ</AccountingDocumentType>
               <DocumentHeaderText>Test AP Item Posting</DocumentHeaderText>
               <CreatedByUser>_SAPI312578</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-07-23</DocumentDate>
               <PostingDate>2018-07-23</PostingDate>
               <DocumentReferenceID>123</DocumentReferenceID>
               <Item>
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0011001010</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">-1000.00</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Test Item 1</DocumentItemText>
                  <AssignmentReference>20180723</AssignmentReference>
                  <ValueDate>2018-07-23</ValueDate>
               </Item>
               <CreditorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Creditor>S1030005</Creditor>
                  <AmountInTransactionCurrency currencyCode="EUR">1000.00</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Vender Item</DocumentItemText>
                  <AssignmentReference>PAYMENT</AssignmentReference>
               </CreditorItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>
Vendor Down Payment

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">
   <soapenv:Header/>
   <soapenv:Body>
      <sfin:JournalEntryBulkCreateRequest>
         <MessageHeader>
            <ID>MSG_2018-07-31</ID>
            <!--<ReferenceID></ReferenceID>-->
            <CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
         </MessageHeader>
         <!--1 or more repetitions:-->
         <JournalEntryCreateRequest>
            <MessageHeader>
               <ID>SUB_MSG_2018-07-18</ID>
               <!--<ReferenceID></ReferenceID>-->
               <CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
            </MessageHeader>
            <JournalEntry>
               <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
               <OriginalReferenceDocument></OriginalReferenceDocument>
               <OriginalReferenceDocumentLogicalSystem></OriginalReferenceDocumentLogicalSystem>
               <BusinessTransactionType>RFBU</BusinessTransactionType>
               <AccountingDocumentType>KZ</AccountingDocumentType>
               <DocumentHeaderText>Test AP Item Posting</DocumentHeaderText>
               <CreatedByUser>_SAPI312578</CreatedByUser>
               <CompanyCode>1010</CompanyCode>
               <DocumentDate>2018-07-23</DocumentDate>
               <PostingDate>2018-07-23</PostingDate>
               <DocumentReferenceID>123</DocumentReferenceID>
               <Item>
                  <ReferenceDocumentItem>1</ReferenceDocumentItem>
                  <GLAccount>0010010000</GLAccount>
                  <AmountInTransactionCurrency currencyCode="EUR">-100.00</AmountInTransactionCurrency>
                  <DebitCreditCode>H</DebitCreditCode>
                  <DocumentItemText>Test Item 1</DocumentItemText>
                  <AssignmentReference>20180723</AssignmentReference>
               </Item>
               <CreditorItem>
                  <ReferenceDocumentItem>2</ReferenceDocumentItem>
                  <Creditor>0010300095</Creditor>
                  <AmountInTransactionCurrency currencyCode="EUR">100.00</AmountInTransactionCurrency>
                  <DebitCreditCode>S</DebitCreditCode>
                  <DocumentItemText>Vender Item</DocumentItemText>
                  <AssignmentReference>DOWN PAYMENT</AssignmentReference>
                  <CashDiscountTerms>
                     <DueCalculationBaseDate>2018-07-31</DueCalculationBaseDate>
                     <CashDiscount1Days>0</CashDiscount1Days>
                     <CashDiscount1Percent>0</CashDiscount1Percent>
                     <CashDiscount2Days>0</CashDiscount2Days>
                     <CashDiscount2Percent>0</CashDiscount2Percent>
                     <NetPaymentDays>0</NetPaymentDays>
                  </CashDiscountTerms>
                  <DownPaymentTerms>
                     <SpecialGLCode>A</SpecialGLCode>
                  </DownPaymentTerms>
               </CreditorItem>
            </JournalEntry>
         </JournalEntryCreateRequest>
      </sfin:JournalEntryBulkCreateRequest>
   </soapenv:Body>
</soapenv:Envelope>

Assigned tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jorge Cardós Villanueva
      Jorge Cardós Villanueva

      Very useful content,

      Thanks for sharing!

      Author's profile photo Rodrigo Castro Area
      Rodrigo Castro Area

      Hi Wesley. Could you provide an example for vendor down payment request?

      Thanks,

      Rodrigo

      Author's profile photo Wesley Yin
      Wesley Yin
      Blog Post Author

      Hi Rodrigo

      Here is the example for vender down payment request.

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN">

      <soapenv:Header/>

      <soapenv:Body>

      <sfin:JournalEntryBulkCreateRequest>

      <MessageHeader>

      <ID>MSG_2018-10-31</ID>

      <!--<ReferenceID></ReferenceID>-->

      <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>

      </MessageHeader>

      <!--1 or more repetitions:-->

      <JournalEntryCreateRequest>

      <MessageHeader>

      <ID>SUB_MSG_2018-06-05</ID>

      <!--<ReferenceID></ReferenceID>-->

      <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>

      </MessageHeader>

      <JournalEntry>

      <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>

      <OriginalReferenceDocument/>

      <OriginalReferenceDocumentLogicalSystem/>

      <BusinessTransactionType>RFST</BusinessTransactionType>

      <AccountingDocumentType>KA</AccountingDocumentType>

      <!--               <DocumentReferenceID>123</DocumentReferenceID>

      -->

      <!--               <DocumentHeaderText>Test Posting</DocumentHeaderText>

      -->

      <CreatedByUser>CC0000000044</CreatedByUser>

      <CompanyCode>1010</CompanyCode>

      <DocumentDate>2019-05-19</DocumentDate>

      <PostingDate>2019-05-19</PostingDate>

      <!--               <Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>

      -->

      <!--               <Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>

      -->

      <!--Zero or more repetitions:-->

      <CreditorItem>

      <ReferenceDocumentItem>1</ReferenceDocumentItem>

      <Creditor>S10300901</Creditor>

      <AmountInTransactionCurrency currencyCode="EUR">-100</AmountInTransactionCurrency>

      <!--                  <CashDiscountTerms>

      -->

      <!--                     <DueCalculationBaseDate>2018-10-19</DueCalculationBaseDate>

      -->

      <!--                     <CashDiscount1Days>0</CashDiscount1Days>

      -->

      <!--                     <CashDiscount1Percent>0</CashDiscount1Percent>

      -->

      <!--                     <CashDiscount2Days>0</CashDiscount2Days>

      -->

      <!--                     <CashDiscount2Percent>0</CashDiscount2Percent>

      -->

      <!--                     <NetPaymentDays>0</NetPaymentDays>

      -->

      <!--                  </CashDiscountTerms>

      -->

      <DownPaymentTerms>

      <SpecialGLCode>F</SpecialGLCode>

      <!--                     <SalesOrder>13582</SalesOrder>

      -->

      <!--                     <SalesOrderItem>10</SalesOrderItem>

      -->

      <TaxCode>V2</TaxCode>

      </DownPaymentTerms>

      </CreditorItem>

      <ProductTaxItem>

      <TaxCode>V2</TaxCode>

      <AmountInTransactionCurrency currencyCode="EUR">6.54</AmountInTransactionCurrency>

      <DebitCreditCode>S</DebitCreditCode>

      <TaxBaseAmountInTransCrcy currencyCode="EUR">93.46</TaxBaseAmountInTransCrcy>

      </ProductTaxItem>

      </JournalEntry>

      </JournalEntryCreateRequest>

      </sfin:JournalEntryBulkCreateRequest>

      </soapenv:Body>

      </soapenv:Envelope>

      Author's profile photo Rodrigo Castro Area
      Rodrigo Castro Area

      Thanks Wesley. Really appreciated.

      Author's profile photo Nisarg Pandya
      Nisarg Pandya

      Hello Wesley,

      Thank you for your blog.

      I need to post a document in period 13 via API. Can you please share an example for that?