<?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 REPORTS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206692#M472136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Just send the mail to my mail id. I will give the ALV material which has the details explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 07:07:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T07:07:06Z</dc:date>
    <item>
      <title>ALV REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206687#M472131</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;ur answers are very helpful and can u say when we go for alv function modules and and alv classes and methods..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206687#M472131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206688#M472132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that entirely depends on what your specs are...........and what ur functional person is looking for&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206688#M472132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206689#M472133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your requirement is to display some&lt;/P&gt;&lt;P&gt;field in ALV grid means, u can go for&lt;/P&gt;&lt;P&gt;ALV Function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if they ask to do edit some thing&lt;/P&gt;&lt;P&gt;in the displayed output means, u can&lt;/P&gt;&lt;P&gt;use class and method concept.&lt;/P&gt;&lt;P&gt;( This type of ALV is called Editable ALV,&lt;/P&gt;&lt;P&gt;Through which we can edit the&lt;/P&gt;&lt;P&gt;records in the output and we can save&lt;/P&gt;&lt;P&gt;it in the database table. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope u got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward for all useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206689#M472133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206690#M472134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple ALV function modules are used when you want to display some data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV classes and objects are used when you want the ALV reports to be interactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use controls&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;General&lt;/P&gt;&lt;P&gt;Synchronization/Flush&lt;/P&gt;&lt;P&gt;Set up event handling for controls&lt;/P&gt;&lt;P&gt;Declare a reference variable before the class has been defined&lt;/P&gt;&lt;P&gt;Set focus to a control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General&lt;/P&gt;&lt;P&gt;Control Framework and enheritance hierarchy&lt;/P&gt;&lt;P&gt;The control framework consists of 2 parts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_CFW contains methods that provide services for communication with the frontend, and can be used both by control wrapper calsses and by control progtrammers &lt;/P&gt;&lt;P&gt;The CL_GUI_OBJECT encapsulates ActiveX or JavaBeans methods, while CL_GUI_CONTROL is responsible for displaying the control on the screen. &lt;/P&gt;&lt;P&gt;CL_GUI_OBJECT -&amp;gt; CL_GUI_CONTROL -&amp;gt; CL_GUI_* (Wrapper class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These classes contains methods that are enherited by subsequent classes in the enheritance tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synchronization/Flush&lt;/P&gt;&lt;P&gt;RFC calls is used to synchronize the front and backend. This synchronization takes palce at some predifined points in the program flow. However you should not rely entirely on automatic synchronization, but force synchronization with the Flush method when necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that the synchronization/RFC calls represenmts a bottleneck, so you should keep the not use the Flush method to a minimum.&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;CALL METHOD cl_gui_cfw=&amp;gt;FLUSH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set up event handling for controls&lt;/P&gt;&lt;P&gt;There are two types of events:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Application events. T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow logic of the screen is processed after the event (The PAI module is processed). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the events table the event must be registred as an application event by setting then field appl_event to 'X':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_events-eventid = cl_gui_textedit=&amp;gt;event_double_click.&lt;/P&gt;&lt;P&gt;wa_events-appl_event = 'X'. &lt;/P&gt;&lt;P&gt;append wa_events to i_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important: The dispatch method of cl_gui_cfw must be called in the PAI module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_cfw=&amp;gt;dispatch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System events. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For system events the flow-logic of the screen is not executed. That means that the PAI and PBO modules are not processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the events table the the field appl_event must be set to SAPCE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_events-eventid = cl_gui_textedit=&amp;gt;event_double_click.&lt;/P&gt;&lt;P&gt;wa_events-appl_event = space. &lt;/P&gt;&lt;P&gt;append wa_events to i_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dispatch method of cl_gui_cfw must NOT be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is presumed that a SAP toolbar control named go_toolbar of class cl_gui_toolbar has been defined. To see a complete example of how to handle events, refer to The SAP toolbar control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1.  Define and instance of the eventhandler class.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     If the event handler class is defined after the data decalaration&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     the class must be declared as DEFERRED in the top of the program:  CLASS cls_event_handler DEFINITION DEFERRED.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  go_event_handler TYPE REF TO cls_event_handler,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;2. Define table for registration of events. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Note that a TYPE REF   to cls_event_handler must be created before you can&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    reference types cntl_simple_events and cntl_simple_event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gi_events TYPE cntl_simple_events,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Workspace for table gi_events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  g_event TYPE cntl_simple_event.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;3. Define and implement eventhandler class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLASS cls_event_handler DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Syntax:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    &amp;lt;method name&amp;gt; FOR EVENT &amp;lt;event of control - see the control documentation&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OF &amp;lt;class of object&amp;gt; &amp;lt;importing parameters l - see the control documentation&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      on_function_selected&lt;/P&gt;&lt;P&gt;        FOR EVENT function_selected OF cl_gui_toolbar&lt;/P&gt;&lt;P&gt;          IMPORTING fcode,&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS cls_event_handler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;   METHOD on_function_selected.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Do something when the event is raised&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;4. Append events to the events table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    The Event Id  can be found in the control documentation. Note that The event below is registred as an application event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; g_event-eventid         = go_toolbar-&amp;gt;m_id_function_selected.&lt;/P&gt;&lt;P&gt; g_event-appl_event   = 'X'.    "This is an application event&lt;/P&gt;&lt;P&gt;APPEND g_event TO gi_events.&lt;/P&gt;&lt;P&gt;.... append more events i necessary...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;5. Use the events table to register events for the control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD go_toolbar-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;           events = gi_events.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;6. Create event handler&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE OBJECT   go_event_handler.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET HANDLER &amp;lt;event handler class&amp;gt; -&amp;gt; &amp;lt;Event handler method&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FOR &amp;lt;control&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET HANDLER go_event_handler-&amp;gt;on_function_selected&lt;/P&gt;&lt;P&gt;      FOR go_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a reference variable before the class has been defined&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_my_class TYPE REF TO lcl_myclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_myclass.....&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will cause an error because the definition of class lcl_myclass is after the declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the class in the beginning of the program with DEFINITION DEFERRED:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_myclass DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_my_class TYPE REF TO lcl_myclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_myclass.....&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set focus to a control&lt;/P&gt;&lt;P&gt;Set the focus to a control named go_grid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_control=&amp;gt;set_focus &lt;/P&gt;&lt;P&gt;  EXPORTING control = go_grid.&lt;/P&gt;&lt;P&gt;                                                                                Good Luck and thanks&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206690#M472134</guid>
      <dc:creator>ashok_kumar24116</dc:creator>
      <dc:date>2007-05-08T07:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206691#M472135</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 to SE37 and type &lt;STRONG&gt;ALV&lt;/STRONG&gt; anf press F4, you will find all the function modules related to ALV..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206691#M472135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REPORTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206692#M472136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Just send the mail to my mail id. I will give the ALV material which has the details explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-reports/m-p/2206692#M472136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:07:06Z</dc:date>
    </item>
  </channel>
</rss>

