Thursday, 4 August 2016

Basic OO-ALV Report ( SE80 )

Steps

Ex :

1.Get the data into internal table.
  • Go to Transaction Code SE80.
  • Select program from Drop-down List.
  • Enter the Program name.

  • Click on Display.
  • Pop-up will appear.
  • Click on Yes.
  • Pop-up will appear.
  • Click on Continue.
  • Enter the Top include name.
  • Click on Continue.
  • Pop-up will appear.
  • Select the Attribute type as a Executable Program.
  • Pop-up will appear.
  • Click on continue.
  • Click on SAVE.
  • Save it either in Local Package or Package.
  • Screen looks like  :  Display Mode.
  • Click on Edit.
  • Double click on Top include ( Global Data ).
  • Click on Save.
  • Click on Back Button.

  • Select the other includes and Press CTRL + > ( to enable the includes ) .
  • Enabled includes.
  • Double click on Process Before Output include.
  • Pop-up will appear.
  • Click on Yes.
  • Pop-up will appear.
  • Click on Save.

  • Save it either in Package or Local Package.
  • Click  on Save.
  • Click on Save button.
  • Click on Back Button.
  • Click on Process After Input include.
  • Pop-up will Appear.
  • Click on Yes.
  • Click on Save.

  • Save it either in Package or Local Package.
  • Click on Save and click on Back button.
  • Repeat step for Form include.
  • Right click on Program Name.
  • Click Activate.
  • Click on Continue.
  • Program will activated.
  • Double click on Top include to Declare the Global Declaration.
  • Enter the Declaration.

  • Double click on Subroutine name.
  • Pop-up will appear.
  • Click on Yes.
  • Pop-up will appear.
  • Click on Form Include and click on Continue.

  • Pop-up will appear.
  • Click on Yes.
  • Enter the Logic.
  • Save -> Check -> Activate.
  • Click on Back Button.


2 .Create a custom control Screen.

  • Call  custom Screen.
  • To create custom screen.
  • Right click on program name -> Create -> Screen.
  • Pop-up will appear.
  • Click on Yes.

  • Pop-up will appear.
  • Enter the screen Number and click on continue.
  • Enter the short description.

  • Click on Layout.
  • Click on Custom Control.
  • Drag the Custom Control.
  • Name the Custom Control.
  • Save -> Check -> Activate.
  • Click on Back.
  • Click Flow Logic.
  • Enable the both Modules.
  • Double click on PBO module.
  • Pop-up will appear.
  • Click on Yes.
  • Select the PBO include and click on continue.
  • Pop-up will appear.
  • Click on continue.
  • Click on Save and click on Back button.
  • Double click on PAI module.
  • Pop-up will appear.
  • Click on Yes.
  • Select the PAI module and click on continue.
  • Click on Save and Click on Back Button.
  • Double click on Top Include.


3 .Create object for CL_GUI_CUSTOM_CONTAINER(pass custom control name) .

  • Declare the Custom Container.
  • Click on Save.
  • Double click on program name.
  • Right click on program name -> click on Active.

  • Double Click on PBO include.
  • Create the object for custom container.
  • Click on Pattern.
  • Pop-up will appear.
  • Click on ABAP Object Pattern and click on Continue.
  • Pop-up will appear.
  • Click on Create Object Radio Button.
  • Enter the instance name as object name of custom container.
  • Enter the Class name.
  • Looks like,
  • Pass the custom Container name.


4.Create object for CL_GUI_ALV_GRID ( pass object of custom container).
  • Similarly , create the object for class CL_GUI_ALV_GRID.
  • Click on Pattern.
  • Pop-up will appear.
  • Click on ABAP object pattern.
  • Click on Continue.
  • Pop-up will appear.
  • Click on Create Object Radio Button.
  • Enter the Instance name as Object name  as well as Class name.
  • Click on Continue.
  • Screen looks like,
  • Pass the Custom Container Object name as Parent name.


5.Call the method SET_TABLE_FOR_FIRST_DISPLAY).
  1. Click on Pattern.
  • Pop-up will appear.
  • Click on ABAP Object Pattern and click on Continue.
  • Pop-up will appear.
  • Click on Create method Radio Button.
  • Enter the instance name , class name and method name.
  • Click on continue.

  • Method looks like,

  • Pass the Global data structure.
  • Pass the internal Table.
  • Enable all Exceptions.
  • Double click on Program name.
  • Pop-up will appear.
  • Click on Yes.

  • Looks like,
  • Right click program name -> Activate.
  • Activate.
  • Click on Execute ( F8 ).
  • Input Screen.

Input

  • Enter the input.
  • Click on Execute .

Output



No comments:

Post a Comment