cancel
Showing results for 
Search instead for 
Did you mean: 

Hide/Disable Edit button

former_member210118
Participant
0 Kudos

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

View Entire Topic
Navdeepbhat
Explorer
0 Kudos

Hi Ricardo,

Please create dynamic class/method and assign the same in SPRO and using dynamic method hide the button.

Regards,

Navdeep Singh

former_member210118
Participant
0 Kudos

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

Navdeepbhat
Explorer
0 Kudos

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_TYPEImportingTypeBBP_BUS_OBJECT_TYPE
IV_ACTIONImportingType/SAPSRM/PDO_ACTION_TYPE
IS_HEADERImportingTypeANY
IV_MODEImportingType/SAPSRM/PDO_INST_MODE
IS_ADD_DATAImportingType/SAPSRM/S_PDO_META_ACT_ADD_DAT
CS_METADATAChangingType/SAPSRM/S_PDO_ACTION_METADATA

cs_metadata-action_enabled = abap_false.

Hope it will hide the same.

Regards,

Navdeep SIngh

former_member210118
Participant
0 Kudos

Hi Navdeep Singh,

That's what I did (as you can see in the images), but the EDIT button still appears and or enabled .

As you can see the button is still there and active

Do you think it can be some enhancement that is doing the enabling of the button in hardcode ?

Thanx,

Ricardo

Navdeepbhat
Explorer
0 Kudos

Hi Ricardo,

Can you please let me know have you done some enchacement in PDO.IDEN Class for same.

Please tick Checkbox PDO Action Enabled and then check the same.

Regards,

Navdeep Singh

former_member210118
Participant
0 Kudos

Navdeep,

I've tried ticking the PDO Action, but button keeps the same.

"Can you please let me know have you done some enchacement in PDO.IDEN Class for same."

What class are you referring to ?

Navdeepbhat
Explorer
0 Kudos

HI Ricardo,

We have Control Buttons Visibility in RFX(BUS2200) like this only and it's working fine.

Like this it's working fine in our scenario.

Regards,

Navdeep Singh

former_member210118
Participant
0 Kudos

Navdeep,

I really think this should be some hardocoded somewhere saying to always show the EDIT button because  I just tested the same scenario with the COPY button with success.