<?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 Re: Need help using BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364715#M1038745</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;  Open BAPI_ACC_DOCUMENT_POST through SE37 and display the Function Module documentation.You will get the significance of each parameters used in this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since  this BAPI is to be called from Webdynpro JAVA.A Model has to be created for calling this BAPI.The Netweaver developer will know how to pass value's to this Function module from Web Dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2008 11:12:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-26T11:12:16Z</dc:date>
    <item>
      <title>Need help using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364713#M1038743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm finding hard to accomplish the folowing case..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a payment and use that payment to clear AR accounts... as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1 Payment to...&lt;/P&gt;&lt;P&gt;-Clear (compansate) 1:n Open AR Accounts &lt;/P&gt;&lt;P&gt;-If there is a difference in amount (Payment vs ARs).. create Resudial Item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BAPI_ACC_DOCUMENT_POST, but since I'm no ABAPer so I'ts getting really hard for me to understand how to fill the BAPI in order to accomplish the scenario I explained. I would be calling the BAPI from the Portal (EP7) in a WebDynpro App (JAVA), so far I can get customer's open Items and select which ones I want to clear but the thing gets really hard when filling the BAPI as I have no prior experience using that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guys PLEASE give me some guidance on how to fill the BAPI, for this case -&lt;STRONG&gt;Stablish payment::Clear ARs::Create Residual Item if needed&lt;/STRONG&gt;- examples would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 02:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364713#M1038743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T02:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364714#M1038744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Valencia,&lt;/P&gt;&lt;P&gt;To execute the same you need to fill the BAPI structure with the required input as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wal_header-bus_act    = wal_file_data-bus_act.&lt;/P&gt;&lt;P&gt;      wal_header-username   = sy-uname.&lt;/P&gt;&lt;P&gt;      wal_header-comp_code  = wal_file_data-comp_code.&lt;/P&gt;&lt;P&gt;      wal_header-doc_date   = wal_file_data-doc_date.&lt;/P&gt;&lt;P&gt;      wal_header-pstng_date = wal_file_data-pstng_date.&lt;/P&gt;&lt;P&gt;      wal_header-fisc_year  = wal_file_data-fisc_year.&lt;/P&gt;&lt;P&gt;      wal_header-fis_period = wal_file_data-fis_period.&lt;/P&gt;&lt;P&gt;      wal_header-doc_type   = wal_file_data-doc_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wal_head-bus_act    = wal_header-bus_act.&lt;/P&gt;&lt;P&gt;      wal_head-username   = wal_header-username.&lt;/P&gt;&lt;P&gt;      wal_head-comp_code  = wal_header-comp_code.&lt;/P&gt;&lt;P&gt;      wal_head-doc_date   = wal_header-doc_date.&lt;/P&gt;&lt;P&gt;      wal_head-pstng_date = wal_header-pstng_date.&lt;/P&gt;&lt;P&gt;      wal_head-fisc_year  = wal_header-fisc_year.&lt;/P&gt;&lt;P&gt;      wal_head-fis_period = wal_header-fis_period.&lt;/P&gt;&lt;P&gt;      wal_head-doc_type   = wal_header-doc_type.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wal_gl_acc-itemno_acc   = wal_item_no.&lt;/P&gt;&lt;P&gt;    wal_gl_acc-gl_account   = wal_file_data-gl_account.&lt;/P&gt;&lt;P&gt;    append wal_gl_acc to ptl_gl_acc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wal_currency-itemno_acc = wal_item_no.&lt;/P&gt;&lt;P&gt;    wal_currency-currency   = wal_file_data-currency.&lt;/P&gt;&lt;P&gt;    wal_currency-amt_doccur = wal_file_data-amt_doccur.&lt;/P&gt;&lt;P&gt;    append wal_currency to ptl_currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then pass these structure to BAPI as shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          documentheader = wal_header&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          accountgl      = ptl_gl_acc&lt;/P&gt;&lt;P&gt;          currencyamount = ptl_currency&lt;/P&gt;&lt;P&gt;          return         = ptl_return1.&lt;/P&gt;&lt;P&gt;Where Bapi will return the document was posted or not in RETURN Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 10:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364714#M1038744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364715#M1038745</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;  Open BAPI_ACC_DOCUMENT_POST through SE37 and display the Function Module documentation.You will get the significance of each parameters used in this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since  this BAPI is to be called from Webdynpro JAVA.A Model has to be created for calling this BAPI.The Netweaver developer will know how to pass value's to this Function module from Web Dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 11:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-using-bapi-acc-document-post/m-p/4364715#M1038745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T11:12:16Z</dc:date>
    </item>
  </channel>
</rss>

