<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BAPI_ACC_DOCUMENT_POST down payment problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042392#M966196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post down payment (as in transaction F-47) using &lt;STRONG&gt;BAPI_ACC_DOCUMENT_POST&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Everything seems to be ok. Return message is &lt;STRONG&gt;"Document posted successfully: BKPFF 003600005910002008 TEDCLNT110"&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;but when i check in table BKPF, &lt;STRONG&gt;nothing is created&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT does not change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be grateful for any input.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    l_documentheader  TYPE bapiache09,
    lt_accountpayable TYPE TABLE OF bapiacap09,
    l_accountpayable  TYPE bapiacap09,
    lt_currencyamount TYPE TABLE OF bapiaccr09,
    l_currencyamount  TYPE bapiaccr09.
 
* Header
  l_documentheader-username   = sy-uname.
  l_documentheader-header_txt = 'test'.
  l_documentheader-comp_code  = '1000'.
  l_documentheader-doc_date   = sy-datum.
  l_documentheader-pstng_date = sy-datum.
  l_documentheader-fis_period = '06'.
  l_documentheader-fisc_year  = '2008'.
  l_documentheader-doc_type   = 'KA'.
  l_documentheader-ref_doc_no = '4500000029'.
 
* Item
  l_accountpayable-itemno_acc = '1'.
  l_accountpayable-vendor_no  = '0007000008'.
  l_accountpayable-comp_code  = '1000'.
  l_accountpayable-sp_gl_ind  = 'A'.
  l_accountpayable-pymt_cur   = 'USD'.
  l_accountpayable-pymt_amt   = '100'.
  APPEND l_accountpayable TO lt_accountpayable.
 
  l_currencyamount-itemno_acc = '1'.
  l_currencyamount-curr_type  = '00'.
  l_currencyamount-currency   = 'EUR'.
  l_currencyamount-amt_base   = '300.00'.
  APPEND l_currencyamount TO lt_currencyamount.
 
  CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    EXPORTING
      documentheader = l_documentheader
    TABLES
      accountpayable = lt_accountpayable
      currencyamount = lt_currencyamount
      return         = return.
 
  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
      documentheader = l_documentheader
    TABLES
      accountpayable = lt_accountpayable
      currencyamount = lt_currencyamount
      return         = return.
 
  CLEAR commit_ret.
 
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = commit_ret.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 11:20:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T11:20:36Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST down payment problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042392#M966196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post down payment (as in transaction F-47) using &lt;STRONG&gt;BAPI_ACC_DOCUMENT_POST&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Everything seems to be ok. Return message is &lt;STRONG&gt;"Document posted successfully: BKPFF 003600005910002008 TEDCLNT110"&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;but when i check in table BKPF, &lt;STRONG&gt;nothing is created&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT does not change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be grateful for any input.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    l_documentheader  TYPE bapiache09,
    lt_accountpayable TYPE TABLE OF bapiacap09,
    l_accountpayable  TYPE bapiacap09,
    lt_currencyamount TYPE TABLE OF bapiaccr09,
    l_currencyamount  TYPE bapiaccr09.
 
* Header
  l_documentheader-username   = sy-uname.
  l_documentheader-header_txt = 'test'.
  l_documentheader-comp_code  = '1000'.
  l_documentheader-doc_date   = sy-datum.
  l_documentheader-pstng_date = sy-datum.
  l_documentheader-fis_period = '06'.
  l_documentheader-fisc_year  = '2008'.
  l_documentheader-doc_type   = 'KA'.
  l_documentheader-ref_doc_no = '4500000029'.
 
* Item
  l_accountpayable-itemno_acc = '1'.
  l_accountpayable-vendor_no  = '0007000008'.
  l_accountpayable-comp_code  = '1000'.
  l_accountpayable-sp_gl_ind  = 'A'.
  l_accountpayable-pymt_cur   = 'USD'.
  l_accountpayable-pymt_amt   = '100'.
  APPEND l_accountpayable TO lt_accountpayable.
 
  l_currencyamount-itemno_acc = '1'.
  l_currencyamount-curr_type  = '00'.
  l_currencyamount-currency   = 'EUR'.
  l_currencyamount-amt_base   = '300.00'.
  APPEND l_currencyamount TO lt_currencyamount.
 
  CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    EXPORTING
      documentheader = l_documentheader
    TABLES
      accountpayable = lt_accountpayable
      currencyamount = lt_currencyamount
      return         = return.
 
  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
      documentheader = l_documentheader
    TABLES
      accountpayable = lt_accountpayable
      currencyamount = lt_currencyamount
      return         = return.
 
  CLEAR commit_ret.
 
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = commit_ret.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042392#M966196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST down payment problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042393#M966197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wait for a moment(10 to 15  mins) since you have given WAIT in BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check again, and hope it updates the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else, Just give BAPI_TRANSACTION_COMMIT after the BAPI with no parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbalagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042393#M966197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST down payment problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042394#M966198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this. Still no result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I check somehow if an update to table is done ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 12:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042394#M966198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST down payment problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042395#M966199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use an Internal table for Document header by appending the values and pass it to BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbalagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 12:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042395#M966199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T12:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST down payment problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042396#M966200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean table insead of structure l_documentheader ? &lt;/P&gt;&lt;P&gt;Canu2019t do that, import parameter is structure, not table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 12:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-down-payment-problem/m-p/4042396#M966200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T12:23:50Z</dc:date>
    </item>
  </channel>
</rss>

