Skip to Content
Author's profile photo Nanda Kondagunta

How to create custom fields in SRM

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.

    1. Create a field ZZLGLENT in structure INCL_EEW_PD_ITEM_CSF_SC.Create this in the append structure ZAINCL_EEW_PD_ITEM_CSF_SC.




    2. 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.

    3. The customer field will be created in the shopping cart Item Basic Data screen.



    4. 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.

    5. In addition two more BADI’s BBP_DOC_CHANGE and BBP_DOC_CHECK can be used to change the field contents and check the values and issue error messages respectively.

    6. Refer to SAP note 672960 for more info.

    Assigned Tags

        You must be Logged on to comment or reply to a post.
        Author's profile photo Former Member
        Former Member
        Hi Nanda,

        Useful information for ple like us.

        Best regards,

        Author's profile photo ABAP Dev
        ABAP Dev
        This blog is useful to create Cusotm fields in SRM contract screen.

        Respective include strucutures are modified to get the custom fields in the contract screen.

        But the cusotm fields are appearing twice in SRM contract screen for some user roles and not for sap user role .

        One: custom fields under Basic data ( this is correct ).
        other: custom fields under Additional fields ( this should not be the case ) how to make the addtional fields invisible in the SRM contract screen?