on 2015 Oct 06 8:24 AM
Hello Gurus ,
I want to disable the print preview button based on the condition . I found how to disable to the button but I am not able to find the class where to write the condition . I want to disable to the button based on the status of the Confirmation . Unless the confirmation is posted in backend/approved , the print preview button shouldn't be visible .
Thanks
Gaurav Gautam
Request clarification before answering.
Hello,
if you found how to disable the button (i guess using metadata), you should have found standard class used...
Have a look at SPRO: SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Extensions and Field Control (Personalization) > Control Actions > Display Standard Metadata Tables for Actions on Header Level.
Use your own dynamic customer class (based on the standard one):
SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Extensions and Field Control (Personalization) > Control Actions > Configure Control of Actions on Header Level.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nishant Bansal , Laurent Burtaire
I have attached the screenshot . Please check and let me know the class from where I can disable the button . Moreover I need to keep it disable till the status of confirmation changes to posted in backend/approved. Moreover Laurent , I don't have authorization to check the metadata in SPRO . Can you please help me into this
BR
Gautam
Hello Laurent Burtaire,
I checked in the SPRO metadata but couldn;t able to find the class which could help me to display the button Print Preview . Moreover it was for fields not for button . Please check the screenshot which button i am talking about . It seems there is a misunderstanding. I want to disable the button not the field .
BR
Gautam
Hi Nishant ,
I already found the component controller /SAPSRM/WDCC_FPM_OIF_CONF_PURCH . Here I can see the print preview button and I can make it disabled . But as mentioned on condition of the status of the confirmation I want to make this enable . It's not possible to provide any condition in Component Controller , so I was looking for the class where I can make the button disable/enable based on status.
BR
Gautam
Hello,
what is your SRM release?
I checked on EhP2, and when i click onto SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Cross-Application Basic Settings > Extensions and Field Control (Personalization) > Control Actions > Display Standard Metadata Tables for Actions on Header Level., i get data for header fields and not for header actions...
To correct this, implement OSS note 2047686 - IMG Transaction: Action metadata on header not correctly linked
Whatever, concerned standard class for Confirmation is /SAPSRM/CL_PDO_DYN_MDA_HD_CONF
Regards.
Laurent.
Hi ,
Can you please share the screen shot where you want to hide the button and along with class name/
Thanks
Nishant
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.