<?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: Errors with BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704436#M1295534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you posted too much code. The limit is 2,500 characters. Please only post the &lt;U&gt;relevant&lt;/U&gt; portions of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 18:23:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-12T18:23:39Z</dc:date>
    <item>
      <title>Errors with BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704434#M1295532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sap Forums!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking  for some help here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; Unformatable code removed &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Error in document: BKPFF $ ECDCLNT200"&lt;/P&gt;&lt;P&gt;"FI / CO interface: Line Item Entered Several Times"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: keith warnock on Jun 12, 2009 7:18 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 12, 2009 2:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 17:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704434#M1295532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704435#M1295533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why does the formatting suck so bad on these forums?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 17:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704435#M1295533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T17:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704436#M1295534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you posted too much code. The limit is 2,500 characters. Please only post the &lt;U&gt;relevant&lt;/U&gt; portions of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 18:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704436#M1295534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704437#M1295535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM F_FILL_LINE_ITEMS .

*  *LOOP AT gt_pcard_post INTO pcard_post_rec.


  STATICS: ls_posnr TYPE POSNR_ACC,
           ls_amt TYPE zsxcram,
           ls_assignment TYPE DZUONR.

  CLEAR: ls_posnr,
         ls_amt,
         ls_assignment.

  CLEAR: gt_doc_values,
         gt_doc_item.

*Fill Lines of Document Item

  CONCATENATE pcard_post_rec-zlgseg1 pcard_post_rec-zlgseg2 pcard_post_rec-zlgseg3
  pcard_post_rec-zlgseg4 pcard_post_rec-zlgseg5
  into ls_assignment.

  IF pcard_post_rec-zlgdram is not INITIAL.
    gt_doc_item-doc_type = 'D'.
    ls_amt = pcard_post_rec-zlgdram.
  ELSE.
    gt_doc_item-doc_type = 'C'.
    ls_amt = pcard_post_rec-zlgcram.
  ENDIF.
  ls_posnr = gv_cnt + 1.
  gt_doc_item-comp_code    = pcard_post_rec-zlsapco.
  gt_doc_item-itemno_acc   = ls_posnr.
  gt_doc_item-GL_ACCOUNT   = pcard_post_rec-zlsapac.
  gt_doc_item-profit_ctr   = pcard_post_rec-zlsappc.


  if cb_test = 'X'.
    gt_doc_item-pstng_date = sy-datum.
  else.
    gt_doc_item-pstng_date = pcard_post_rec-ZLGPSDT.
  endif.
 
  APPEND gt_doc_item.

 
*  Fill Line of Document Value.
  gt_doc_values-itemno_acc   = ls_posnr.
  gt_doc_values-currency     = gv_comp_curr. " posting companies currency..
  gt_doc_values-amt_doccur   = ls_amt.
  APPEND gt_doc_values.

ENDFORM.                    " F_FILL_LINE_ITEMS

CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
    EXPORTING
      documentheader = gv_doc_header
    IMPORTING
      OBJ_TYPE       = gv_doc_header-obj_type
      OBJ_KEY        = gv_doc_header-obj_key
      OBJ_SYS        = gv_doc_header-obj_sys
    TABLES
      accountgl      = gt_doc_item
      currencyamount = gt_doc_values
      return         = gt_return
      EXTENSION1     = gt_EXTENSION1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Edited by: keith warnock on Jun 12, 2009 8:43 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's good to add code tags as well and remove comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 12, 2009 2:47 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 12, 2009 2:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 18:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704437#M1295535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704438#M1295536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that in the item tables, each line item number is different from each other (including entries in the other tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 19:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704438#M1295536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T19:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704439#M1295537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please put diffrent number for each line item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 08:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-with-bapi-acc-gl-posting-post/m-p/5704439#M1295537</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-06-15T08:49:38Z</dc:date>
    </item>
  </channel>
</rss>

