<?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: Amount addition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182241#M1199653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use thsi FM " FOR_ALL_SKC1A " to get the subtotal..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the logic like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lines &amp;lt; 800.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function FOR_ALL_SKC1A  in u r program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will automatically performs the subtotal...&lt;/P&gt;&lt;P&gt;Iam just giving an example...write u r own logic and call this FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 05:38:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T05:38:46Z</dc:date>
    <item>
      <title>Amount addition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182238#M1199650</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;My requirement is i have 850  lines  in an excel.&lt;/P&gt;&lt;P&gt;i need to park the document only if the debit and credit amount is equal .&lt;/P&gt;&lt;P&gt;Actually iam parking the document for every 800 lines.&lt;/P&gt;&lt;P&gt;how to get the  total amt i.e equal to zero  for all  i.e greater than 800 line items before parking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182238#M1199650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Amount addition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182239#M1199651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can get all your data into the internal table first.&lt;/P&gt;&lt;P&gt;The you can validate like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you debit amt is w_debit and w_credit just say&lt;/P&gt;&lt;P&gt;if w_debit = w_credit and w_linecount = 800.&lt;/P&gt;&lt;P&gt;parking logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Regards,&lt;/P&gt;&lt;P&gt;Amuktha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amuktha Naraparaju on Feb 12, 2009 6:35 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amuktha Naraparaju on Feb 12, 2009 6:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182239#M1199651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Amount addition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182240#M1199652</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;Read the data in an internal table,and then sort the table based on some key filed that is may be unique .Then in Loop on intrenla tbale keep on adding the amount and increment the counter,whenever counter reach the line 800,simply check the sum is zero or not if it is then park the data else exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182240#M1199652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Amount addition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182241#M1199653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use thsi FM " FOR_ALL_SKC1A " to get the subtotal..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the logic like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lines &amp;lt; 800.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function FOR_ALL_SKC1A  in u r program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will automatically performs the subtotal...&lt;/P&gt;&lt;P&gt;Iam just giving an example...write u r own logic and call this FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182241#M1199653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Amount addition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182242#M1199654</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 can do one thing in that excel file before you start parking,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; at the row 65535 you give a sum for the debit and credit column in the excel sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the program be you start parking for first 800 lines also you can check the sum and then start uploading....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the below code to check if the debit and credit total is equal or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : t_itab type table of ALSMEX_TABLINE,
      fs_itab type ALSMEX_TABLINE.

data : w_credit type i,
w_debit type i.

CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  EXPORTING
    filename                      = fielname
    i_begin_col                   = 1
    i_begin_row                   = 65535
    i_end_col                     = &amp;lt;col till where the credit and debit are totalled ie. 10 or 20 or 15&amp;gt;
    i_end_row                     = 65535
  tables
    intern                        = t_itab
 EXCEPTIONS
   INCONSISTENT_PARAMETERS       = 1
   UPLOAD_OLE                    = 2
   OTHERS                        = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

read table t_itab into fs_itab with key col = &amp;lt;column_number_debit&amp;gt;.
w_debit = fs_itab-value.
read table t_itab into fs_itab with key col = &amp;lt;column_number_credit&amp;gt;.
w_credit = fs_itab-value.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you to fix the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182242#M1199654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Amount addition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182243#M1199655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Are you still facing any problems with the amount addition, please do let us know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-addition/m-p/5182243#M1199655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:35:34Z</dc:date>
    </item>
  </channel>
</rss>

