<?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: Document Splitting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013823#M1805733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such scenario we normally have a dummy GL account GL1. Lets say till 998 lines the total is 50 Credit we add 999 line for GL1 account with 50 Debit and post the document. The next document has first line as GL1 credit 50 and then other lines. So effectively dummy GL account balances out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jan 2014 18:42:54 GMT</pubDate>
    <dc:creator>nabheetscn</dc:creator>
    <dc:date>2014-01-06T18:42:54Z</dc:date>
    <item>
      <title>Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013817#M1805727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, Verdana, sans-serif; font-size: 15.454545021057129px;"&gt;I need to post a financial document in SAP from PI. I need to split that document after the 999 Th line. Can anyone help me with the splitting logic?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 13:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013817#M1805727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-05T13:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013818#M1805728</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;How you are posting the Invoice, Are you using BAPI? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 15:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013818#M1805728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-05T15:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013819#M1805729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use a counter and after the 999 line set your pointer to the next internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this isn't a question right now. What document do you got. is it an XML or already in another table stored or or or.&lt;/P&gt;&lt;P&gt;Please share more about the details you are into and I think you will get some useful answers in case my answer didn't help you out&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 15:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013819#M1805729</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2014-01-05T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013820#M1805730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i am using BAPI. It is a custom BAPI which is doing the posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 17:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013820#M1805730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-05T17:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013821#M1805731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - What type of&amp;nbsp; financial document is it ( like GL Posting) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 08:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013821#M1805731</guid>
      <dc:creator>atul_mohanty</dc:creator>
      <dc:date>2014-01-06T08:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013822#M1805732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes its GL posting. I am done with the splitting part. I wanted to know how to add the debit credit adjustment (GL account)in the 998th line and keep the final result in the 999th line. The final internal table is it_out. I am using BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 18:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013822#M1805732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-06T18:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013823#M1805733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such scenario we normally have a dummy GL account GL1. Lets say till 998 lines the total is 50 Credit we add 999 line for GL1 account with 50 Debit and post the document. The next document has first line as GL1 credit 50 and then other lines. So effectively dummy GL account balances out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 18:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013823#M1805733</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-01-06T18:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013824#M1805734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nabheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the concept but I am nnot sure in which field to append it.? and how do I know for sure it will be the 998th line item?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 19:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013824#M1805734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-06T19:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013825#M1805735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you can read the sy-tabix or sy-index. It just depends if you loop or make a do...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 20:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013825#M1805735</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2014-01-06T20:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Document Splitting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013826#M1805736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tina -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if you have 1200 Lines to be posted then you will create two account documents. The First Accounting document will have 998 Lines + 1 Line for Dummy GL and 2nd document will have 222 Lines + 1 Dummy GL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Now&amp;nbsp; loop over the 1200 lines. Put a counter and&amp;nbsp; another variable for sum of the amounts.&lt;/P&gt;&lt;P&gt;2. When the counter reaches 998 then check the sum of amounts.&lt;/P&gt;&lt;P&gt;(a)If its credit (negative) then post a debit to the dummy GL as the line 999. So the balance will be zero. &lt;/P&gt;&lt;P&gt;(b) If its debit (positive then post a credit to the dummy GL as the line 999.). So the balance will be zero. &lt;/P&gt;&lt;P&gt;(c) then you call BAPI_ACC_DOCUMENT_POST to create first accounting document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now you need create 2nd account document. If you posted the dummy GL as negative in step 2 above then create the 1st line as positive for dummy GL else create the 1st line as negative for dummy GL.&lt;/P&gt;&lt;P&gt;4. Proceed for the rest of line items and create till 1200 lines. ( the 2nd document should have 221 lines )&lt;/P&gt;&lt;P&gt;5. Then you call BAPI_ACC_DOCUMENT_POST to create 2nd accounting document&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atul Mohanty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 07:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-splitting/m-p/10013826#M1805736</guid>
      <dc:creator>atul_mohanty</dc:creator>
      <dc:date>2014-01-07T07:36:48Z</dc:date>
    </item>
  </channel>
</rss>

