06-16-2017 11:52 AM
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.
06-16-2017 1: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.
06-16-2017 12:03 PM
Do you really expect anyone to read that?
Please use code formatting when posting code.
06-16-2017 12:27 PM
06-16-2017 1: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.
06-16-2017 1: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.
06-16-2017 9:53 PM
All this is not important if we understand what is discussed, here it's clearly CL_GUI_ALV_GRID as shown in the code.
06-16-2017 10:21 PM
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.
06-16-2017 9: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.