<?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 - Check error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391243#M190091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your code for more clarity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Govind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 06:02:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-10T06:02:21Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391239#M190087</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 am trying to create posting accounting posting using BAPI &amp;#147;&amp;lt;b&amp;gt;BAPI_ACC_DOCUMENT_POST&amp;lt;/b&amp;gt;&amp;#148; for transaction FB60/FB70. I am getting error saying &amp;#147;&amp;lt;b&amp;gt;FI/CO interface: Line item entered several times&amp;lt;/b&amp;gt;&amp;#148;. By debugging I found field in header &amp;#147;&amp;lt;b&amp;gt;COMPO_ACC&amp;lt;/b&amp;gt;&amp;#148; checked before posting. Check fail for this field COMPO_ACC. As per BAPI documentation this field as to be left blank, it is blank as per my interface test. But I am getting above error of I don&amp;#146;t populate and I am not sure do I have to populate this field in header. Have nay of you come across any such issue. Thanks in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 05:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391239#M190087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T05:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391240#M190088</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;  If you check the documentation of the above BAPI as given below,&lt;/P&gt;&lt;P&gt; "The field COMPO_ACC must remain empty for a general posting. If an SAP  &lt;/P&gt;&lt;P&gt; component is transferred in this field, a posting will only be made in  &lt;/P&gt;&lt;P&gt; this component. This function is only used for posting subsequently."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether any SAP component is assigned to this, if so , assign the component value to it and try posting,  this might help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 05:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391240#M190088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T05:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391241#M190089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailatha ,&lt;/P&gt;&lt;P&gt;YES I read that documentation. But question is What component value to assign if it&amp;#146;s interface to post customer and vendor posting. Even the business person is not sure so I tried &amp;#145;FI&amp;#146; and &amp;#145;GL&amp;#146;, no use FI I get same error and GL I get some other error  &amp;#145;Combination of company code 0100 transaction RFBU not assigned to a ledger&amp;#146;. So I not sure what value I should be using?. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 05:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391241#M190089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T05:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391242#M190090</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;  If you are not sure of the value to be passed and you dont get any help from your functional force, then you  have to go by the trial &amp;amp; error method, if you go to the domain of  field 'COMPO_ACC' i.e.COMPO, it has some values maintained, you may try to pass the values maintained for this at the domain level and see how it works, still there is any problem, you can always debug and check what value the system is expecting at run time,&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;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 05:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391242#M190090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T05:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391243#M190091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your code for more clarity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Govind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 06:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391243#M190091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T06:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391244#M190092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is hoe code written to post document via RFC call ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ZFI_BAPI_ACC_DOCUMENT_POST INTO ZGVS_ACC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING: ZGVS_ACC_DOCUMENT_POST-DOCUMENTHEADER TO ZGV_DOCUMENTHEADER,&lt;/P&gt;&lt;P&gt;ZGVS_ACC_DOCUMENT_POST-CUSTOMERCPD TO ZGV_CUSTOMERCPD,&lt;/P&gt;&lt;P&gt;       ZGVS_ACC_DOCUMENT_POST-CUSTOMERCPD TO ZGV_CUSTOMERCPD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;(header details in &amp;#147;ZGVS_ACC_DOCUMENT_POST-DOCUMENTHEADER&amp;#148; &amp;#150; sample header details populated in above RFC call)&lt;/P&gt;&lt;P&gt;BUS_ACT = RFBU&lt;/P&gt;&lt;P&gt;USERNAME = RFCUSER&lt;/P&gt;&lt;P&gt;HEADER_TXT = 5100674 50447&lt;/P&gt;&lt;P&gt;COMP_CODE = 0100&lt;/P&gt;&lt;P&gt;DOC_DATE = 20.06.0512&lt;/P&gt;&lt;P&gt;PSTNG_DATE = 20.06.0705&lt;/P&gt;&lt;P&gt;DOC_TYPE = DR&lt;/P&gt;&lt;P&gt;REF_DOC_NO = 5100674 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ZGV_ACCOUNTGL[] = ZGVS_ACC_DOCUMENT_POST-ACCOUNTGL[].&lt;/P&gt;&lt;P&gt;    ZGV_ACCOUNTRECEIVABLE[] = ZGVS_ACC_DOCUMENT_POST-ACCOUNTRECEIVABLE[].&lt;/P&gt;&lt;P&gt;    ZGV_ACCOUNTPAYABLE[] = ZGVS_ACC_DOCUMENT_POST-ACCOUNTPAYABLE[].&lt;/P&gt;&lt;P&gt;    ZGV_ACCOUNTTAX[] = ZGVS_ACC_DOCUMENT_POST-ACCOUNTTAX[].&lt;/P&gt;&lt;P&gt;    ZGV_CURRENCYAMOUNT[] = ZGVS_ACC_DOCUMENT_POST-CURRENCYAMOUNT[].&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&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          = ZGV_DOCUMENTHEADER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CUSTOMERCPD             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CONTRACTHEADER          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;        OBJ_TYPE                = GV_OBJ_TYPE&lt;/P&gt;&lt;P&gt;        OBJ_KEY                 = GV_OBJ_KEY&lt;/P&gt;&lt;P&gt;        OBJ_SYS                 = GV_OBJ_SYS&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        ACCOUNTGL               = ZGV_ACCOUNTGL&lt;/P&gt;&lt;P&gt;        ACCOUNTRECEIVABLE       = ZGV_ACCOUNTRECEIVABLE&lt;/P&gt;&lt;P&gt;        ACCOUNTPAYABLE          = ZGV_ACCOUNTPAYABLE&lt;/P&gt;&lt;P&gt;        ACCOUNTTAX              = ZGV_ACCOUNTTAX&lt;/P&gt;&lt;P&gt;        CURRENCYAMOUNT          = ZGV_CURRENCYAMOUNT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CRITERIA                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   VALUEFIELD              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXTENSION1              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RETURN                  = ZGVI1_RETURN&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   PAYMENTCARD             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CONTRACTITEM            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXTENSION2              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   REALESTATE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ACCOUNTWT               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;IF ZGVI2_RETURN IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;P&gt;LOOP AT ZGVI1_RETURN.&lt;/P&gt;&lt;P&gt;      CLEAR GV_MESSAGE.&lt;/P&gt;&lt;P&gt;      IF ZGVI1_RETURN-TYPE EQ 'E'.&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING ZGVI1_RETURN TO RETURN.&lt;/P&gt;&lt;P&gt;        CONCATENATE: TEXT-004 ZGV_DOCUMENTHEADER-REF_DOC_NO CO_SPACE RETURN-MESSAGE INTO GV_MESSAGE SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;        RETURN-MESSAGE = GV_MESSAGE.&lt;/P&gt;&lt;P&gt;        APPEND RETURN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 06:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391244#M190092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T06:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391245#M190093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI Struct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 02:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391245#M190093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T02:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Check error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391246#M190094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize thei post is old, but it came up when I was trying to find an answer to the same problem and I was almost seduced by the above answer to do trial and error testing with the COMPO_ACC field...  However I came across the following response in another thread and it was the correct answer for the same message for my situation.  e.g. don't provide both a G/L and vendor line for the same line item.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; quote &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;Re: BAPI_ACC_INVOICE_RECEIPT_POST Error    &lt;/P&gt;&lt;P&gt;Posted: Nov 16, 2006 11:28 PM    in response to: Aaron Morden       Reply      E-mail this post  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Aaron - I believe that for each line item you should only have only one of the accountgl or accountpayable tables populated but not both. So for the first line item remove the code for the accountgl since it appears it is a vendor item. The GL will be updated inherently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; endquote &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;Hope this helps someone else.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 16:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-check-error/m-p/1391246#M190094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T16:29:30Z</dc:date>
    </item>
  </channel>
</rss>

