05-28-2007 1:54 PM
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
05-28-2007 1: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
05-28-2007 1: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.
05-28-2007 1: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
05-28-2007 2: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.
05-28-2007 2: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.
05-28-2007 2: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