<?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 Screen programming and ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978056#M1340360</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;I have screen 9000 which consists of a few input fields. Once entered, in PAI, it will PERFORM print_report which will return an ALV report ( CL_SALV_TABLE ). When I click 'BACK' from the ALV, it will process the PBO of standard program SAPLSLVC_FULLSCREEN which will bring me back to the screen before 9000. How do I force it not to load to this standard program PBO but to take my own coded MODULE USER_STATUS_9000? What I need is, to go back to screen 9000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2009 03:31:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-05T03:31:05Z</dc:date>
    <item>
      <title>Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978056#M1340360</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;I have screen 9000 which consists of a few input fields. Once entered, in PAI, it will PERFORM print_report which will return an ALV report ( CL_SALV_TABLE ). When I click 'BACK' from the ALV, it will process the PBO of standard program SAPLSLVC_FULLSCREEN which will bring me back to the screen before 9000. How do I force it not to load to this standard program PBO but to take my own coded MODULE USER_STATUS_9000? What I need is, to go back to screen 9000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 03:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978056#M1340360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T03:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978057#M1340361</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;Please set the PF status BACK button and write the logic in the PAI event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case:&lt;/P&gt;&lt;P&gt;when 'BACK':&lt;/P&gt;&lt;P&gt;     call your perform statment.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the above method will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 05:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978057#M1340361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T05:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978058#M1340362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean I only show my ALV report upon clicking BACK? That's not what I want. I need to show the ALV right after user enter info on screen 9000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 05:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978058#M1340362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T05:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978059#M1340363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no u can call your alv on the click of F8 or execute on screen 9000 but u have to set the back button on the screen on  which alv is displaying. In case of more clarification paste your code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 06:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978059#M1340363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T06:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978060#M1340364</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;Create a PF status  including a back button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are using the class CL_SALV_TABLE, by using the method SET_SCREEN_STATUS of this class you can set the PF status for your alv display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create an object for handling the events.&lt;/P&gt;&lt;P&gt;Implement the class for handling user commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below code snippet. i may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_table-&amp;gt;set_screen_status(
          pfstatus      =  'PF_STATUS'
          report        =  sy-repid
          set_functions = it_table-&amp;gt;c_functions_all ).

*     Events for navigation through hotspot
        DATA: o_event TYPE REF TO cl_salv_events_table.

o_event = it_table-&amp;gt;get_event( ).

        CREATE OBJECT o_events.

*     Register to the event USER_COMMAND
        SET HANDLER o_events-&amp;gt;on_user_command FOR o_event.


*---------------------------------------------------------------------*
* CLASS cl_handle_events DEFINITION
*---------------------------------------------------------------------*
* Define a local class for handling events of cl_salv_table
*---------------------------------------------------------------------*
CLASS cl_handle_events DEFINITION.
  PUBLIC SECTION.

    METHODS:

      "Method for performing user defined function.
      on_user_command FOR EVENT added_function OF cl_salv_events
                                       IMPORTING e_salv_function,

ENDCLASS.                    "lcl_handle_events DEFINITION


*---------------------------------------------------------------------*
*       CLASS lcl_handle_events IMPLEMENTATION
*---------------------------------------------------------------------*
* Implement the events for handling the events of cl_salv_table
*---------------------------------------------------------------------*
CLASS cl_handle_events IMPLEMENTATION.
  METHOD on_user_command.
*   Subroutine for fetching rental data of selected rows.
    PERFORM handle_user_command USING e_salv_function.

  ENDMETHOD.                    "on_user_command


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  HANDLE_USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       Subroutine to handle user command
*----------------------------------------------------------------------*
FORM handle_user_command  USING  i_ucomm TYPE salv_de_function.

* Check for SY-UCOMM (User Command)
  CASE i_ucomm.
   
    WHEN c_back OR c_exit OR c_canc.
      SET SCREEN 0.
      LEAVE SCREEN.
  ENDCASE.

ENDFORM.                    " HANDLE_USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of any further clarifications, please don't hesitate to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tulasi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tulasi Deepthi on Aug 5, 2009 11:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 06:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978060#M1340364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T06:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978061#M1340365</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;Please copy and paste the code and will help me to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 06:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978061#M1340365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T06:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978062#M1340366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, following the the Form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM PRINT_REPORT .

  types: BEGIN of ty_content,
         total TYPE i,
         END OF ty_content.

  data: it_display type ref to cl_salv_table,
        it_content type STANDARD TABLE OF ty_content,
        wa_content LIKE LINE OF it_content,
        gr_columns type ref to cl_salv_columns_table,
        gr_column type ref to cl_salv_column_table.

 CLEAR: wa_content, it_content.

        wa_content-total = ct_flag.
        APPEND wa_content TO it_content.

  cl_salv_table=&amp;gt;factory( importing r_salv_table = it_display changing t_table = it_content ).

gr_columns = it_display-&amp;gt;get_columns( ).
gr_columns-&amp;gt;set_optimize( 'X' ).
gr_column ?= gr_columns-&amp;gt;get_column( 'TOTAL' ).
gr_column-&amp;gt;set_long_text( 'Total number of contacts created:' ).


  it_display-&amp;gt;display( ).

ENDFORM.                    " PRINT_REPORT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 09:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978062#M1340366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T09:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978063#M1340367</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;Please do copy the code what you have written in your pbo and pai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 10:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978063#M1340367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-05T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978064#M1340368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have made changes to the design of my program and no longer needs 2 screens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 11:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-and-alv/m-p/5978064#M1340368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T11:10:45Z</dc:date>
    </item>
  </channel>
</rss>

