<?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: Not able to post document using BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149317#M1514352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is complete procedure to use 'BAPI_ACC_DOCUMENT_POST'. It can be used for GL, AR or AP documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Header information, fill u201CDocumentHeaderu201D structure as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obj_type = 'BKPFF' &lt;/P&gt;&lt;P&gt;obj_key  = '$' &lt;/P&gt;&lt;P&gt;obj_sys = CONCATENATE syst-sysid 'CLNT' syst-mandt&lt;/P&gt;&lt;P&gt;bus_act = 'RFBU'&lt;/P&gt;&lt;P&gt;username  = syst-uname .&lt;/P&gt;&lt;P&gt;comp_code = Company Code&lt;/P&gt;&lt;P&gt;doc_date  =  Document Date&lt;/P&gt;&lt;P&gt;pstng_date = Posting Date&lt;/P&gt;&lt;P&gt;doc_type = Document Type like AB, SA.&lt;/P&gt;&lt;P&gt;ref_doc_no = Reference Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate the line item data, fill internal table u201Caccountglu201D or  u201Caccountpayableu201D or u201Caccountreceivableu201D as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itemno_acc = Line Number (like 10,20)&lt;/P&gt;&lt;P&gt;gl_account = GL Account Code (For GL Line Items only)&lt;/P&gt;&lt;P&gt;vendor_no  = Vendor Number (For AP Line Items only)&lt;/P&gt;&lt;P&gt;customer   = Customer Number (For AR Line Items only)&lt;/P&gt;&lt;P&gt;acct_type  = 'S' or u2018Ku2019 or u2018Du2019. (GL = u2018Su2019, AP = u2018Ku2019, AR = u2018Du2019)&lt;/P&gt;&lt;P&gt;costcenter = Cost Center&lt;/P&gt;&lt;P&gt;orderid    = Internal Order &lt;/P&gt;&lt;P&gt;tax_code   = Tax Code&lt;/P&gt;&lt;P&gt;item_text  = Item Text&lt;/P&gt;&lt;P&gt;quantity   = Quantity &lt;/P&gt;&lt;P&gt;base_uom   = Unit for Quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;u2022 Separate internal tables should be created for GL lines, AP Lines and AR Lines.&lt;/P&gt;&lt;P&gt;u2022 If posting GL line items then only u201Caccountglu201D internal table should be filled.&lt;/P&gt;&lt;P&gt;u2022 If posting AP document then GL lines should be filled in table u201Caccountglu201D and Vendor lines should be filled in table u201Caccountpayableu201D.&lt;/P&gt;&lt;P&gt;u2022 If posting AR document then GL lines should be filled in table u201Caccountglu201D and Customer lines should be filled in table u201Caccountreceivableu201D.&lt;/P&gt;&lt;P&gt;u2022 Extension of each line of u201Caccountglu201D, u201Caccountpayableu201D and u201Caccountreceivableu201D must be there in u201Ccurrencyamountu201D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate the amount, fill u201Ccurrencyamountu201D structure as:&lt;/P&gt;&lt;P&gt;itemno_acc   = Line Number (like 10,20, but pair of u201Caccountglu201D line)&lt;/P&gt;&lt;P&gt;amt_doccur = Amount {Credit amount should be with &lt;SPAN __jive_emoticon_name="minus"&gt;&lt;/SPAN&gt; sign&lt;/P&gt;&lt;P&gt;currency  = Currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2:&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 = st_documentheader&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    obj_key        = w_objkey&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    accountgl      = i_gl  {GL Line Items}&lt;/P&gt;&lt;P&gt;    accountpayable = i_ap {AP Line Items&lt;/P&gt;&lt;P&gt;    accountreceivable = i_ar {AR Line Items}&lt;/P&gt;&lt;P&gt;    currencyamount = i_amt {Amount of all above}&lt;/P&gt;&lt;P&gt;    return = i_bapiret. {Return messages}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 10:58:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-18T10:58:46Z</dc:date>
    <item>
      <title>Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149315#M1514350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; While trying to post documents in FB60 using BAPI_ACC_GL_POSTING_POST we are getting error Account not assigned to company code. But we are able to post documents manually using the same account and company code. Couls any one help me out to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149315#M1514350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149316#M1514351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using the BAPI&lt;/P&gt;&lt;P&gt;BAPI_ACC_DOCUMENT_POST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149316#M1514351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149317#M1514352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is complete procedure to use 'BAPI_ACC_DOCUMENT_POST'. It can be used for GL, AR or AP documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Header information, fill u201CDocumentHeaderu201D structure as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obj_type = 'BKPFF' &lt;/P&gt;&lt;P&gt;obj_key  = '$' &lt;/P&gt;&lt;P&gt;obj_sys = CONCATENATE syst-sysid 'CLNT' syst-mandt&lt;/P&gt;&lt;P&gt;bus_act = 'RFBU'&lt;/P&gt;&lt;P&gt;username  = syst-uname .&lt;/P&gt;&lt;P&gt;comp_code = Company Code&lt;/P&gt;&lt;P&gt;doc_date  =  Document Date&lt;/P&gt;&lt;P&gt;pstng_date = Posting Date&lt;/P&gt;&lt;P&gt;doc_type = Document Type like AB, SA.&lt;/P&gt;&lt;P&gt;ref_doc_no = Reference Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate the line item data, fill internal table u201Caccountglu201D or  u201Caccountpayableu201D or u201Caccountreceivableu201D as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itemno_acc = Line Number (like 10,20)&lt;/P&gt;&lt;P&gt;gl_account = GL Account Code (For GL Line Items only)&lt;/P&gt;&lt;P&gt;vendor_no  = Vendor Number (For AP Line Items only)&lt;/P&gt;&lt;P&gt;customer   = Customer Number (For AR Line Items only)&lt;/P&gt;&lt;P&gt;acct_type  = 'S' or u2018Ku2019 or u2018Du2019. (GL = u2018Su2019, AP = u2018Ku2019, AR = u2018Du2019)&lt;/P&gt;&lt;P&gt;costcenter = Cost Center&lt;/P&gt;&lt;P&gt;orderid    = Internal Order &lt;/P&gt;&lt;P&gt;tax_code   = Tax Code&lt;/P&gt;&lt;P&gt;item_text  = Item Text&lt;/P&gt;&lt;P&gt;quantity   = Quantity &lt;/P&gt;&lt;P&gt;base_uom   = Unit for Quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;u2022 Separate internal tables should be created for GL lines, AP Lines and AR Lines.&lt;/P&gt;&lt;P&gt;u2022 If posting GL line items then only u201Caccountglu201D internal table should be filled.&lt;/P&gt;&lt;P&gt;u2022 If posting AP document then GL lines should be filled in table u201Caccountglu201D and Vendor lines should be filled in table u201Caccountpayableu201D.&lt;/P&gt;&lt;P&gt;u2022 If posting AR document then GL lines should be filled in table u201Caccountglu201D and Customer lines should be filled in table u201Caccountreceivableu201D.&lt;/P&gt;&lt;P&gt;u2022 Extension of each line of u201Caccountglu201D, u201Caccountpayableu201D and u201Caccountreceivableu201D must be there in u201Ccurrencyamountu201D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate the amount, fill u201Ccurrencyamountu201D structure as:&lt;/P&gt;&lt;P&gt;itemno_acc   = Line Number (like 10,20, but pair of u201Caccountglu201D line)&lt;/P&gt;&lt;P&gt;amt_doccur = Amount {Credit amount should be with &lt;SPAN __jive_emoticon_name="minus"&gt;&lt;/SPAN&gt; sign&lt;/P&gt;&lt;P&gt;currency  = Currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2:&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 = st_documentheader&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    obj_key        = w_objkey&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    accountgl      = i_gl  {GL Line Items}&lt;/P&gt;&lt;P&gt;    accountpayable = i_ap {AP Line Items&lt;/P&gt;&lt;P&gt;    accountreceivable = i_ar {AR Line Items}&lt;/P&gt;&lt;P&gt;    currencyamount = i_amt {Amount of all above}&lt;/P&gt;&lt;P&gt;    return = i_bapiret. {Return messages}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149317#M1514352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149318#M1514353</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;Since i am using this for GL document i have filled the internal table u201Caccountglu201D.But still i get the same error " Account does not exists in the chart of accounts".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 11:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149318#M1514353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T11:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149319#M1514354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every GL Account filled in table ACCOUNTGL, is checked in table SKA1 where Chart of Account is also part of primary key. ACCOUNTGL also has a field for Company Code. You must fill the Company Code because Chart of Account will be taken from Company Code. To see the Chart of Account attached with that Company Code, check the table T001 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 11:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149319#M1514354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T11:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149320#M1514355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Company code is also been populated in accountgl table but still the same error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line Item Document &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_item-itemno_acc = idx1.&lt;/P&gt;&lt;P&gt;doc_item-comp_code = 'CRMA'.&lt;/P&gt;&lt;P&gt;doc_item-gl_account = wa_gl-hkont.&lt;/P&gt;&lt;P&gt;doc_item-pstng_date = sy-datlo.&lt;/P&gt;&lt;P&gt;doc_item-item_text = wa_gl-zuonr.&lt;/P&gt;&lt;P&gt;doc_item-costcenter = wa_gl-kostl.&lt;/P&gt;&lt;P&gt;APPEND doc_item.&lt;/P&gt;&lt;P&gt;CLEAR doc_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 11:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149320#M1514355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T11:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149321#M1514356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Theh you need to check GL Account in table SKB1 with combination of Company Code. If that exists then automatically GL Account will exist in SKA1 with same Chart Of Account as of Company Code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 11:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149321#M1514356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149322#M1514357</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;In FB60, While making a debit entry ( 40 ) against G/L, We need to make a corresponding credit entry against vendor. I believe the vendor account was missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better use BAPI_ACC_DOCUMENT_POST. It is a generic one.  You can make the entry for vendor in accounts payable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 13:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149322#M1514357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149323#M1514358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using coversion_exit to account number before passing to the BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 13:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149323#M1514358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149324#M1514359</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;&lt;/P&gt;&lt;P&gt;Try using the conversion exit for account number.  and then shift the output result to 7 places left as the output is 17 characters where as the account number in ska1 table is 10 chars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below code for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;                 EXPORTING&lt;/P&gt;&lt;P&gt;                      input  = fs_item-glacc&lt;/P&gt;&lt;P&gt;                 IMPORTING&lt;/P&gt;&lt;P&gt;                      output = fs_item-glacc.&lt;/P&gt;&lt;P&gt;            SHIFT fs_item-glacc BY 7 PLACES LEFT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            SELECT SINGLE *&lt;/P&gt;&lt;P&gt;              FROM ska1&lt;/P&gt;&lt;P&gt;              INTO lfs_ska1&lt;/P&gt;&lt;P&gt;             WHERE ktopl = lfs_bukrs-ktopl&lt;/P&gt;&lt;P&gt;               AND saknr = fs_item-glacc.&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;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 14:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149324#M1514359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T14:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149325#M1514360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This function module is used when we need to debit from a G/L account and credit another G/L account.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 07:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149325#M1514360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T07:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149326#M1514361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Padmavathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u for the response it helped me a lot but i get another error FI/CO interface: Line item entered several times. What is the reason for this error. How could it be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 06:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149326#M1514361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T06:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149327#M1514362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you have filled field 'ITEMNO_ACC' in table 'ACCOUNTGL' with unique line number, and make sure it linked with the same field in table 'CURRENCYAMOUNT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 07:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149327#M1514362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149328#M1514363</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;Make sure that you append records into the line item table correctly and also make sure that you clear and refresh the internal table data inside the loop.  I guess your code is append the same record more than once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in debug the entries in the line item table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 12:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149328#M1514363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149329#M1514364</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 am posting the part of the code in which the item table and value table are appended. Pls check and guide me if any changes required becos i still get the error "FI/CO interface: Line item entered several times".&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill header item values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_values-itemno_acc = idx1.&lt;/P&gt;&lt;P&gt;doc_values-currency_iso = 'INR'.&lt;/P&gt;&lt;P&gt;doc_values-amt_doccur = wa_fb60-wrbtr.&lt;/P&gt;&lt;P&gt;APPEND doc_values.&lt;/P&gt;&lt;P&gt;CLEAR doc_values.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line Item Document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_item-itemno_acc = idx1.&lt;/P&gt;&lt;P&gt;doc_item-comp_code = wa_fb60-bukrs&lt;/P&gt;&lt;P&gt;doc_item-gl_account = wa_gl-hkont.&lt;/P&gt;&lt;P&gt;doc_item-pstng_date = sy-datlo.&lt;/P&gt;&lt;P&gt;doc_item-item_text = wa_gl-zuonr.&lt;/P&gt;&lt;P&gt;doc_item-costcenter = wa_gl-kostl.&lt;/P&gt;&lt;P&gt;*doc_item- = 'M5253'.&lt;/P&gt;&lt;P&gt;APPEND doc_item.&lt;/P&gt;&lt;P&gt;CLEAR doc_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line 1 of Document Value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_values-itemno_acc = idx1.&lt;/P&gt;&lt;P&gt;doc_values-currency_iso = 'INR'.&lt;/P&gt;&lt;P&gt;doc_values-amt_doccur = wa_gl-wrbtr1.&lt;/P&gt;&lt;P&gt;APPEND doc_values.&lt;/P&gt;&lt;P&gt;CLEAR doc_values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 10:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149329#M1514364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T10:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149330#M1514365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to post the data to F-02 entries?&lt;/P&gt;&lt;P&gt;means for GL line item we have to give vendor (GL-VENDOR )wit hposting keys 40,39.for vendor splgl indicator 1 will be there .&lt;/P&gt;&lt;P&gt;for gl cost center will be there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 04:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149330#M1514365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T04:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149331#M1514366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to post the data to F-02 entries?&lt;/P&gt;&lt;P&gt;means for GL line item we have to give vendor (GL-VENDOR )wit hposting keys 40,39.for vendor splgl indicator 1 will be there .&lt;/P&gt;&lt;P&gt;for gl cost center will be there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 04:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149331#M1514366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T04:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149332#M1514367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
g_docheader LIKE bapiache08,
gi_accountgl TYPE STANDARD TABLE OF bapiacgl08,
g_accountgl LIKE bapiacgl08,
gi_amount TYPE STANDARD TABLE OF bapiaccr08,
g_amount LIKE bapiaccr08,
gi_return TYPE STANDARD TABLE OF bapiret2,
g_return LIKE bapiret2.
START-OF-SELECTION.
g_docheader-obj_type = 'BKPFF'.
g_docheader-obj_key = '1'.
g_docheader-obj_sys = 'B3TCLNT800'.
g_docheader-username = sy-uname.
g_docheader-header_txt = 'BAPI test'.
g_docheader-comp_code = '1000'.
g_docheader-doc_date = sy-datum.
APPEND g_amount TO gi_amount.
* Item 1
g_accountgl-itemno_acc = '0000000001'.
g_accountgl-gl_account = 'GIVE YOUR GL A/C NO'.
g_accountgl-pstng_date = sy-datum.
APPEND g_accountgl TO gi_accountgl.
* Item 2
g_accountgl-itemno_acc = '0000000002'.
g_accountgl-gl_account = 'GIVE YOUR GL A/C NO'.
g_accountgl-pstng_date = sy-datum.
APPEND g_accountgl TO gi_accountgl.
* Item 1
g_amount-itemno_acc = '0000000001'.
g_amount-currency = 'EUR'.
g_amount-amt_doccur = 5000.
APPEND g_amount TO gi_amount.
* Item 2
g_amount-itemno_acc = '0000000002'.
g_amount-currency = 'EUR'.
g_amount-amt_doccur = -5000.
APPEND g_amount TO gi_amount.
END-OF-SELECTION.
* Call the BAPI function
CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
EXPORTING
documentheader = g_docheader
* IMPORTING
* OBJ_TYPE =
* OBJ_KEY =
* OBJ_SYS =
TABLES
accountgl = gi_accountgl
currencyamount = gi_amount
return = gi_return
* EXTENSION1 =.
LOOP AT gi_return INTO g_return.
WRITE: / g_return-message.
ENDLOOP. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 12:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149332#M1514367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-24T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to post document using BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149333#M1514368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 06:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-able-to-post-document-using-bapi-acc-gl-posting-post/m-p/7149333#M1514368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T06:36:10Z</dc:date>
    </item>
  </channel>
</rss>

