<?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: BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057983#M724286</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;Take a look at the following code :&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;  documentheader-obj_key = '$'.&lt;/P&gt;&lt;P&gt;  CONCATENATE sy-sysid sy-mandt INTO documentheader-obj_sys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  documentheader-username   = sy-uname.&lt;/P&gt;&lt;P&gt;  documentheader-bus_act    = 'RFBU'.&lt;/P&gt;&lt;P&gt;  documentheader-header_txt = s_notilus-header_txt.&lt;/P&gt;&lt;P&gt;  documentheader-comp_code  = s_notilus-comp_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  documentheader-fisc_year  = s_notilus-pstng_date(4)."  &lt;/P&gt;&lt;P&gt;  documentheader-doc_date   = s_notilus-doc_date.&lt;/P&gt;&lt;P&gt;  documentheader-pstng_date = s_notilus-pstng_date.&lt;/P&gt;&lt;P&gt;  documentheader-doc_type   = s_notilus-doc_type.&lt;/P&gt;&lt;P&gt;  documentheader-ref_doc_no = s_notilus-ref_doc_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentheader = documentheader&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      obj_type       = l_type&lt;/P&gt;&lt;P&gt;      obj_key        = l_key&lt;/P&gt;&lt;P&gt;      obj_sys        = l_sys&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      accountgl      = accountgl&lt;/P&gt;&lt;P&gt;      accountpayable = accountpayable&lt;/P&gt;&lt;P&gt;      currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;      accounttax     = accounttax&lt;/P&gt;&lt;P&gt;      extension1     = extension1&lt;/P&gt;&lt;P&gt;      return         = return.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 13:45:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T13:45:48Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057981#M724284</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;I am trying to create an FI doc. using the bapi BAPI_ACC_DOCUMENT_POST but if i leave header-object_type  &amp;amp; header-object_key blanc (as i read in some other posts in the forum) i am always getting an error. I also tried using object_type = 'BKPFF'  but i am still getting errors and the posting is not successful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 13:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057981#M724284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057982#M724285</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; You need to pass even Object Key and Logical system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 13:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057982#M724285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057983#M724286</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;Take a look at the following code :&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;  documentheader-obj_key = '$'.&lt;/P&gt;&lt;P&gt;  CONCATENATE sy-sysid sy-mandt INTO documentheader-obj_sys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  documentheader-username   = sy-uname.&lt;/P&gt;&lt;P&gt;  documentheader-bus_act    = 'RFBU'.&lt;/P&gt;&lt;P&gt;  documentheader-header_txt = s_notilus-header_txt.&lt;/P&gt;&lt;P&gt;  documentheader-comp_code  = s_notilus-comp_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  documentheader-fisc_year  = s_notilus-pstng_date(4)."  &lt;/P&gt;&lt;P&gt;  documentheader-doc_date   = s_notilus-doc_date.&lt;/P&gt;&lt;P&gt;  documentheader-pstng_date = s_notilus-pstng_date.&lt;/P&gt;&lt;P&gt;  documentheader-doc_type   = s_notilus-doc_type.&lt;/P&gt;&lt;P&gt;  documentheader-ref_doc_no = s_notilus-ref_doc_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentheader = documentheader&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      obj_type       = l_type&lt;/P&gt;&lt;P&gt;      obj_key        = l_key&lt;/P&gt;&lt;P&gt;      obj_sys        = l_sys&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      accountgl      = accountgl&lt;/P&gt;&lt;P&gt;      accountpayable = accountpayable&lt;/P&gt;&lt;P&gt;      currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;      accounttax     = accounttax&lt;/P&gt;&lt;P&gt;      extension1     = extension1&lt;/P&gt;&lt;P&gt;      return         = return.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 13:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057983#M724286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057984#M724287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, thank you for your answers!&lt;/P&gt;&lt;P&gt;I tried it, since i had not filled the 'obj-sys' but still i'm getting the error.&lt;/P&gt;&lt;P&gt;I am also using the function OWN_LOGICAL_SYSTEM_GET to ensure the system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 13:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057984#M724287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057985#M724288</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;it is very usefull input for me but how you get the value of object key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suvangkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 04:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057985#M724288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T04:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057986#M724289</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;Hope this code will solve ur issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pls reward if help.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_ACC_GL_POSTING_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;documentheader = w_documentheader&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;accountgl = it_accountgl&lt;/P&gt;&lt;P&gt;currencyamount = it_currencyamount&lt;/P&gt;&lt;P&gt;return = it_return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Populate the corresponding tables with the data you have.&lt;/P&gt;&lt;P&gt;For the Date do convert it.&lt;/P&gt;&lt;P&gt;PERFORM convert_date USING it_header-bldat&lt;/P&gt;&lt;P&gt;CHANGING w_documentheader-doc_date.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;w_documentheader-comp_code = 'z998'&lt;/P&gt;&lt;P&gt;w_documentheader-doc_type = 'SA'&lt;/P&gt;&lt;P&gt;"and fill the respective tables this way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;BAPI_ACC_GL_POSTING_POST&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_ACC_GL_POSTING_POST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;documentheader = doc_header&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OBJ_TYPE = l_objtype&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJ_KEY =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJ_SYS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;accountgl = t_accountgl&lt;/P&gt;&lt;P&gt;currencyamount = t_curramt&lt;/P&gt;&lt;P&gt;return = t_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXTENSION1 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 04:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/3057986#M724289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T04:37:10Z</dc:date>
    </item>
  </channel>
</rss>

