cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Change Icon in Process Contract

Former Member
0 Kudos

Hi,

Is it possible to Gray out or Disable the Change Icon in the 'Process Contract' page via BADI? The only way I know how to gray out or disable it is by customizing the Template.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Disha,

I tried using the code from the thread that you posted, but it isn't working. The objective is to gray out the pencil icon after searching for a contract. Directly editing the bsp template isn't an option because disabling the button is conditional.

Former Member
0 Kudos

Hi,

The sample code in the link is just an example.The Fieldnames/Icon names for PROCESS CONTRACT screen will be diffrent which you need to find out at runtime and use the same in the BADI.

Other way of finding the fieldnames is go the corresponding ITS service for the PURCHASE CONTRACT transaction and see the field names in the HTML template which corresponds to that screen.

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Hi,

You can use the BADI "BBP_UI_CONTROL_BADI" to change the screen appearance in SRM e.g Enabling/disabling icons /buttons,graying out/hiding fields etc.Also,Checking documentation on the badi, it is avaible for:

<b>Purchase contract and global outline agreement</b>(Filter value BUS2000113)

Bid invitation (Filter value BUS2200)

Bid (Filterwert BUS2202)

Auction (Filter value BUS2208)

Purchase order (Filter value BUS2201)

Purchaser's Sourcing application

Confirmation (Filter value BUS2203)

Invoice (Filter value BUS2205)

Vendor list

To use this BADI,you just need to know the name of the field/icon in the screen and acc set its display propery parameter in the BADI.

For sample code of this BADI,refer the foll link:

HTH.

BR,

Disha.

<b>Pls reward points for useful answers.</b>