Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

REUSE_ALV_LIST_DISPLAY query

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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