‎2006 Aug 31 8:06 AM
hi all,
in alv grid i need to add one function code like error. i need to define set pf status.my set pf status i want all function codes in alv grid plus one error code.
in the out put if i click error button on application tool bar it must show error report.
thanks & regards
praveen
‎2006 Aug 31 8:10 AM
‎2006 Aug 31 8:10 AM
Hi Praveen,
You can add buttons to your PF status.
Go to SE41 and give your program name and PF status name and Press F6. There in the Application toolbar you can add Function codes.
Then in your program you need to handle this in User commands. Hope this is helpful.
‎2006 Aug 31 8:12 AM
Hi
U have to create your status gui copying from standard status gui STANDARD_FULLSCREEN of program SAPLKKBL.
After copying it, u add your new code
Max
‎2006 Aug 31 8:12 AM
hi,
Try the following :
Process Flow
Define an event handler method for event TOOLBAR .
Declare a structure for defining a toolbar element:
data: ls_toolbar TYPE stb_button.
For a pushbutton, for example, you would fill the following fields:
CLEAR ls_toolbar.
MOVE 0 TO ls_toolbar-butn_type.
MOVE 'BOOKINGS' TO ls_toolbar-function.
MOVE icon_employee TO ls_toolbar-icon.
MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
MOVE SPACE TO ls_toolbar-disabled.
In the butn_type field, you specify the type of the GUI element for the ALV Grid Control. For possible values, see the value range of domain TB_BTYPE .
Use event parameter E_OBJECT to append the new definition to table mt_toolbar :
APPEND ls_toolbar TO e_object->mt_toolbar.
If you want to define additional elements, go back to step 3.
Call method set_toolbar_interactive, if you want to rebuild the toolbar.Reward if helpful.
Regards