12-22-2014 5:01 AM
Hi,
I have created a ALV list display. For that i have created a status with Application toolbar and Standard tool bar icons. ...but in my output is only displaying only APPLICATION TOOLBAR icons not the STANDARD TOOL BAR ICONS(SAVE, BACK, EXIT).
My code ll b like this...
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid " report id
i_callback_pf_status_set = 'PF' " for PF-STATUS
i_callback_user_command = 'USER_COMMAND' " for User-Command
it_fieldcat = it_field " field catalog
TABLES
t_outtab = it_final " internal table
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*&---------------------------------------------------------------------*
*& Form pf
*&---------------------------------------------------------------------*
* SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN
* ON WHICH THE ALV GRID IS DISPLAYED
*----------------------------------------------------------------------*
* -->RT_EXTAB
*----------------------------------------------------------------------*
FORM pf USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZPF_STAT'.
ENDFORM. "pf
Note : In SE41....I have Activated the contents by allocating standard toolbar icons init.
12-22-2014 5:12 AM
Hi Bharani,
Copy the pf-status STANDARD from program SAPLSALV (main program of SALV) to your program. It will work.
12-22-2014 5:12 AM
Hi Bharani,
Copy the pf-status STANDARD from program SAPLSALV (main program of SALV) to your program. It will work.
12-22-2014 5:20 AM
Hi Archana,
Thanks for your prompt response. But when i debug my program the condition id moving inside this standard prog which u have mentioned
12-22-2014 5:24 AM
Hi Bharani,
What do you mean by 'condition id moving inside standard program'?
Just check in normal mode instead of debugging mode, if you are able to see 'Save/Exit/Cancel' buttons in toolbar. I guess that was your question?
12-22-2014 5:27 AM
Hi,
Goto SE 41
Program name SAPLSLVC_FULLSCREEN
Status STANDARD_FULLSCREEN
Copy the program name and status to 'Z' .
Hope it helpful.
Regards,
Venkat.
12-22-2014 6:00 AM
12-22-2014 6:06 AM
Hi Bharani,
Can you just explain what issue you are facing now?
Bharani G wrote:
Hi Venket...
the condition again not satisfied
How can we help you if you just write condition not satisfied?
12-22-2014 6:08 AM
hi bharani,
have you activated PF-STATUS 'ZPF_STAT'?
also add REFRESH extab[]. and try again.
FORM PF USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'ZPF_STAT'.
REFRESH extab[].
ENDFORM.
12-22-2014 6:18 AM
Raheem,
Again same only.....only application tool bar s working fine.....the Standard tool bar is simply without reflecting the changes given from my side....
12-22-2014 6:23 AM
also please change
it_fieldcat | = it_field | " field catalog |
to
it_fieldcat | = it_field[] | " field catalog |
12-22-2014 6:33 AM
Hi Bharani,
Instead of copying pf-status try using standard pf-status as shown below:
SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLKKBL'.
See if it works for you.