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

pf-status in alv reports

hi friends,

how can i set pf-status in alv report.i want to use some buttons and whn i press on those buttons.i want some event to be executed

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 12:57 PM

    Best one is copy SAP Standard PF status into ur program status.

    Use SE41 Transaction.

    SAP Standard PF Status - use BCALV* you will have so many programs.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 12:56 PM

    Hi,

    Refer to the following link:

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm

    Hope this helps.

    Reward if helpful.

    Regards,

    Sipra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 12:59 PM

    U copy one standard PF Status from any of the Standard ALV report to ur report. Then u can change that PF Status

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 01:01 PM

    1.

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    I_CALLBACK_PROGRAM = W_REPID

    <b> I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'</b>

    2.

    FORM <b>PF_STATUS</b> using RT_EXTAB TYPE SLIS_T_EXTAB.

    SET PF-STATUS 'STANDARD1' EXCLUDING RT_EXTAB.

    ENDFORM. "PF_STATUS

    3.

    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

    P_SELFLD TYPE SLIS_SELFIELD.

    DATA : L_REP_MODE. "report mode

    CASE P_UCOMM.

    ENDCASE.

    ENDFORM.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 01:10 PM

    hi,

    data : gd_repid like sy-repid.

    gd_repid = sy-repid.

    we can call pf-status in a function module reuse_alv_grid_display.

    exporting.

    programme = gd_repid.

    set-pf-status = 'SET_PF_STATUS'.

    t_fieldcat = d_fieldcat.

    importing.

    t_outtab = itab.

    exceptions.

    form set_pf_status using rt_extab type slis_t_extab.

    SET PF-STATUS 'NEWSTATUS'.

    endform.

    double click on NEWSTATUS.it will take u to new window where in u can include buttons which u require to appear on the report after selecting activate.

    Reward with points if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2007 at 01:22 PM

    hi simhadri,

    use this standard one

    1)goto se80

    2)open function group SALV

    3) In that STANDARD gui-status will be there.

    4)right click on that and ther is option of copy

    5)just copy it and save it with ur name 'status_name'.

    6) now in ur program SET PF-STATUS '(status_name)'.

    7)don't forget to active it again

    regards

    vijay dwivedi

    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.