Skip to Content
author's profile photo Former Member
Former Member

REUSE_ALV_LIST_DISPLAY query

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2009 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2009 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.