<?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: alv grid display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645906#M287371</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;Go thru this links it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.warwick.ac.uk/services/finance/sap/training/reporting4.7/output" target="test_blank"&gt;http://www2.warwick.ac.uk/services/finance/sap/training/reporting4.7/output&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ttp://www.sapdevelopment.co.uk/reporting/alvhome.htm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 05:59:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-31T05:59:05Z</dc:date>
    <item>
      <title>alv grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645901#M287366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; i got some problem while working with Reuse_alv_grid_display function module, it is like this when iam displaying the grid iam able to get the output, in the output even iam able to sort the fields but when iam trying to sum the numeric fields it is going for dump,&lt;/P&gt;&lt;P&gt;my doubt is here whether i need to pass any parameter for this addition property, as in the previous programs i got the summation for the numeric fields without passing any parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can anyone help me out with an example to solve this problem thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 03:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645901#M287366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T03:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645902#M287367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the right data type for these columns in the field catalog? Usually if these are not of numeric type, the dump happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 03:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645902#M287367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T03:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645903#M287368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   iam doing it for quantity field and netpr field which is of eket-menge and ekpo-netpr type respectively.&lt;/P&gt;&lt;P&gt; Even i tried with this also it is going for dump in the beginning without showing output even here "so when iam using wa-fieldcat-DO-SUM = 'X'. and append it to header"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 04:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645903#M287368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T04:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645904#M287369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly check ur program, with the sample pgm in the&lt;/P&gt;&lt;P&gt;below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_basic.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;anver.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 05:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645904#M287369</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-31T05:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645905#M287370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the example below , it may be helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example shown here calculate the sum of the amount fields of all the records which are selected in the ALV list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Declare relevant data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type for internal table i_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES: BEGIN OF t_table,&lt;/P&gt;&lt;P&gt; The name of the field will be same of that which will be passed in the layout for the selectbox and this &lt;/P&gt;&lt;P&gt; field type should be of the type character 1.&lt;/P&gt;&lt;P&gt;         chkbx(1)         TYPE c,          &amp;#147; For selectbox&lt;/P&gt;&lt;P&gt;         amount_back      LIKE konp-kbetr, " amount_back        &lt;/P&gt;&lt;P&gt;         . &lt;/P&gt;&lt;P&gt;         .    OTHER FIELDS&lt;/P&gt;&lt;P&gt;         .&lt;/P&gt;&lt;P&gt;      END OF t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure to store the layout details of the ALV output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:   is_layout TYPE slis_layout_alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for storing the final records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: i_table TYPE STANDARD TABLE OF t_table WITH HEADER LINE&lt;/P&gt;&lt;P&gt;INITIAL SIZE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:   c_pf_status_set (30) TYPE c VALUE 'F_PF_STATUS_SET',             " Form for PF status&lt;/P&gt;&lt;P&gt;            c_user_command(30)  TYPE c VALUE 'F_USER_COMMAND',"Form for buttons&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare additional mandatory data and internal tables like i_fieldcat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.	Assign the field name of the internal table to the box_fieldname field of the Layout structure and call the ALV function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign the check box name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is_layout-box_fieldname = 'CHKBX'. &lt;/P&gt;&lt;P&gt;This should be in Capital letters. The layout with box_fieldname = &amp;lt;SelectBox Field&amp;gt; creates select box &lt;/P&gt;&lt;P&gt;for each row of the ALV report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here function module for ALV Grid viewer is called and i_layout is passed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program       = v_repid&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set = c_pf_status_set&lt;/P&gt;&lt;P&gt;            i_callback_user_command  = c_user_command&lt;/P&gt;&lt;P&gt;            i_grid_title             = c_title&lt;/P&gt;&lt;P&gt;            is_layout                = is_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat              = i_fieldcat&lt;/P&gt;&lt;P&gt;            it_events                = i_events&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab                 = i_table&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            program_error            = 1&lt;/P&gt;&lt;P&gt;            OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;3.	ALV report will be generated along with the PF status set in the following subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp;      Form  f_pf_status_set&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Form used to set the Custom pf-status of the Grid Display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; rt_extab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_pf_status_set USING rt_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZST' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.             " f_pf_status_set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.	When the ADD button (Function Code is B1) is pressed after selecting some rows then the amount_back of each selected row is summed and displayed&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;      FORM f_user_command                                           *&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;&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; --&amp;gt;  R_UCOMM                                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  RS_SELFIELD                                                   *&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;FORM f_user_command USING r_ucomm     LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                            rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local variables and constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONSTANTS: c_b1 LIKE sy-ucomm VALUE 'B1'. " For Func Code for ADD button&lt;/P&gt;&lt;P&gt;  DATA: l_sum LIKE konp-kbetr.              &amp;#147; For storing summed amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF r_ucomm = c_b1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Make the sum of amount_back if that row is selected&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT i_table WHERE chkbx = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt;    l_sum = l_sum + i_table-amount_back.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display the Sum in any Popup or in another ALV list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    Perform f_display_sum.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.            " f_user_command&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;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 05:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645905#M287370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T05:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645906#M287371</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;Go thru this links it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.warwick.ac.uk/services/finance/sap/training/reporting4.7/output" target="test_blank"&gt;http://www2.warwick.ac.uk/services/finance/sap/training/reporting4.7/output&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ttp://www.sapdevelopment.co.uk/reporting/alvhome.htm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 05:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/1645906#M287371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T05:59:05Z</dc:date>
    </item>
  </channel>
</rss>

