Global Parameter

Hi All,
I need to set a global parameter which can be used in all my mappings. How can this be done in OWB ? Is there any way of doing this without the use of a external flat file or temporary table to store the parameter?
I sometimes wonder what is the use of a Mapping Input Parameter, I hope it cannot be used for this purpose !!
rgds
-AP

Hello, AP
If your global parameters are not volatile you may prefer to place them to the package as a constants or functions. You could latter refer them in your mappings.
Advantage – performance throw PLSQL code caching (you could even pin this “parameter package” in memory), disadvantage – change parameter values requires recompilation of all dependent objects.
Serhit

Similar Messages

  • The best place to put the global parameter

    hello:
    i am now studying the petstore1.3,and find that the global parameters are kept in the servlet context,i wonder if it is a good solution.in my project,i seldom use the servlet context,session context etc,i feel more like to put the global parameter in a singleton that is loaded when the app is started. i don't know where is the best place to put the global parameter,servlet context or singleton?

    thanks for your answer.
    1 do your mean that the singleton can be shared among the different "war"
    packages if both of them are within the same jvm?if yes,must they be in the
    same "ear" package?
    2 if my app is deployed in the weblogic cluster environment,which one can be
    shared? singleton or servlet context?

  • Global parameter value change in biacm

    Hi friends,
    When i tried to change the global currency code 2 from 'EUR' to 'USD', im not able to edit the value 'EUR' value in the configuration manager. When i try to edit the currency code 2 it is not returning any parameter currency value in the edit dialog box to change.
    What was the reason, as it is not showing any values inorder to edit the currency code in the configuration manager.
    Thanks in advance.
    Regards,
    Saro

    Hi friends,
    Got the solution for the above issue in the metalink ID: Doc ID 1582321.1.
    Regards,
    Saro

  • Wanted Global parameter!!!

    Hi All,
    We would like to store global parameters in the web.xml file or by other means in a central file, that can be accessed by any JavaBean, JSP, etc.
    How can we do that, and what are the methods utilised to retrieve these parameters and use in JavaBeans, jsps, CustomTags, etc.
    We have several jsp pages that are used to connect to a database and retrieve records. At the moment, we have hard-coded the:
    a) IP address for the server;
    b) jdbc driver name
    c) path of the database server;
    d) user name for the database connection;
    e) password for the database connection.
    Our intention is to centrally store this information, and then retrieve whenever we need.
    Thanks in advance for any help.
    Cheers
    Trajano Roberto

    from J2EE spec:
    "a set of context initialization parameter can be associated with a web application and are made available by the following methods of the ServletContext interface :
    getInitParameter
    getInitParameterNames"
    now from tomcat's basic web.xml file ( replace > by > to make it correct ) :
       <!-- Context initialization parameters that define shared
             String constants used within your application, which
             can be customized by the system administrator who is
             installing your application.  The values actually
             assigned to these parameters can be retrieved in a
             servlet or JSP page by calling:
                 String value =
                   getServletContext().getInitParameter("name");
             where "name" matches the <param-name> element of
             one of these initialization parameters.
             You can define any number of context initialization
             parameters, including zero.
        -->
        <context-param>
          <param-name>webmaster</param-name>
          <param-value>[email protected]</param-value>
          <description>
            The EMAIL address of the administrator to whom questions
            and comments about this application should be addressed.
          </description>
        </context-param>you'll find this file at the following address :
    http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/web.xml.txt
    hope it helps
    raphaele

  • How to clear Global Parameter ID.

    Hello Friends.
    How can I get clear Parameter ID value, which was set in the program. suppose, if value is set to 'X', How can I make it to '  '.
    Sathish Kumar

    hi
    good
    use like this
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    thanks
    mrutyun^

  • EAR file, where define a global parameter

    Hello
    I have an J2EE enterprise Java project running on IBM WebSphere. This J2EE project consists of a web module (dynamic Java project) and a EJB module project:
    MyJ2eeEAR
    -TheWebmodule.war
    -TheEJBModle.jar
    I will define a parameter, so that the web module classes as well as the EJB module components has access to it and can ask for his new state.
    Where should the parameter be defined?
    Thanks for any help.

    I put mime as context parameters in web.xml. Sometime I put them in the container's JNDI registry if they can be injected or needed to be shared across contexts.

  • Procedure in Global Country parameter

    Dear all,
    I have just created one new client for testing. a new fresh client and imported setting for default client 000 (SAP).
    When i began to customized i found that procedure in country global setting for ID Indonesia is blank so i look for TAXID and i can't find it.
    Could you tell me the function of "country global parameter" procedure.
    I should fill TAXID where can i define it?
    thank you.
    regards,
    freddy

    Here is an example
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create or replace type test_varray as varray(10) of varchar2(10)
      2  /
    Type created.
    SQL> create or replace procedure print_varray
      2  (
      3     pVarray test_varray
      4  )
      5  as
      6  begin
      7    for i in 1..pVarray.count
      8    loop
      9      dbms_output.put_line(pVarray(i));
    10    end loop;
    11  end;
    12  /
    Procedure created.
    SQL> set serveroutput on
    SQL>
    SQL> exec print_varray(test_varray('a','b','c','d'))
    a
    b
    c
    d
    PL/SQL procedure successfully completed.
    SQL>

  • Using both populate global  and manual populating attributes

    Hi,
    I am using IDM 8.0 with Flat file active sync using following parameters in FF synchronization policy.
    Populate Global = checked
    Track Last Processed Timestamp =true
    Process Differences Only=true
    My create user process is working fine but I DO NOT want to update the attributes such as First name when its value in flat file is null. My following code is working in update user form if I DO NOT use populate global parameter. But i want to use Populate global parameter.
    Here is my code in update user form
    <Field name='accounts[Lighthouse].firstname'>
                    <Expansion>
                        <block >
                            <defvar name='potentialValue'>
                                <ref>activeSync.firstname</ref>
                            </defvar>
                            <cond>
                                <ref>potentialValue</ref>
                                <ref>potentialValue</ref>
                                <ref>accounts[Lighthouse].firstname</ref>
                            </cond>
                        </block>
                    </Expansion>
                    <Disable>
                        <or>
                            <isnull>
                                <ref>activeSync.firstname</ref>
                            </isnull>
                            <eq>
                                <length>
                                    <ref>activeSync.firstname</ref>
                                </length>
                                <i>0</i>
                            </eq>
                        </or>
                    </Disable>
                </Field>Is it possible to use both manual as well auto populate attributes. If so, How can I stop updating firstname attribute when the firstname attribute value is null along with populate global parameter enabled.
    Any help will be appreciated.
    Thanks

    Any reason why you write your result into accounts[Lighthouse].firstname instead of global.firstname when you are using populate global?
    Try something in the line of this:
    <Field name='global.firstname'>
      <Expansion>
        <cond>
          <or>
            <isnull><ref>activeSync.firstname</ref></isnull>
            <eq><length><ref><activeSync.firstname</ref><i>0</i></length></eq>
          </or>
          <ref>accounts[Lighthouse].firstname</ref>
          <ref>activeSync.firstname</ref>
        </cond>
      </Expansion>
    </Field>

  • Duplicate line in Global variable

    Hi Experts,
    I have one BODS job which will load the data from BW to Non SAP.  As per my business requirement I have to trigger this job from BW Process chain. For that I have added BODS job in Process Chain Variant and given input to global variable before execute the PC, it was working fine. Now I want to change the Global parameter value for that I open the PC variant it was showing multiple line items and I am not able to run this from Process Chain. Please help me if anybody faces this issue.
    Version: BW 7.3
    BODS Version : 4.1 SP2
    Regards
    M Ramesh

    Hi All,
    When you use the process type "Start job in SAP BusinessObjects Data Services" in a process chain , in the variant maintenance there are duplicate entries created in the global variables. This is due to a Internal Program error. 
    Apply note 1989821 ( Duplicate entries in Global variables for BOBJDS job in process chain)
    Regards
    M Ramesh

  • Mapping in XI - cannot access Global Container parameters

    Hi all,
    we have the following problem in graphical XI mapping.
    Trying to retrieve the run-time value of a global parameter, we cannot access the value itself (e.g. test using "display queue" menu).
    We use 2 simple user-defined functions (getIdoc and corresponding setIdoc).
    The source code for our custom get/set methods is:
    public String getIdoc(Container container){
    // This is a CUSTOM global parameter set <- cannot get the value itself
    //String codMsgExport = (String) container.getGlobalContainer().getParameter("idoc");
    //return codMsgExport.toString();
    GlobalContainer globalContainer;
    java.util.Map map;
    globalContainer = container.getGlobalContainer();
    map = globalContainer.getParameters();
    // This is a STANDARD global parameter set <- cannot get the value itself, as well
    String headerField = (String) map.get(StreamTransformationConstants.INTERFACE_NAMESPACE);
    return headerField;
    public String setIdoc(String codMsgExport,Container container){
    container.setParameter("idoc", codMsgExport.toString());
    String retValue = (String) container.getGlobalContainer().getParameter("idoc");
    return retValue.toString();
    => anyway, get method returns only blank values (testing by "display queue" with some custom values...)
    It seems as if the parameter is seen, as pointing to a not existing variable - e.g. getParameter("idoczz") - XI runtime returns a NullPointerException.
    Some XI server details:
    Runtime Environment
    Java version: 1.4.2_06
    Java vendor: Sun Microsystems Inc.
    Version
    Service pack: 14
    Release: 30_REL
    Thanks all!
    Gianluca Tacchella

    Hi Sudharshan and Bhavesh,
    I forgot to put a value under the tab PARAMETERS (this is the reason for the blank value, thanks:)).
    Anyway, modifying (run-time by the set function) the standard runtime constant => leads to a get function with a single value returned (out) for "display queue", despite of test valorization: the initial value set under tab PARAMETERS.
    Instead of using the runtime (standard) constant, using my (custom) global variable => leads to NullPointerException ("display queue" for get function) EVEN IF I initialize the variable (e.g. initIdoc() function called once at top-level target message).
    under JAVA_SECTIONS_TOOLTIP button:
    Global Variables
    String idoc;
    Initialization Section
    idoc = "";
    Clean-Up Section
    idoc = "";
    public String initIdoc(Container container){
    GlobalContainer globalContainer;
    globalContainer = container.getGlobalContainer();
    // this is the only way NOT to get a NullPointerException
    if ( globalContainer.getParameter("idoc") == null )
    globalContainer.setParameter("idoc", "a");
    return globalContainer.getParameter("idoc").toString();
    initIdoc:
    out (*)
    [a]
    (*) despite of initialization under JAVA_SECTIONS_TOOLTIP button
    public void getIdoc(ResultList result,Container container){
    //String codMsgExport = (String) container.getGlobalContainer().getParameter("idoc");
    //return codMsgExport.toString();
    GlobalContainer globalContainer;
    java.util.Map map;
    globalContainer = container.getGlobalContainer();
    map = globalContainer.getParameters();
    //String headerField = (String) map.get(StreamTransformationConstants.INTERFACE_NAMESPACE);
    // this returns null (out stream)
    //String headerField = (String) map.get("idoc");
    //if ( globalContainer.getParameter("idoc") == null )
    //globalContainer.setParameter("idoc", "");
    // this returns NullPointerException
    String headerField = globalContainer.getParameter("idoc").toString();
    //result.addValue(headerField);
    // this returns NullPointerException
    //return headerField.toString();
    //return globalContainer.getParameter("idoc").toString();
    result.addValue(globalContainer.getParameter("idoc").toString());
    => leads to NullPointerException
    public String setIdoc(String codMsgExport,Container container){
    GlobalContainer globalContainer;
    globalContainer = container.getGlobalContainer();
    java.util.Map map;
    map = globalContainer.getParameters();
    //globalContainer.setParameter(StreamTransformationConstants.INTERFACE_NAMESPACE, codMsgExport.toString());
    //container.setParameter("idoc", codMsgExport.toString());
    //String retValue = (String) map.put(StreamTransformationConstants.INTERFACE_NAMESPACE, codMsgExport.toString());
    // this returns a NullpointerException
    //String retValue = (String) map.put("idoc", codMsgExport.toString());
    globalContainer.setParameter("idoc", codMsgExport.toString());
    //return "True";  // pointer for debug
    //return retValue.toString();  // pointer for debug
    return globalContainer.getParameter("idoc").toString();
    setidoc:     
    in0     out (*)
    [1]     [1]
    [2]     [2]
    (*) as if this "idoc" parameter is not the globally managed (JAVA_SECTIONS_TOOLTIP button), but one which lives inside the function and not outside for the get function..
    Regards,
    Gianluca

  • How to set global parameters? (Best Practice?)

    Dear all,
    I've experience with Infor Performance Management tools, Qlikview and also SAP Business Objects Reporting. As for last week i'm new to Microsoft Reporting Services. In our current environemnt we're setting up a Report Structure on top of an Analysis Service
    Cube.
    Currently I'm creating various reports (which works fine) on the mentioned Analysis Service Cube.
    My current question is, if there is a best practice to create reports with global variables? We'll have a package of ~20 reports which all relate to the same data source. My approach is that i'll define the reports, but the global parameters like "Current
    year", "Last year" etc. should be defined on a global page. That's the way I would have done it in the other BI tools.
    How is this done best in MS Reporting Services? Should i add an additional flat SQL server source and put the values in some ref tables? Or script the global parameter?

    Hi Praveen G,
    this blog was one of the sources I already found.
    I was searching for the "official" way to set the default-workbook - without manipulating the tables programmaticaly (and possibly inconsistant).
    Best regards,
      Marco

  • How to call form and pass parameter from OA Page

    Hi,
    I have one requirement to call a custom form from OA page by clicking the button and the same time i need to pass one parameter from this
    oa page to that form.
    how to do this by personalization?
    i surfed lot and i got some idea, some one said "pass the value as global variable and receive the global parameter when the new form instance trigger" .
    Can anyone please give about about this ?
    Thanks in advance,
    SAN

    This seems to be related to EBS and since this forum is dedicated to Fusion you might want to post the question to E-Business Suite forums and
    Support forum for EBS customizations.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • TOKENS parameter

    Dear All,
    I need to extraction based on a unique condition. If value in a COLUMN in TABLE A is '1' then extarction from TABLE B is to be made.
    I was thinking to use Tokens parameter in TABLE A, asssign its COLUMN value to it. Then refer this TOKEN in replicat and perform replication.
    So my query is "Can I use TOKEN in 1 table and refer it another table?
    Do we have any kind of GLOBAL parameter which all can refer?
    Thanks in Advance.

    What you mean you have done it?
    If at the extract you have done it then at replicat you may use the filter to check if it is 1 and if different exception and ignore it

  • Adding global system properties

    Hello,
    I know that there are some system properties that are available by default via the System.getProperty method. I also know that I can programatically add my own properties to that list.
    My question is...Is there some way for an admin to add custom properties to that list through the Visual Administrator or Configuration Manager?
    The reason I ask is because we want to have some properties that will have the same name on each runtime environment but different values. For example, let's say we have a property named NOTES_CONTENT_SERVER which will contain a different server name on DEV, QA and PROD.
    Please ask if this question is not clear.
    Thanks in advance for any help.
    David.

    Start the config tool, then in the tree structure in the left hand pane navigate to: cluster-data > instance_XXXXX > server_IDXXXXX (highlight this node).
    In the General tab that will appear in the right hand pane you will see a label titled "Java parameters:" with a corresponding text field where you can enter all your JVM parameters. Add your global parameter like so "-Dmy.global.prop=blah".
    Save your settings, and restart the cluster, you can then lookup the property in your code: System.getProperty("my.global.prop");
    Of cousre you could have learned how to set JVM properties with the config tool on the SAP help site here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/d1cf8d09a94ae79319893c2537d3a0/frameset.htm

  • How to see all global parameters in use?

    Hi,
    Is it possible to see all the global parameters that are in set when a form is running? I'm troubleshooting an app and
    I suspect a value is being set as a global parameter, but I don't know for sure.
    Also, is there a way to search a for usage of a global parameter?
    Thanks,
    Tim

    Hi Tim,
    You can run your Form in Debug Mode. That will allow you to set break points in your Proceures/Triggers. That way you can see all the Global Variables Set and Values they have .
    Hope that helps.
    Pranati

Maybe you are looking for