<?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: script subtotals in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055182#M424147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because we use the AT END OF control break statement for the subtotals, it is not possible for us to have the requirement fulfilled. Instead you can use the PROTECT...ENDPROTECT control command for the items in the script and get the items displayed always on a single page with the subtotal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2007 09:40:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-15T09:40:04Z</dc:date>
    <item>
      <title>script subtotals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055181#M424146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;i ahav an issue in getting the subtotals in SAP scripts.&lt;/P&gt;&lt;P&gt;i need it to be printed as suppose thr are 6 items in first page then i need the subtotal of only 6 then in second page suppose thr are 3 items then i need subtotal for only 3 items in second page.&lt;/P&gt;&lt;P&gt;But its printing always total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz guide me regarding this frnd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 09:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055181#M424146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T09:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: script subtotals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055182#M424147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because we use the AT END OF control break statement for the subtotals, it is not possible for us to have the requirement fulfilled. Instead you can use the PROTECT...ENDPROTECT control command for the items in the script and get the items displayed always on a single page with the subtotal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 09:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055182#M424147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T09:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: script subtotals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055183#M424148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SAPscripts How to calculate Totals and Subtotals 
I have some doubs in BDC and SMART FORMS.  I want to change the material number using the transaction code MM02 through BDC. 

In scripts and smartforms how to calculate totals and subtotals? 

To calculate totals and sub totals in sap scripts you have to use subroutines. 

Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine 

/: DEFINE &amp;amp;TOT_PRICE&amp;amp; 
/: PERFORM F_GET_PRICE IN PROGRAM &amp;lt;subroutine prog name&amp;gt; /:USING &amp;amp;KOMVD-KBERT&amp;amp; /:CHANGING &amp;amp;TOT_PRICE&amp;amp; /:ENDPERFORM 

Then write the variable where ever you want it to be printed (mostly it will be in footer window) 

Then create subroutine pool program and you have to write the code. 

FORM F_GET_PRICE tables int_cond structure itcsy 
                                    outt_cond structure itcsy. data : value type kbert. 

statics   value1 type kbert. 
Read int_cond table index 1. 
value = int_cond-value. 

value1 = value1 + value. 

Read outt_cond table index 1. 
outt_cond-value = value1. 
Modify outt_cond index 1. 

ENDFORM. 

I have given a rough outline, please be aware of the variable conversions as Int_cond-value and outt_cond-value are characters. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 09:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055183#M424148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T09:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: script subtotals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055184#M424149</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 use the following stmt for sub totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SUMMING &amp;amp;FS_PROG-SALARY&amp;amp; INTO &amp;amp;W_SUM&amp;amp;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and place w_sum where it is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 09:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055184#M424149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: script subtotals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055185#M424150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this is the report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"Table declarations...................................................&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;  yash_programmer.                     " Details of Programmers at Yash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type declaration of the structure to hold Employee details          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of fs_empl,&lt;/P&gt;&lt;P&gt;    pname type yash_programmer-pname,  " Employee Name&lt;/P&gt;&lt;P&gt;    dob type yash_programmer-dob,      " Date of Birth&lt;/P&gt;&lt;P&gt;    doj type yash_programmer-doj,      " Date of Join&lt;/P&gt;&lt;P&gt;    salary type yash_programmer-salary," Salary Data Element&lt;/P&gt;&lt;P&gt;    currencykey type yash_programmer-currencykey,&lt;/P&gt;&lt;P&gt;  end of fs_empl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to hold Employee details                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_empl like standard table&lt;/P&gt;&lt;P&gt;           of fs_empl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Data declarations...................................................&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work variables                                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  w_pname like yash_programmer-pname,&lt;/P&gt;&lt;P&gt;  w_dob like yash_programmer-dob,&lt;/P&gt;&lt;P&gt;  w_doj like yash_programmer-doj,&lt;/P&gt;&lt;P&gt;  w_salary like yash_programmer-salary,&lt;/P&gt;&lt;P&gt;  w_currencykey like yash_programmer-currencykey,&lt;/P&gt;&lt;P&gt;  w_total  type i,&lt;/P&gt;&lt;P&gt;  w_lines  type i,&lt;/P&gt;&lt;P&gt;  w_count  type i,&lt;/P&gt;&lt;P&gt;  w_count1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pname&lt;/P&gt;&lt;P&gt;       dob&lt;/P&gt;&lt;P&gt;       doj&lt;/P&gt;&lt;P&gt;       salary&lt;/P&gt;&lt;P&gt;       currencykey&lt;/P&gt;&lt;P&gt;  from yash_programmer&lt;/P&gt;&lt;P&gt;  into table t_empl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  write: 'records not found'.&lt;/P&gt;&lt;P&gt;endif.                                 " IF SY-SUBRC...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'OPEN_FORM'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPLICATION                       = 'TX'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEVICE                            = 'PRINTER'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIALOG                            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   form                              = 'YH645_060103'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                          = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OPTIONS                           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJECT                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RAW_DATA_INTERFACE                = '*'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPONUMIV                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_ARCHIVE_PARAMS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RESULT                            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; exceptions&lt;/P&gt;&lt;P&gt;   canceled                          = 1&lt;/P&gt;&lt;P&gt;   device                            = 2&lt;/P&gt;&lt;P&gt;   form                              = 3&lt;/P&gt;&lt;P&gt;   options                           = 4&lt;/P&gt;&lt;P&gt;   unclosed                          = 5&lt;/P&gt;&lt;P&gt;   mail_options                      = 6&lt;/P&gt;&lt;P&gt;   archive_error                     = 7&lt;/P&gt;&lt;P&gt;   invalid_fax_number                = 8&lt;/P&gt;&lt;P&gt;   more_params_needed_in_batch       = 9&lt;/P&gt;&lt;P&gt;   spool_error                       = 10&lt;/P&gt;&lt;P&gt;   codepage                          = 11&lt;/P&gt;&lt;P&gt;   others                            = 12&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table t_empl lines w_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_empl into fs_empl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_pname = fs_empl-pname.&lt;/P&gt;&lt;P&gt;  w_dob = fs_empl-dob.&lt;/P&gt;&lt;P&gt;  w_doj = fs_empl-doj.&lt;/P&gt;&lt;P&gt;  w_salary = fs_empl-salary.&lt;/P&gt;&lt;P&gt;  w_currencykey = fs_empl-currencykey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if w_count = 5 and w_lines gt sy-tabix.&lt;/P&gt;&lt;P&gt;    w_count = 0.&lt;/P&gt;&lt;P&gt;    call function 'CONTROL_FORM'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        command   = 'NEW-PAGE'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        unopened  = 1&lt;/P&gt;&lt;P&gt;        unstarted = 2&lt;/P&gt;&lt;P&gt;        others    = 3.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_total = w_total + fs_empl-salary.&lt;/P&gt;&lt;P&gt;  add 1 to w_count.&lt;/P&gt;&lt;P&gt;  add 1 to w_count1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     element                        = 'ELEMENT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW                         = 'MAIN'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     element                        = 1&lt;/P&gt;&lt;P&gt;     function                       = 2&lt;/P&gt;&lt;P&gt;     type                           = 3&lt;/P&gt;&lt;P&gt;     unopened                       = 4&lt;/P&gt;&lt;P&gt;     unstarted                      = 5&lt;/P&gt;&lt;P&gt;     window                         = 6&lt;/P&gt;&lt;P&gt;     bad_pageformat_for_print       = 7&lt;/P&gt;&lt;P&gt;     spool_error                    = 8&lt;/P&gt;&lt;P&gt;     codepage                       = 9&lt;/P&gt;&lt;P&gt;     others                         = 10&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CLOSE_FORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RESULT                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RDI_RESULT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTFDATA                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNOPENED                       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEND_ERROR                     = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR                    = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                       = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************&lt;STRONG&gt;script&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;Screen1:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/6a6aef2c-2e2c-463a-8bc4-23f4d8d556f6/01" target="test_blank"&gt;http://www.esnips.com/doc/6a6aef2c-2e2c-463a-8bc4-23f4d8d556f6/01&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen2:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/6decbbab-a4b1-4159-be68-94c029c1bc4f/02" target="test_blank"&gt;http://www.esnips.com/doc/6decbbab-a4b1-4159-be68-94c029c1bc4f/02&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen3:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/dd404551-688b-4f18-95bd-574b83800b37/03" target="test_blank"&gt;http://www.esnips.com/doc/dd404551-688b-4f18-95bd-574b83800b37/03&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen4:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/ff49a9b0-d0eb-408d-ad5b-83990d4ed0dd/04" target="test_blank"&gt;http://www.esnips.com/doc/ff49a9b0-d0eb-408d-ad5b-83990d4ed0dd/04&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 10:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055185#M424150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T10:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: script subtotals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055186#M424151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  the sum statement is executed in this way it helps u very much.&lt;/P&gt;&lt;P&gt;  Summing a Program Symbol: SUMMING &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SUMMING command is used for accumulating a total value for a program symbol. The command should be specified just once. Then, each time the specified program symbol is formatted, its current value is added into the total symbol. Several program symbols may all be added into a single total symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SUMMING program_symbol INTO total_symbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPscript cannot create the field for the total dynamically. The summing symbol used for totalling and the accompanying program symbol(s) must be declared with TABLES in the ABAP program. Otherwise, only zero is added. Declaring the symbol with the DATA statement is not sufficient (global data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details on summing and carrying forward, see Summing and Carrying Forward is Incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u print program_symbol  at the time the sum will be up dated.&lt;/P&gt;&lt;P&gt;u will observe in debugging mode.&lt;/P&gt;&lt;P&gt;when u execute that sum command it will refreshed.&lt;/P&gt;&lt;P&gt;do u required i send an example also if u responded well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sunil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 10:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-subtotals/m-p/2055186#M424151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T10:17:37Z</dc:date>
    </item>
  </channel>
</rss>

