<?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: Posting FI documents using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531030#M1656699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Posting key for Document posted is decided by 'ACCOUNTGL' or ACCOUNTRECEIVABLE or ACCOUNTPAYABLE .&lt;/P&gt;&lt;P&gt;you don't want to enter 40, 50 for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rehan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 04:48:27 GMT</pubDate>
    <dc:creator>former_member544878</dc:creator>
    <dc:date>2012-01-24T04:48:27Z</dc:date>
    <item>
      <title>Posting FI documents using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531028#M1656697</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;&lt;/P&gt;&lt;P&gt;I need to park and post the FI document as per the below example based on the posting keys dynamically .&lt;/P&gt;&lt;P&gt;The code which I have shown below is written for posting keys 40,50,21and 31 which is hardcoded. &lt;/P&gt;&lt;P&gt;But this should not be the case .Could you please provide me the solution how to handle the posting keys dynamically to post the FI document using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the below example shown:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;REC REC_LINK   PO ACCOUNT    COMP AMOUNT           COSTCENTER PROFIT     ASSMT_FLD            SGTXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L01 12345      40 1000000001 1000          100.00                                             ITEM TEXT TEST - ROW 1&lt;/P&gt;&lt;P&gt;L02 12345      40 1000000002 1000          100.00                                             ITEM TEXT TEST - ROW 1&lt;/P&gt;&lt;P&gt;L03 12345      40 1000000003 1000          100.00                                             ITEM TEXT TEST - ROW 1&lt;/P&gt;&lt;P&gt;L04 12345      40 1000000004 1000          100.00                                             ITEM TEXT TEST - ROW 1&lt;/P&gt;&lt;P&gt;L05 12345      31 1000000000 1000          400.00                                             ITEM TEXT TEST - ROW 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            W e need to compare all the line items of 40 with 50 at once &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            (L01&lt;EM&gt;L02&lt;/EM&gt;L03+L04) = L01 of 50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           (100&lt;EM&gt;100&lt;/EM&gt;100+100) = 400. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step2: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split each line item of posting key 40 and compare with the offset posting key 31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every line item of posting key 40 (L01,L02,L03,L04) has to match with posting key L05 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40 à L01 u2013 L05 = 100 -100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          L02 u2013 L05 = 100 -100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         L03 u2013 L05 = 100 -100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         L04 u2013 L05 = 100 -100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Every single line item there will be only one offset posting key u2013 31 ( In this case) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we need to call BAPI 4 times for 4 separate entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All these posting keys should be handled dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Code which i have written :&lt;/STRONG&gt; I  have created the RFC-FM which informatical will call this FM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;EM&gt;&amp;lt;Garbled code removed by moderator&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar on Jan 24, 2012 11:08 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 18:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531028#M1656697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T18:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Posting FI documents using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531029#M1656698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to use the proper  tags when posting any program code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 19:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531029#M1656698</guid>
      <dc:creator>Tamas_Hoznek</dc:creator>
      <dc:date>2012-01-23T19:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Posting FI documents using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531030#M1656699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Posting key for Document posted is decided by 'ACCOUNTGL' or ACCOUNTRECEIVABLE or ACCOUNTPAYABLE .&lt;/P&gt;&lt;P&gt;you don't want to enter 40, 50 for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rehan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 04:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531030#M1656699</guid>
      <dc:creator>former_member544878</dc:creator>
      <dc:date>2012-01-24T04:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Posting FI documents using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531031#M1656700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The posting key of FI document is decided on the account tye (K) or (S) and also debit creadit indicator (CR/DR).&lt;/P&gt;&lt;P&gt;So based  on the GL ACCOUNT number/ account type and DR/CR indicator you need to decide the posting key for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 06:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-fi-documents-using-bapi/m-p/8531031#M1656700</guid>
      <dc:creator>nirajgadre</dc:creator>
      <dc:date>2012-01-24T06:16:31Z</dc:date>
    </item>
  </channel>
</rss>

