Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALVs difference

Former Member
0 Likes
415

Can anybody giev few points, what is difference between normal ALVs and ALV OOPs.

Regards,

Naseer.

2 REPLIES 2
Read only

former_member386202
Active Contributor
0 Likes
392

Hi,

In Normal ALV we use Function mnodule and in OOPs we use classes and methods.

Regards,

Prashant

Read only

Former Member
0 Likes
392

hi,

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

reward points if helpful..