<?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 for FB01L in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230128#M770526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the field you are filling is wrong. You have to pass the trading partner id with the additional table extension, field name is vbund. See note 487722 how to build up the extension table. Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Egon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 06:17:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T06:17:15Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST for FB01L</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230126#M770524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI 'BAPI_ACC_DOCUMENT_POST' for G/L accounts  posting ( TCODE: FB01L). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to update a field "Comp. ID of Trading partner" at line items level.&lt;/P&gt;&lt;P&gt;For that I am assigning a value for TRADE_ID ( Comp. ID of Trading partner) field in AccountGL table of BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But BAPI returns an error for any company code i assign to trade_id, the same company codes are working when i enter the data through transaction FB01L .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what may be the problem or if there is any alternate way of achieving this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 11:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230126#M770524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST for FB01L</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230127#M770525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report z_test_bapi_gl_ac_doc . &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 'Problem occured'. &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 'Problem occured'. &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, 15 Jan 2008 11:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230127#M770525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T11:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST for FB01L</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230128#M770526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the field you are filling is wrong. You have to pass the trading partner id with the additional table extension, field name is vbund. See note 487722 how to build up the extension table. Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Egon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 06:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-for-fb01l/m-p/3230128#M770526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T06:17:15Z</dc:date>
    </item>
  </channel>
</rss>

