cancel
Showing results for 
Search instead for 
Did you mean: 

Alv's and oops

Former Member
0 Kudos

Hi everybody,

in an alv report if i use classical event top-of-page and alv event top-of-page-form so which event will trigger first.

2) in wht way using oops is better than alv FModules.

3) wht is the meaning of cheaper to maintain.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

ALV oops have advantages rather than alv fm's.

using oops we can easily do calculation through methods.

In ALV we cannot place grids on screens but in OOALV we can place grids on screens.

we can insert logos in OOPS ALV.

see the code below

for displaying LOGO in ALV GRID CONTROL, we work with

Predefined global class. CL_GUI_ALV_TREE_SIMPLE. FOR

displaying LOGO. AND we use CL_GUI_CUSTOM_CONTAINTER for

identifies the location where we r goinh to display.

DECLARATIONS;

TYPE-POOLS: SDYDO, SLIS.

DATA: L_LOGO TYPE SDYDO_VALUE," FOR DISPLAYING LOGO

L_LIST TYPE SLIS_T_LISTHEADER. " FOR LIST HEADING

DATA: LOGO TYPE SCRFNAME VALUE 'SLOGO',

CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,

LOGO1 TYPE REF TO CL_GUI_ALV_TREE_SIMPLE.

    • CREATE INSTANCE FOR ABOVE DEFINED CLASSES IN PBO EVENT

OF SCREEN FLOW LOGIC.

IF CONTAINER IS INITIAL.

CREATE OBJECT CONTAINER EXPORTING CONTAINER_NAME =

LOGO.

CREATE OBJECT LOGO1 EXPORTING I_PARENT = CONTAINER.

      • NOW CALL THE METHOD FOR DISPLAYING LOGO IN GRID CONTROL

CALL METHOD LOGO->'CREATE_REPORT_HEADER'

EXPORTING

I_LIST_COMMENTARY = L_LIST

I_LOGO = ' ' " HERE PASS WHERE LOGO EXISTING.

THE ABOVE METHOD EXISTING

Former Member
0 Kudos

Hi Satish,

You can go through below links for OOPs ALV.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf

http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

Former Member
0 Kudos

Thanks vibha,

thank you for sending alv oops notes.

i need an answer releted to my question.