How to use one variable as a default value for another variable?

Hi Experts,
Is it possible to use one variable as a default value for another variable?
For example:
Variable 1 = current calendar year month
Variable 2 = mandatory input ready variable for calendar year month
I want to use variable 1 as default value for variable 2, but also have the ability to change the month if required.
Thanks!
Kathryn

u can use replacement path variable
in that case u can replace the values of 1 variable with the another variable...
but  u cannot do this setting
u cannot make variable 2 as mandatory
u cannot enter value for variable 2
because by default it will take the value of variable 1
u have to make follow settings
variable 2
name , technical name
processing by = replacement path
infoobject = ocalmonth
next tab
replaced by another variable
variable name
offset start , offset lenght
save and hit okey

Similar Messages

  • How can i implement the default value for this variable?

    In one of our Stored procs,we have a variable RECS_TO_DELETE, which determines the number of records to delete from various DELETEs that happen within this proc.
    The value for RECS_TO_DELETE variable should be obtained from a configuration table sys_config
    select
    rec_num into RECS_TO_DELETE
    from sys_config
    where
    sys_code=55;
    But if something goes wrong with sys_config table or the above SELECT INTO, our client wants to makes sure that RECS_TO_DELETE should have a default value of 1000.
    In the code, how will i implement having this default value of 1000 for RECS_TO_DELETE variable  in case the above SELECT INTO fails for some reason.

    Hi,
    You have to assign a value before the execution...
    DECLARE
        RECS_TO_DELETE NUMBER(9) := 1000;
    BEGIN
        SELECT rec_num
        INTO   RECS_TO_DELETE
        FROM   sys_config
        WHERE  sys_code = 55;
        DBMS_OUTPUT.put_line(RECS_TO_DELETE);
    EXCEPTION
        WHEN NO_DATA_FOUND THEN
           DBMS_OUTPUT.put_line(RECS_TO_DELETE);
    END;
    /Regards,

  • How to use one DC's view/component/appln in another DC

    Hi All,
      I am new to DC concept. I am trying to use one DC's component in another DC. I have done following steps.
    a)Created two DCs A and B
    b) DC A's 'New Public Part-->Entity Type(Web Dynnpro Component) I selected component
    c) Add Used DC in B, I added A's component
    <b> From this point onwards I am not getting any clues</b>. How do I call A's component in DC B. <i>Please guide. Any examples will be great.</i>
    Thanks and Regards,
    Ganga.

    Hi Gangadharaya,
    Just tell me do u want to display a view, use some context or use some methods defined in other controller.
    So that i can help you in the same direction.
    <b>Component Usage</b>
    Suppose you have following scenario:
    1) DC2 has component Comp2. In this dc you read the context a value and stores it in context named "Ctx_value".
    2) DC1 has component Comp1. Here you want to read the Ctx_value from comp2.
    In Comp2 create a method getValue()
      public java.lang.String getProcessId( )
          return wdContext.getCurrentElement().getAttributeValue("Ctx_value");
    In the interface controller of Comp2 click on properties tab and add reference to the cont2 controller. Now create a method here in interface controller to get the value of Ctx_value
      public java.lang.String getValue( )
        return wdThis.wdGetComp2Controller().getValue();
    Expose the Comp2 as public part now.
    In DC1 add DC1 as used DC.
    Build both dc's
    In Comp1 create Component usage by name Comp2Usage to Comp2.
    Now you can access the method getValue() from interface controller of Comp2.
    wdThis.wdGetComp2UsageInterface().getValue();
    This is how you can access a value of Context. Same can be done by direct binding.
    <b>View Access</b>
    If you want to access a view v2 in comp2 then goto windows in comp1 and embedd an existing view and in that select the interface view of comp2. The default view in comp2 can now be displayed in comp1.
    Regards,
    Murtuza
    Message was edited by:
            Murtuza Kharodawala

  • How to use one ODSI project artifact as jar for other ODSI project?

    Hi,
    I am working on multiple ODSI proejcts in Same Server. My problem is how to call one projects resources in other ODSI project. I need this as Some of Data Services read the data from more then one database. The projects are in seprate Dataspace projects but they are deployed in same server. When I try to export artifacts from one projects and include them as Jar in other projects I am not able to see any Data service methods so unable to call any method of one project in other project. Please advise how to recsolve this problem.
    Thankyou in advance.
    Rahul

    If you already have a case open, it's polite if you mention that - so I don't have to answer the same questions to support and also to this forum. Likewise, when you get an answer to your question on this forum, you can tell support. So they don't keep looking for something you already have the answer to. Cuts down on the duplication of effort.
    You have one project. You add more files to it (regardless of how you add them - by creating files with the editor, by using a wizard or by importing files from another project), you still have only one project.
    If you had some other project that you exported the files from - that project is still there - but the original project does not know or care about it.
    Edited by: mikereiche on Jun 21, 2010 1:55 PM

  • Use one layer as alpha map (mask) for another - how?

    Hi, I do not understand how to do this in Photoshop. In After Effects, which I use a lot, this is easy. For example, I have one layer with transparent, semi transparent an opaque areas. I can then tell AE to use this layer as an alpha channel map for another layer. But how do I do this in Photoshop? I understand how to use a layer mask and draw on the same layer to create treansparent areas. But I want to use a separante layer, or even a separate image.
    I use Photoshop CS 5.
    Ingvar

    Hello!
    And by "look up", Chris means in the Adobe Community Help application, or in the online help:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e 41001031ab64-7853a.html
    I immediately flagged the answer as correct yesterday, but thanks anyway

  • Using one laptop as an external display for another?

    The title says it all really, can this be done?

    Not directly, no. But you can approximate the function with Screen Recycler. I haven't tried it myself, but it's worth a look.

  • Default value for variable are not within permitted value range (precalc)

    Hello BW community
    Issue:
    I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the  precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
    The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
    Error:
    The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
    The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
    So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
    Best regards and thanks
    Christian
    PS-1: System BW 701 / SAPKW70105
    PS-2 : there has been a SDN entry with the same topic but not resolved too.
    link: /thread/980839 [original link is broken]

    Hello,
    Thanks for your response.
    I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
    oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
    Thanks,
    Jai

  • Default multiple values for formula variable on variable selection screen

    Hi All,
    Suppose 'A' is formula variable with customer exit as processing type then i want four default values for this variable eg: 3, 6,9, and 12 as selection options, when we will execute query user can able to pick any one of the default value.
    is it possible in BEx for formula variables?
    I also tried with ABAP code in 'cmod' t-code, but it is not working properly for 4 default values....but for single default value, code is working fine.
    I am using following code ::
    When 'ZCSIMCTB'. // variable name
    IF i_step = '1'.
    CLEAR : l_s_range.
    l_s_range-low = 3.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 6.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 9.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 12.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    Thanks in advance

    Hi Sankar,
    Thanks for reply...
    With single quotes also its not working.......
    Also as I am using Formula Variable so by default "Single Value" is coming on Variable Details....
    Regards,
    NIlesh

  • Set default value for OAMessageLovInputBean

    I have DFF(standard) enabled on the page. The requirement is to disable / hide one of the flex fields on the page. Since the field is read only, I am trying to default the value in CO using below code
    OAPageLayoutBean page = oapagecontext.getPageLayoutBean();
    OAMessageLovInputBean requestor = (OAMessageLovInputBean)page.findChildRecursive( "AuctionHeadersDFFIntF4" );
    if (requestor != null ) {
    requestor.setText("XX");
    requestor.setReadOnly(true);
    Using the above code, the field had become read only and the values is getting defaulted. But when I try to submit / save the page its asking to enter the value.
    Can somebody help me.
    Thanks,
    Pavani

    Hi,
    You can hide the madetory filed using below steps:
    Set any default Value for the mandatory field using bean.setText();
    Then hide it by using bean.setRendered(flase);
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                           

  • How to Use Transient View Objects to Store Session-level Global Variables

    hi
    Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    Based on this documentation I created the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
    It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
    Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
    On rollback the Transient View Object instance keeps its row and attribute values.
    Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
    questions:
    - (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
    - (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
    Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
    at http://blogs.oracle.com/smuenchadf/examples/#90
    It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
    This can be illustrate with a small change in the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
    It now shows the result of both these expressions on the page ...
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
    See also the screencast at http://screencast.com/t/k8vgNqdKgD
    Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
    public class MyCustomADFBCDataControl
      extends JUApplication
      @Override
      public void setTransactionModified()
        ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
        Transaction vTransaction = vApplicationModule.getTransaction();
        if (vTransaction.isDirty())
          super.setTransactionModified();
    }Resulting in what seems to be more consistent/expected transaction (dirty) information,
    see also the screencast at http://screencast.com/t/756yCs1L1
    Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
    Currently, question (q2) remains.
    regards
    Jan

  • How to use one email adress for multiple recipients

    Hello,
    I'd like to know how to use one email adress for multiple recipients. 
    this would be very useful or projects. for example;
    if i send one mail to [email protected], all people in this project get an email.
    I will add the people in this project myself. 
    I know it is possible, but I don't know how to do it ;-)
    please help me! 

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    Hi Ed
    Thank you for contacting me, however I already know how to save text to
    audio files via timeline using the Export feature.
    So my question was not entirely clear and I apologize for that.  To explain
    further, whenever I save a text to audio file, captivate takes me to a
    default save as folder where I then have browse back to my production
    folder where I am keeping all my Txt to Aud files.  This is very tedious
    process when you have alot of files to save.  So my question was is there a
    way to configure captivate so I can make my production folder the default
    file for whenever I save a Txt to Audio file through Export feature that
    the system automatically takes me to that production folder, and I am
    spared the long tedious process of saving the file manually to the
    prodcution folder I want.
    I have copy the pathway to the production folder in the URL filed in the
    Save As dialoge box and that workaround as cut the work down but I still
    have to paste that URL field to point the file to the right folder. So it
    would be nice if I could do everything automatically.  Microsoft makes this
    capability in their MS Office applications, so I was thinking Adobe might
    do the same thing.  Your help with this would be appreicated,
    Thanks
    Merrill Roberts
    Sr. Training Specialist
    SunGard Availability Services
    Direct 925-831-7730
    Mobile:415-215-9280

Maybe you are looking for

  • How to Get RGB Values from a CMYK Color in the DOM (CS5)

    (CS5, Actionscript) Hi all, I have an InDesign document containing TextFrames whose border colors are specified as a CMYK array. I would like to be able to get its color specification as its closest RGB equivalent. Does the InDesign DOM contain a met

  • Firefox 3.6 won't open, it comes up in the task manager and then disappears after about 3 seconds

    Firefox 3.6 will not open, I have noticed that it loads in the task manager in windows vista 32 bit, after 3 seconds it then disappears and won't open, I have reinstalled firefox, all this did was to loose all my passwords and bookmarks, I have disab

  • Has anyone had success in running Bootcamp along side vmware Fusion?

    The only program I need windows for is Autodesk REVIT (A 3D CAD House modeling program) I use my mac for everything else. REVIT takes up alot of memory and needs a decent video card to run well. When I tried using bootcamp, the program (REVIT) ran sm

  • Clickable jar files for Windows

    Could someone please explain to me, or direct me to a resource that can, how one makes a jar file that executes when double clicked under Win32? I've seen such files, but I don't know if they are proprietary or supported directly by Sun. Thanks, Robe

  • How to export some users

    Hello all! I need to export only a group of people, i am not working with companies, is there any option to filter some users to export? Regards! Maria