Deactivate 'APPROVE' button in the ALV in RCATS_APPROVE_ACTIVITIES.
Hi all,
I am trying to deactivate 'APPROVE' button in the ALV output of the program RCATS_APPROVE_ACTIVITIES.
Any ideas???
Thanx in advance!!!!
Hello Grigoria
The following steps are necessary to implement your requirement:
(1) Create BAdI implementation for BAdI CATS_REPORTING (i.e. class implementing interface IF_EX_CATS_REPORTING => e.g. ZCL_IM_CATS_REPORTING).
(2) Add a public method HANDLE_TOOLBAR (to your BAdI implementing class) as event handler for event TOOLBAR of CL_GUI_ALV_GRID
(3) Set method HANDLE_TOOLBAR as event handler for the CATS displaying grid instance:
METHOD if_ex_cats_reporting~before_display_appr.
SET HANDLER: handle_toolbar FOR im_alv_grid.
ENDMETHOD.
(4) Inactive the APPROVE toolbar button within the event handler method:
METHOD handle_toolbar.
* define local data
DATA: ls_button TYPE stb_button.
LOOP AT e_object->mt_toolbar INTO ls_button.
CASE ls_button-function.
WHEN cl_grid_approval_actexp=>co_ok_approve.
ls_button-disabled = 'X'.
WHEN OTHERS.
CONTINUE.
ENDCASE.
MODIFY e_object->mt_toolbar FROM ls_button INDEX syst-tabix.
ENDLOOP.
ENDMETHOD.
Regards
Uwe
Similar Messages
-
How to add a button on the ALV LIST pop up
Hi ,
Can any one help me to add a button on the ALV list which is a pop up using ABAP Objects.
Thanks in advance.
Regards,
Kavya.HI ,
I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list but still I am unable to get any additional button on the output ALV popup.
Please help.
Regards,
Kavya. -
Can we disable the default push buttons on the ALV Grid
Hi,
Can we disable the default push buttons on the ALV
Grid Control...
If so, pls send me the procedure...
thanks and regards
raghuHi,
In the PBO:
PERFORM f9100_exclude_functions USING :
i_exclude[] '&CHECK',
i_exclude[] '&REFRESH',
i_exclude[] '&LOCAL&CUT' ,
i_exclude[] '&LOCAL©',
i_exclude[] '&LOCAL&PASTE',
i_exclude[] '&LOCAL&PASTE_NEW_ROW',
i_exclude[] '&LOCAL&UNDO' ,
i_exclude[] '&LOCAL&APPEND',
i_exclude[] '&LOCAL&INSERT_ROW',
i_exclude[] '&LOCAL&DELETE_ROW',
i_exclude[] '&SORT_ASC',
i_exclude[] '&SORT_DSC',
i_exclude[] '&FIND',
i_exclude[] '&SUMC',
i_exclude[] '&SUBTOT',
i_exclude[] '&MINIMUM',
i_exclude[] '&MAXIMUM' ,
i_exclude[] '&VGRID' ,
i_exclude[] '&VEXCEL' ,
i_exclude[] '&VCRYSTAL',
i_exclude[] '&HTML',
i_exclude[] '&MAINTAIN',
i_exclude[] '&SAVE',
i_exclude[] '&GRAPH',
i_exclude[] '&HELP',
i_exclude[] '&ALL' ,
i_exclude[] '&SAL' .
* i_exclude[] '&EXCLALLFC'.
*& Form f9100_exclude_functions
* This form exclude buttons from the toolbar.
* -->P_IEXCLUDE text
* -->P_1150 text
FORM f9100_exclude_functions USING pexclude LIKE i_exclude
value(pfunction).
DATA: l_exclude TYPE ui_func.
l_exclude = pfunction.
APPEND l_exclude TO pexclude.
ENDFORM. " f9100_exclude_functions
This will exculde the default push buttons.
Let us know if it works for you.
Regards,
Anjali -
Is it possible to deactivate a button on the application toolbar?
Hello everybody!
Is it possible to deactivate a button on the application toolbar from standard transaction like PA40?
I'd want to do it using an user-exit.
Thanks in advance.
Cristianthere is a push button on the std tool bar of pf-status 'Function code'.using that u can activate and deactivate teh function codes
or
Check this FM : RS_SET_SELSCREEN_STATUS
sample code :
DATA: BEGIN OF i_exc OCCURS 0,
code LIKE sy-ucomm,
END OF i_exc.
DATA: ws_repid like sy-repid.
CLEAR i_exc.
i_exc-code = 'ONLI'.
APPEND i_exc.
MOVE: sy-repid TO ws_repid .
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = ' '
p_program = ws_repid
TABLES
p_exclude = i_exc. -
Disable the 'Approve' button on the TRIP Tcode
Hi ,
I need to Disable the 'Approve' button on the TRIP Tcode ( Travel management) security setting. User does not want TRIP tocde to be able to approve their own trip expenses. The approval button should be enabled in PR05 but not in TRIP.
So can someone suggest me, Can we achieve this through object restriction? Or else Do we need to change the codeing with the help of ABAPer .
Thanks & Regards
Umashankar
SAP SecurityEliminate the Option from the TCode screen by using Transaction Variant and then create a Variant Transaction for that. Assign this new custom TCode to the Users.
To know more on this process, please check the following thread just discussed:
Variant using SHD0
Regards,
Dipanjan
Edited by: Dipanjan Sanpui on Jul 7, 2009 6:59 PM -
How we can add the 2 buttons on the alv out screen.
I have a requirement, i want to add two buttons on the application bar on the ALV report out.
with the use of grid functional module.
for example: i want to buttons details and balance on the ALV output screen. if i click on detail it will display the details and if i click on balance it will show the balance data in report.
and if i use the back and exit that time it will come out the selection screen.
please send me any exiting report its very urgent.Hi frnd,
To add additional button in the application toolbar,
First copy the std toolbar from std sap program,
In se 41 give
program name = SAPLKKBL
copy staus.
Use own status (Copy STANDARD from SAPLKKBL)
SET PF-STATUS 'STANDARD_NEW' .(in this new user defined status add ur buttons)
steps:
then in the ''REUSE_ALV_GRID_DISPLAY' function module
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_repid
i_callback_user_command = EVENT_USER_COMMAND
i_callback_pf_status_set = EVENT_SET_STATUS_01
i_grid_title = gc_tit
is_layout = gt_layout
it_fieldcat = gt_fieldcat[]
TABLES
t_outtab = gt_lfa1
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 event_set_status_01 USING lt_excl TYPE slis_t_extab.
Use own status (Copy STANDARD from SAPLKKBL)
SET PF-STATUS 'STANDARD' .
ENDFORM. "EVENT_SET_STATUS_01
*& Form Name: event_user_command *
*& Form Desc: For Handling USER_COMMAND *
FORM event_user_command USING
if_ucomm TYPE sy-ucomm
is_selfield TYPE slis_selfield.
CASE if_ucomm.
WHEN 'PRINT'.
endcase.
endform -
HAP_START_PAGE_POWL_UI new Buttons in the ALV Control
Hello,
we use the POWL-Querry for perfomance management.
I wanna create a new button the the ALV-Table and this button should open a new WD with a PDF-File.
I created the Button already and i see the Button in my ALV Table. But if i press the Button nothing happen.
Do i have to customize the launchpad in the transaction LPD_CUST?
I tried it with an enhancement in the controller of the WD
ELSEIF ls_powl_params-value = 'zshowpdf'.
READ TABLE event_parameters INTO ls_powl_params WITH KEY key = 'URL'.
Create the parameter table with the required values to generate the url.
CLEAR ls_parameters.
ls_parameters-name = 'MODE'.
ls_parameters-value = 'X'.
APPEND ls_parameters TO lt_parameters.
CLEAR ls_parameters.
ls_parameters-name = 'WDACCESSIBILITY'.
ls_parameters-value = wd_this->l_accessible.
APPEND ls_parameters TO lt_parameters.
my own WD
CLEAR ls_parameters.
ls_parameters-name = 'WDCONFIGURATIONID'.
ls_parameters-value = 'ZAIF_AIP2_PDF_VIEW'.
APPEND ls_parameters TO lt_parameters.
wd_this->lt_params = lt_parameters.
wd_this->url = ls_powl_params-value.
wd_this->display_document( ).
I hope someone can help me with this problem.
best regards
jensIf you did a search of this forum using the name of the WDA app you are considering:
[Search of forum for HAP_START_PAGE_POWL_UI_ESS|http://forums.sdn.sap.com/search.jspa?q=HAP_START_PAGE_POWL_UI_ESS&objID=f249]
I think you would find several posts where I and other have provided this information in the past.
Re: help in finding view corresponding to application etc.
Please do follow the forum rules and search before posting!
Thanks,
Chris -
Problem with the back button in the Alv ouput
i have refresh button in output of my alv report when i click on this it is getting refreshed ,now the problem is with the back button after refresh whn i click on back button it is not going to selection screen , i have to click the back button thrice to come out to the selection screen ,if have refreshed the ouput screen twice .
if i dont refresh the back button is working fine , So i have used "call to selection screen 1000" it coming to selection screen without any problem but in selection screen on clicking on back button it is again going back to output screen ,So please suggest what has to be done here .Hi Brahmananda,
Please try to understand the flow of program and the screen navigation
the click of BACK button triggers PAI and (to the best of my knowledge) you might have called the ALV screen number without any checks ( may be) so it is again taking to the ALV.
try using
in PAI
module exit at exit-command
in program
module exit
case ok_code
when 'BACK'.
LEAVE PROGRAM ( or any thing that you want it to be )
endcase
endmodule
regards
Ramchander rao.K -
Problem activating the back and exit button with the ALV using OO
I have wrote my first alv using Methods.My problem is that i can't activete the BACK and EXIT button in the standart toolbar .
Look my code please .....
Without PF-STATUS can i do it ?
*& Report YDP_DOUBLE_ALV
REPORT YDP_DOUBLE_ALV.
TABLES : YQM_CERT , MARA , YOUTPUT_APPL.
DATA : ALV_GRID TYPE REF TO CL_GUI_ALV_GRID,
CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
FIELD_CAT TYPE LVC_T_FCAT,
LAYOUT TYPE LVC_S_LAYO.
DATA : ALV_GRID2 TYPE REF TO CL_GUI_ALV_GRID,
CUSTOM_CONTAINER2 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
* FIELD_CAT TYPE LVC_T_FCAT,
* LAYOUT TYPE LVC_S_LAYO.
DATA: DYNNR TYPE SY-DYNNR,
REPID TYPE SY-REPID.
DATA: OK_CODE TYPE SY-UCOMM.
DATA : BEGIN OF ITAB OCCURS 0.
INCLUDE STRUCTURE YQM_CERT.
DATA END OF ITAB.
DATA : BEGIN OF ITAB1 OCCURS 0.
INCLUDE STRUCTURE YOUTPUT_APPL.
DATA END OF ITAB1.
* MODULE DISPLAY_ALV OUTPUT
MODULE DISPLAY_ALV OUTPUT.
SET PF-STATUS 'ZST9'.
PERFORM DISPLAY_ALV.
ENDMODULE. "DISPLAY_ALV OUTPUT
"DISPLAY_ALV OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
START-OF-SELECTION.
LAYOUT-ZEBRA = 'X'.
LAYOUT-GRID_TITLE = 'YQM_CERT'.
LAYOUT-CWIDTH_OPT = 'X'.
LAYOUT-SMALLTITLE = 'X'.
SELECT * FROM YQM_CERT INTO ITAB.
APPEND ITAB.
ENDSELECT.
SELECT * FROM YOUTPUT_APPL INTO ITAB1.
APPEND ITAB1.
ENDSELECT.
CALL SCREEN 100.
END-OF-SELECTION.
*& Form DISPLAY_ALV
* text
FORM DISPLAY_ALV.
IF ALV_GRID IS INITIAL.
CREATE OBJECT CUSTOM_CONTAINER
EXPORTING
* PARENT =
CONTAINER_NAME = 'CC_ALV'
* style =
* LIFETIME = lifetime_default
REPID = REPID
DYNNR = DYNNR
* NO_AUTODEF_PROGID_DYNNR =
* EXCEPTIONS
* CNTL_ERROR = 1
* CNTL_SYSTEM_ERROR = 2
* CREATE_ERROR = 3
* LIFETIME_ERROR = 4
* LIFETIME_DYNPRO_DYNPRO_LINK = 5
* others = 6
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT ALV_GRID
EXPORTING
* I_SHELLSTYLE = 0
* I_LIFETIME =
I_PARENT = CUSTOM_CONTAINER
* I_APPL_EVENTS = space
* I_PARENTDBG =
* I_APPLOGPARENT =
* I_GRAPHICSPARENT =
* I_NAME =
* I_FCAT_COMPLETE = SPACE
* EXCEPTIONS
* ERROR_CNTL_CREATE = 1
* ERROR_CNTL_INIT = 2
* ERROR_CNTL_LINK = 3
* ERROR_DP_CREATE = 4
* others = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
* I_BUFFER_ACTIVE =
* I_BYPASSING_BUFFER =
* I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME = 'YQM_CERT'
* IS_VARIANT =
* I_SAVE =
* I_DEFAULT = 'X'
IS_LAYOUT = LAYOUT
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
* IT_ALV_GRAPHICS =
* IT_EXCEPT_QINFO =
* IR_SALV_ADAPTER =
CHANGING
IT_OUTTAB = ITAB[]
* IT_FIELDCATALOG =
* IT_SORT =
* IT_FILTER =
* EXCEPTIONS
* INVALID_PARAMETER_COMBINATION = 1
* PROGRAM_ERROR = 2
* TOO_MANY_LINES = 3
* others = 4
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
CALL METHOD ALV_GRID->REFRESH_TABLE_DISPLAY
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
* EXCEPTIONS
* FINISHED = 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.
ENDIF.
ENDFORM. "DISPLAY_ALVHi
U need to active them in your status ZST9.
Max -
Dear Friends,
My problem:
want to retain the appearance of ALV with a column Editable.
I observe same thing is happening with example program BCALV_EDIT_02, when we click 'Edit' button, it is making Airfare Editable but all other columns are greyed out.
My problem is v similar. I want to retain the apprearance as it used to be when non-editable mode, but i want a column to be editable.
What is the solution. Do i have to pass any other things?
Regards,
SimhaOn clicking on EDIT button, you have to enable only the column which you want to edit and make it ready for input.
Refer to the below thread for more information:
[Re: Alv grid: editable individaul fields or editable rows]
Get back to me if you still have doubts.
Regards,
Lakshmi. -
Disabling sort button on the alv list display
Hi,
how to disable sort button on alv list display
thanksFill an itab
1- Create an itab type SLIS_T_EXTAB.
2- Populate it with the Function codes you want to exclude ('&OUP', '&ODN').
3- Pass it as parameter to IT_EXCLUDING
Regards
Edited by: Jordi Escoda Ruiz on Apr 24, 2008 10:39 AM -
How to remove the select button from the alv grid
Hi,
I am using the Function modules for alv report,
My 1st field in the list is checkbox,
User can select the checkbox for further process.
My problem is I want to remove the standards select option from alv.
I have searched in slis_layout_alv for any option, but I could not.
Please help me.
Regards
RajanHI
Exclude process options from ALV
PERFORM alv_excl. ( g_r_excl TYPE ui_functions . )
FORM alv_excl.
APPEND cl_gui_alv_grid=>mc_mb_sum TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_mb_subtot TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_fc_graph TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_fc_info TO g_r_excl.
APPEND cl_gui_alv_grid=>mc_fc_print_back TO g_r_excl.
ENDFORM. " alv_excl
CALL METHOD g_r_grid->set_table_for_first_display
EXPORTING
is_layout = g_r_layo
is_variant = g_r_variant
it_toolbar_excluding = g_r_excl
i_save = 'X'
CHANGING
it_outtab = g_t_yetprint[]
it_fieldcatalog = g_t_fieldcat.
Options appended in g_r_excl, will be excluded from ALV
Praveen -
Urgent : code for the change/display button in the ALV Grid control
Hi gurus,
Here i have the following situation,
I must place a button which should work as both change/display,
first click should be change and the next click should be display,
when i click for the first time the row/rows selected should be locked and when again click on the same button that should be unlocked.
If you have the solution please come back with the solution.
Bharath Kumar<b></b>Hi,
try this
*& Form SET_PF_STATUS
text
-->EXTAB text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
DATA GIT_FCODE TYPE TABLE OF SY-UCOMM.
IF GIT_ITEMS IS INITIAL. ( you have to maintain a counter )
( like data: g_count type i.
and if it is divisible by 2 then display
other wise change.
CLEAR GIT_FCODE.
APPEND 'CHANGE' TO GIT_FCODE.
SET PF-STATUS 'ZPF_STATUS' EXCLUDING GIT_FCODE.
ELSE.
CLEAR GIT_FCODE.
APPEND 'DISP' TO GIT_FCODE.
SET PF-STATUS 'ZPF_STATUS' EXCLUDING GIT_FCODE.
ENDIF.
thanks & regards,
Venkatesh -
ALV grid control, Adding the push Button in the Toolbar
Hello All,
I am facing a problem when trying to do calculation based on the button added at the toolbar of interactive ALV list.
When I click on the toolbar button Compute, the ALV should calculate the
multiplication of the Qty (manually entered by a user) & price per unit already available in the ALV & show it the Column Total value.
Presently when I try to do this using
Method handle_user_command.
modifying the inetrnal table GT_FINAL_OUTPUT
with the Total price value .
& updating the column Total price (Qty * price) in the Internal table
After doing this I am agin calling the below function
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'GT_FINAL_OUTPUT'
is_layout = gs_layout
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = GT_FINAL_OUTPUT[].
At above function it gives short dump or sometimes it does not update the ALV screen with the new updated value of Total price .
The short dump comes states the error of unassigned field symbol.
Kindly suggest a program where we can do manipulation at the editable ALV.
Or solution to above issue .
Regards,
AnuragYou should only be calling the SET_TABLE_FOR_FIRST_DISPLAY one time in the PBO of your screen, otherwise you should be using the REFRESH_TABLE_DISPLAY method. IN your PBO, check that the instance of the alv_container is alive, if so, do not call the SET method, rather call the REFRESH method.
if alv_container is initial.
create object......
create object g_grid.....
call method g_grid->set_table_for_first_display......
else.
call method g_grid->refresh_table_display( ).
endif.
Regards,
Rich HEilman -
Cup Approval process requires multiple hits of the APPROVE button
Hello GRC CUP folks,
We have an approval process wherein a given request can require 4 levels of approvals to be provisioned. When a manager logs in to CUP, and tries to approve a request, she hits the APPROVE button, then the yellow status bar appears, showing the approval status so far for this request. And she has to hit the APPROVE button again. Then the yellow status for this current stage turns green and the workflow proceeds to the next stage. It is getting back to me that the managers are having trouble understanding and remembering that they have to hit the APPROVE button more than once (even though we added text to that effect in the approval email).
Is there some way to get the approval to process to the next stage with only one push of the APPROVE button?
Thanks for your ideas.
YvonneHi Yvonne,
Please go to config -> workflow -> stage -> go to change mode for Manager stage.
Make sure that, 'Display Review Screen', 'Comments Mandatory' and 'Confirm Approval' are set to 'NO'. This will make sure that as soon as Manager hits Approve button, the request would be approved.
Regards,
Alpesh
Maybe you are looking for
-
Running itunes library on a NAS
I want to clean up my hard drive on my Macbook and key to this is putting music on my NAS. The problem with doing the simple thing of setting up a NAS share in itunes is that no artwork can be copied over, and you also then can't synch your ipod or
-
What's new in Forms 6.0
Hi all, I have been using developer 2000, forms 5.0. I just want to know that what is the major difference between forms5.0 and 6.0. Is there any book which takes a user from 5.0 to 6.0. Also, I beleive forms 6.0 supports internet deployment. Is that
-
Xcode 6.1.1 Custom Class Outlets Missing
I'm running through the basic Apple tutorial on iOS App Development https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapi OS/index.html#//apple_ref/doc/uid/TP40011343-CH2-SW1 Running Xcode Version 6.1.1 (6A2008a) After crea
-
Mass price change for inforecord
Hi All, Can I do a mass price change for inforecords? We are in ECC 6.0.... I have checked transaction MEMASSIN but there is no field for price in this txn. Regards, V S
-
Passing one field to another in vt02 transaction
How to pass the value of exidv field to contents field in VT02 transaction?