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

pusbutton in report

Former Member
0 Likes
1,318

hi all ,

i'm doing alv report in that i need to display pushbutton in application toolbars ... i did set pf status .

and i evn given AT USER-COMMAND

case sy-ucomm .

but now that push button is not displaying the apllication toolbars Pls can u help me out in this issue . thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,289

Hi,

Open the PF Status editor screen(double click on the PF status name).Place the cursor on the required function code and click the push button 'Function Code' which is on the application toolbar of the PF Status Editor screen.

Regards,

Aravind JM.

Hi,

Open the PF Status editor screen(double click on the PF status name).Place the cursor on the required function code and click the push button 'Function Code' which is on the application toolbar of the PF Status Editor screen.

Regards,

Aravind JM.

12 REPLIES 12
Read only

Former Member
0 Likes
1,289

Hi,

Have you activated your pf status????

Regards

Debarshi

Read only

0 Likes
1,289

ya i activated the pf-status even then push button is not displaying application toolbar. is there any decleration has to do . pls let me know . thanks

Read only

Former Member
0 Likes
1,289

Hello,

Check this you will find the solution with different ways to create the pushbutton in ALV.

Read only

0 Likes
1,289

hi santhosh

the link which u sent tells me how to create export and import in internal table .. could u please give me relavant link .thanks

Read only

Former Member
0 Likes
1,290

Hi,

Open the PF Status editor screen(double click on the PF status name).Place the cursor on the required function code and click the push button 'Function Code' which is on the application toolbar of the PF Status Editor screen.

Regards,

Aravind JM.

Read only

0 Likes
1,289

even then its not coming yaar .

Read only

0 Likes
1,289

Hi,

Hope you have maintained the case of the letters....I have just created one and passed values like this...


*&---------------------------------------------------------------------*
*&      Form  SET_PF_STAT_F14
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM set_standard USING rt_extab TYPE slis_t_extab.
" SET_STANDARD should be passed in capital in i_callback_pf_status_set
  SET PF-STATUS 'TEST'.

ENDFORM.                    " set_pf_status

*&---------------------------------------------------------------------*
*&      Form  user_command
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->RUCOMM     text
*----------------------------------------------------------------------*

FORM user_command USING r_ucomm LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.
" USER_COMMAND should be passed as capital...
* break-point.
  CASE r_ucomm.
    WHEN 'GG'. " function code for the pushbutton
BREAK-POINT.
  ENDCASE.


ENDFORM.                    " user_command

and in alv have passed like this...

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
*   I_INTERFACE_CHECK                 = ' '
*   I_BYPASSING_BUFFER                = ' '
*   I_BUFFER_ACTIVE                   = ' '
    i_callback_program                = sy-repid
   i_callback_pf_status_set          = 'SET_STANDARD'
   i_callback_user_command           = 'USER_COMMAND'

Regards

Debarshi

Read only

0 Likes
1,289

hi debrashi ,

ya same way i did but what happening is no toolbars is displaying in application toolbar . please let me know why it was not coming .. thanks

Read only

0 Likes
1,289

Hi,

Have you generated standard toolbars ?

i.e. 'BACK' , 'SAVE' , 'CANCEL,....???

There should be no problems in generating the toolbars....go through it very carefully and give your code here for pf-status and user command...

Also you can copy standard pf status via se41 and use that ....

Regards

Debarshi

Read only

0 Likes
1,289

hi roy ,

thanks u very much its working now

Read only

Former Member
0 Likes
1,289

Look into the program "SALV_DEMO_TABLE_FUNCTIONS" which could be helpful to solve ur problem.

Regards

Sam

Read only

Former Member
0 Likes
1,289

Hi

Refer this thread

Thanks and Regards,

Syf