Skip to Content

PF-STATUS doesn't work on oop ALV, and PF-STATUS doesn't work on the POPUP ALV

dears,

when i execute the program below, the application tools doesn't work. i only could use'back','cancel','exit', and when i double click and popup a new window with another alv, the PF-STATUS doesn't work also, and the 'close' button doesn't work also.

pic2.png (61.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jun 16, 2017 at 12:22 PM

    I can't be bothered to go through the lines and lines of code you have posted. try posting just the relevant bits.

    However, if you have created a pf-status and are not using the toolbar provided by the ALV object, then this is why your code is not working.

    ty_lay1-no_toolbar ='X'.

    Use the standard ALV grid toolbar.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 16, 2017 at 12:42 PM

    This is not really "OOP ALV", this is the classic ALV. Also FORM statements are obsolete.

    I would highly recommend going through the SALV documentation and sample programs. SALV is the 'new' (only 10 years old) OO ALV.

    Add comment
    10|10000 characters needed characters exceeded

    • Fair comments, yes the 'old' ALV also contains some classes, but I am used to people calling SALV "OO ALV" on SCN. Personally I still view CL_GUI stuff it as a mixture of OO and procedural ABAP.

      I also avoided calling it old because I didn't want to imply that it's obsolete. Maybe one day when we get editable SALV it will finally be obsolete.

  • Jun 16, 2017 at 08:59 PM

    You can't have the ALV toolbar in the application toolbar with the ALV grid control.

    What you want to do is a full screen ALV (standard application toolbar), and a popup ALV, you can do both of them using the CL_SALV_TABLE class.
    Add comment
    10|10000 characters needed characters exceeded