cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Hide EDIT button based on status of shopping cart

Former Member
0 Kudos

Hi Gurus ,

I am new to FPM . I am facing a situation here in SRM shopping cart display . In my POWL query when I select a Shopping cart and click display it navigate me to a window and I need to hide the edit button in that window .

I have checked the component configuration of the component and try to configure the edit button by disabling the button properties , but it does happening for all the shopping cart but I need to enable the EDIT button if the cart status is SAVED for rest I want the button not to appear in screen.

Any input will be appreciate . Many Thanks in advance

FPM_GAF_COMPONENT
/SAPSRM/WDCC_FPM_GAF_SC
/SAPSRM/WDCC_FPM_GAF_SC
/SAPSRM/WDCC_FPM_GAF_SC
FPM_WINDOW
CNR_VIEW
BC-WD-CMP-FPM

Thanks & Regards

Anshuman

Accepted Solutions (0)

Answers (2)

Answers (2)

vinita_kasliwal
Active Contributor
0 Kudos

HI Anushuman

You ideally should not work on FPM since SAP has provided the way to hide the button in the config

Itself  Go tot he " Configure Control of actions on Header level " and

then create a new entry there with Action : Edit for Object type BUS2121 and define your own class and method with the logic of reading the status and making the property CS_METADATA-VISIBLE as abap_true or ABAP_FALSE while will do the trick for you

Regards

Vinita

AbhishekSharma
Active Contributor
0 Kudos

Hi Anshuman,

You can use GET_DEFINATION method of List UIBB.

Parameter ET_ACTION_DEFINITION-VISIBLE can be used to display and hide button.