Skip to Content
author's profile photo Former Member
Former Member

alv oops concept

hi all,

can any one send me material to learn alv oops concept

thank you

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2007 at 05:21 AM

    chk these programs

    BCALV_GRID_01

    BCALV_GRID_02

    BCALV_GRID_03

    BCALV_GRID_04

    BCALV_GRID_05

    BCALV_GRID_06

    BCALV_GRID_07

    BCALV_GRID_08

    BCALV_GRID_09

    BCALV_GRID_10

    BCALV_GRID_11

    BCALV_GRID_AND_POPUP

    BCALV_GRID_DEMO

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2007 at 04:33 PM

    Hi,

    Sample programs:

    http://www.geocities.com/victorav15/sapr3/abap_ood.html#d_grid

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm

    http://www.sapdevelopment.co.uk/reporting/alvhome.htm

    -->download the PDF from following link.

    www.abap4.it/download/ALV.pdf>

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

    Some more:

    http://www.sap-hefte.de/download/dateien/1025/087_leseprobe.pdf

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907

    http://www.alvgmbh.de/dwnload/gonio_t.pdfhttp://

    You can get all demo programs for ALV:

    Go to se38 and type BCALV* and press F4 for all demo porgrams.

    <b>a basic sample program:</b>

    In your screen,you should create a control area for the custom controller and name it as 'CONTAINER'.

    REPORT SAMPLE.

    DATA: alv type ref to cl_gui_alv_GRID,

    cont type ref to cl_gui_custom_container,

    itab_spfli type table of spfli,

    ok_code type sy-ucomm.

    START-OF-SELECTION.

    select * from spfli into table itab_spfli.

    call screen 100.

    END-OF-SELECTION.

    &----


    *& Module STATUS_0100 OUTPUT

    &----


    • text

    ----


    MODULE STATUS_0100 OUTPUT.

    seT PF-STATUS 'GUI'.

    • SET TITLEBAR 'xxx'.

    if cont is initial.

    CREATE OBJECT cont

    EXPORTING

    CONTAINER_NAME = 'CONTAINER'.

    CREATE OBJECT ALV

    EXPORTING

    I_PARENT = CONT.

    CALL METHOD ALV->SET_TABLE_FOR_FIRST_DISPLAY

    EXPORTING

    • I_BUFFER_ACTIVE =

    • I_BYPASSING_BUFFER =

    • I_CONSISTENCY_CHECK =

    I_STRUCTURE_NAME = 'SPFLI'

    • IS_VARIANT =

    • I_SAVE =

    • I_DEFAULT =

    • IS_LAYOUT =

    • IS_PRINT =

    • IT_SPECIAL_GROUPS =

    • IT_TOOLBAR_EXCLUDING =

    • IT_HYPERLINK =

    • IT_ALV_GRAPHICS =

    • IT_EXCEPT_QINFO =

    • IR_SALV_ADAPTER =

    CHANGING

    IT_OUTTAB = itab_spfli

    • IT_FIELDCATALOG =

    • IT_SORT =

    • IT_FILTER =

    • EXCEPTIONS

    • INVALID_PARAMETER_COMBINATION = 1

    • PROGRAM_ERROR = 2

    • TOO_MANY_LINES = 3

    • others = 4

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ENDIF.

    ENDMODULE. " STATUS_0100 OUTPUT

    &----


    *& Module USER_COMMAND_0100 INPUT

    &----


    • text

    ----


    MODULE USER_COMMAND_0100 INPUT.

    case ok_code.

    when 'BACK'.

    leave to screen 0.

    when 'EXIT'.

    leave to screen 0.

    when 'SAVE'.

    MODIFY spfli from table itab_spfli.

    ENDCASE.

    Regards,

    Beejal

    **Reward if this helps

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.