cancel
Showing results for 
Search instead for 
Did you mean: 

SRM 4.0 Making a standard field as editable?

former_member184111
Active Contributor
0 Kudos

Dear Experts,

We are on SRM 4.0 and need to make the Vendor Product Number (PARTNER_PROD) stabdard field of shopping cart as editable that is read only by default.

In SRM 5.0 we have the BADI BBP_UI_CONTROL_BADI Method BBP_SC_UI_CONTROL for controling standard fields but in SRM 4.0 the Method BBP_SC_UI_CONTROL is not there.

How to do this in SRM 4.0?

Thanks,

Anubhav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Please kindly check the note 773085 .

Thanks,

Melina

former_member184111
Active Contributor
0 Kudos

Hi Melina,

Note should solve the issue , thanks a lot for you help

Neelima,

Thanks a lot for the solution and sample code, will be useful if changes are required to some other fields.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anubhav,

If you wish to hide or show fields, proceed as follows(through screen variants):

1. Determine the screen variant, for example, BBP_SC(For shopping cart), using the list in documentation of BADI BBP_SCREENVARIANT.

2. Copy this screen variant, for example, in Zbbp_SC, in Transaction SHD0.

3. Change the new screen variant as required. Note that you can only change the display properties for fields

4. Implement the appropriate method .

Fill the export parameter EV_SCVARIANT with the new screen variant.

You can create multiple screen variants for a screen and then select these in the BAdI depending on the user or on other criteria.

here is sample code in BADI BBP_SCREENVARIANT implementation after creating Z screen variant.

Method IF_EX_BBP_SCREENVARIANT~GET_SCREENVARIANT_SC.

IF iv_progname EQ 'SAPLBBP_SC_UI_ITS'

AND iv_dynnr EQ '0120'

AND flt_val EQ c_fltval.

IF iv_scvariant EQ 'BBP_SC'.

ev_scvariant = 'Zvariant'.

ENDIF.

ENDIF.

ENDMETHOD.

regards,

Neelima

Edited by: S Neelima on Apr 8, 2010 8:33 AM