Skip to Content

Add custom field to SC and POWL

In this document you learn how to add custom fields in the shopping cart. Then we will see how to add these fields in POWL.

This can also be applied to other business objects.

Adding the custom field in SC

Go to the following path in SPRO:

SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization)


Define customer fields at Header Level.

Within Configure Customer Fields -> Define Customer Fields on Header Level we need to add the field in two places:


Append the field first in Append for Customer Cross-Document Database Fields on Header. Create a new Append Structure if you have not any:


Add the field you want (should start with ZZ) in my case I have created a data element that is a CHAR 4 with a domain with some values.


Don’t active the structure yet, we need to add the field in another structure and it takes a lot of time in the activation so we are going to active both structures at the same time.

Append the field also in Append for Customer Fields on Shopping Cart Header you need to create also another Append Structure if you have not any.


Now, active both structures don’t worry it takes a lot of time.


Configure field control.

For display the field we need to add it in Configure Field Control -> Configure Control for Fields on Header Level -> Metadata for Fields on Document Headers


Add a new entry for BUS2121 and mark it as Enabled and Visible:


At this point you can define a dynamic class and method for control de visualization of the field. For this example is not necessary but if you want only need to create a class with Super Class /SAPSRM/CL_PDO_DYN_META_FIELD and a method with the following parameters:


With the parameter CS_METADATA you can modify the visualization of the field dynamically.

Now the field is displayed:


Now the objective is add this field as selection criteria in POWL:


Adding the custom field in POWL

Add the field in DB Criteria

First we need to add this field in the structure /SAPSRM/S_SEARCHFIELDS. Create an Append Structure and add the field:


Now we need to add this field also in the view /SAPSRM/V_SRC_CR. So go to SM30 and add the field:



We need to know which the feeder is used for SC for continue.

EDIT: I think this document is more accurate to find the correct POWL we need to use.
How to identify  SRM POWL details and control the actions 

Go to the following path in SPRO:

SAP Supplier Relationship Management à SRM Server à Cross-Application Basic Settings à POWL and Advanced Search.


Enter in Define Default POWL Application for Advanced Search and look up the Query Id for the object type BUS2121. We can see that is SAPSRM_AL_PURCHASING_02_01.


Now go to the transaction POWL_QUERY and find this Query Id.


Do double-click there and you can see what the feeder is.


Ok, return to SPRO and go to Adjust POWL Layout, Search Criteria, and Pushbuttons (transaction /SAPSRM/POWL_CUST).


Find the feeder type and select DB Criteria and add a new line with the field. At this point you can assign the search help used for this field in POWL.


Now, if you go to POWL you don’t see the field yet. Why?. You need to ‘refresh’ the Query. For do that go to se38 to the program POWL_D01 set your user and mark Display. Then choose the correct feeder and use the Delete query button.



Now the field is displayed.


Note: If some errors are displayed when you use the custom field check this note:

Note 1555113 – Dump occurs when searching for customer fields

Note: There is a problem if you have a custom field at header and item level with the same name. You should define fields with different names at header and item level. If the field exists at header level, this will always have priority, if it does not exist there; the search continues to item level.

Add the field in result list

If you also want to display the field in the result list is necessary to add it in the structure /SAPSRM/S_POWL_RESULT_SC_ITM. There is an include reserved for this purpose INCL_EEW_PD_SEARCH_HDR_CSF_SC “Cust.Enhancements in Shoppg Cart Header: Search Results”. Create an Append structure in this structure and add the field.

Return to SPRO Adjust POWL Layout, Search Criteria, and Pushbuttons  or transaction /SAPSRM/POWL_CUST and add the field.



Refresh the query with the program POWL_D01 and now the field is also displayed in the result list.


    Change POWL dinamically

Within the enhancement spot /SAPSRM/BD_CLL_POWL_FEEDER you have four Badi Definitions for change the behavior of POWL.


Let see a tiny example of use of one of these BADI definitions, goto SE18 and choose Display.


Expand the node /SAPSRM/BD_POWL_CHNG_SELCRIT and choose Create BADI implementation.


First, create the Enhancement implementation. Choose “New” and create a new one.


Then choose it and push Ok:


Now, create the BADI Implementation:


Now, if you want you can define a filter for specify with wich feeder the badi will be triggerd, is good to do it but in this case is not necessary we’re going to control it by code. So, go to the implementing class:


In the signature of the method you have the parameters you need to know the feeder and application ID.


Let’s see a sample code for hide the field or change the search help is used:

  DATA: ls_selcriteria LIKE LINE OF ct_selcriteria.
  IF iv_flt_powl_type   EQ 'SAPSRM_FEEDER_SC_PROF'.
    READ TABLE ct_selcriteria INTO ls_selcriteria WITH KEY selname = 'ZZ_CUSTOM_FLD'.
    IF sy-langu EQ 'ES'. "Put here the condition you want...
      ls_selcriteria-hidden = 'X'.
      ls_selcriteria-ddic_shlp = 'ZZ_OTHER_DDIC_SHELP'.
      ls_selcriteria-mandatory = 'X'.
    MODIFY ct_selcriteria FROM ls_selcriteria INDEX sy-tabix.

Related Content

You must be Logged on to comment or reply to a post.
  • I have not received a selection criterion in the POWL πŸ™ . After execution of the method / SAPSRM/CL_CLL_POWL_BO_RFQ-SET_MT_SELCRITERIA, MT_SELCRITERIA table doesn't have custom fields.

    My Feeder Type : SAPSRM_FEEDER_RFQ


  • Hello,

    Thanks a lot for this great information. But i am not able to display new field on my SC in the SRM 7.0 portal. In fact i want to add MANU_PROD field at item level. I followed what you said but still can't get the field displayed πŸ™

    Here are the steps:

    1- SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization)  -> Configure Field Control -> Configure Control for fields on Item Level.

    2- I select then Metadata for Fields on Item Level and add new entry for the field MANU_PROD.

    3- After saving i open an old SC from portal but the new field is not displayed.

    Any help please?

    • Hi Hazem,

      This document is for add custom fields.
      For add standard fields that are not visible sometimes is not sufficient with add the field in the customizing, may be you need a user role or other thing... i don't know in this case... πŸ™

      Open a new thread in SRM community maybe someone has the solution.

  • Is it through web dynpro?If yes, when i try to create new enhancement, a popup is displayed asking for access key. Should i have such key from SAP or am i missing something?


    • It could be your developer key and not an access key. So verify that.

      Because it will never prompt for an access key when you are enhancing the web dynpro component.



  • Hi Ricardo,

    Thanks for this doc at first. we want to add a custom field in PO which should be displayed in multi tabs (ex . field zprint displayed in general data tab and output tab). How can we do that?



  • Hi Ricardo,

    This is the procedure I had implemented for enhancing POWL. Everything is working fine, but I see a issue in the update of field for every user. I mean, for every user we need to do some initialization procedure to make the BADi hit for first time. Only after this, I am able to see the custom field in POWL. Is there any procedure to get rid of this?



    • Hi Santosh,

      The implementation of the badi is optional, you don't need to do it to show the field in POWL. I don't know what can be your problem, Did you use the report POWL_D01 to refresh the query?

      If you followed all the steps and doesn't work may be you ought to create a new thread in the SRM forums. πŸ˜‰  

    • Hi Kiran,
      You can create your own data element for the custom field and assign the search help there. Or you can assign the search help to your custom field in the append structure.

    • Hi Pankaj,

      In the feeder class of particular BO we need to do that. For Which BO you are looking for?

      The method GET_SEARCH_CRIT is used for that, Please check the Feeder class for that BO and do that or you tell the BO I will let you know the BO for same.

      Best regards,


      • Hi Rohit,

        I have to do it for Confirmations (BUS2203). Can you plz explain me in detail? This is feeder type I can see for my requirement SAPSRM_FEEDER_CONF_ESS. Do you mean to say that I can't achieve this through configuration and I have to make changes in ABAP Webdynpro application?

        Thanks and Regards,


        • Hi Pankaj,

          You can maintain this the configuration for This in POWL node with SPRO for this feeder.

          It will read these entries which are maintained there.

          Run The report POWL_D01 after that and you will see the changes on UI.No need for Webdynpro changes.

          Best regards,


          • Rohit,

            I can also find Status field for my feeder in SPRO but how should I add a new value in Status field. I could not find anywhere those values maintained (Saved, Awaiting Approval, Release Rejected). It just gives properties of the field like dropdown, enabled/disabled etc.

            Thanks and Regards,


  • Quite Nicely explained.

    I am able to achieve

    Label _____ Text Box

    Can you please let us know how to add a label field. For Example:

    Label _____ Text Box _____ Label Description of Text Box Value

    • Hi Ashish,

      If you want to add a Description you have to create an enhancement point in the standard webdynpro... Add the attribute in the context using the wizard and then add the label, the field and the description in the layout.

      The customizing is still working for hide or show the field. But you have to bind the visible attribute of the label and the description to the property visible of the text box.


  • Hi,

    I tried this Same issue.

    My Feeder Class:POWL Query_feeder.png

    But After Execution my Feeder class was not displaying in report.


    Anybody can u suggest .Field also not displaying in SC.



  • Dear ,

                   Thanks for your document, i followed the above procedure and executed POWL_D01 program too but still am not able to see my custom field on scree. please help me to get it displayed.



  • Hello

    Thanks for the great how to instruction
    Perfect, for me worked perfect to add some standard fields and custom fields to SC and to Search Criteria , but i have a β€œsmall” problem with last part : Add the field in result list

    So i followed all steps to add the fields in the result list, i can see the fields ( i have added for example Vendor to see the supplier in the result list ) , but the field is totally empty, no value inside even do inside the SC vendor exists

    Can anyone support what it’s wrong or what else i must do to get data inside the fields , so fields are now visible but all of them empty

    As you can see i can see them in the settings for the result list, i made them visible
    i can see them but all of them are empty - no values, no error
    All of them are standard except YIRAS number

    and the first part works great - i added them in search criteria, and they work properly
    I can do search / filter based on them EXCELENT


    • Hi Harendra,

      The steps are the same. You have to add the fields in both structures; cross-document and specific document. The rest os the steps are the same.


  • Hi Ricardo,


    Thanks for this document. I was able to add custom field in Search Criteria.

    However, is there a way to add the custom field specifically in Advance Search?