Initializing variables in BPS

Hi,
I want some variables to be initialized before executing the planning folder.
Currently there is a ling between variable and the user, which is established during the first use (something like history) and can be only deleted in BPS0.
I would like the setting that some variables would not get that 'History link' what would result in forcing the planning user to enter the value each time!
How this would be possible?
ThanX, Tom

One option would be to use an exit function which refreshes the variable buffer. Not sure if there is a config option to achieve this.

Similar Messages

  • Variable selection in WEB wrongly transferred to initial variable screen

    Dear all,
    I am currently working for a company in the Netherlands where they use a lot of reports in the web.
    Till one month ago, selecting a period from the list in the WEB didn't gave any problems.
    However, at this moment while selecting a random period, the period is not correcly taken from the variable selection list (see: http://members.home.nl/repoortman/variable.jpg)
    Example:
    selecting reporting period 001.2006 via the selection screen
    it is 'transferred/copied' to the initial variable selection screen as '001 06' while I expect as it should be '001.2006'.
    The work around is to enter the period and year manually, but this is not a recommended action from user perspective.
    Perhaps a coincidence, but this error is applicable since the last service pack upgrade: SAP BW 3.5, SP22, SAPKW35022.
    How is this possible and how can I solve it (perhaps a setting in BW or a table?)
    any help is more than welcome!
    thanks in advance.
    R.E. Poortman

    in WAD in the template properties you can set the parameter <b>Force Variable screen</b>
    the same can also be pass as a URL parameter
    VARIABLE_SCREE=X
    this will make the variable screen to comeup irrespective of whether the variable is mandatory or not.
    Hope this helps.
    Regards
    Raja

  • Constructor not initializing variables

    Hi,
    I have a little dilemma with initializing variables. I have an abstract class that provides an abstract initialize method. It calls this first in its constructor. Now all concrete classes that extend from this abstract class must implement this initialize method. This method will initialize all the variables needed by the concrete class. However, these variables return null. Its best if I coded an example scenario:
    ###### Abstract Class #######
    public abstract class AbstractClass {
    protected Date date = null;
    protected AbstractClass(Date date) {
    initialize();
    this.date = date;
    protected abstract void initialize();
    ##### Concrete class #####
    public class ConcreteClass extends AbstractClass {
    protected Map test = null;
    public ConcreteClass(Date date) {
    super(date);
    System.out.println( "test 1 = " + test);
    test = new HashMap();
    System.out.println( "test 2 = " + test);
    protected void initialize() {
    test = new HashMap();
    Now if I instantiated the ConcreteClass, I would expect to get this output:
    test 1 = java.util.HashMap@123456f
    test 2 = java.util.HashMap@654321f
    However I get this:
    test 1 = null
    test 2 = java.util.HashMap@654321f
    Now why would test 1 = null? Didn't it already get initialized after the call to super?
    Any help would be appreciated. Thanks!
    -los

    I have a more detailed scenario:
    ###### Abstract Class #######
    public abstract class AbstractClass {
    protected Date date = null;
    protected AbstractClass(Date date) {
    initialize();
    this.date = date;
    protected abstract void initialize();
    ##### Concrete class #####
    public class ConcreteClass extends AbstractClass {
    protected Map test = null;
    public ConcreteClass(Date date) {
    super(date);
    System.out.println("3: this class = " + this);
    System.out.println( "4: test 1 = " + test);
    test = new HashMap();
    System.out.println( "5: test 2 = " + test);
    protected void initialize() {
    System.out.println( "1: class = " + this)
    test = new HashMap();
    System.out.println( "2: test = " + test);
    The output comes out to be:
    1: class = ConcreteClass@fec107
    2: test = java.util.HashMap@123ews
    3: this class = ConcreteClass@fec107
    4: test 1 = null
    5: test 2 = java.util.HashMap@des312
    As you can see, the initialize method does indeed get called for the concrete class... and the test variable gets initialized. So I'm not sure what happened...
    -los

  • Edit HTML of initial Variable Screen in WAD

    Hai
    WAD
      Is it possible to edit initial variable screen which I get after publishing it in the browser. Can I change the settings like color,font add logo in the top of the varibale screen?
    Thx in Advance
    Rajesh

    Hi Rajesh,
             I think it's possible by editing the style sheets(CSS) in the MIME repository.
    SAP Business Information Warehouse -> Business Explorer -> Mime Repository
    Export the style sheet you want to edit and after making the necessary modifications you can upload it under another file name by choosing the option Import MIME objects(By Rt clicking the Stylesheets folder).
    Hope this helps.
    Regards
    Hari

  • 'How to..use reporting variables in BPS'  syntax issue

    Hi,
    I am implementing the white paper 'How to...use reporting variables in BW-BPS' and I am getting a syntax error in the include YBW_BPS_VAR_READ. The error indicates 'Statement is not accessible' for my line:
    SELECT SINGLE * FROM ybw_bps_var_map
    ybw_bps_var_map being my transparent table as described in the white paper.
    I have never seen such a syntax error, has anyone had the same issue? My code is the one in the white paper.
    Thanks for any help.
    David

    Hi David,
    I have the coding up and running. I have not seen this error before and don't know how to resolve it. If you cut&paste it from the PDF, then maybe some special characters got pasted into the ABAP editor. Try to delete the line and type it in manually.
    Regards
    Marc
    SAP NetWeaver RIG

  • How to restrict the variables in BPS

    Hi experts,
    I have a problem with restricting the variables in the BPS function.
    In the planning area, I have created a characteristics variable with user define value (input allowed by user) replacement type.
    Yet, in the planning folder, it seems that I can only select either a single value (for example material 1000) or a range of values (for example material 1000 to 5000).
    I can't choose several single values (for example 1005, 1020, 1030).
    Since I need this functionality, do you maybe know how to solve this problem?
    Thank you very much.

    BPS variables does not allow the choice of multiple single values, you can choose a single value OR a range of values. This issues has been brought up with SAP Development.
    If you need single values or a complete range of values, you can add each single value as a fixed value and the range as another fixed value that can be selected. You can select each single value individually or the whole range (or any subranges you specified) but not multiple selections of single values.
    In user definted variable if you check input allowed by users, you can add some values and the users can add more but then they could potentially go into material numbers they should not get access too.
    Hope it helps.
    Regards

  • Master data needs to be appeared for variables in BPS

    Hi everyone,
    I am working in BW-BPS environment. We have to create a variable on the Company Code infoobject in the planning area. When a user wants to enter the value for the variable 0COMP_CODE, all the master data values should appear. But in the replacement type for a variable doesn't contain this option.
    So please let me know how to achieve this requirement. If USER Exit needs to be seleted, then let me know the procedure to implement the same.
    Also we are using a Flat file to input the values into BPS environment. Currently I am using the Tab Deleimited Text file to do the same. But the user want .CSV file as input. So is there any way to convert the file?
    The user will input the Planned amount in local currency, & we have implemented a Currency Translation Planning function in the Planning Environment. Once the data has been loaded thru flat file the user should execute the planning function & save the data to persistently store the data in the Real time infocube. Here user wants the Currency translation function to be hide & the currency conversion should happen automatically when the user saves the data he entered.
    Narendra Reddy

    Hi.
    Related to variable: if you want to show for selection ALL master data simply create variable with type "Characteristic Value". Attach characteristic to your variable. Set "Replacement Type" = fixed value and in "Selection Conditions" set "From" = 000000 (accoding to lenght of characteristic) and "To" = ZZZZZZZ. This will give you all master data in variable.
    Related to currency convertion: create function type "currency convertion" and add it to global planning sequence. Run this planning seq according to your needs and execution of conversio will be in background.
    Regards.

  • Incomplete text for variables in BPS selection

    Hi
    We are using BW 3.5 and BPS layout in Taiwan language.
    When person looks for selection variable options for an object the text is not complete , it only shows first two characters however if we go to text table of BW object it has complete data of 3 characters ( these are taiwainese characters).
    Any idea on same ?
    Regrads,
    Monika

    hi...check on the query designer, how the infoobject for that variable has been defined (there are 4 options like Key, Key/text etc).

  • Hierarchy node variable in BPS planning level

    Hi gurus,
    I have a set of planning levels and packages that are meant for all users. The users currently are segregated by 0costcenter hierarchy nodes, i.e. groups of users are belonging to different nodes within the 0costcenter hierarchy. These group of users each have its respective authorisation profile assigned based on hierarchy node.
    The planning levels and packages are configured so that 0costcenter is one of the header characteristics in the layout.
    Is there a way for the characteristic 0costcenter in the planning level and packages to derive the cost centers from the authorisation profiles ?
    Advice appreciated.
    Thanks.

    You may consider any of the following:
    1. BPS variables with authorization replacement type.
    2. BPS variables with user defined values replacement type.
    Ravi Thothadri

  • Initiating variables with private constructor fails

    Goodday all,
    At the moment I'm working on a little class that reads the input from the console screen. The class looks like this (I omitted a few unrelevant methods):
    public class SomeClass {
      private static BufferedReader bin = null;
      // private constructor; another method (not shown here) returns an instance
      private SomeClass() {
        bin = new BufferedReader(new InputStreamReader(System.in));//somehow this doesn't work ??????
      //public method
      public final String readLine(String message) {     
              String feedback = "";
              try {
                   if(bin==null) say("variable bin is null"); //bin is indeed null, just don't know why
                   else feedback = bin.readLine();
              catch (IOException e) {
                   e.printStackTrace();
              return feedback;
    }Executing this code will result in output "variable bin is null". When I try debugging it, I see that the variable bin will remain null when the constructor is called.
    Placing the initiation of 'bin' in another method will make things work, but I want to know why it doesn't work in the constructor. It seems as a fair piece of code ;).

    private static BufferedReader bin = null;Why is it static?
    // private constructor; another method (not shown here) returns an instance
    private SomeClass() {
    bin = new BufferedReader(new InputStreamReader(System.in));//somehow this doesn't work ??????
    }'Somehow it fails?' It doesn't even compile!
    Executing this code will result in output "variable bin is null". When I try debugging it, I see that the variable bin will remain null when the constructor is called.Your constructor doesn't even compile, so I find it hard to believe it ever executed.

  • Hierarchy Exit variable in BPS

    Hi,
    I have a pb:
    I have a hier  (ZHIER) based on InfoObject YIndic:
    - Node : Text node
              - Region : Characteristic node (char: Yregion) ex: 1
                       - Dpt: Text node   ex: 1P2
                              - Indic : Characteristic node (char: YIndic)
              - Region : Characteristic node (char: Yregion) ex: 2
                       - Dpt: Text node ex: 2P3
                              - Indic : Characteristic node (char: YIndic)
    In planing Layouts (BPS), I'd like to display only Indics related to the Dpt and the region of the user. So I'd like to use a Hierarchy Exit variable to take the right node.
    I wrote the following code (I replaced working variables by real values):
      ls_hiersel-chanm = 'YINDIC'.
      ls_hiersel-hienm = 'ZHIER'.
      ls_hiersel-nodename  = '1P2'.
      ls_hiersel-hiever   = 'A'.
      ls_hiersel-hiecha   = '0HIER_NODE'.
      ls_hiersel-dummy_leaf   = ''.
      ls_hiersel-dateto   = '99991231'.
      CLEAR ls_chadep.
      ls_chadep-chanm = 'YREGION'.
      ls_chadep-chavlint = '1'.
      APPEND ls_chadep TO ls_hiersel-to_chadep.
      INSERT ls_hiersel INTO TABLE et_hie_nodes.
    ENDFUNCTION.
    My problem is that when I launch my layout, the system tell "the node 1P2 doesn't existing" but node is effectively existing. I thing that BPS doesn't know where to search my node but I took this piece of code from another function and I don't know how to tell to BPS where to search the node. It's maybe at the end of the code but I'm a Beginner in ABAP.
    Can anybody can help me please?
    Many thanks.
    J Sorel

    Thanks for your help.
    Could you explain me please what does the code I wrote and your modification (I have not tried yet)?
    I took this piece of code from an existing function module but due to my Abap level I can't understand what I do. I think that BPS doesn't undertands where (in which level) to search the node. Is there in the code you wrote an information related to the level where the node is?
    Many thanks
    Sorel

  • Initializing variables

    Hi, I'm new to Java and trying to understand initializing.
    I know uninitializing variables can be a problem. Are there times that we initialize int or double variables with zero? Is there an advantage or disadvantage to doing so? From my thinking, there's no need to initialize them since it's in a managed language like Java, and they're preinitialized for you. Integers, floats, etc. are 0, bools are false, and so on.

    Right. I learnt my first java statement at the beginning of this year, so please let me know if my understanding of this is incorrect.
    I'm not sure about primitives, but when defining a class variable (eg. String) you should always initialize.
    String str = ""; //Initialized as an empty stringIf you don't and you just write "String str;", then you're leaving yourself open to problems. If the object is assigned to a piece of memory that has already been used then str may point to garbage. Using "System.out.println(str);" to print the string value to the console could lead to unexpected results.
    By initializing str to "" you are effectively clearing that piece of memory.
    Right?

  • Variables in BPS

    hi all,
            iam very new to Bps and now i need to do some modifications,my scenario is in web i have a screen where user is able to input,now it is like parameter in abap,i mean only 1 field .now i require to make it as a range,means select-options in abap,how can i do it web design,please help me by refering any example,as this is my first object in bps.points rewarded imm to all useful replies......
    regards
    bharan

    1) First create a project in transaction code CMOD
    2) Then add components
    3)Then activate the function module EXIT_SAPLRRS0_001
    4) Then within the function module….write our abap coding within INCLUDE statement
    5)We can define the variable with ‘Multiple values’ or ‘Interval’ or ‘Selection option’ and use the abap code as shown below .
    6) Option: Variable is ready for Input
    If we enable this option then we will get a popup at the time of executing the query. Here we can select the values required.
    If we don’t enable this option then we will not be able to select the values at the executing the query. The values mentioned in the ABAP code will be used.
    DATA: w_range TYPE rrrangesid.
    DATA: l_s_range TYPE rrrangesid.
    DATA: loc_var_range LIKE rrrangeexit.
    CASE i_vnam.
      WHEN 'variablename'.
        IF sy-uname EQ 'userid'.
          CLEAR w_range.
          MOVE: 'I' TO w_range-sign,
                'EQ' TO w_range-opt,
                'ADMIN' TO w_range-low.
          APPEND w_range TO e_t_range.
          MOVE: 'I' TO w_range-sign,
                'EQ' TO w_range-opt,
                'SALES' TO w_range-low.
          APPEND w_range TO e_t_range.
        ENDIF.

  • Range selection for Fix value variable in BPS

    Hi,
       When create vaiable, there is a fix value variable, under selection condition, we can choose either multiple single value or range, however if we choose the range, let say mtareial number from 1 to 100, when we run the BPS application through UPSPL, the value for material variable will be populated with value 1 to 100, when I try to change the value to a single value,it's not allowed me to change,  while the user define value type, we can change the value, Is this supposed to be?

    JW,
    BPS variables does not allow the choice of multiple single values, you can choose a single value OR a range of values. This issues has been brought up with SAP Development.
    If you need single values or a complete range of values, you can add each single value as a fixed value and the range as another fixed value that can be selected. You can select each single value individually or the whole range (or any subranges you specified) but not multiple selections of single values.
    In user definted variable if you check input allowed by users, you can add some values and the users can add more but then they could potentially go into material numbers they should not get access too.
    Hope this helps,
    Mary

  • How to get Multiple Values for a single Variable in BPS.......

    Hi Gurus:
    I have a layout for planning, where I can plan for 5 days of the week. I also have a day column (yesterday) where I have the actual values. Users want to edit/foecast the next 5 days values. I am using a Variable to get the Date column which uses the System Date. However, since I am getting just one date in the Function Module (Code given below), the remaining days are greyed out and I can not enter the forecast values. I would like the same variable to get a series of dates in the same function module. What changes do I nee dto make in the ABAP code so that the remaining columns (Date) becaoe available for editing??
    The FM code I have to get "Today's Date" is as follows:
    FUNCTION ZCSHFL_GET_TODAY.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(I_AREA) TYPE UPC_VAR-AREA
    *" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
    *" REFERENCE(I_CHANM) TYPE UPC_Y_CHANM
    *" REFERENCE(ITO_CHANM) TYPE UPC_YTO_CHA
    *" EXPORTING
    *" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
    data: ls_charsel type upc_ys_charsel.
    ls_charsel-seqno = 1.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'EQ'.
    ls_charsel-CHANM = I_chanm.
    ls_charsel-low = sy-datum.
    insert ls_Charsel into table eto_charsel.
    ENDFUNCTION.
    I want to get the Yestarday's Date as weel as dates for next 4 days from Today for this variable which are being used in the layout. Can anyone suggest the code tor this please.
    Thanks very much in advance......
    Best.... ShruMaa

    Hi,
    What I understand you need to return those dates from function module using parameter ETO_CHARSEL , right? If so just use this code:
    ls_charsel-seqno = 1.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'BT'.  "we are giving ranges, so days between...
    ls_charsel-CHANM = I_chanm.
    ls_charsel-low = sy-datum - 1.  "...first day is yesterday
    ls_charsel-high = sy-datum + 4. "...and last day is 4 days from today
    insert ls_Charsel into table eto_charsel.
    This way you provide 5 days starting from yesterday till 4 days from today.
    Regards
    Marcin

Maybe you are looking for

  • Automatic clearing of Intercompany  postings in In-House Cash?

    Dear Sirs, can anyone confirm that If we are using In-house Cash we can get intercompany invoices automatically cleared? For example: Company A: vendor: Company B: customer. If company A make an invoice over company B, when we process the payment in

  • Friends..how can i include a jsp page in a servlet

    like i want to use like if(conditionl) out.println(" welcome"); //////// here i want to include some jsp page ///// I tried with... <% @include %> but its not working Thanks in advance

  • "set deadlock_priority" not effective in SQL Server 2012?

    I am trying to control which of two sessions is chosen as the deadlock victim in SQL Server 2012. I have set up a test that induces a deadlock by updating two tables in opposite order with a "waitfor" in between the updates. I can consistently repro

  • What is this Partition type mention in code "Partition by HASH".

    Hi Team, Regularly i am Adding new partions and sub-Partitions to production table, based on Date. For example Every Day Data stored in one partion. please find below code, what i am using to add new partitions. I think this called RANGE partition. C

  • Install error updating Creative Cloud.

    Trying to install update to Creative Cloud. Getting 'error code 43', 'Installer unable to access critical file/driectory' - can someone offer a solution for fixing issue?