<?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: re:reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211733#M765708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, what kind of report and what kind help you are seeking here? is it select statement help or do you want from scratch. Please refer, the following standard test report and read the coments in the reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV_DEMO_HIERSEQ_SIMPLE       Demonstration of Simple Call of Sequential Lists    &lt;/P&gt;&lt;P&gt;SALV_DEMO_TABLE_REAL_SIMPLE    Most Simple Call of the ALV OM                      &lt;/P&gt;&lt;P&gt;SALV_DEMO_TABLE_SIMPLE         Demonstration of Simplest ALV OM Call               &lt;/P&gt;&lt;P&gt;SALV_DEMO_TREE_SIMPLE          Demonstration Program for ALV OM Tree               &lt;/P&gt;&lt;P&gt;SALV_SIMPLE_GRID_CALL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2007 17:28:41 GMT</pubDate>
    <dc:creator>former_member191735</dc:creator>
    <dc:date>2007-12-07T17:28:41Z</dc:date>
    <item>
      <title>re:reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211732#M765707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario is to Create an Interactive Report for displaying Vendor information. Based on the selection made the corresponding Vendor Bank Details are listed such that the line selected in the basic list was visible along with the secondary list.Can nebody pls guide me how to start with... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 17:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211732#M765707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T17:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: re:reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211733#M765708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, what kind of report and what kind help you are seeking here? is it select statement help or do you want from scratch. Please refer, the following standard test report and read the coments in the reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV_DEMO_HIERSEQ_SIMPLE       Demonstration of Simple Call of Sequential Lists    &lt;/P&gt;&lt;P&gt;SALV_DEMO_TABLE_REAL_SIMPLE    Most Simple Call of the ALV OM                      &lt;/P&gt;&lt;P&gt;SALV_DEMO_TABLE_SIMPLE         Demonstration of Simplest ALV OM Call               &lt;/P&gt;&lt;P&gt;SALV_DEMO_TREE_SIMPLE          Demonstration Program for ALV OM Tree               &lt;/P&gt;&lt;P&gt;SALV_SIMPLE_GRID_CALL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 17:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211733#M765708</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2007-12-07T17:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: re:reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211734#M765709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well tanx for ur immd response.. I need help from scratch..&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;&lt;/P&gt;&lt;P&gt;jothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 17:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211734#M765709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: re:reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211735#M765710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in that case you will have to send us your spec or atleast selection screen parameters and output parameters which you want to display on output and what type of output you want? alv grid, hierarchy, list or tree?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why dont you try the following code. &lt;/P&gt;&lt;P&gt;Go to se38 and create a yreport or zreport - make it executable in attributes - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;paste this report in your newly created program, rename the report name in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute it or debug it. you will now get the output in alv grid. &lt;/P&gt;&lt;P&gt;All you have to enter is material number and plant or material number or just plant and execute it. It has simple blocks with some of the descriptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;Documentation on SALV GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a report from SE38. Save in local objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload the program which is at the bottom of this document. You don&amp;#146;t have to create any screen as you create for other ALV grid. This it creates a container on default screen. You don&amp;#146;t have to take care of any other coding to run in background. SALV will take care of all those things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two parameters are important to create a ALV GRID in SALV.&lt;/P&gt;&lt;P&gt;Let us see what these parameters are.&lt;/P&gt;&lt;P&gt;DATA  : gr_table   TYPE REF TO cl_salv_table.&lt;/P&gt;&lt;P&gt;DATA  : gr_functions TYPE REF TO cl_salv_functions_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GR_TABLE: This is referenced to CL_SALV_TABLE. This is actual class which will take care of displaying grid on the screen. There is nothing much code involved in SALV.&lt;/P&gt;&lt;P&gt;GR_FUNCTIONS: This is referenced to CL_SAL_FUNCTIONS_LIST which will take care of the functions like Sort, Filter, saving locally. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use DATA: lr_aggregations TYPE REF TO cl_salv_aggregations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To handle the subtotals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the following two parameters to handle the layout which will allow user to save their own layout and of course you can assign your own layout to restrict the output fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:      lr_layout TYPE REF TO cl_salv_layout,&lt;/P&gt;&lt;P&gt;             Ls_key    TYPE salv_s_layout_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note, I did not put any code for events like hotspot handle and double click event and etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code. This is very simple program and you have to activate all functions and events and need to write code for layout handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_mara,&lt;/P&gt;&lt;P&gt;       matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;       mbrsh TYPE mbrsh,&lt;/P&gt;&lt;P&gt;       meins TYPE meins,&lt;/P&gt;&lt;P&gt;       END OF t_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  : it_mara TYPE TABLE OF t_mara,&lt;/P&gt;&lt;P&gt;        wa_mara TYPE t_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**SALV&lt;/P&gt;&lt;P&gt;DATA  : gr_table   TYPE REF TO cl_salv_table.&lt;/P&gt;&lt;P&gt;DATA  : gr_functions TYPE REF TO cl_salv_functions_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                        SELECTION_SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_matnr TYPE matnr OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                        AT-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                        START-OF-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM get_data.&lt;/P&gt;&lt;P&gt;  perform salv.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_data .&lt;/P&gt;&lt;P&gt;  SELECT matnr mbrsh meins INTO TABLE it_mara FROM mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  salv&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM salv .&lt;/P&gt;&lt;P&gt;  DATA:      lref TYPE REF TO cx_root .&lt;/P&gt;&lt;P&gt;  DATA:      lr_layout TYPE REF TO cl_salv_layout,&lt;/P&gt;&lt;P&gt;             ls_key    TYPE salv_s_layout_key.&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      cl_salv_table=&amp;gt;factory(&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          r_salv_table   = gr_table&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          t_table        = it_mara ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_msg INTO lref.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Sub Total&lt;/P&gt;&lt;P&gt;  PERFORM sub_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Layout&lt;/P&gt;&lt;P&gt;  lr_layout = gr_table-&amp;gt;get_layout( ).&lt;/P&gt;&lt;P&gt;  ls_key-report = sy-cprog.&lt;/P&gt;&lt;P&gt;  lr_layout-&amp;gt;set_key( ls_key ).&lt;/P&gt;&lt;P&gt;  lr_layout-&amp;gt;set_default( 'X' ).&lt;/P&gt;&lt;P&gt;  lr_layout-&amp;gt;set_save_restriction( if_salv_c_layout=&amp;gt;restrict_none ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***toolbar&lt;/P&gt;&lt;P&gt;  gr_functions = gr_table-&amp;gt;get_functions( ).&lt;/P&gt;&lt;P&gt;  gr_functions-&amp;gt;set_all( 'X' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*final display&lt;/P&gt;&lt;P&gt;  gr_table-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " salv&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_total&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_total .&lt;/P&gt;&lt;P&gt;  DATA: lr_aggregations TYPE REF TO cl_salv_aggregations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lr_aggregations = gr_table-&amp;gt;get_aggregations( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lr_aggregations-&amp;gt;clear( ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;uncomment the following to do subtotals and pass your table field.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     lr_aggregations-&amp;gt;add_aggregation( columnname = 'Z_BALANCE_REM' ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CATCH cx_salv_not_found cx_salv_data_error cx_salv_existing.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     lr_aggregations-&amp;gt;add_aggregation( columnname = 'Z_PAY_AMT' ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CATCH cx_salv_not_found cx_salv_data_error cx_salv_existing.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sub_total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try yourself first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 18:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-reports/m-p/3211735#M765710</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2007-12-07T18:23:33Z</dc:date>
    </item>
  </channel>
</rss>

