Hello SDN folks, this is my first blog. I want to talk about how to create custom fields in SRM. Let us look at how to create a custom field for the line item of a shopping cart.
Create a field ZZLGLENT in structure INCL_EEW_PD_ITEM_CSF_SC.Create this in the append structure ZAINCL_EEW_PD_ITEM_CSF_SC.
All shopping cart customer item fields also need to be added to the structure INCL_EEW_PD_ITEM_CSF. Make this entry in the include structure ZA INCL_EEW_PD_ITEM_CSF.
The customer field will be created in the shopping cart Item Basic Data screen.
The screen field settings and values can be manipulated using the BADI BBP_CUF_BADI_2. This BADI has 4 methods.
Method MODIFY_SCREEN can be used to change the settings of the field on screen make it visible, invisible, ready for input, etc.Method MODIFY_INPUT can be used to Edit/Correct Entered Values.Method MODIFY_OUTPUT can be used to to fill the custom field with values before displaying the screen. Method MODIFY_MODE_QUOT Can be used for Modes changes for Bids.
In addition two more BADIs BBP_DOC_CHANGE and BBP_DOC_CHECK can be used to change the field contents and check the values and issue error messages respectively.
Refer to SAP note 672960 for more info.