08-15-2009 3:54 AM
Hi,,,
Im using REUSE_ALV_LIST_DISPLAY and i need to display a button 'PRINT RECEIPT' that can trigger a smartform for printing purposes.
i create a pf-status 'MENU' but i dont know how to display the button....
AT END OF PERNR.
GV_PERNR = GS_OUTTAB-PERNR.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT
IT_EVENTS = GT_EVENTS
TABLES
T_OUTTAB = LT_OUTTAB2
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Can you please help me.
Thank you
08-15-2009 11:23 AM
You can set your own PF status by setting the user defined status to the FM parameter: SET_PF_STATUS..
You can copy the status: STANDARD from SALV package and add your own buttons/delete own buttons
Hope this helps
Regards
Shiva
Edited by: Shiva Kumar Tirumalasetty on Aug 15, 2009 3:54 PM
08-15-2009 6:01 AM
Hi,
Please have alook at the link
Link: [Own PF in Lis|http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm]
Regards,
Himanshu
08-15-2009 11:23 AM
You can set your own PF status by setting the user defined status to the FM parameter: SET_PF_STATUS..
You can copy the status: STANDARD from SALV package and add your own buttons/delete own buttons
Hope this helps
Regards
Shiva
Edited by: Shiva Kumar Tirumalasetty on Aug 15, 2009 3:54 PM