on 04-28-2015 10:25 PM
Hello friends.
I'm in need of your help.
I need to Hide or Disable the EDIT button you see in the screen:
Does anyone know how and where I can do this ?
I already tried creating an enhancement in webdynpro component FPM_OIF_COMPONENT in CNR_VIEW but I don't know how to get the Edit Button to disable or hide it.
If you have any idea of how to do it, please share.
Thank you,
Ricardo Monteiro
Hi Ricardo,
Please create dynamic class/method and assign the same in SPRO and using dynamic method hide the button.
Regards,
Navdeep Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Navdeep Singh
Thank you for your reply.
I've just done the configuration but the button keeps appearing. Is the class/method implementation mandatory for button to disappear ?
Here's a screenshot on what I did in the SPRO path Go to SPRO->SRM Server->Cross Application Basic Setting ->Extensions and Field Control -> Control Actions-> configure control of Actions on Header Level.
With this, the button still appears and/or is not disabled.
But as you can see, I didn't implement any customer class / method, is it necessary ?
Thank you,
Ricardo Monteiro
Hi Ricardo,
if you need to display/Hide Button based on some condition then put the logic in Method else put by default as below code in method:
Create Custom Class and method
Method parameters :
IV_OBJECT_TYPE | Importing | Type | BBP_BUS_OBJECT_TYPE |
IV_ACTION | Importing | Type | /SAPSRM/PDO_ACTION_TYPE |
IS_HEADER | Importing | Type | ANY |
IV_MODE | Importing | Type | /SAPSRM/PDO_INST_MODE |
IS_ADD_DATA | Importing | Type | /SAPSRM/S_PDO_META_ACT_ADD_DAT |
CS_METADATA | Changing | Type | /SAPSRM/S_PDO_ACTION_METADATA |
cs_metadata-action_enabled = abap_false.
Hope it will hide the same.
Regards,
Navdeep SIngh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.