on 01-28-2015 3:22 PM
Hi Experts,
My requirement is to Hide SAVE button of the shopping Cart only when an approver opens it.
During all other sceanario, it should not be changed.
I have tried the below coding and it works fine if i give name of other buttons like 'EDIT' or 'ORDER'.
But it is not working for SAVE and CLOSE button.
"Hiding SAVE Button during Approval mode
lo_cnr_oif->define_button(
EXPORTING
iv_variant_id = 'VARIANT_SC_PROF'
iv_function = if_fpm_constants=>gc_button-alternate_function
iv_element_id = 'SAVE'
iv_enabled = ''
iv_visibility = cl_wd_uielement=>e_visible-none ).
Can anyone tell me the reason why it is not working? Also, tell me the correct way to hide SAVE button.
Thanks,
Parthi
Hi Parthee,
Please try with the code in component - /SAPSRM/WDC_UI_SC_OIF_CA
view's do init or Modify view methods
CALL METHOD l_o_cnr_oif->define_button
EXPORTING
iv_function = 'OTHER_FUNCTIONS'
iv_element_id = 'SAVE'
iv_enabled = abap_true
iv_visibility = '01'.
ENDIF. " IF l_flg_vi_save IS NOT INITIAL.
Thanks & Regards
Arun.K.P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arun,
It is working fine. Thanks a Lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.