<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977645#M71240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;      
        w_compt = w_comp + 1.

        documentheader-bus_act    = 'RFBU'.
        documentheader-username   = sy-uname.
        documentheader-comp_code  = p_bukrs.
        documentheader-fisc_year  = sy-datum(4).
        documentheader-doc_date   = sy-datum.
        documentheader-pstng_date = sy-datum.
        documentheader-doc_type   = p_blart.
        documentheader-header_txt = w_text_comment

*IF GL ACCOUNT

*       Accountgl / 
        ws_accountgl-itemno_acc   = w_compt.
        ws_accountgl-comp_code    = p_bukrs.
        ws_accountgl-pstng_date   = ws_reformat-datecpt.
        ws_accountgl-doc_type     = p_blart.
        ws_accountgl-item_text    = ws_reformat-libel.

        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ws_reformat-cptclf
          IMPORTING
            output = ws_accountgl-gl_account.

        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ws_reformat-kostl
          IMPORTING
            output = ws_accountgl-costcenter.

        APPEND ws_accountgl TO accountgl.

*ELSE IF ACCOUNT PAYABLE

*       Account Payable 
        ws_accountpayable-itemno_acc   = w_compt.
        ws_accountpayable-comp_code    = p_bukrs.
        ws_accountpayable-item_text    = w_libel.

        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ws_reformat-cptclf
          IMPORTING
            output = ws_accountpayable-vendor_no.
        APPEND ws_accountpayable TO accountpayable.

*ENDIF

*     Currencyamount
      ws_currencyamount-itemno_acc = w_compt.
      ws_currencyamount-currency = 'EUR'.
*     ws_currencyamount-curr_type = '00'.
      ENDIF.
      ws_currencyamount-amt_doccur = ws_reformat-wrbtr_c.
      APPEND ws_currencyamount TO currencyamount.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the way I use it.&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;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2005 15:36:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-29T15:36:08Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977642#M71237</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;We are trying to use BAPI_ACC_DOCUMENT_POST to post vendor invoice out of FI similar to FB60.  &lt;/P&gt;&lt;P&gt;For test purposes we want to post only a two line item entry&lt;/P&gt;&lt;P&gt;Debit GL Account Cost Center Amount&lt;/P&gt;&lt;P&gt;Credit Vendor Account Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are activating few fields in the following structures of the BAPI&lt;/P&gt;&lt;P&gt;Document Header&lt;/P&gt;&lt;P&gt;Accounts Payable&lt;/P&gt;&lt;P&gt;AccountGL&lt;/P&gt;&lt;P&gt;CurrencyAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the errors we are getting &lt;/P&gt;&lt;P&gt;1) OBJ_TYPE Sender identification &lt;/P&gt;&lt;P&gt;OBJ_KEY Reference number of source document &lt;/P&gt;&lt;P&gt;OBJ_SYS Logical system of source document   &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;the above information is required what values need to be populated here?&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;another error is wrong business transaction&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;2) How do we activate posting keys; what is the field name/structure; we couldn't find them in the above structures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone have a sample of parameters for these structures that can be used as a starting point?&lt;/P&gt;&lt;P&gt;thanks - Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 13:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977642#M71237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977643#M71238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this BAPI, and you don't need to fill OBJ_TYPE OBJ_KEY and OBJ_SYS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the account key, they are replaced by the amount sign +/-.&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;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 14:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977643#M71238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T14:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977644#M71239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;P&gt;Do you have a list of parameters that you are passing to post the FI document through this BAPI? I would like to show it to our programmer &lt;/P&gt;&lt;P&gt;thanks-adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 15:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977644#M71239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977645#M71240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;      
        w_compt = w_comp + 1.

        documentheader-bus_act    = 'RFBU'.
        documentheader-username   = sy-uname.
        documentheader-comp_code  = p_bukrs.
        documentheader-fisc_year  = sy-datum(4).
        documentheader-doc_date   = sy-datum.
        documentheader-pstng_date = sy-datum.
        documentheader-doc_type   = p_blart.
        documentheader-header_txt = w_text_comment

*IF GL ACCOUNT

*       Accountgl / 
        ws_accountgl-itemno_acc   = w_compt.
        ws_accountgl-comp_code    = p_bukrs.
        ws_accountgl-pstng_date   = ws_reformat-datecpt.
        ws_accountgl-doc_type     = p_blart.
        ws_accountgl-item_text    = ws_reformat-libel.

        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ws_reformat-cptclf
          IMPORTING
            output = ws_accountgl-gl_account.

        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ws_reformat-kostl
          IMPORTING
            output = ws_accountgl-costcenter.

        APPEND ws_accountgl TO accountgl.

*ELSE IF ACCOUNT PAYABLE

*       Account Payable 
        ws_accountpayable-itemno_acc   = w_compt.
        ws_accountpayable-comp_code    = p_bukrs.
        ws_accountpayable-item_text    = w_libel.

        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ws_reformat-cptclf
          IMPORTING
            output = ws_accountpayable-vendor_no.
        APPEND ws_accountpayable TO accountpayable.

*ENDIF

*     Currencyamount
      ws_currencyamount-itemno_acc = w_compt.
      ws_currencyamount-currency = 'EUR'.
*     ws_currencyamount-curr_type = '00'.
      ENDIF.
      ws_currencyamount-amt_doccur = ws_reformat-wrbtr_c.
      APPEND ws_currencyamount TO currencyamount.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the way I use it.&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;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 15:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977645#M71240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T15:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977646#M71241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erwan.&lt;/P&gt;&lt;P&gt;I'm trying to use this BAPI and in test mode, using the parameters you specify in this piece of code I have an error in Return, that says "FI/CO interface: Line item entered several times". Any idea what his might be? I used line ID 1 for both the ACCOUNTGL and ACCOUNTPAYABLE structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean-Marie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 09:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/977646#M71241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T09:07:17Z</dc:date>
    </item>
  </channel>
</rss>

