<?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 Posting through BAPI BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567261#M1565055</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;I have a requirement to post 3 currency types 00, 10 and 30. &lt;/P&gt;&lt;P&gt;For 00 , the amount is 0&lt;/P&gt;&lt;P&gt;For 10, the amount in -ve an for 30, amount in +ve.&lt;/P&gt;&lt;P&gt;After excuting I am getting following error :&lt;/P&gt;&lt;P&gt;The +/- sign in the currency field is wrong (see long text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has come across this type of problem. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jeetu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jan 2011 07:09:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-04T07:09:34Z</dc:date>
    <item>
      <title>Posting through BAPI BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567261#M1565055</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;I have a requirement to post 3 currency types 00, 10 and 30. &lt;/P&gt;&lt;P&gt;For 00 , the amount is 0&lt;/P&gt;&lt;P&gt;For 10, the amount in -ve an for 30, amount in +ve.&lt;/P&gt;&lt;P&gt;After excuting I am getting following error :&lt;/P&gt;&lt;P&gt;The +/- sign in the currency field is wrong (see long text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has come across this type of problem. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jeetu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 07:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567261#M1565055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-04T07:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Posting through BAPI BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567262#M1565056</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;  Check you code looks like you might be incorrectly passing the amount in the 'CURRENCY' field. The Amount should be passed in the field 'AMT_DOCCUR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 07:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567262#M1565056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-04T07:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Posting through BAPI BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567263#M1565057</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;See the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Header fill&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;lwa_docheader-obj_type   = 'BKPFF'.&lt;/P&gt;&lt;P&gt;lwa_docheader-obj_key    = '&amp;amp;'.&lt;/P&gt;&lt;P&gt;lwa_docheader-obj_sys    = 'SRDCLNT012'.&lt;/P&gt;&lt;P&gt;lwa_docheader-username   = 'tiger'.&lt;/P&gt;&lt;P&gt;lwa_docheader-header_txt = 'Accr Rev Diff posting'.&lt;/P&gt;&lt;P&gt;lwa_docheader-comp_code  = '3311'.&lt;/P&gt;&lt;P&gt;lwa_docheader-fisc_year  = '2010'.&lt;/P&gt;&lt;P&gt;lwa_docheader-doc_date   = '20111231'.&lt;/P&gt;&lt;P&gt;lwa_docheader-pstng_date = '20111231'.&lt;/P&gt;&lt;P&gt;lwa_docheader-trans_date = '20101231'.&lt;/P&gt;&lt;P&gt;lwa_docheader-fis_period = '12'.&lt;/P&gt;&lt;P&gt;lwa_docheader-doc_type   = 'AR'.&lt;/P&gt;&lt;P&gt;lwa_docheader-ref_doc_no = '8000002251'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GL fill&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;lwa_accountgl-itemno_acc = '0000000001'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-gl_account = '0000500200'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-comp_code  = '3311'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-pstng_date = '20101231'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-doc_type   = 'AR'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-fisc_year  = '2010'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-fis_period = '12'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-wbs_element = '9TP-INT-3311'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-profit_ctr = '1541094000'.&lt;/P&gt;&lt;P&gt;APPEND lwa_accountgl TO li_accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: lwa_accountgl.&lt;/P&gt;&lt;P&gt;lwa_accountgl-itemno_acc = '0000000002'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-gl_account = '0000210000'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-comp_code  = '3311'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-pstng_date = '20101231'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-doc_type   = 'AR'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-fisc_year  = '2010'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-fis_period = '12'.&lt;/P&gt;&lt;P&gt;lwa_accountgl-profit_ctr = '3511080000'.&lt;/P&gt;&lt;P&gt;APPEND lwa_accountgl TO li_accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Currency fill&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;lwa_currencyamount-itemno_acc = '0000000001'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-curr_type = '00'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-currency   = 'GBP'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-amt_doccur = '0.00'.&lt;/P&gt;&lt;P&gt;APPEND lwa_currencyamount TO li_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_currencyamount-itemno_acc = '0000000001'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-curr_type = '10'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-currency   = 'EUR'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-amt_doccur = '18239.8900-'.&lt;/P&gt;&lt;P&gt;APPEND lwa_currencyamount TO li_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_currencyamount-itemno_acc = '0000000001'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-currency   = 'USD'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-curr_type = '30'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-amt_doccur = '4025.0000'.&lt;/P&gt;&lt;P&gt;APPEND lwa_currencyamount TO li_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: lwa_currencyamount.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-itemno_acc = '0000000002'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-curr_type = '00'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-currency   = 'GBP'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-amt_doccur = '0.00'.&lt;/P&gt;&lt;P&gt;APPEND lwa_currencyamount TO li_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_currencyamount-itemno_acc = '0000000002'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-curr_type = '10'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-currency   = 'EUR'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-amt_doccur = '18239.8900'.&lt;/P&gt;&lt;P&gt;APPEND lwa_currencyamount TO li_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_currencyamount-itemno_acc = '0000000002'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-currency   = 'USD'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-curr_type = '30'.&lt;/P&gt;&lt;P&gt;lwa_currencyamount-amt_doccur = '4025.0000-'.&lt;/P&gt;&lt;P&gt;APPEND lwa_currencyamount TO li_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_ext-field1 = 'POST key'.&lt;/P&gt;&lt;P&gt;APPEND lwa_ext TO li_ext.&lt;/P&gt;&lt;P&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       = lwa_docheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_TYPE             =&lt;/P&gt;&lt;/LI&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            = li_accountgl&lt;/P&gt;&lt;P&gt;    currencyamount       = li_currencyamount&lt;/P&gt;&lt;P&gt;    return               = li_return&lt;/P&gt;&lt;P&gt;    extension1           = li_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    wait = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 07:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567263#M1565057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-04T07:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Posting through BAPI BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567264#M1565058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you read the long text of message RW610?&lt;/P&gt;&lt;P&gt;You have mixed up the sign of the EUR and USD amounts,  for each line item the amounts must have the same sign accross all currency types.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 14:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-through-bapi-bapi-acc-gl-posting-post/m-p/7567264#M1565058</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-01-04T14:36:55Z</dc:date>
    </item>
  </channel>
</rss>

