Addign new customer field in Shopping cart SRM with default value

We have requirement to add new Customer field in Shopping cart (SRM 4.0) and assign a default value to it.
We have added the custom field and also assigned default value  'X' to it using BADI  BBP_CUF_BADI_2 method MODIFY_OUTPUT. Problem we are facing is in case user changes the value and unchecks the custom field then it gets overwritten by default value once the shopping cart is saved. We have followed steps mentioned in link below in order to add custom field and populate it.
[/people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm|/people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm]
KR Jaideep,

Hi,
In badi BBP_CUF_BADI_2, method MODIFY_OUTPUT,
are you doing something like this?
CASE IV_FIELDNAME.
  WHEN 'YOUR_CUSTOM_FIELD'.
    IF IV_VALUE IS INITIAL.
      MOVE 'YOUR_DEFAULT_VALUE' TO EV_VALUE.
    ENDIF.
ENDCASE.
Best regards.
Edited by: Pablo Casamayor on Jul 23, 2009 12:32 PM

Similar Messages

  • New Customer Field in Shopping Cart (SRM) with default value

    We have requirement to add new Customer field in Shopping cart (SRM 4.0) and assign a default value to it.
    We have added the custom field and also assigned default value 'X' to it using BADI BBP_CUF_BADI_2 method MODIFY_OUTPUT. Problem we are facing is in case user changes the value and unchecks the custom field then it gets overwritten by default value once the shopping cart is saved. We have followed steps mentioned in link below in order to add custom field and populate it.
    /people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm
    KR Jaideep,

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • How to hide custom fields in Shopping cart depening on user role

    Hi,
    We have some custom fields in shopping cart for basic view. Every thing works fine. Now client is asking to hide all the custom fields based on user role.
    I found some function module to fund roles. now my main problem is unable to find the cusotm filed screen field name.
    When I tryed to find the screen field name using BBPSC02/03, its giving 'GT_DISPLAY_100-FIELD'. If I try to use this field, its not working.
    Could you pls tell me how to find custom screen filed name to hide in shopping cart.
    Thanks,
    Ram

    Hi Ram,
    As Laurent suggested,to hide the custom fields based on the user role,you need to implement the logic in BADi "BBP_CUF_BADI_2".
    You have the importing parameter IV_USER in this BADI.
    Pass this parameter to tables AGR_USERS and AGR_USERT  to get the user role
    OR
    Use FM: BAPI_USER_GET_DETAIL
    with USERNAME= user id and can retrieve Table: ACTIVITYGROUPS Field:AGR_NAME
    if you want the otherway around
    you can also use FM: RSRA_USERS_OF_AGR_GET
    with I_AGR_NAME= role and you can retieve Table: ACTIVITY_GROUPS_USERS Field: UNAME(usr Id)
    Then check the value for the User role as obtained using the above steps and accordingly set the property for the custom fields to hide them.
    BR,
    Deepti.

  • Displaying Custom field in shopping cart header

    Hi all, I know how to add a field to header and item levels of the shopping cart.
    - In the note 672960 it says 'Note that the header fields cannot be displayed for the shopping cart. If you define fields on the header, they can only be filled in BADIs.'
    However,
    We are able to fill in the name of the shopping cart on the third step, which is also a part of header information. Is there a possibility to add a custom field(the user must be able to fill it) and display it in that screen???

    Hi
    <u>To add custom fields to the shopping cart, please try this process -></u>
    <b>Please refer to these links for details -></b>
    Re: SC header CUF ?
    Re: MAP USer SRM defined fields in backend for PO
    Re: HI SRM experts...
    Custom fields to a Bid Invitation
    Addition of custom fields in Contract and mapping it with the fields in SRM
    urgent help request - How to add custom fields to  header BID.
    Re: Add custom fields to Contract Transaction in SRM 4.0
    Custom Fields
    custom fields in Carry out sourcing screen..
    Custom Fields Not Display In Basic Data In SRM 5.5 Server..
    SC : Extended  Search on Header Customer field
    Re: customer field in 3rd step of shopping cart
    Adding fields in shopping cart
    Custom Field in the header of Shopping Cart
    <b>Please refer to these SAP OSS notes -></b>
    <u>Note 458591 - User-defined fields: Preparation and use
    Note 672960 - User-defined fields 2
    Note 822424 - CUF. Customer fields cannot be changed in the bid
    Note 809630 - Customer field in bid invitation and bid - How does it work?
    Note 809628 - Table like customer fields from bid invitation in bid
    Note 798731 - Bid: Bid Inv. Customer fields not visible
    Note 762984 - SRM40-SUS: Implementation of customer enhancement fields</u>
    <b>Please go through the documentation of following 3 Business Add-Ins using SE18 transaction.</b>
    BBP_BUPA_GET_CUF Customer Fields for Vendor Master Data
    BBP_CUF_BADI-Customer Fields. Call-up of User-Defined Screen
    BBP_CUF_BADI_2-Customer Fields. Use of Standard Table Control
    Hope this definitely help.
    Regards
    - Atul

  • Adding a new text field in Shopping Cart screen

    Hi,
    I am new to SRM and I am working on SRM 5.0
    My requirement is to add a text field for buyer's note with unlimited length similar to Approver's note in Shopping Cart screen.
    I have seen in the forum that many have done this earlier and i need step by step procedure to complete this task.
    I am able to create text field in Text Schema, but this field is not reflecting in shopping cart screen. Do i need to do any thing extra apart from maintaining in Text schema?
    Can you please send the detailed procedure to do this task?
    Thanks in advance.
    Regards,
    Vamsee

    Hi Saritha,
    Thank you for your help. In fact, i have gone through this link and followed the steps there. But, the Text ID is not reflecting in my shopping cart.
    We are using SRM 5.0. The requirement is to add a new text field with unlimited length similar to the existing Approveru2019s note field in Shopping Cart screen at header level.
    I have followed the steps mentioned below.
    1.Go to SRM IMGSRM Server->Cross-Application Basic Settings->Text Schema
    2.Execute Define Text Types and then select the entry BBP_PD Text Object and click on Text Type.
    Here, create new entry for ID as ZHTXT and Description and save it.
    3.Execute Define Text Schema and then select the existing Text Schema SC ( Shopping Cart) and click on Texts for Schema.
    Here, assign the newly created Text ID with details Header/Item etc.
    4.I am not executing the last step Define Fixed Values for Texts, as the Text Schema SC is already assigned Transaction Type Transaction Type SHC.
    Please suggest do I need to perform any extra steps apart from Text Schema to reflect the Text ID which I created in my Shopping cart screen? Or do we need to code anything on ITS side?
    Thanks in advance.
    Regards,
    Vamsee

  • Custom field in shopping cart

    Hi All,
    I need to add a custom filed in the shopping cart in SRM. I added the field by appending a structure in INCL_EEW_PD_ITEM_CST_SC and INCL_EEW_PD_ITEM_CSF_SC. I also executed the report BBP_DYNPROS_GENERATE by entering the prog name SAPLBBP_PDH_CUF. After doing these things when I go to shopping cart wizard and go to item details where my field should be visible, it gives a short dump "Field symbol has not been assigned yet (GETWA_NOT_ASSIGNED) ".
    Is there anything else I need to do to add a filed in the shopping cart.
    Please help.
    Thanks in advance.
    Neerja

    Hi Neerja,
    Go through the following links:
    Re: Dump after custom field creation in SRM shoppinc cart
    Re: Customer fields
    Adding fields in shopping cart
    And try to follow the steps given in the following blog:
    How to create custom fields in SRM
    Hope this helps
    Thanks,
    Pradeep

  • How to preset fields in a transaction BP with default values

    Hi!
    I want to fill few fields in transaction BP with default values.
    This should be if there`s a new business partner to insert.
    If i can do this depending on the selected role it was the best
    First i thought on SPA/GPA-parameters ... but then i can`t do it in depence on the selected role.
    In customizing i can tell only if a field should be displayed or not, for input or not, ... but no values to insert.
    Is here anybody with a good idea for me?
    I`ve posted my question first in crm-section but i think here it`s better
    Thanks a lot in advance.
    Best regards,
    Ingo

    Hi,
    There is one possibility which requires an enhancement of the
    BDT event ISDAT and a call to the function module
    BUP_BUPA_FIELDVALUES_SET. This means that an ISDAT function module needs to be written (transaction BUS7) which calls the function module BUP_BUPA_FIELDVALUES_SET with the needed values that are to be defaulted. You can read the role value using BUS_PARAMETERS_ISSTA_GET (T_RLTYP).The fields which are possible can be found in the DDIC structure BUSDEFAULT. However this is limited only to the fields inside this structure.
    Thanks and warm regards,
    Smita.

  • Addition of custom field in shopping cart at item level- SRM 7.0

    Hi All
    Can someone pls. let me know the step by step procedure for adding a custom field in the shopping cart at item level?
    How is the field displayed in the portal screen and the settings for the same??
    Also is this field available for manipulation through Business add-ins like other standard fields.
    For e.g. I need to use the BADI BBP_CATALOG_TRANSFER to populate this new field.
    Will it be available there once created?
    Thanks
    Kedar

    Hi Kedar
      Here are the steps....
    1. Create a Custom field in SRM and append it to SC table structures in SRM
    2. Add this field to the Custom field config for meta data at Item level in IMG>SRM Server> Cross application basic settings> Extensionsand and field control> Configure field control --> Configure control of fields at item level
    3. THen find the respective web dynpro application and component for the shopping cart portal UI screen where you want the field to appear. You can do this by right click on the screen area and then select More Field Help
    4. Go to SE 80 and enhance the respective webdynpro view by adding the custom field to the Context of the VIew and then adding it to the layout of the view at respective location. After doing this create a binding between the layout field and the context.....
    More information around ABAP UI Flexibility can be found at:
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=%22abapUIFlexibility%22
    Regards
    Virender Singh

  • Add a new tab with customer fields to shopping cart item

    Hello Experts,
    I wanted some help in adding a new tab to shopping cart items. I went through some posts and found ways of doing it using some spro settings, but there is no way i can handle the field type in this.
    I want a customer field which is a checkbox, how would i add this?
    Moreover if i use spro the tab will by default be called as "Table Extensions" , i want to give it a specific name.
    In case i am adding a new webdynpro component , how would i go ahead with this? what is the name of the fpm config where i need to add my customer webdynpro component?
    So could someone please help me with this requirement.
    Regards,
    cruiser

    Hello,
    Please follow below steps,
    1.  Appending the fields to the structure in Se11 i.e INCL_EEW_PD_ITEM_CST_SC
    x = header, item
    y = PO,SC
    2.  SAP SRM->SRM server-> Cross-Application Basic setting ->extension and field controls->create a  table extension and supply with data->define customer table extension .( ZAINCL_EEW_PD_ITEM_CST_SC)
    3.  Set the visibility of  table extension thru control table extension and their fields and actions
        use configure  visibility of table like item enchancements
    Bus. Object Set Type  : TICUS
    Bus. Object Type         :BUS2121
    Transaction Type        :SHC
    PDO set exist   :X
    4. Configure Control of Fields of Table Extensions
    Bus. Object Set Type : TICUS
    Structure Field Name : Field name
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM
    Field visible: X
    Field Enable: X
    5. Configure control action
    6. Maintain  view /SAPSRM/V_MDFSBC_DEFAULT
    Bus. Object Set Type : TICUS
    Structure Field Name : Field name
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM
    Field visible: X
    Field Enable: X
    Regards,
    Neelima

  • SRM 7.01 Custom field in Shopping Cart source of supply tab Issue

    Hello All,
    I have requirement to add two new fields ( Vendor Email Id and YES/NO option field to send mail to supplier from PO) in Source of supply tab in Shopping cart. I have followed below steps
    1) Enhanced item structrues with two fields
    2) Added new fields in V_DODC_SC_I_VENDOR view with new fields, This fields are appered on screen perfectly.
    Now i need to determine YES/ NO field value based on company code value of Shopping cart, I am not able to getING  Company code value of item in method WDDOMODIFYVIEW  of Pre and post exits to do logic.
    Please let me know where can i save this fields data and how, Thanks in advance.
    Best Regards,
    Bhaskar

    Hi Zuber,
    Yes, custom field is available in structure /SAPSRM/S_CLL_WD_SC_I_BD.
    I have created Context attribute in /SAPSRM/WDC_DODC_SC_I_SOS for view V_DODC_SC_I_VENDOR.
    Please let me know how can i map between view V_DODC_SC_I_VENDOR  and /SAPSRM/S_CLL_WD_SC_I_BD  structure ( SAPSRM/WDC_DODC_SC_I_BD  componet context), Thanks in advance.
    Best Regards,
    Bhaskar

  • SRM 7.0 Custom Fields for Shopping Cart Item

    Hi
    We are upgrading from SRM 4.0 to 7.0. Can you please help how to migrate the custom fields logic. We created fields in following shopping cart structure INCL_EEW_PD_ITEM_CST_SC and INCL_EEW_PD_ITEM_CST during upgrade. IncludesINCL_EEW_PD_ITEM_CSF_SC and INCL_EEW_PD_ITEM_CSF already have fields from SRM 4.0 Implementation. In SRM 4.0 BADI BBP_CUF_BADI_2 was used to populate values. In SRM 7.0 we tried to use Enhancement Spot /SAPSRM/BD_PDO_FIELD_EXTENSN that has BADI's /SAPSRM/BD_PDO_FE_FILL_HEADER and /SAPSRM/BD_PDO_FE_FILL_ITEM in it. During shop transaction these BADI's are not getting triggered. Is this the right way of populating data or do we need to use Webdynpro Enhancement concepts of custom views to populate custom fields .
    Thanks in Advance.

    I have the same problem that Dhivya Baskaran
    The window is:
    dynpro: / SAPSRM/WDCC_FPM_DO_SOCO_GAF_3
    Window: IV_L_FPC_GAF_CA
    View: V_AO_SOCO_GAF_3
    I need to add a customer field in the header and I know the parameterization it is for this screen
    anyone can help me?
    thank you very much

  • Custom fields on Shopping Cart in SRM 6.0 SP03

    Hello All,
    I have made a WD enhancment and added my Custom fields on the Header tab of the Shopping cart.
    But the fields are static as of now, as i am not able to handle the fields in the Post and Pre-exit methods of the Web dynpro enhancement.
    CAn anyone guide me regarding this. Handling custom fields in SRM 6.0 SP03.
    Regards,
    Gautam

    Hi Goutam
    Suggest you to attend the bootcamp being organized in Blr 23-25 to address these issues.
    Best regards
    Ramki

  • Updating Custom Field on Shopping Cart after PO is Ordered in SRM

    After a PO is approved or rejected in SRM's UWL, the customer requires that a custom field on the related Shopping Cart gets updated with 'approved' or 'rejected'.
    I know that the save badi, BBP_DOC_SAVE_BADI, gets hit after approval/rejection of POs. We currently are using the function module BBP_PD_SC_UPDATE in the doc save badi to update this custom field.
    Is there anywhere else we could update the SHC? We don't think this solution is the best. Does SRM have any standard SHC update process after a follow on document is updated that we could put an enhancement in?
    Thanks!!

    The BADI BBP_CREATE_BE_PO_NEW gets executed after approval as well. It is part of the PO creation process and allows you to modify the PO document before it is finalized.
    Hope this helps.

  • Adding custom fields to shopping cart in SRM 7.0

    Hi My dear Experts,
    I am having big doubt also a lot of confussion as per my understanding regarding adding custom fields to SC.
    I believe,
    i) It can be achieved by configuration in spro with respect to Meta data frame.
    i,e  Configure field control->configure control for fields on Header/Item level
    after that
    configure customer fields->Define cistomer fields on Header/Item level.
    ii) I also doubt fields can be added through Webdynpro enhancement of standard component.
    Pls clarify my doubt with little detail which is the best way to achieve my requirement ??
    Is Webdynpro Enhancement  really needed ??

    Hi ,
       Example for  Adding fields in SC accounting Tab ...follow the below example
    1. Add custom field ZZTESTACCT  in   structure   INCL_EEW_PD_ACC_CSF by  using  append structure.
    2. Spro ->Supplier Relationship Management u2192 SRM Server u2192 Cross application basic settings u2192 Extensions and field controls (personalization) u2192 Configure field control ->Configure Control for Fields of Substructures
    then click on  "Metadata for Fields of Substructures and Table-Like Enhancements"
    add the below entry
    Bus. Object Set Type  : 31
    Structure Field Name  : ZZTESTACCT
    Bus. Object Type       : BUS2121
    Set Level                    : Item
    Field Visible :  Check box should be checked
    Field Enable :  check box should be checked
    if you create the above entry then you can see ZZTESTACCT field in the accounting tab.
    Second point :
    WD_BADI_DOMODIFYVIEW  is a Badi you can implement this badi for the WD component and View to handle the UI elements.
    regards,
    Devi

  • Addition of Custom Field in Shopping Cart

    Requrement :
    In the Item Detail screen on sources of supply tab add country field and inputbox & populate the inputbox with supplier country
    when the Item Detail Screen is displayed
    Steps I have followed :
    1) Created Appende structure in INCL_EEW_PD_ITEM_CSF_SC structure
    2) In the WebDynpro Component for corresponding view added the new field in context
    3) Created label and inputBox in the view & binded the inputBox from context
    4) Implemented the BADI BBP_CATALOG_TRANSFER and populated the field in the method ENRICH_ITEM_DATA
    However, on SRM portal for shopping cart I see empty inputBox without the value. 
    What changes should I make so that I can see the value in inputBox?  Please help.

    in the enrich item data method, which table are you populating?
    moreover, are you making the ev_sc_structure_used (or something like that) field as 'X'. if you dont make it as 'X', it wont transfer fields from this BADI to the SC.

Maybe you are looking for

  • Where can I find an Apple certified internal hard drive?

    I have a December 2006 MacBook Pro that I upgraded RAM and hard drives (twice) from OWC. After having Apple replace the display and the motherboard (again twice) I've been having boot problems. My local Genius Bar told me to replace the RAM with my o

  • Java framework/toolkit for POJO, database persistence and XML

    Hi all, I've been wondering if there's a toolkit or framework for developing Java program (could be standalone Java program, EJBs etc.) I surfed around casually and found some but there isn't any detailed description of what and how each framework/to

  • Screen shots with ipad camera

    how do I take a screen shot using my ipad camera?  I read in the WSJ that you hold down the home and on/off keys, but when I do that  I just get the hard shut down screen.  Am i doing something wrong?  thanks!

  • Need to fetch documents from filenet to SAP ?

    Hi, Here is the scenario.., The physical documents such as pdf, word documents etc.. are available in filenet/P8. These documents need to get fetched & displayed in SAP. For a prticular document id, all the related documents need to get displayed...

  • Browse Linux RPM database with Java

    I found that RPM database in Red Hat Linux is based on Berkeley DB. I found this document for Java and Berkeley DB: http://docs.oracle.com/cd/E17076_02/html/gsg/JAVA/BerkeleyDB-Core-JAVA-GSG.pdf I found that there are two version of Berkley DBL nativ