Application Development and Automation 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: 
Read only

pf status

Former Member
0 Likes
414

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
375

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...

2 REPLIES 2
Read only

Former Member
0 Likes
376

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...

Read only

tarangini_katta
Active Contributor
0 Likes
375

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,