on 02-06-2009 12:57 PM
Hi All,
Can we set PF-STATUS to standard Report output
or can we remove the standard buttons on the ALV output screen.
Hi,
Use this code to excude the buttons from the alv toolbar, its working:-
*FOR EXCLUDING STANDARD BUTTON FROM ALV TOOLBAR
DATA : it_exclude TYPE slis_t_extab,
wa_exclude TYPE slis_extab.
*&---------------------------------------------------------------------*
* FOR EXCLUDING STANDARD BUTTONS FROM ALV TOOLBAR
*&---------------------------------------------------------------------*
wa_exclude-fcode = '&OUP'.
APPEND wa_exclude TO it_exclude.
CLEAR wa_exclude.
wa_exclude-fcode = '&ODN'.
APPEND wa_exclude TO it_exclude.
CLEAR wa_exclude.
wa_exclude-fcode = '&OAD'.
APPEND wa_exclude TO it_exclude.
CLEAR wa_exclude.
wa_exclude-fcode = '&INFO'.
APPEND wa_exclude TO it_exclude.
CLEAR wa_exclude.
" similarly append more func-code for the buttons
" that you dont want to display at output screen
" and pas this internal table in FM
*&---------------------------------------------------------------------*
* DISPLAY RECORDS IN ALV GRID
*&---------------------------------------------------------------------*
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = rep_id
* i_callback_pf_status_set = 'PF'
i_callback_user_command = 'COMMAND'
i_callback_top_of_page = 'TOP'
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
i_grid_title = wa_title
* I_GRID_SETTINGS =
is_layout = wa_layout
it_fieldcat = it_field
it_excluding = it_exclude "exclude buttons
* IT_SPECIAL_GROUPS =
it_sort = it_sort
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
i_save = 'A'
is_variant = wa_variant
it_events = it_event
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_ekpo
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
Hope this helps you.
Thanks & Regards,
Tarun Gambhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Set the PF-STATUS for the standard report's basic list, and redefine another PF-STATUS waning away the characteristics of previous PF-STATUS.
1. Have an access key and provide PF-STATUS to it.
2. Make your own program with PF-STATUS set, and make your program a transaction, in SE93.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're using the OO version of ALV, there is the no toolbar option.
FORM build_layout_action_0960 CHANGING wa_layout TYPE lvc_s_layo.
CLEAR wa_layout.
wa_layout-no_toolbar = 'X'. "<=== here
wa_layout-grid_title = 'Price Schedules'.
wa_layout-smalltitle = 'X'.
ENDFORM. " build_layout_action
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could have sworn there was a NOTOOLBAR option for the REUSE ALV function, but I can't seem to find it.
You can do it by passing an exclude table to the function.. just turn them all off.
I think these are all the Function Codes.
FORM exclude_icons.
APPEND '&ETA' TO g_exclude. "Details
* APPEND '&OUP' TO g_exclude. "Sort Up
* APPEND '&ODN' TO g_exclude. "Sort Down
APPEND '&ILT' TO g_exclude. "Set Filter
APPEND '&UMC' TO g_exclude. "Sum
APPEND '&RNT_PREV' TO g_exclude. "Print preview
* APPEND '&VEXCEL' TO g_exclude. "Excel
APPEND '&AQW' TO g_exclude. "Word processing
APPEND '%PC' TO g_exclude. "Local File
APPEND '%SL' TO g_exclude. "Mail recepient
APPEND '&ABC' TO g_exclude. "ABC Analysis
APPEND '&GRAPH' TO g_exclude. "Graphic
* APPEND '&OL0' TO g_exclude. "Change layout
* APPEND '&OAD' TO g_exclude. "Select layout
APPEND '&AVE' TO g_exclude. "Save Layout
APPEND '&INFO' TO g_exclude. "Information
ENDFORM. " exclude_icons
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can set the PF-Status Using Method :SET_SCREEN_STATUS/SET_PF_STATUS.
Functiom Mudule:REUSE_ALV_GRID_DISPLAY
Regards,
Gurpreet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jhonny ,
You need to use exits to change any standard transaction .
Much Regards ,
Amuktha .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
In this case one thing that is possible is copy the standard program with all options selected into your required namespace and then edit the code as per your requirement. This way you can get functionality of the standard report and the required PF-STATUS clubbed.
Hope this helps you..
Thanks
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Yes you can have the PF-STATUS for a basic list and corresponding drill down list by setting it in your ABAP code.
Thanks
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.