<?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: Regarding OOABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451182#M829099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Batulla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/OOPS/MainPage.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/OOPS/MainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get examples for OOABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 26, 2008 12:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 11:18:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T11:18:31Z</dc:date>
    <item>
      <title>Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451181#M829098</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 am new to ABAP. Please give me some document and Scenario on ooabap.&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;Anupama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451181#M829098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451182#M829099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Batulla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/OOPS/MainPage.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/OOPS/MainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get examples for OOABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 26, 2008 12:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451182#M829099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451183#M829100</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;&lt;/P&gt;&lt;P&gt;OOABAP is used to develop BSP/PCUI applications and also anything involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.Pls Check your mail which i have sent some use full documentations....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tutorials on Object Oriented Programming[. Link|http://saptechnical.com/Tutorials/OOPS/MainPage.htm] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if u need any help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srini.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451183#M829100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451184#M829101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OOPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOPs ABAP uses Classes and Interfaces which uses Methods and events.&lt;/P&gt;&lt;P&gt;If you have Java skills it is advantage for you.&lt;/P&gt;&lt;P&gt;There are Local classes as well as Global Classes.&lt;/P&gt;&lt;P&gt;Local classes we can work in SE38 straight away.&lt;/P&gt;&lt;P&gt;But mostly it is better to use the Global classes.&lt;/P&gt;&lt;P&gt;Global Classes or Interfaces are to be created in SE24.&lt;/P&gt;&lt;P&gt;SAP already given some predefined classes and Interfaces.&lt;/P&gt;&lt;P&gt;This OOPS concepts very useful for writing BADI's also.&lt;/P&gt;&lt;P&gt;So first create a class in SE 24.&lt;/P&gt;&lt;P&gt;Define attributes, Methods for that class.&lt;/P&gt;&lt;P&gt;Define parameters for that Method.&lt;/P&gt;&lt;P&gt;You can define event handlers also to handle the messages.&lt;/P&gt;&lt;P&gt;After creation in each method write the code.&lt;/P&gt;&lt;P&gt;Methods are similar to ABAP PERFORM -FORM statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the creation of CLass and methods come to SE38 and create the program.&lt;/P&gt;&lt;P&gt;In the program create a object type ref to that class and with the help of that Object call the methods of that Class and display the data.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;REPORT sapmz_hf_alv_grid .&lt;/P&gt;&lt;P&gt;&amp;#149;	Type pool for icons - used in the toolbar &lt;/P&gt;&lt;P&gt;TYPE-POOLS: icon.&lt;/P&gt;&lt;P&gt;TABLES: zsflight.&lt;/P&gt;&lt;P&gt;&amp;#149;	To allow the declaration of o_event_receiver before the &lt;/P&gt;&lt;P&gt;&amp;#149;	lcl_event_receiver class is defined, decale it as deferred in the &lt;/P&gt;&lt;P&gt;&amp;#149;	start of the program &lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	G L O B A L I N T E R N A L T A B L E S &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*DATA: gi_sflight TYPE STANDARD TABLE OF sflight.&lt;/P&gt;&lt;P&gt;&amp;#149;	To include a traffic light and/or color a line the structure of the &lt;/P&gt;&lt;P&gt;&amp;#149;	table must include fields for the traffic light and/or the color &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF st_sflight.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE zsflight.&lt;/P&gt;&lt;P&gt;&amp;#149;	Field for traffic light &lt;/P&gt;&lt;P&gt;TYPES: traffic_light TYPE c.&lt;/P&gt;&lt;P&gt;&amp;#149;	Field for line color &lt;/P&gt;&lt;P&gt;types: line_color(4) type c.&lt;/P&gt;&lt;P&gt;TYPES: END OF st_sflight.&lt;/P&gt;&lt;P&gt;TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.&lt;/P&gt;&lt;P&gt;DATA: gi_sflight TYPE tt_sflight.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	G L O B A L D A T A &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;DATA: ok_code LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;&amp;#149;	Work area for internal table &lt;/P&gt;&lt;P&gt;g_wa_sflight TYPE st_sflight,&lt;/P&gt;&lt;P&gt;&amp;#149;	ALV control: Layout structure &lt;/P&gt;&lt;P&gt;gs_layout TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&amp;#149;	Declare reference variables to the ALV grid and the container &lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;go_grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;go_custom_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;o_event_receiver TYPE REF TO lcl_event_receiver.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;#149;	Work area for screen 200 &lt;/P&gt;&lt;P&gt;g_screen200 LIKE zsflight.&lt;/P&gt;&lt;P&gt;&amp;#149;	Data for storing information about selected rows in the grid &lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;#149;	Internal table &lt;/P&gt;&lt;P&gt;gi_index_rows TYPE lvc_t_row,&lt;/P&gt;&lt;P&gt;&amp;#149;	Information about 1 row &lt;/P&gt;&lt;P&gt;g_selected_row LIKE lvc_s_row.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	C L A S S E S &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_object e_interactive,&lt;/P&gt;&lt;P&gt;handle_user_command FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;IMPORTING e_ucomm.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	CLASS lcl_event_receiver IMPLEMENTATION &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD handle_toolbar.&lt;/P&gt;&lt;P&gt;&amp;#149;	Event handler method for event toolbar. &lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;&amp;#149;	Constants for button type &lt;/P&gt;&lt;P&gt;c_button_normal TYPE i VALUE 0,&lt;/P&gt;&lt;P&gt;c_menu_and_default_button TYPE i VALUE 1,&lt;/P&gt;&lt;P&gt;c_menu TYPE i VALUE 2,&lt;/P&gt;&lt;P&gt;c_separator TYPE i VALUE 3,&lt;/P&gt;&lt;P&gt;c_radio_button TYPE i VALUE 4,&lt;/P&gt;&lt;P&gt;c_checkbox TYPE i VALUE 5,&lt;/P&gt;&lt;P&gt;c_menu_entry TYPE i VALUE 6.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;ls_toolbar TYPE stb_button.&lt;/P&gt;&lt;P&gt;&amp;#149;	Append seperator to the normal toolbar &lt;/P&gt;&lt;P&gt;CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;MOVE c_separator TO ls_toolbar-butn_type..&lt;/P&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&amp;#149;	Append a new button that to the toolbar. Use E_OBJECT of &lt;/P&gt;&lt;P&gt;&amp;#149;	event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET. &lt;/P&gt;&lt;P&gt;&amp;#149;	This class has one attribute MT_TOOLBAR which is of table type &lt;/P&gt;&lt;P&gt;&amp;#149;	TTB_BUTTON. The structure is STB_BUTTON &lt;/P&gt;&lt;P&gt;CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;MOVE 'CHANGE' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;MOVE icon_change TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;MOVE 'Change flight' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;MOVE 'Change' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;MOVE ' ' TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD handle_user_command.&lt;/P&gt;&lt;P&gt;&amp;#149;	Handle own functions defined in the toolbar &lt;/P&gt;&lt;P&gt;CASE e_ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;PERFORM change_flight.&lt;/P&gt;&lt;P&gt;&amp;#149;	LEAVE TO SCREEN 0. &lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	S T A R T - O F - S E L E C T I O N. &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;SET SCREEN '100'.&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module STATUS_0100 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;&amp;#149;	For parameter IS_VARIANT that is sued to set up options for storing &lt;/P&gt;&lt;P&gt;&amp;#149;	the grid layout as a variant in method set_table_for_first_display &lt;/P&gt;&lt;P&gt;l_layout TYPE disvariant,&lt;/P&gt;&lt;P&gt;&amp;#149;	Utillity field &lt;/P&gt;&lt;P&gt;l_lines TYPE i.&lt;/P&gt;&lt;P&gt;&amp;#149;	After returning from screen 200 the line that was selected before &lt;/P&gt;&lt;P&gt;&amp;#149;	going to screen 200, should be selected again. The table gi_index_rows &lt;/P&gt;&lt;P&gt;&amp;#149;	was the output table from the GET_SELECTED_ROWS method in form &lt;/P&gt;&lt;P&gt;&amp;#149;	CHANGE_FLIGHT &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE gi_index_rows LINES l_lines.&lt;/P&gt;&lt;P&gt;IF l_lines &amp;gt; 0.&lt;/P&gt;&lt;P&gt;CALL METHOD go_grid-&amp;gt;set_selected_rows&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;it_index_rows = gi_index_rows.&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;REFRESH gi_index_rows.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read data and create objects &lt;/P&gt;&lt;P&gt;IF go_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read data from datbase table &lt;/P&gt;&lt;P&gt;PERFORM get_data.&lt;/P&gt;&lt;P&gt;&amp;#149;	Create objects for container and ALV grid &lt;/P&gt;&lt;P&gt;CREATE OBJECT go_custom_container&lt;/P&gt;&lt;P&gt;EXPORTING container_name = 'ALV_CONTAINER'.&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = go_custom_container.&lt;/P&gt;&lt;P&gt;&amp;#149;	Create object for event_receiver class &lt;/P&gt;&lt;P&gt;&amp;#149;	and set handlers &lt;/P&gt;&lt;P&gt;CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR go_grid.&lt;/P&gt;&lt;P&gt;SET HANDLER o_event_receiver-&amp;gt;handle_toolbar FOR go_grid.&lt;/P&gt;&lt;P&gt;&amp;#149;	Layout (Variant) for ALV grid &lt;/P&gt;&lt;P&gt;l_layout-report = sy-repid. "Layout fo report&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	Setup the grid layout using a variable of structure lvc_s_layo &lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	Set grid title &lt;/P&gt;&lt;P&gt;gs_layout-grid_title = 'Flights'.&lt;/P&gt;&lt;P&gt;&amp;#149;	Selection mode - Single row without buttons &lt;/P&gt;&lt;P&gt;&amp;#149;	(This is the default mode &lt;/P&gt;&lt;P&gt;gs_layout-sel_mode = 'B'.&lt;/P&gt;&lt;P&gt;&amp;#149;	Name of the exception field (Traffic light field) and the color &lt;/P&gt;&lt;P&gt;&amp;#149;	field + set the exception and color field of the table &lt;/P&gt;&lt;P&gt;gs_layout-excp_fname = 'TRAFFIC_LIGHT'.&lt;/P&gt;&lt;P&gt;gs_layout-info_fname = 'LINE_COLOR'.&lt;/P&gt;&lt;P&gt;LOOP AT gi_sflight INTO g_wa_sflight.&lt;/P&gt;&lt;P&gt;IF g_wa_sflight-paymentsum &amp;lt; 100000.&lt;/P&gt;&lt;P&gt;&amp;#149;	Value of traffic light field &lt;/P&gt;&lt;P&gt;g_wa_sflight-traffic_light = '1'.&lt;/P&gt;&lt;P&gt;&amp;#149;	Value of color field: &lt;/P&gt;&lt;P&gt;&amp;#149;	C = Color, 6=Color 1=Intesified on, 0: Inverse display off &lt;/P&gt;&lt;P&gt;g_wa_sflight-line_color = 'C610'.&lt;/P&gt;&lt;P&gt;ELSEIF g_wa_sflight-paymentsum =&amp;gt; 100000 AND&lt;/P&gt;&lt;P&gt;g_wa_sflight-paymentsum &amp;lt; 1000000.&lt;/P&gt;&lt;P&gt;g_wa_sflight-traffic_light = '2'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;g_wa_sflight-traffic_light = '3'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY gi_sflight FROM g_wa_sflight.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;#149;	Grid setup for first display &lt;/P&gt;&lt;P&gt;CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;is_variant = l_layout&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;is_layout = gs_layout&lt;/P&gt;&lt;P&gt;CHANGING it_outtab = gi_sflight.&lt;/P&gt;&lt;P&gt;&amp;#149;	&lt;/P&gt;&lt;P&gt;o	&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	End of grid setup &lt;/P&gt;&lt;P&gt;________________________________________&lt;/P&gt;&lt;P&gt;&amp;#149;	Raise event toolbar to show the modified toolbar &lt;/P&gt;&lt;P&gt;CALL METHOD go_grid-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;P&gt;&amp;#149;	Set focus to the grid. This is not necessary in this &lt;/P&gt;&lt;P&gt;&amp;#149;	example as there is only one control on the screen &lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_control=&amp;gt;set_focus EXPORTING control = go_grid.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE. " STATUS_0100 OUTPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_0200 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;MODULE user_command_0200 INPUT.&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT200'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 100.&lt;/P&gt;&lt;P&gt;WHEN'SAVE'.&lt;/P&gt;&lt;P&gt;PERFORM save_changes.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_0200 INPUT&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form get_data&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;FORM get_data.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read data from table SFLIGHT &lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM zsflight&lt;/P&gt;&lt;P&gt;INTO TABLE gi_sflight.&lt;/P&gt;&lt;P&gt;ENDFORM. " load_data_into_grid&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form change_flight&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	Reads the contents of the selected row in the grid, ans transfers &lt;/P&gt;&lt;P&gt;&amp;#149;	the data to screen 200, where it can be changed and saved. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;FORM change_flight.&lt;/P&gt;&lt;P&gt;DATA:l_lines TYPE i.&lt;/P&gt;&lt;P&gt;REFRESH gi_index_rows.&lt;/P&gt;&lt;P&gt;CLEAR g_selected_row.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read index of selected rows &lt;/P&gt;&lt;P&gt;CALL METHOD go_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_index_rows = gi_index_rows.&lt;/P&gt;&lt;P&gt;&amp;#149;	Check if any row are selected at all. If not &lt;/P&gt;&lt;P&gt;&amp;#149;	table gi_index_rows will be empty &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE gi_index_rows LINES l_lines.&lt;/P&gt;&lt;P&gt;IF l_lines = 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;textline1 = 'You must choose a line'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read indexes of selected rows. In this example only one &lt;/P&gt;&lt;P&gt;&amp;#149;	row can be selected as we are using gs_layout-sel_mode = 'B', &lt;/P&gt;&lt;P&gt;&amp;#149;	so it is only ncessary to read the first entry in &lt;/P&gt;&lt;P&gt;&amp;#149;	table gi_index_rows &lt;/P&gt;&lt;P&gt;LOOP AT gi_index_rows INTO g_selected_row.&lt;/P&gt;&lt;P&gt;IF sy-tabix = 1.&lt;/P&gt;&lt;P&gt;READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;#149;	Transfer data from the selected row to screenm 200 and show &lt;/P&gt;&lt;P&gt;&amp;#149;	screen 200 &lt;/P&gt;&lt;P&gt;CLEAR g_screen200.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING g_wa_sflight TO g_screen200.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN '200'.&lt;/P&gt;&lt;P&gt;ENDFORM. " change_flight&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form save_changes&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;#149;	Changes made in screen 200 are written to the datbase table &lt;/P&gt;&lt;P&gt;&amp;#149;	zsflight, and to the grid table gi_sflight, and the grid is &lt;/P&gt;&lt;P&gt;&amp;#149;	updated with method refresh_table_display to display the changes &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;FORM save_changes.&lt;/P&gt;&lt;P&gt;DATA: l_traffic_light TYPE c.&lt;/P&gt;&lt;P&gt;&amp;#149;	Update traffic light field &lt;/P&gt;&lt;P&gt;&amp;#149;	Update database table &lt;/P&gt;&lt;P&gt;MODIFY zsflight FROM g_screen200.&lt;/P&gt;&lt;P&gt;&amp;#149;	Update grid table , traffic light field and color field. &lt;/P&gt;&lt;P&gt;&amp;#149;	Note that it is necessary to use structure g_wa_sflight &lt;/P&gt;&lt;P&gt;&amp;#149;	for the update, as the screen structure does not have a &lt;/P&gt;&lt;P&gt;&amp;#149;	traffic light field &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING g_screen200 TO g_wa_sflight.&lt;/P&gt;&lt;P&gt;IF g_wa_sflight-paymentsum &amp;lt; 100000.&lt;/P&gt;&lt;P&gt;g_wa_sflight-traffic_light = '1'.&lt;/P&gt;&lt;P&gt;&amp;#149;	C = Color, 6=Color 1=Intesified on, 0: Inverse display off &lt;/P&gt;&lt;P&gt;g_wa_sflight-line_color = 'C610'.&lt;/P&gt;&lt;P&gt;ELSEIF g_wa_sflight-paymentsum =&amp;gt; 100000 AND&lt;/P&gt;&lt;P&gt;g_wa_sflight-paymentsum &amp;lt; 1000000.&lt;/P&gt;&lt;P&gt;g_wa_sflight-traffic_light = '2'.&lt;/P&gt;&lt;P&gt;clear g_wa_sflight-line_color.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;g_wa_sflight-traffic_light = '3'.&lt;/P&gt;&lt;P&gt;clear g_wa_sflight-line_color.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY gi_sflight INDEX g_selected_row-index FROM g_wa_sflight.&lt;/P&gt;&lt;P&gt;&amp;#149;	Refresh grid &lt;/P&gt;&lt;P&gt;CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN '100'.&lt;/P&gt;&lt;P&gt;ENDFORM. " save_changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this blog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451184#M829101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451185#M829102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451185#M829102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451186#M829103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOABAP: it is basically an object oriented programing we have to touch the c and c++ for it.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; OOABAP is Object oriented advanced business application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOPs ABAP uses Classes and Interfaces which uses Methods and events.&lt;/P&gt;&lt;P&gt;If you have Java skills it is advantage for you.&lt;/P&gt;&lt;P&gt;There are Local classes as well as Global Classes.&lt;/P&gt;&lt;P&gt;Local classes we can work in SE38 straight away.&lt;/P&gt;&lt;P&gt;But mostly it is better to use the Global classes.&lt;/P&gt;&lt;P&gt;Global Classes or Interfaces are to be created in SE24.&lt;/P&gt;&lt;P&gt;SAP already given some predefined classes and Interfaces.&lt;/P&gt;&lt;P&gt;This OOPS concepts very useful for writing BADI's also.&lt;/P&gt;&lt;P&gt;So first create a class in SE 24.&lt;/P&gt;&lt;P&gt;Define attributes, Methods for that class.&lt;/P&gt;&lt;P&gt;Define parameters for that Method.&lt;/P&gt;&lt;P&gt;You can define event handlers also to handle the messages.&lt;/P&gt;&lt;P&gt;After creation in each method write the code.&lt;/P&gt;&lt;P&gt;Methods are similar to ABAP PERFORM -FORM statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the creation of CLass and methods come to SE38 and create the program.&lt;/P&gt;&lt;P&gt;In the program create a object type ref to that class and with the help of that Object call the methods of that Class and display the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the link.&lt;/P&gt;&lt;P&gt;/message/4881852#4881852 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;sowjanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451186#M829103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451187#M829104</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;It can be regarded as instruction for building an Object&lt;/P&gt;&lt;P&gt;The type of an object is known as its Class&lt;/P&gt;&lt;P&gt;Abstract description of an object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes contain components which describe state and behavior of an object.&lt;/P&gt;&lt;P&gt;Global classes can be defined using SE24(Class Builder) and local classes using SE38&lt;/P&gt;&lt;P&gt;Note : Instance of a Class is called Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Components of Class can be :&lt;/P&gt;&lt;P&gt;Attributes &lt;/P&gt;&lt;P&gt;Methods &lt;/P&gt;&lt;P&gt;Events &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declaration part can be divided  into three sections namely&lt;/P&gt;&lt;P&gt;PUBLIC SECTION, PROTECTED SECTION and PRIVATE SECTION&lt;/P&gt;&lt;P&gt;which controls the visibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each component of class must be explicitly assigned to one of these three&lt;/P&gt;&lt;P&gt;visibility sections&lt;/P&gt;&lt;P&gt;PUBLIC SECTION : The components in this section are visible to everybody, i.e. users, its own methods and its subclasses.&lt;/P&gt;&lt;P&gt;    Therefore, public components form the external interface between the class and its users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROTECTED SECTION :  The components are visible to the methods of the class and its subclasses.&lt;/P&gt;&lt;P&gt;    Therefore, it forms a special interface between the class and its subclasses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRIVATE SECTION : Here, components are only visible to its own method.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;A section may or may not be present, but whatever sections are present they should come in the same above order.&lt;/P&gt;&lt;P&gt;Also, these three sections form the basis for Encapsulation, which is one of the Buiding Blocks of the OOPS Design&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something more in next mail &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 12:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ooabap/m-p/3451187#M829104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T12:37:57Z</dc:date>
    </item>
  </channel>
</rss>

