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.

Similar Messages

  • '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

  • 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

  • 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

  • Unable to enter single value for a variable in BPS

    Hi,
    I am using a variable for 'Posting Period' of type 'User defined values' defined in my Planning Area . I am able to input a range of values like 1-3, 1-12, 5-10 etc.
    But, my problem is that, when I have to give one value, ie 1-1 or 5-5, I am not allowed. Its gives a message that upper limit should be greater than the lower limit. Any suggestions?
    Is there a way, to define a variable in such a way that it can accept both ranges and single values?
    Regards,
    Srinivas Kamireddy.
    Edited by: Srinivas Kamireddy on Apr 1, 2008 8:08 PM

    Hi,
    we have this functionality overall in our system and i have not experienced,
    that the system tries to set the upper limit on it's on (why 12 and not for example 13?).
    How can you see that the system uses 12 as the upper limit?
    Regards,
    Kirill

  • Variables in BPS populating the template built using web interface builder

    Hi All,
    I have a issue :
    I created some variables in bps0 (under a planning area) based on Fiscal Year, Fiscal Year/Period, Posting Period, Cal. Yr /Quarter and Version.
    Then I created a template using the web interface builder .
    The end user goes and puts the varaibels in the SEM template and that will run the BW queries in BW (ABAP code has been written to popluate the values entered in SEM tempalte in to BW variable screen).
    Now the problem is it works well for all values other than for #(not assigned).
    What should be done to make it work even for #?
    We do not have # as the value in master data for all the above info objects. We have # only for 0version  and for the rest I can't even see the master data as it says " master data is not maintained" .
    when I come back and look in bps0 then I see that the values entered in the SEM template are getting accumulated in selection conditionds in bps0 (when we click on the variable then when we see the selection conditions there it is getting accumulated)
    Can anyone please suggest a solution to make the # (not assigned) work and to clear the selection conditions table after refresh of the SEM template?
    Thanks
    Sri

    Hi
    You should create a BEX Web Query and integrate it in the upper level of WEB Layout.
    Check this link for a step by step guide about this topic
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to%20guides%20-%20rig%20official/bi/nw04/how%20to%20integrate%20bex%20web%20applications%20into%20bps%20web%20interfaces.doc
    Ciao
    Andr

  • 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.

  • Variables in BPS planning function

    Hi all;
    I don’t if this is possible but I’m trying to do the following formula:
    DATA OV TYPE 0SALESORG.
    DATA CD TYPE 0DISTR_CHAN.
    OV = VARV ('ZORGVE').
    CD = VARV ('ZCANDI').
    FOREACH OV, CD.
    {ZOV_QTD,CD,OV,L,V_PL_EST,020,ZMERCOVCD,ZPAOV03} =
    {ZOV_PERC,CD,OV,#,VTP,010,ZMERCOVCD,ZPAOV03} *
    {ZOV_QTD,#,#,L,V_PL_EST,020,ZMERCADOSF,ZPAOV03}.
    ENDFOR.
    In the level there aren’t any restrictions to the variables assign to OV and CD.
    If I restrict the variables to only one value the formula runs, but if I inserted 2 values or an interval a message appears telling there isn’t possible because the variables aren’t restricted to one value (notice that the values of this characteristics are blank in the condition ZMERCADOSF).
    My question is: Are any way to run this formula with 2 or more values assign to the variable OV?
    Thanks in advance.
    Ricardo

    Hi Mayank;
    The formula works for all the OV’s.
    The error no longer appears but it didn’t respect the values assign to the OV (runs for all OV’s)
    This is what I use:
    DATA OV TYPE 0SALESORG.
    DATA CD TYPE 0DISTR_CHAN.
    DATA N TYPE I.
    DATA I TYPE I.
    N = VARC(ZORGVEND).
    I = 1.
    DO N TIMES.
    OV = VARI(ZORGVEND, I).
    I = I + 1.
    ENDDO.
    I’m not sure N and I are declared correctly. Are they Type I?
    Regards;

  • BPS: exit variable

    Good day,
    I hope you can help me, I've got a problem which I hope can be solved using an exit variable, in BPS.
    Scenario:
    Planning area with characteristics MATERIAL, WEEK, DAY and key figure PlanQty.
    I want to do a equal distribution of the plan values per WEEK to DAY. DAY can have multiple values for the same MATERIAL & WEEK. We have a custom table with the values for MATERIAL, WEEK and DAY.
    Example:
    MATERIAL / WEEK / DAY / PlanQty
    10001 / 10 / # / 200
    Distributed:
    MATERIAL / WEEK / DAY / PlanQty
    10001 / 10 / 2 / 100
    10001 / 10 / 5 / 100
    Would the following be a viable solution?
    Create an exit variable for DAY. In the function module read the custom table and return the multiple single values for DAY. Create a distribution function,  and use the exit variable for DAY in the parameter group to distribute the plan values from DAY = # to the multiple DAY values.
    Questions:
    1. How do I pick up the value for MATERIAL and WEEK in the function module to read the custom table? Should it be included in the exit variable?
    2. Would the exit variable be updated everytime the parameter group is called (i.e. per subset), or only once when executing the function?
    Any help or suggestions welcome!
    Thanks!
    Kind regards,
    Theana

    Hi,
    I am not sure on the solution, you have provided. However, it looks little complex to me.
    In my opinion, the design can be as follows.
    Create 7 numeric variables in your planning area for 7 days. The user will enter the distribution factors for these days (some of the days can have the factor as 0 as well). Depending on the factors entered, the function module will distribute the WEEK quantity to the respective DAYS.
    For example,
    The quantity for WEEK is 400 and this should be distributed to 2 and 5 DAYS equally. Enter 1 for those two DAYS variable and execute the planning function. The planning function should distribute the quantity in the following manner:
    For DAY 1:
    400 * 0 / (1+1)
    For DAY 2:
    400 * 1 / (1+1)
    and so on.
    Hope this helps. Kindly reciprocate by awarding points.

  • Variable in FOX - bps

    Hello all
    i am using variable in BPS  in order to multiply data with the value in the variable.
    When i execute the FOX, i get a dump, error.
    The error goes " GETWA_NOT_ASSIGNED  - Field Symbol has not yet been assigned"
    Can you tell me what can be the problems?
    Best
    Yuval

    Hi,
    May be you set up incorrectly a value for the vaiable. This value is not in master data of charater for this variable.
    Regards,
    Veronika.

Maybe you are looking for

  • Problem with "watch folder" and Windows 7

    I have just switched to Windows 7 and Elements 9 - so far things are working quite well, but I am having a problem with "Watch folder"  It is watching my odf folder "My Pictures" but all my new photos are going into Libraries/Pictures and PSE9 won't

  • OS Downgrading issues Windows 8 to 7

    I down graded my Toshiba Satellite l855d-s5117, because there was some software that I use that wasn't compatible with 8. I had a couple of issues when I switch over to 7 though. 1. I can't find the driver for the Universal Serial Bus Controller. Fro

  • Calculating Height and Width of Text String in 6.1

    We have a vi that uses a CIN. It takes in a specified font and string and x,y origin and calculates the rectangular area of the given text. We have been using this VI since LabVIEW 4. Unfortunately, it will not work in LV6.1 and causes the compatexpo

  • How to store global values for the whole application to use ?

    Hi, In our application, we have global values that is store in a parameter table, I want only to query it once, and it will be used every where from the whole application. e.g : I have general parameter tables that store : % Tax Current Period etc..

  • Workflow for SRM (contracts and purchase)

    Hi Gurus..could you send me this documentation of Workflow (configuration guide). I have to activate the N-Steps approval fo contracts and purchase order for SRM 5.0. thanks, Gustavo Nogueira