<?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: usage BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874605#M1139458</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;The number (company code and fyscal year) is stored in exporting parameter OBJ_KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 14:10:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-11T14:10:05Z</dc:date>
    <item>
      <title>usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874596#M1139449</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'm using BAPI_ACC_DOCUMENT_POST  for FB01, I have some proble because I don't understand where I have to put the item data (the record which will be inserted in bseg)&lt;/P&gt;&lt;P&gt;which structur I have to use?&lt;/P&gt;&lt;P&gt;documentheader in only for the header data, is it right??&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 09:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874596#M1139449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T09:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874597#M1139450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need tables ACCOUNTGL and CURRENCYAMOUNT to pass the line items. Also check the online documentation of that function module and its parameters.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 09:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874597#M1139450</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-09T09:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874598#M1139451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZTESTBAPI .&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;obj_type like bapiache02-obj_type,&lt;/P&gt;&lt;P&gt;obj_key like bapiache02-obj_key,&lt;/P&gt;&lt;P&gt;obj_sys like bapiache02-obj_sys,&lt;/P&gt;&lt;P&gt;documentheader like bapiache08,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl like bapiacgl08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;currencyamount like bapiaccr08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;return like bapiret2&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;extension1 like bapiextc&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_edidd like edidd occurs 0 with header line,&lt;/P&gt;&lt;P&gt;bapi_retn_info like bapiret2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: error_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-username = sy-uname.&lt;/P&gt;&lt;P&gt;documentheader-header_txt = 'Test using BAPI'.&lt;/P&gt;&lt;P&gt;documentheader-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;documentheader-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;documentheader-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&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_GL_POSTING_POST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;documentheader = documentheader&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 = obj_type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_key = obj_key&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_sys = obj_sys&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;accountgl = accountgl&lt;/P&gt;&lt;P&gt;currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;extension1 = extension1&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e999(re) with 'Error'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;loop at return.&lt;/P&gt;&lt;P&gt;if not return is initial.&lt;/P&gt;&lt;P&gt;clear bapi_retn_info.&lt;/P&gt;&lt;P&gt;move-corresponding return to bapi_retn_info.&lt;/P&gt;&lt;P&gt;if return-type = 'A' or return-type = 'E'.&lt;/P&gt;&lt;P&gt;error_flag = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append bapi_retn_info.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if error_flag = 'X'.&lt;/P&gt;&lt;P&gt;message e999(re) with 'Error'.&lt;/P&gt;&lt;P&gt;rollback work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 09:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874598#M1139451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T09:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874599#M1139452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I'll try this solution&lt;/P&gt;&lt;P&gt;After the call to this bapi, how can I know the BELNR value of the data inserted in BKPF??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 10:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874599#M1139452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T10:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874600#M1139453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look in the return table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 14:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874600#M1139453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874601#M1139454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't do test because i have this error: "balance in transaction currency" (I don't know if is the correct error message, because it is the translation from italian error message "saldo in divisa transazione") after execution of BAPI_ACC_DOCUMENT_POST &lt;/P&gt;&lt;P&gt;Someone have any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874601#M1139454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T12:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874602#M1139455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the translation is right. it means that the sum of debit and sum of the credit amounts do not match. check the entries in table CURRENCYAMOUNT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 13:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874602#M1139455</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-11T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874603#M1139456</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;Are u giving negative sign for credit amounts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for credit entries currencyamount-amt_doccur = -xxxxx&lt;/P&gt;&lt;P&gt;and for debit,  currencyamount-amt_doccur= xxxxx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 13:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874603#M1139456</guid>
      <dc:creator>arjun_subhash</dc:creator>
      <dc:date>2008-12-11T13:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874604#M1139457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if someone has the same problem:&lt;/P&gt;&lt;P&gt;when the registration is succesful the BELNR value of the document created is stored in the first 10 character of field RETURN-MESSAGE_V2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 14:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874604#M1139457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: usage BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874605#M1139458</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;The number (company code and fyscal year) is stored in exporting parameter OBJ_KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 14:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/usage-bapi-acc-document-post/m-p/4874605#M1139458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T14:10:05Z</dc:date>
    </item>
  </channel>
</rss>

