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

form routine?

Former Member
0 Likes
1,009


  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      i_callback_program       = sy-repid
      i_structure_name         =
      i_callback_user_command  = 'USER_COMMAND'
      i_callback_pf_status_set = 'SET_PF_STATUS'
    TABLES
      t_outtab                 =
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.

  IF sy-subrc <> 0.
  ENDIF.

we can't double click on 'SET_PF_STATUS', for genarateing form routine

we can't genarate the following code and we shouldn't write the perform statement for 'SET_PF_STATUS',

then how the following coloured code will genarate.

*&-----------------------------------------------------------------*
*&      Form  SET_PF_STATUS
*&-----------------------------------------------------------------*
*       Setting custom PF-Status
*------------------------------------------------------------------*
*      -->VT_ETAB   Excluding table
*------------------------------------------------------------------*
FORM set_pf_status USING vt_etab TYPE slis_t_extab.
  SET PF-STATUS 'Zpf'.
ENDFORM.                    "SET_PF_STATUS
1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
973

Did you try SE38 pattern and/or pretty-printer options.

Regards,

Raymond

9 REPLIES 9
Read only

Former Member
0 Likes
973

Hello,

when you write      i_callback_pf_status_set = 'SET_PF_STATUS'.

this means: this is the perform part. this is the actual parameter.......

when
'REUSE_ALV_LIST_DISPLAY' fm is triggered then it automatiacally triggered the actual paramater...when actual parameter triggerd then it find its processing block means form.....endform  part.........

Thanks

Sabyasachi

Read only

0 Likes
973

i have seen in one website in alv program beore 'form' the following lines are there how it is possible

*&-----------------------------------------------------------------*

*&      Form  SET_PF_STATUS

*&-----------------------------------------------------------------*

*       Setting custom PF-Status

*------------------------------------------------------------------*

*      -->VT_ETAB   Excluding table

*------------------------------------------------------------------*

Form  SET_PF_STATUS using VT_ETAB type slis_t_extab.

----------------

---------------

----------------

--------------

endform.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
974

Did you try SE38 pattern and/or pretty-printer options.

Regards,

Raymond

Read only

0 Likes
973

*&-----------------------------------------------------------------*

*&      Form  SET_PF_STATUS

*&-----------------------------------------------------------------*

*       Setting custom PF-Status

*------------------------------------------------------------------*

*      -->VT_ETAB   Excluding table

*------------------------------------------------------------------*

this is automatically genarated text how it can be done?

Read only

Former Member
0 Likes
973

Hi ,

when you are setting pf-status to your report program try to copy the standard application tool bar to your zreport..in the tcode se41(menu painter).

And after call the pf-status to your zprogram..

Thanks.

Read only

0 Likes
973

are you sure the follwing text will appear at that time

*&-----------------------------------------------------------------*

*&      Form  SET_PF_STATUS

*&-----------------------------------------------------------------*

*       Setting custom PF-Status

*------------------------------------------------------------------*

*      -->VT_ETAB   Excluding table

*------------------------------------------------------------------*

Read only

0 Likes
973

Hi,

Form  SET_PF_STATUS using VT_ETAB type slis_t_extab.

endfrom.

after writing once you use pretty printer it will be automatically populated for u,,

Thanks

Pavan.

Read only

0 Likes
973

hi

after writing form set_pf_staus.

when you put pritty printer it will be coming ..

hope it helps,

Vinoth

Read only

Former Member
0 Likes
973

I am sure try it ...