cancel
Showing results for 
Search instead for 
Did you mean: 

Sample code for BBP_UI_CONTROL_BADI

Former Member
0 Kudos

I'm trying to implement BADI BBP_UI_CONTROL_BADI, but my code isn't working... does anyone have a sample implementation (e.g. making price non-modifiable etc...) of this BADI?

I tried the code below but the price field is still displayed.

IF IV_FIELDNAME = 'PRICE'.

CV_INVISIBLE = 'X'.

ENDIF.

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I had the same problem. But through debugging I found out that the following coding is required:

IF IV_FIELDNAME = 'PRICE'.

CV_INVISIBLE = '1'.

ENDIF.

Actually if CV_INVISIBLE is '0' then the Button is displayed. If the value is '1' then the button disappears.

It worked for me.

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Use better the complete field name for your test, like:

IF IV_FIELDNAME = 'GT_SCR_ITMOVR_I-PRICE'.

CV_INVISIBLE = 'X'.

ENDIF.

Rgds,

Pierre

Former Member
0 Kudos

Hi Peirre,

I tried your suggestion but the price field was still visible.

Gordon,

What do you mean by the CCM Name? How do I look for that?

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Your're right for the shopping cart. For wich object you wish to use this badi ?

Checking documentation on the badi, it is only avaible for:

Purchase contract and global outline agreement

(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

If you're on SRM5 you could use screen variant for the shopping cart.

Rgds,

Pierre

Former Member
0 Kudos

Hi,

It might be Note 974236 helps you.

Regards

former_member184214
Contributor
0 Kudos

hello,

did you try with table-field combination or CCM name.

The best soulution will be to debug web interface and found out how the filed name is represented.

HTH

Gordan