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.

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

  • 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

  • How to preset fields in TA 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?
    Thanks a lot in advance.
    Best regards,
    Ingo
    Edited by: Ingo Schmökel on Jul 1, 2008 7:20 PM

    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.

  • Initialize some fields in material master with default values

    Hi,
    I would like to initialize some fields in material master MM01 with default values.
    for exemple in the view MRP1 there is a field MRP type I would like to initialize PD in the field as default value.
    but when I go to the technical information there is no parameter id that I can use in SU3.
    Do you know how I can the initialize the field those don't have parameter ID?
    thank
    Dede

    Dear Glenn,
    This is possible in SAP for this use T code MMD1 and create MRP profile and assign this MRP profile while creating material using MM01 in the organisation level put this created MRP profile. The values you maintained in this profile get copied to the material by default.
    To maintain MRP profile go to MMD1->give your profile name...........> click on  selection screen push button--->give here profile description--->select what MRP  field which u want to make fixed one/default. if make fixed later you can not change--
    >click on data screen 1 push button and maintain your value and save
    sree

  • Portal Forms - How to make a Field with DEFAULT value NON-EDITABLE by Users

    I HAVE A FORM WITH A DATE FIELD ON IT WITH DEFAULT VALUE.
    THIS IS A TABLE-FIELD.
    I WANT THE FIELD TO BE DISPLAYED ON THE FORM BUT NOT TO ALLOW
    USERS TO EDIT/CHANGE IT.
    HOW CAN I DO THIS?
    TKS IN ADVANCE

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • FormsCentral - design form : Initialize form field with default value

    Hello,
              My customer asks me to initialize text fields with default values. Example , Name , email , phone number etc to be displayed by default till it is overwritten by values entered. Could you please guide me how to achieve this ?
    Many Thanks,
    Sree

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • Field 'record_EMP_ID' doesn't have a default value

    I solved org.hibernate.TransientObjectException by adding "@OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL)"
    But this time values can't be inserted to DB.
    OS : Windows 7
    JDK : JDK 1.6
    JBoss : JBoss 5.1.0.GA
    DB : MySQL 5.5
    Error is "Field 'record_EMP_ID' doesn't have a default value"
    - Members.java
    @Entity
    @Table(name = "family")
    public class Members implements Serializable {
    @Id
    @Column(name = "EMP_ID")
    private String id ;
    @Column(name = "EMP_Passwd")
    private String passwd ;
    @Column(name = "EMP_Name")
    private String name ;
    @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL)
    @JoinTable(name="info", joinColumns = {@JoinColumn(name = "EMP_Name")})
    private Collection<Records> record = new ArrayList();
    ....getter and setter
    - Records.java
    @Entity
    @Table(name = "info")
    public class Records implements Serializable {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "EMP_ID")
    private int i;
    @Column(name = "EMP_Name")
    private String name;
    @Column(name = "EMP_Bank_Account")
    private String account;
    @Column(name = "EMP_Hobby")
    private String hobby;
    @Column(name = "EMP_Phone")
    private int phone;
    ...getter and setter method
    in jsp file I invoke EntityManager.persist
    Context ctx = new InitialContext();
    IMappingTestPort port = (IMappingTestPort) ctx.lookup("MappingTestBean/remote");
    Records r = new Records();
    r.setName("aaa");
    r.setAccount("111-2222");
    r.setHobby("bbb");
    r.setPhone(021112222);
    Members m = new Members();
    m.setId("aupres");
    m.setPasswd("aaa");
    m.setName("ccc");
    m.getRecord().add(r);
    port.setFamilyMember(m); // This EntityManager.persist method
    But it failed.
    In console
    20:21:29,233 INFO [STDOUT] Hibernate: insert into family (EMP_Name, EMP_Passwd, EMP_ID) values (?, ?, ?)
    20:21:29,268 INFO [STDOUT] Hibernate: insert into info (EMP_Bank_Account, EMP_Hobby, EMP_Name, EMP_Phone) values (?, ?, ?, ?)
    20:21:29,288 WARN [JDBCExceptionReporter] SQL Error: 1364, SQLState: HY000
    20:21:29,288 ERROR [JDBCExceptionReporter] Field 'record_EMP_ID' doesn't have a default value
    record_EMP_ID is automatically generated by hibernate
    Pls help!

    An update: 
    New virtual machines created after the integration is in place is visible in Virtual Machine Health Dashboard. No other dashboards seems to contain any data.

  • Initializu00EDng select options field with default values and with NO INTERVALS

    Dear All,
    I have used WDR_SELECT_OPTIONS technology within WD Abap.
    I also have added the fields which have to be taken into consideration.
    lt_range_table =
    wd_this->m_handler->create_range_table(
    i_typename = 'PLANT' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    i_read_only = read_only ).
    Can I assign two values to this field 'PLANT' whereby the user may take only these values.
    I mean kind of pre initializíng of this select options field with default values.
    Due to this handling it should be prevented that the user can give other values
    except this values.
    Additonally it should be fine whether it is possible to disable the second input field
    of this select options field like NO INTERVALS .
    Regard
    sas
    Regard
    sas

    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    I_NO_INTERVALS = 'X'
    i_read_only = read_only ).
    Pls check 'WDR_TEST_SELECT_OPTIONS' web dynpro component

  • How do I change iCalendar alerts to a non-default value, ie, send an email 2 days before event.

    How do I change iCalendar alerts to a non-default value, ie, send an email 2 days before event?

    cjphoto1 wrote:
    How do I change iCalendar alerts to a non-default value, ie, send an email 2 days before event?
    Open the Calendar app, open the event, tap Edit and change the Alert times.
    If you want to change the default time, Settings > Mail, Contacts, Calendars, scroll down to Calendars - Default Alert Times.

  • Data field FUNCTIONAL_YN does not support the default value (Message 14120)

    L.S.,
    When defining a data type of category NC, I would like to use data fields of type checkbox. At NC logging data entry the checkbox should be "checked" by default.
    When looking for the proper value to indicate that the ccheckbox is selected, I have tried values like: 0, 1, TRUE, FALSE, T, t, X, x ... etc. But always I got the same error message:
           "Data field FUNCTIONAL_YN does not support the default value (Message 14120)"
    What should be the right value?
    Kind regards, Hans

    Hans,
    It looks as if by means of GUI you cannot specify default state of being selected for Checkbox field. The default state is unselected.
    It is easier to invert the statement in the label of the field so that an operator could use unselected state as default.
    Regards,
    Sergiy

  • How to hide fields in XD99 transaction

    Hi Experts ,
    I got a requirement to hide some fields in XD99 transaction for specific user group, I tried creating transaction variant but it is not allowing me to create for XD99 and displaying error ''Variants are  possible  only for dialog  transactions" . Please suggest a  alternate method to hide fields under 'fields' tab in XD99.
    Thanks in advance .

    Try to create variant for transaction MASS.
    Regards,
    Raymond

  • How to prefill fields and skip first screen with webgui?

    Hello,
    I am working in an abap web dynpro component: in one view i have a button which on his action has to launch the transaction CG02 (EHS).
    I have questions about the Link ITS / Sap Kernel: i use the ITS Service WEBGUI and i want to launch the transaction CG02. I want to go directly to the header data for a substance and skip the initial screen where we have to make a research for a substance.
    I have the following URL:
    'http://d5e.reach.ehs.saint-gobain.com:8081/sap/bc/gui/sap/its/webgui/?sap-client=100&sap-language=EN&~transaction=*CG02%20RCGRHSCR-SUBID=000000000007;DYNP_OKCODE=SHOW'.
    The substance has the ID 000000000007.
    I have read an article from Klaus Layer which talk about a new OKCODE.
    My question: how to create this new OKCODE and where?
    I success to go to the transaction CG02 but unfortunately i stay in the initial screen.
    Can you help me?
    Thanks.
    F. BERRA

    Hi Uday,
    It's not completly the same pb: for me i have a button in the view, and i have the following codes on the method Action:
      DATA:  ld_url TYPE string,
             ld_url1 TYPE string,
             ld_url2 TYPE string,
             ld_url3 TYPE string.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      ld_url1 = 'http://d5e.reach.ehs.saint-gobain.com:8081/sap/bc/gui/sap/its/webgui/?'.
      ld_url2 = 'sap-client=100&sap-language=EN&~transaction=*CG02'.
      ld_url3 = '&~okcode=&WBCHIS; RCGRHSCR-SUBID=000000000007'.
      CONCATENATE ld_url1 ld_url2 ld_url3 INTO ld_url.
      CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = ld_url            "'http://www.sapdev.co.uk'
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    I succeeded with this code for a simple transaction  like SE37: you have an input field for your transaction, you launch the execution and all is OK.
    But for transaction CG02, it's more complex: when you arrive to the transaction, you have to make an action: search the specification : the corresponding okcode is '&WBCHIS', than you put a specification, you make ENTER, you double click on the line and you obtain the header data that you search.
    I don't succeed in this case.
    Have you an idea?
    Best Regards.
    F. BERRA

  • How to use task flow's transaction options with session's user data

    Hi.
    I have custom extension of ApplicationModuleImpl class:
    package test.model
    imports...
    public class CustomAppModuleImpl extends ApplicationModuleImpl {
        public static final String SESSION_VAR = "MySessionVar";
        public CustomAppModuleImpl() {
            super();
        @Override
        protected void prepareSession(Session session) {
            super.prepareSession(session);
            System.out.println("######## " + this.getClass().getName() + ".prepareSession() called.  AM isRoot() = " + isRoot());
            Hashtable userData = session.getUserData();
            if (userData == null) {
                userData = new Hashtable();
            userData.put(SESSION_VAR, "Useless");
        @Override
        protected void create() {
            super.create();
            System.out.println("######## " + this.getClass().getName() + ".prepareSession() called.  AM isRoot() = " + isRoot());
    }Inside userData I store some useful session-based values (here is just an example ;) ).
    Within Model.jpr I defined that every Application Module I create must extends this CustomAppModuleImpl :
       <value n="oracle.jbo.extends.appModule" v="test.model.CustomAppModuleImpl"/>
    ...I have one AM with one view:
    package test.model;
    import oracle.jbo.server.ViewObjectImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Wed Mar 07 20:22:11 CET 2012
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class AppModule1Impl extends CustomAppModuleImpl {
         * This is the default constructor (do not remove).
        public AppModule1Impl() {
         * Container's getter for EmployeesView1.
         * @return EmployeesView1
        public ViewObjectImpl getEmployeesView1() {
            return (ViewObjectImpl)findViewObject("EmployeesView1");
    }Now I have BTF (bounded task flow, with default properties) and I call that task flow on a button press. With default properties ( Transaction: <No Controller Transaction> ) I get preferred values from session's userData within Entity Object.
    Code snippet inside that entity implementation looks like:
            DBTransaction dbt = getDBTransaction();
            System.out.println(getClass().getName() + " entity lives AM: " + dbt.getRootApplicationModule().getClass().getName());
            if (dbt.getSession().getUserData() == null) {
                System.out.println(CustomAppModuleImpl.SESSION_VAR + " -> NULL");
            } else {
                System.out.println(CustomAppModuleImpl.SESSION_VAR + " -> " + dbt.getSession().getUserData().get(CustomAppModuleImpl.SESSION_VAR));
    ...And as I mentioned output is correct:
    test.model.EmployeesImpl entity lives AM: test.model.AppModule1Impl
    MySessionVar -> UselessNow the trickiest part. As soon as I change property of called task flow Transaction to something else that +<No Controller Transaction>+, e.g. Always Begin New Transaction, code snippet from task-flow.xml :
        <transaction>
          <new-transaction/>
        </transaction>
    ..This session stuff begin to act unpredictably. Session's userData is now null. And Output looks like:
    test.model.EmployeesImpl entity lives AM: oracle.jbo.server.ApplicationModuleImpl
    MySessionVar -> NULLWhy in the world ADF uses oracle.jbo.server.ApplicationModuleImpl instead of test.model.AppModule1Impl or at least my defined test.model.CustomAppModuleImpl ?!?
    Is this a bug? Or maybe a feature?
    10x
    Regards

    Hi,
    Why in the world ADF uses oracle.jbo.server.ApplicationModuleImpl instead of test.model.AppModule1Impl or at least my defined test.model.CustomAppModuleImpl ?!?
    Is this a bug? Or maybe a feature?
    ADF BC alwyas has a transaction opened even if the ADFc setting is No Transaction. So if you explicitly ask for a new transaction I assume that the ADF BC data control creates a new transaction without re-executing your AM initialization codes. Looks as if it uses an internal AM instance for this just to hold the transaction. However, worth filing this as a bug - assuming you reproduced this with a later version of either JDeveloper 11g R1 or R2
    Frank

  • Create pricing condition with default value in processing process field

    hi all,
    when i maintain the pricing conditions with vk11 or vk31, i want the price maintained is set default as blocked (the processing status field-KBSTAT). can it be done? i am using 4.6c.

    You should try to use transaction variant
    <i>Transaction variants simplify transaction flow by:
    Inserting default values in fields
    Changing the ready for input status of fields
    Hiding various screen elements and menu functions, or even entire screens
    Adjusting table control settings
    When you create a transaction variant, you run through the transaction in a special mode. In this mode, you decide which elements you no longer need in your transaction and which values should be inserted where. If you choose to hide an entire screen, the system will no longer display that screen in the transaction and will proceed on to the next screen in the series. You can also adjust table control settings and determine the width of columns and the order in which you want them displayed. In tab strips, you can suppress tabs that you no longer need by setting them to invisible.
    You may also create as many variants for a transaction as you desire. One of these variants can be defined as a standard variant. This variant is then valid across all clients. You may also assign different variants to specific users.
    This is done using Variant Transactions. Variant transactions are then places in those users’ user menus instead of the standard transaction. </i>
    To use this : Tools -> Accelerated SAP -> Personalization (transaction SHD0)
    Regards

Maybe you are looking for

  • Has anyone set up Mediasense yet?

    Hi, I have a customer with mainly 7940 IP phones (no Built in Bridge) registered to CUCM 8.6. They recently moved to CUBE gateways on ISR 2921 routers for PSTN access. They now need a recording solution so I am looking at options. The 7940 phones do

  • Idocs not reaching XI from R/3

    Hi , There are two company codes defined in the R/3 system. The idocs are successfully generated and sent to the port from both the company code, status is successful in we02. But the Idocs from only one company code is received in XI and the idocs f

  • Need asnwers - interview questions

    Hi Experts, I am a novice candidate pursuing for SAP BW/BI opportunities and appearing for different interviews in SAP BW/BI. Following are some of the questions that I was fired by the interviewers. I appreciate your time and consideration for answe

  • Installing I tunes - Will not work

    After i installed itunes it asked me to accept the itunes agreement and then it comes up with (the Itunes libary.itl file is locked, on a locked disk or you do not have write permission for this file) I had itunes on my computer a year or so ago, but

  • Adding STAND BY REDO LOG in the Primary side........

    Hi All, I have set STANDBY_FILE_MANAGEMENT=AUTO in standby side and also LOG_FILE_NAME_CONVERT is pointing to an exiting location at OS level... When i added a datafile to an existing tablespace in the primary side and performed a log switch on the s