on 10-21-2011 6:37 PM
Hi,
We are on SRM 7.1 ECS.
We ahev a requirement to create a custom field under BASIC DATA tab in shopping cart screen but we would like to display this field only if the item is a service item.
In SRM 5,we had to implement the badi BBP_CUF_BADI_2 for the same reqt.
But in SRm 7,how do we implement this?
Thanks.
Hi,
In SM30 > /SAPSRM/V_MDF_IC you can assign suitable "item type" for business object BUS2121. Still if you could not get expected results, you need to create your own dynamic class.
Ganapathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Customzie below entries in
SPRo-> Configure Control field->Configure Control for Fields on Item Level->Metadata for Fields on Item Level
Structure Field Name Z_fields
Bus. Object Type BUS2121
Bus. Object Subtype
Transaction Type SHC
Field visible : X
Field enable : X
Dyn. Customer Class z_CL_ITM_DYN
Dyn. Customer Method /SAPSRM/IF_MDF_ITM_DYN_CONTROL~CHANGE_METADATA
Create a Class z_CL_ITM_DYN with interface
/SAPSRM/IF_MDF_ITM_DYN_CONTROL and in method give /SAPSRM/IF_MDF_ITM_DYN_CONTROL~CHANGE_METADATA
In this Method /SAPSRM/IF_MDF_ITM_DYN_CONTROL~CHANGE_METADATA
use code below:-
DATA : ls_sc_item TYPE bbps_sc_item_badi.
MOVE-CORRESPONDING is_item TO ls_sc_item.
IF condition
IF iv_field_name = Z_fields .
cs_metadata-visible = abap_true.
cs_metadata-enabled = abap_true.
cs_metadata-required = abap_false.
ENDIF.
ENDIF.
Regards,
Neelima
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.