Assigning default values to root and subnode attributes

Hello,
I created a BO with a root node. In order to assign some default values after a root instance is created, I've implemented a determination. Everything is working as expected. When the instance is created (and only then) the init method is processed and the default values get assigned.
As a next step, I added a subnode. I need to assign some default values to a new instance as well. So, I've created a determination for this subnode, in the same way as I did it for the root node.
Now, when a new instance is created, the init method of the root is processed, but not the init method of the subnode. Only when I change a value of a subnode attribute and do a save, the init method of the subnode is processed and the init method of the root node as well (overwriting any changes with the default values, which is wrong).
How can I achieve that after instance creation (and only at this point), the init method of the root and then the init method of the subnode are processed?
Thanks for any advice.
regards,
Ulli

Hi Ulli,
It should work if you have configured as rightly mentioned by Tilmann.
but If you want to debug the framework to understand the behaviour, you have to go to class - /BOBF/CL_FRW.
Put a break-point in any of these method - CHECK_AND_DETERMINE / DO_DETERMINATIONS
/ DO_DETERMINATIONS_RETRIEVE
/ DO_DETVAL
Thanks,
Bharath.

Similar Messages

  • Assigning Default value to a Infotype Field

    Hi,
    My requirement is to assign default value to the loan amount field of the loans infotype(0045).
    I am using the PBAS0001 user exit program ZXPADU01 and taking the basic pay amount for the employee from infotype 8 and assigning it to pa0045-dabrt(loan amount)field in infotype 45. But the problem is the loan amount field in 45 infotype is of the type currency(13 characters) and if i assign a value 2000 to the field its displaying as 20,000,000.00. That is the value is being multiplied by 10000 and is displayed. When i tried to divided the value by 10000 and pass it, for odd numbers its not working.Can Some one provide the solution for this problem.

    Try using simple Formula at field level insted of field routine.
    there is IF( <condition>, <result when true>, <result when false> ) option avaialble in formula
    Regards
    Sudeep

  • User exits for mm01 to assign default value

    experts,
        when i have used exit  MGA00002 and the corresponding function module EXIT_SAPLMG02_001 to assign the default values   of  mbrsh and mtart to the material number created during the course of the transaction mm01 i have written the following code in the INCLUDE ZXMG0U03
        matnr+3 = matnr.
       matnr+0(1) = mbrsh.
      matnr+1(2) = mtart.
    concatenate matnr0(1)  matnr1(2)  matnr+3 into matnr.
    but default value is not getting assigned.
    with regards.

    you just want to concatenate the mat type and indus sect to ur material num.
    if it is then do this
    go for MGA00001
    in that  u use
    data: field1(18) type c,
    concatenate the three  fields using wmara like
    wmara-matnr wmara-mbrsh wmara-mtart
    into ur field field1
    now write
    cmara-matnr = field1.
    if useful rewars
    regards
    Prakash Varun

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • Providing default value to OID 11g Custom Attribute

    Hi,
    I have created a custom attribute in OID 11.1.1.5. Is there anyway that a default value can be assigned to this custom attribute in OID?
    Thanks

    Hi Michael,
    Yes my data source is LDAP.  This attribute is added in the portal itself and I don't think it is possible to set the value of custom attribute at LDAP.
    Shanta : We already created the custom attribute and it is also appearing in the Customized information
    Problem is we need to set a value to that attribute. This should be same to all the users coming from LDAP.
    My Basis people are asking the funtion module which calls when we click on the Customized information tab.  Is that possible to know?
    Or we can set this value by writing a piece of code in webdynrpo java?
    Appreciate your inputs
    Raghu

  • What is the default value of boolean type transient attribute in VO?

    Hi All,.
    jdev version-11.1.2.1.0
    i have created one vo based on eo where i add one boolean type transient attribute Marked(uihint checkbox).
    now i have apply view criteria on this vo.
    like---
         ViewObject vo=getView(iterator);
         vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
         ViewCriteria vc=vo.createViewCriteria();
         ViewCriteriaRow vcr=vc.createViewCriteriaRow();
         vcr.setAttribute("Marked", "true");//Setting attribute on view criteria.
           vcr.setConjunction(ViewCriteriaRow.VCROW_CONJ_AND);
           vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
         vo.applyViewCriteria(vc);//Apply view criteria on vo.
         vo.executeQuery();
         vc.add(vcr);
       vo.executeQuery();this code running fine and that is selected only those row which i have cheked.
    but now i want to apply view criteria that select select those rows that are not checked.
    like-
    vcr.setAttribute("Marked", "false");but it is not return any row.
    if select checked any row and then uncheked that row so marked attribute for this row set false. but rows that are unchecked by default not return.
    so my question is that what is default value of Marked attribute when user not take any action i will try
    vcr.setAttribute("Marked","null");
    but not working.

    i have tried this but this is not working.
    follwing code working for Null case not for False
    vcr.setAttribute("Marked","is null"); this code display all rows who has null but when i checked any row and then unchecked so that row get value "false" also not display.

  • How to assign default values to fileds in the org. tab of an oppurtunity

    hi Experts,
    I created a new org data profile and assigned it to a transaction type.
    The org. tab consists of
    org. unit
    sales Org.
    Distribution Channel
    Sales Office
    Sales Group
    out of which first four are mandatory.
    Now I need to populate "10" in the distribution channel field irrespective of whoever logfs in.
    At present a list of sales offices and distribution chaneel popups up for selection by the user.
    In my business scenario, I don't want the distribution channel to be taken from there instead it should hold a default value "10".
    Pls help me in this.
    regards,
    Arul jothi.A

    Hi Arul,
    You can implement BADI 'CRM_ORGMAN_BADI' to populate the distribution channel field by default.You are to code in the method 'CRM_ORGMAN_MERGE' . The code you will have to write for defaulting value will be something like this :
    CODE :
    method IF_EX_CRM_ORGMAN_BADI~CRM_ORGMAN_MERGE.
    data : lv_guid type CRMT_OBJECT_GUID,
           lv_process_type type CRMT_PROCESS_TYPE.
    finding the process type *****
    lv_guid = is_orgman_wrk-REF_GUID.
    CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
      EXPORTING
        IV_ORDERADM_H_GUID               = lv_guid
    IMPORTING
       EV_PROCESS_TYPE                  = lv_process_type
    EXCEPTIONS
       ADMIN_HEADER_NOT_FOUND           = 1
       OTHERS                           = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *********defaulting value if process type is opportunity(OPPT)
    if lv_PROCESS_TYPE = 'OPPT'.
    cs_orgman_badi-DIVISION = '10'.
    endif.
    endmethod.
    Hope this solves your problem.
    Regards,

  • DEFAULT values for OUT and IN/OUT parameters in PL/SQL

    Why are OUT and IN OUT parameters not allowed to have DEFAULT values assigned to them? Or is there a way around this?
    thank u

    For IN parameters this makes sense. For OUT parameters... hm... when you don't get anything out you also don't need a default value. I think the cases where you want to overload can't be compared with default values.
    For IN a default value would be like:
    If I don't add this parameter it should use 'DEFAULT' as INPUT value.
    For an out parameter:
    If I don't use a variable for this parameter the output value should be 'DEFAULT'.
    and written into nirvana? it does not make sense to say I output something but I don't output something.
    Message was edited by:
    Sven W.

  • Default Value , Not Null and EJB2.1

    Hi ,
    Am using Weblogic10.3 + Oracle Db + EJB2.1 Local Entity Beans .
    The issue is that one of the table has createdDt which is not null and is defualt is set to Sysdate. When I try to create this Entity with createdDt null , I get an exception like below , But since I have mentioned default value , I shouldnt be getting this. Have I missed something ?
    Code is quite straighforward
    Organisation org = organisationHome.create();
    ....org.setter methods..
    java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-01400: cannot insert NULL into ("XXX"."ORGANISATION_T"."CREATEDDT_F")
    ErrorCode=1400 SQLState=23000
    java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-01400: cannot insert NULL into ("XXX"."ORGANISATION_T"."CREATEDDT_F")
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.oracle.OracleImplStatement.execute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)
         at weblogic.jdbcspy.SpyPreparedStatement.executeUpdate(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:159)
         at weblogic.ejb.container.manager.BaseEntityManager.executeInsertStmt(BaseEntityManager.java:763)
         at weblogic.ejb.container.internal.TxManager$TxListener.executeInsert(TxManager.java:900)
         at weblogic.ejb.container.internal.TxManager$TxListener.executeDBOperations(TxManager.java:831)
         at weblogic.ejb.container.internal.TxManager$TxListener.beforeCompletion(TxManager.java:1054)
         at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1217)
         at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1195)
         at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:118)
         at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1302)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2114)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:263)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:230)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:621)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:60)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvokeTxRetry(BaseRemoteObject.java:441)
         at com.tieto.tix.core.domain.DomainServices_7p8lqs_EOImpl.createOrganisation(DomainServices_7p8lqs_EOImpl.java:7717)
         at com.tieto.tix.core.domain.DomainServices_7p8lqs_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    parmTest( , "param2") is syntactically incorrect, so there can be no "workaround".
    In addition to solutions offered by SwapnilVJ and Saransoft84, you could also use a rest parameter:
    function parmTest(... args)
    // set up default values
    var val1:Boolean=true;
    var val2:String="";
    switch(args.length)
      case 0:break;
      case 1:
       if(args[0] is String){val2=args[0] as String;}
       else{val1=args[0] as Boolean;}
       break;
      case 2:
      default:
       val1=args[0] as Boolean;
       val2=args[1] as String;
       break;
       trace(val1 + " " +val2);
    parmTest();
    parmTest("hello");
    parmTest(null,"hello");
    parmTest("hello",null);

  • Tax codes - can you set up default value for rows and freight? HELP!

    Hello - I have two issues with tax codes:
    1. When adding  a sales order if any of the rows do not have a value for "Tax Code"  I will get an error "Row without tax was found".
    - How can I get all rows on my sales orders, documents, etc to default to a specific tax code? Or will users ALWAYS have to enter the tax code?
    2. When addring a sales order with Freight, if the order is added without adding a tax code to the freight I will get an error "Expense with tax was found"
    - How can I get the tax code have a default value? We always use the same tax code, so it is redundant to have to enter this information.
    Any suggestions?

    Hi Jhon,
    this is the simplest and best way to make a Tax Code default is Go to
    Answer for Question 1
    Administration -> Setup -> Financial ->  Tax -> Tax Code Determination (Click on this)
    in that screen you can set a default tax code for both sales as well as Purchase.
    If you want to set Tax Code based on Vendors or Customers or Items separately then you can use the Key Fields.
    Answer for Question 2
    Once you enter the Tax Code in the freight i think it takes the Tax Code itself, I'm not so sure about this one though.
    Hope this helps you out
    regards,
    Shreyas

  • [svn:fx-trunk] 7553: Fix the default value of the [skinPart] "required" attribute for asdoc.

    Revision: 7553
    Author:   [email protected]
    Date:     2009-06-04 09:32:51 -0700 (Thu, 04 Jun 2009)
    Log Message:
    Fix the default value of the "required" attribute for asdoc.
    Bugs: SDK-21488
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21488
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelGenerator.java

    ${ui:cond( uix.current.isNewRow, 'true', ui:cond( bindings.AddProjectNutsoverleg.value == 1, 'true', 'false' ) ) } notice the '.value' it could also be '.inputValue'.
    If not there is also an option to make sure that when the checkbox is empty a value is returned anyways this work like this:
      protected void processUpdateModel( DataActionContext ctx )
        //First look for the request parameter
        Object cbInRequest = ctx.getHttpServletRequest().getParameter( "nameofthecheckbox" );
        //We only need to do anything if it was not submitted
        if( cbInRequest == null )
          // Get hold of the Form Bean containing the record
          BindingContainerActionForm updateForm = (BindingContainerActionForm) ctx.getActionForm();
          //Get the binding for our particular column
          JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get( "nameofthecheckbox" );
          //Reset that explicitly to the *unchecked* value
          checkBoxBinding.setAttribute( 0, new oracle.jbo.domain.Number( 0 ) );
        super.processUpdateModel( ctx );
      }Maybe this helps.

  • CRMD_ORDER: how to set default values for Requester and Change Manager

    Hello Folks,
    how do I set default values in TA crmd_order?
    I drew my organizational hierarchy using TAs bp and ppoma_crm.
    When a new Change Request (e. g. SDHF) is created, I want the four roles (Requester, Change Manager, IT Operator and Developer) to be set automatically, not manually.
    Both Requester (= Key User) and Change Manager are derivable. I did not find anything in SPRO neither in the OSS neither here.
    Points will be rewarded as a matter of course!
    Thanx in advance!

    Hi Dirk,
    look for Define Access Sequence & Define Partner Determination Procedure in SPRO and read the IMG Activity Documentation. You can find it in the Service Desk config, but it works for the other transaction types too.
    Basically, you create Access Sequences where you tell the Partner Determination Procedure where to look for the values for the Partner Function fields.
    The Access Sequence can use lots of sources for the information, including your org structure.
    regards,
    Jason

  • Set default values for StartMonth and EndMonth Parameter based on value selected from the previous parameter(Not cascading)

    I have a scenario where it has multiple parameters like.....
    Period which consists of "Year,Quarter,Month" as a values.
    When user selects "Year" value in "Period" Parameter then "FromMonth" has to set its default value as 36th month from now.
    Example: If user selects "Year" then "FromMonth" has to show "April-11".
    When user selects "Year" value in "Period" Parameter then "EndMonth" has to set its default value as current month.
    Example: If user selects "Year" then "FromMonth" has to show "March-14".
    If user selects "Month" Value in "Period" Parameter then it has to allow user to select the Month Range and again if user selects "Year" value in "Period" Parameter then StartMonth has to show 36th month from now and
    End Month has to show current month.
    Please help me how to resolve this issue.
    Thanks in Advance.

    Hi  Vasu_479,
    First, you need to create a dataset to set the StartDate and EndDate parameter's value using the query provided by Visakh. And then use the StartDate and EndDate parameter to filter the data in MDX query. Here is a sample query for your reference.
    select
    {[Measures].[Internet Sales Amount]
    } on columns,
    {[Date].[Date].members} on rows
    from(
    select
    STRTOMEMBER("[Date].[Date].&["+@StartDate+"]"):STRTOMEMBER("[Date].[Date].&["+@EndDate+"]")
    ) on columns
    from [Adventure Works]
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Default values for Insert and Update

    What is the best way to default the current sysdate for a date column on a table when doing an insert or update through a form? And related to this, what is the best way to default the current user (APP_USER) for a varchar2 column when doing an insert or update through a form?
    For these columns, I want to display them on a report, but they should be hidden on the form because I would like to have the app default the values to sysdate and APP_USER. However, when I have tried to use the table default values in "user interface defaults" and using either :APP_USER or &APP_USER or SYSDATE, it only shows this literal value on the form (item is not hidden while I debug this). It does not show the actual value I'd want, such as "user1". Does this make sense?
    Thanks for your help.
    -Reid

    I think triggers are the best device.
    Scott

  • Amx:inputText how to assign default value

    How do I assign a default value to the amx:inputText field please?

    You assign it to it's value property.
    Timo

Maybe you are looking for