<?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 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/2906397#M683727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; in f-02 transaction the requirement is the first buzei to be triggered based on Receipt/Paid indicator.  Receipt indicator is &amp;#145;A&amp;#146; and Paid indicator is &amp;#145;B&amp;#146;.  &lt;/P&gt;&lt;P&gt;If indicator is &amp;#145;A&amp;#146; select SHKZG as &amp;#145;S&amp;#146; and if indicator is &amp;#145;B&amp;#146; select SHKZG as &amp;#145;H&amp;#146;.&lt;/P&gt;&lt;P&gt;The second buzei to be  triggered based on 1st BUZEI item SHKZG.  If first BUZEI, SHKZG is H, the 2nd BUZEI SHKZG should be S for KOART, D and if first BUZEI, SHKZG is S, the 2nd BUZEI SHKZG should be  H for KOART, D.&lt;/P&gt;&lt;P&gt;how to resolve using bapi BAPI_ACC_DOCUMENT_POST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 03:45:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-17T03:45:50Z</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/2906397#M683727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; in f-02 transaction the requirement is the first buzei to be triggered based on Receipt/Paid indicator.  Receipt indicator is &amp;#145;A&amp;#146; and Paid indicator is &amp;#145;B&amp;#146;.  &lt;/P&gt;&lt;P&gt;If indicator is &amp;#145;A&amp;#146; select SHKZG as &amp;#145;S&amp;#146; and if indicator is &amp;#145;B&amp;#146; select SHKZG as &amp;#145;H&amp;#146;.&lt;/P&gt;&lt;P&gt;The second buzei to be  triggered based on 1st BUZEI item SHKZG.  If first BUZEI, SHKZG is H, the 2nd BUZEI SHKZG should be S for KOART, D and if first BUZEI, SHKZG is S, the 2nd BUZEI SHKZG should be  H for KOART, D.&lt;/P&gt;&lt;P&gt;how to resolve using bapi BAPI_ACC_DOCUMENT_POST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 03:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/2906397#M683727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T03:45:50Z</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/2906398#M683728</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;What is the issue? you can achieve this by coding the logic in your program and passing the data in the way you required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 03:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/2906398#M683728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T03:47:55Z</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/2906399#M683729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't assign the posting key, because it's automatically setted by BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI use fm FI_GET_POSTING_KEY and find out the key in order transaction key (field KTOSL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that fm can't give the key, it's setted by program, this is the code:&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; for more information:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="101765"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="137111"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward points...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1512737"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="78988"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 03:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/2906399#M683729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T03:50:14Z</dc:date>
    </item>
  </channel>
</rss>

