2008 Dec 03 4:15 PM
Hi ,
I have created customized pf status for my report. When I am running the report , pf status is not shown in the result. But when I tested the pf status, it is working . I have passed the exact form name of pf status to the Reuse_alv_grid_display fm.Please explain.
Regards,
Khadeer.
2008 Dec 03 4:46 PM
Hi,
First check your PF status is active or not then Try this way:
CONSTANTS:
c_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
g_form_set_pf_stat TYPE slis_formname VALUE
'SET_PF_STAT_F14'.
FORM build_eventtab USING lt_events TYPE slis_t_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = lt_events.
**Append Top-of-page.
READ TABLE lt_events WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE c_formname_top_of_page TO ls_event-form.
APPEND ls_event TO lt_events.
CLEAR ls_event.
ENDIF.
READ TABLE lt_events WITH KEY name = slis_ev_pf_status_set
INTO ls_event.
IF sy-subrc = 0.
MOVE g_form_set_pf_stat TO ls_event-form.
APPEND ls_event TO lt_events.
CLEAR ls_event.
ENDIF.
ENDFORM. " BUILD_EVENTTAB
Thanks & Regards,
Krishna...
Hi,
First check your PF status is active or not then Try this way:
CONSTANTS:
c_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
g_form_set_pf_stat TYPE slis_formname VALUE
'SET_PF_STAT_F14'.
FORM build_eventtab USING lt_events TYPE slis_t_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = lt_events.
**Append Top-of-page.
READ TABLE lt_events WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE c_formname_top_of_page TO ls_event-form.
APPEND ls_event TO lt_events.
CLEAR ls_event.
ENDIF.
READ TABLE lt_events WITH KEY name = slis_ev_pf_status_set
INTO ls_event.
IF sy-subrc = 0.
MOVE g_form_set_pf_stat TO ls_event-form.
APPEND ls_event TO lt_events.
CLEAR ls_event.
ENDIF.
ENDFORM. " BUILD_EVENTTAB
Thanks & Regards,
Krishna...
2008 Dec 03 4:46 PM
Hi,
First check your PF status is active or not then Try this way:
CONSTANTS:
c_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
g_form_set_pf_stat TYPE slis_formname VALUE
'SET_PF_STAT_F14'.
FORM build_eventtab USING lt_events TYPE slis_t_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = lt_events.
**Append Top-of-page.
READ TABLE lt_events WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE c_formname_top_of_page TO ls_event-form.
APPEND ls_event TO lt_events.
CLEAR ls_event.
ENDIF.
READ TABLE lt_events WITH KEY name = slis_ev_pf_status_set
INTO ls_event.
IF sy-subrc = 0.
MOVE g_form_set_pf_stat TO ls_event-form.
APPEND ls_event TO lt_events.
CLEAR ls_event.
ENDIF.
ENDFORM. " BUILD_EVENTTAB
Thanks & Regards,
Krishna...
2008 Dec 03 4:51 PM
Hello,
First open the function group SALV from se80.
Copy the Gui status 'STANDARD' to ur program with u r own name.
Write in program like
set pf-status 'Zstandard'.
Double click on pf-status and activate.
come back and activate u r program also.
It will work for you.
Thanks,
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |