<?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 in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705503#M309079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to post a document with multiple line items through f-01..which bapi should be used for this ...i coulnt find any field in the importing structure/table of the BAPI that holds the Posting Key on line item level ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2006 13:55:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-24T13:55:01Z</dc:date>
    <item>
      <title>Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705503#M309079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to post a document with multiple line items through f-01..which bapi should be used for this ...i coulnt find any field in the importing structure/table of the BAPI that holds the Posting Key on line item level ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 13:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705503#M309079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T13:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705504#M309080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use BAPI_ACC_GL_POSTING_POST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 14:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705504#M309080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T14:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705505#M309081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah i am looking at that bapi ...but i want to know where to specify the posting key(debit or credit ) at the line item level ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 14:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705505#M309081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T14:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705506#M309082</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;It depends which kind of account you have to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- BAPI_ACC_GL_POSTING_POST is only GL Account&lt;/P&gt;&lt;P&gt;- BAPI_ACC_DOCUMENT_POST should be good for all types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer BAPI_ACC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 14:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705506#M309082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T14:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705507#M309083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it genrates the posting key when you pass the currency as +ve or -ve. Please check for the posting keys that you are particular in loading are generated after you save the document with the bapi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 14:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705507#M309083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705508#M309084</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;When we manually do a post , we can specify a '*' in the amount field for the offsetting account for all the previous entries...how can i specify that when posting through bapi ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 15:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705508#M309084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T15:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705509#M309085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not sure you can pass the *. Sum the amount for the line items and offset the balance with +ve or -ve as the total balance when you post should be 0. otherwise the bapi gives the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 15:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705509#M309085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Posting in BAPI_ACC_doc_post or BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705510#M309086</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;You have to indicate the amount with sign in all items you transfer to the BAPI, the posting key is decided by the sign and the type of operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code where BAPI get posting key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fill_acct_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ld_bschh  LIKE accit-bschl,&lt;/P&gt;&lt;P&gt;        ld_bschs  LIKE accit-bschl,&lt;/P&gt;&lt;P&gt;        ld_umskz  LIKE accit-umskz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT gs_accit-ktosl IS INITIAL AND&lt;/P&gt;&lt;P&gt;     gs_accit-kstat IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FI_GET_POSTING_KEY'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_ktosl       = gs_accit-ktosl&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              e_bschs       = ld_bschs&lt;/P&gt;&lt;P&gt;              e_bschh       = ld_bschh&lt;/P&gt;&lt;P&gt;              e_umskz       = ld_umskz&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              error_message = 1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;      IF gs_accit-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;        gs_accit-bschl = ld_bschs.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        gs_accit-bschl = ld_bschh.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;    SHB-Vorgänge HR-Travel mit Ktosl 'HRV'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IF NOT ld_umskz IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       gs_accit-umskz =  ld_umskz.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;       keine Ableitung Zahlungsbedingung für SHB-Vorgänge&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CLEAR gs_accit-zterm.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      PERFORM error_from_system&lt;/P&gt;&lt;P&gt;              USING gs_bapi_accit-parameter&lt;/P&gt;&lt;P&gt;                    gs_bapi_accit-tabix&lt;/P&gt;&lt;P&gt;                    'ACCT_KEY'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF gs_accit-bschl IS INITIAL.&lt;/P&gt;&lt;P&gt;    CASE gs_accit-koart.&lt;/P&gt;&lt;P&gt;      WHEN 'D' OR 'V'.&lt;/P&gt;&lt;P&gt;        IF gs_accit-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '01'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '11'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      WHEN 'K'.&lt;/P&gt;&lt;P&gt;        IF gs_accit-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '21'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '31'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      WHEN 'S'.&lt;/P&gt;&lt;P&gt;        IF gs_accit-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '40'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '50'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      WHEN 'A'.&lt;/P&gt;&lt;P&gt;        IF gs_accit-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '70'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '75'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      WHEN 'M'.&lt;/P&gt;&lt;P&gt;        IF gs_accit-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '40'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          gs_accit-bschl = '50'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT gs_accit-umskz IS INITIAL.&lt;/P&gt;&lt;P&gt;    IF gs_accit-bschl+1 = '1'.&lt;/P&gt;&lt;P&gt;      gs_accit-bschl+1 = '9'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " FILL_ACCT_KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of field shkzg is decide by the sign of amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 15:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-in-bapi-acc-doc-post-or-bapi-acc-gl-posting-post/m-p/1705510#M309086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T15:29:55Z</dc:date>
    </item>
  </channel>
</rss>

