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: 

pf-status in alv reports

Former Member

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

6 REPLIES 6

Former Member
0 Kudos

Hi,

Refer to the following link:

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

Hope this helps.

Reward if helpful.

Regards,

Sipra

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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