Issue in BPS Variables

Hi Guys,
I am facing problem in BPS Variables.
I created the variables 1.zqbs-  employee responsible --->Userentry/default value.
2. zconpar-- contact partner----
> Replacement type is user exit(Function Module)
3. zconpar-- contact partner----
> Replacement type is user exit(Function Module)
ZCONPAR:  I am using the zqbs, planing area, characterstic name  as a import parameters and i am exporting the  output value to 0BP_ACTIVIT through zconpar
ZCONPER:  I am using the zqbs, planing area, characterstic name  as a import parameters and i am exporting the  output value to 0BP_CONTPER through the zconper.
These two variable info objects are calling in the planning layout lead column.
based on contact partner it should display contact persons for the contact persons we are applying the conditions(bp_reltype = bur001,bp_reldir = 2) to filter the contact persons.
In my case i am getting 3 values for the contact partner like 1000, 2000, 3000.
i am getting 2 values for the contact persons if i run the variables individual.                              
note: if i run BPS0 its going into loop and displaying multiple data means for 1 contact partner its applying all contact persons. at final it showing records like contact persons  X contact partners means it showing more unvalid records.
how to avoid this situation.
contact partner        contact person          bp_reltype     bp_reldir
1000                        xxxx                          bur001            2               
2000                        yyy                            bur002            2
3000                         zzz                            bur001           2
it should display like this
1000                  xxx            
2000                 
3000                  yyy
but it showing
1000      xxx
1000       yyy
1000      zzz
2000      xxx
2000      yyy
2000      zzz
3000      xxx
3000      yyy
3000      zzz
Regards,
Anu..
BW Consultant.

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

Similar Messages

  • Issue in BPS Variables....Please anybody reply...this is really urgent(SOS)

    <b>Hi dear friends, This is really a urgent problem and crucial Please anybody can share their ideas or atleast some inputs/ clues to clear the cobwebs in my understanding.</b>
    I am facing problem in BPS Variables.
    I created the variables 1.zqbs- employee responsible --->Userentry/default value.
    2. zconpar-- contact partner----
    > Replacement type is user exit(Function Module)
    3. zconpar-- contact partner----
    > Replacement type is user exit(Function Module)
    ZCONPAR: I am using the zqbs, planing area, characterstic name as a import parameters and i am exporting the output value to 0BP_ACTIVIT through zconpar
    ZCONPER: I am using the zqbs, planing area, characterstic name as a import parameters and i am exporting the output value to 0BP_CONTPER through the zconper.
    These two variable info objects are calling in the planning layout lead column.
    based on contact partner it should display contact persons for the contact persons we are applying the conditions(bp_reltype = bur001,bp_reldir = 2) to filter the contact persons.
    In my case i am getting 3 values for the contact partner like 1000, 2000, 3000.
    i am getting 2 values for the contact persons if i run the variables individual.
    note: if i run BPS0 its going into loop and displaying multiple data means for 1 contact partner its applying all contact persons. at final it showing records like contact persons X contact partners means it showing more unvalid records.
    how to avoid this situation.
    contact partner contact person bp_reltype bp_reldir
    1000 xxxx bur001 2
    2000 yyy bur002 2
    3000 zzz bur001 2
    it should display like this
    1000 xxx
    2000
    3000 yyy
    but it showing
    1000 xxx
    1000 yyy
    1000 zzz
    2000 xxx
    2000 yyy
    2000 zzz
    3000 xxx
    3000 yyy
    3000 zzz
    Please anybody who have even a vague idea of solution can respond to this immediately.----SOS----
    Even your smallest hint is greatly appreciated.
    Yours truly,
    your friend Bharath.

    Thanks for the reply and I would trying these consistency check out again as a background job but I have already done these checks and have not been able to find any inconsistencies in the planning area or the master planning object structure. the problem is this as I have put in the SAP message:
    "We have generated CVCs from a text file using the load work list functionality  Due to some internal formatting issues few erroneous CVC were generated. On going through the concerned notes we have come to the conclusion that we would have to delete the erroneous CVC and recreate new CVC.
    The issue that we are facing is that we are not being able to delete the erroneous CVC from the MPOS as they are not visible in the display mode. On other hand we do see the erroneous CVC in the planning book, which is not at all understandable because if there are no CVC then why are we seeing them in the planning book."
    Please let me know if this is a problem that has been faced by anybody in SCM 5.0
    Thanks

  • Variable input issue in BPS

    Hi Frds
    I am facing a strange problem in BPS variable while executing planning folder
    I have cost center restriction 1000 to 9999 in pl package. There is a cost center variable user input enabled. when i execute planning folder i entered cost center range...1000 to 4000 and 5000-9999 by using More button in right hand side....it displays data according to all the corresponding cost center.....
    issues
    1. In variable screen when i click on cost center variable it shows me both the range 1000-4000 and 5000-9999 but when i click on more button it is showing me only range 1000-4000 although data is displaying for entire range
    2. If i click on cost center variable screen and add one more range 4001 to 4500, system consider only these cost centers and ignore other ranges...i don't have option for selecting all the ranges which i have given
    is this a prob with BPS ?
    Thanks
    Tripple k

    FYI
    I got reply from SAP...we need to implement one OSS note 761708
    Cheers
    Tripple k

  • Multiple BPS variables in Bex web report

    Hi Guys,
    I am trying to have a Bex report use the BPS variables in the web interface. I have managed to do so with 1 variable, but we have a number of variables.
    I have created the code below to get the result. however this doesn't seem to work.
    Can anyone help me with this issue.
    Gert van de Vreede
    <iframe
    id ="Z_WA_BPS_GRSALPR001"
    src="/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=Z_WA_BPS_GRSALPR001"
    style="width:1200;height:300">>
    </iframe>
    <script language="JavaScript" type="text/javascript">
    function varValueConvert(dispValue){
    /* Expected formatting of variable selector: Text(Key) or Key
    If there are more than one (...) expression the first is taken.
    var keySection = dispValue.match(/\(.*?\)/);
    if (keySection){
    var keyValue = keySection[0].replace(/\(|\)/g,"");
    alert(dispValue + ' : ' + keySection + " : " +keyValue);
    return keyValue;
    } else {
    alert(dispValue);
    return dispValue;
    var frame = document.getElementById( 'Z_WA_BPS_GRSALPR001' );
    var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
    var queryVar1 = '&VAR_NAME_1=0SALESORG&VAR_VALUE_EXT_1=';
    var queryVar2 = '&VAR_NAME_2=ZZHOUSE&VAR_VALUE_EXT_2=';
    var queryVar3 = '&VAR_NAME_3=ZZBRAND&VAR_VALUE_EXT_3=';
    var queryVar4 = '&VAR_NAME_4=ZZLINE&VAR_VALUE_EXT_4=';
    var queryVar5 = '&VAR_NAME_5=ZCOREC&VAR_VALUE_EXT_5=';
    var queryVar6 = '&VAR_NAME_6=ZSUBCAT&VAR_VALUE_EXT_6=';
    var queryVar7 = '&VAR_NAME_7=ZZMARCAT&VAR_VALUE_EXT_7=';
    var queryVar8 = '&VAR_NAME_8=0VERSION&VAR_VALUE_EXT_8=';
    var appl = 'Z_WA_BPS_GRSALPR001';
    var bpsVarvl1 = '<%=descr(salesorg_var/value)%>';
    var bpsVarvl2 = '<%=descr(House_var/value)%>';
    var bpsVarvl3 = '<%=descr(Brand_var/value)%>';
    var bpsVarvl4 = '<%=descr(Line_var/value)%>';
    var bpsVarvl5 = '<%=descr(Core_cat_var/value)%>';
    var bpsVarvl6 = '<%=descr(Sub_cat_var/value)%>';
    var bpsVarvl7 = '<%=descr(marcat_var/value)%>';
    var bpsVarvl8 = '<%=descr(VarvlSel7/value)%>';
    bpsVarvl1 = varValueConvert(bpsVarvl1);
    bpsVarvl2 = varValueConvert(bpsVarvl2);
    bpsVarvl3 = varValueConvert(bpsVarvl3);
    bpsVarvl4 = varValueConvert(bpsVarvl4);
    bpsVarvl5 = varValueConvert(bpsVarvl5);
    bpsVarvl6 = varValueConvert(bpsVarvl6);
    bpsVarvl7 = varValueConvert(bpsVarvl7);
    bpsVarvl8 = varValueConvert(bpsVarvl8);
    // create URL
    url = url + appl + 0SALESORG + bpsVarvl1 + ZZHOUSE + bpsVarvl2 + ZZBRAND + bpsVarvl3 + ZZLINE + bpsVarvl4 + ZCOREC + bpsVarvl5 + ZSUBCAT + bpsVarvl6 + ZZMARCAT + bpsVarvl7 + 0VERSION + bpsVarvl8;
    // remove possible white spaces
    url = url.replace(/ /,"");
    // alert('Generated URL: ' + url);
    // set source attribute of iframe to new URL
    frame.src = url;
    </script>

    Hi Gert,
    the following line is wrong:
    url = url + appl + 0SALESORG + bpsVarvl1 + ZZHOUSE +
    bpsVarvl2 + ZZBRAND + bpsVarvl3 + ZZLINE +
    bpsVarvl4 + ZCOREC + bpsVarvl5 + ZSUBCAT +
    bpsVarvl6 + ZZMARCAT + bpsVarvl7 + 0VERSION +
    bpsVarvl8;
    Try this:
    url = url + appl + '0SALESORG' + bpsVarvl1 + 'ZZHOUSE' +
    bpsVarvl2 + 'ZZBRAND' + bpsVarvl3 + 'ZZLINE' +
    bpsVarvl4 + 'ZCOREC' + bpsVarvl5 + 'ZSUBCAT' +
    bpsVarvl6 + 'ZZMARCAT' + bpsVarvl7 + '0VERSION' + bpsVarvl8;
    Regards
    Marc
    SAP NetWeaver RIG

  • BPS Variable-Cost Element is not displaying Text

    Dear Team,
    We have a peculiar issue one of the BPS Variable defined for Cost Element is not displaying text in one of the Planning Layouts.
    Another variable is displaying text in another layout.
    Surprisingly...when I reused the old variable in the new layout it is also not displaying the text.
    Am I missing something....appreciated your quick support.
    Thanks & Best Regards
    Srinivas

    Have you check the layout Lead-Column setting? Is it set to 'Key/Description'?

  • BPS variables in IP

    Dear experts,
    we face the following problem: We want to migrate from BPS to IP, but have trouble with our BPS variables. We have user-defined variables and variables which are centrally maintained (e.g. 2 versions which shall be available for planning). When the user executes an input-ready query, F4-help should be restricted to the centrally maintained values.
    I know there are two ways, which are recommended:
    .) user-exit variable, which reads information from some table; problem with that, all values, which are read from the table are proposed in the variable screen (shown in the input line); so if you have 10 values, all of them will be preselected; if the user doesn't delete them from the input line all 10 values will be locked on the server; moreover F4-help is not restricted
    .) use authorizations; unfortunately we have different authorizations for planning and reporting; e.g. 2 versions for planning, but all for reporting; so in the F4-help we have all values available not just the 2 versions for planning
    Does anybody have an idea how to solve this issue?
    Best regards
    Michael

    Hello,
    Only way to restrict the values in F4 help in IP is via authorization. However, in BW7.3 we would be able to do so using BAdI.
    Regards
    Deepti

  • BPS Variables

    Hi there
    May somebody help me with the following problem: I have two variables in a BPS package and I want the second variable to show only these entries/values which are possible to select according to the combinations which are in the cube or maybe in the reference data. eg. i have the two variables, controlling area and cost center. so when I select a controlling area, I want the cost center variable only to give me these cost centers for selection which are in the selected cost area. as it's possible in BEX.
    Thank's
    Message was edited by:
            Martin Studer

    Hi Ravi
    First thanks.
    If my understanding of the How To BPS Variables of Type Exit is right, then what I'm looking for is descript in chapter 1.4 / 3.6 "One variable restricts the selection of another variable". But therefore in my exemple controlling area had to be a master data attribute of cost center. But my problem is that one costcenter can be in different controlling areas, so i can't define the controlling area as a master data attribute of costcenter. So can i still use this exit variable? May someone is working with the BI-content in this issue and can give me an input from there?
    Thanks again.
    Martin Studer
    Message was edited by:
            Martin Studer

  • BPS variable F4 help

    Hi,
       I am having a BPS Variable of type exit and if the output records are less ,say 10 iam getting the correct records in F4 help but if the record count is high like 8000 it is returning all values in the F4 help.
    Can any one tell me how to rectify this error.
    Thanks,
    Ramkumar

    Hi Ravi,
            Depending upon the planner my exit will return records. If the manager logs into the system them my exit will return 8000 records where as if a sales rep logs into the system then my exit will return 10 records and assume the records in the master data tables as 15000.
    The problum is that when the output record count is 10 iam getting all the 10 values in the F4 help. if the out put record count is 8000 then i am getting all the values from the master data tables (15000 records ) irrespective of the 8000 record what exactly the exit is populating .
    Even in the secound case also i want to see only the 8000 records in the F4 help not all the 15000 records.
    Is there any note that had to be applied to this issue. or did i missed any thing .
    Thanks,
    Ramkumar

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • How to access BPS variables in ABAP Exit Function

    Hi Experts,
    I am using a Exit Function. My BPS variables contain multiple values. I want to trasfer then (may be directly read) to an internal table from where I can loop over then.
    Could you please suggest me the code for this?
    Points will be awarded.
    Thanks in advance,
    Shiwesh

    Did you try using the FMs API_SEMBPS_VARIABLE_GETDETAIL or Z_VARIABLE_GET_DETAIL for this?

  • BPS variable in BeX

    Hi!
    I have a question.
    May I use BPS variable in BeX?

    Hi,
    You dont have that functionality in BPS.  You can find this functionality in Integrated Planning.
    Regards,
    Ravi Kishore

  • Clear BPS variables values

    I wrote an ABAP program to clear BPS variables values defined for the user.
          DATA:
          lr_variable TYPE REF TO cl_sem_variable.
    * Get variable instance
          CALL METHOD cl_sem_variable=>get_instance
            EXPORTING
              i_area       = I_AREA
              i_variable   = 'ZPVDEP' "z_v_var
            RECEIVING
              rr_variable  = lr_variable
            EXCEPTIONS
              not_existing = 1
              OTHERS     = 2.
          IF sy-subrc <> 0.
    * do s.th., eg send a message
            EXIT.
          ENDIF.
    * delete the restrictions
          CALL METHOD lr_variable->set_user_restriction
            EXPORTING
              i_user   = sy-uname
              i_delete = 'X'
            EXCEPTIONS
              failed   = 1
              OTHERS   = 2.
    In BPS0:
    1. i restrict the variable with some values
    2. execute planning function to clear the variable values
        But the restriction remains.
    3. When i do /nBPS0 the variable restriction clears
    As far as i understand the problem is in buffer. How can i clear buffered values of the variable in ABAP program?
    i tried to call  method CL_SEM_VARIABLE=>RESET_BUFFER.
    but it doesn't work.
    Thanks

    Also i try such an ABAP code
          SELECT *
          FROM upc_var_cha_sel
          INTO CORRESPONDING FIELDS OF TABLE it_var_cha_sel
          WHERE    area    = I_AREA
               AND var     = ls_exitp-CHAVL
               AND varuser = sy-uname.
          IF sy-subrc = 0.
            DELETE upc_var_cha_sel FROM TABLE it_var_cha_sel.
            CALL FUNCTION 'DB_COMMIT'.
          ENDIF.
          REFRESH it_var_cha_sel.
          SELECT *
          FROM upc_var_cha_act
          INTO CORRESPONDING FIELDS OF TABLE it_var_cha_sel
          WHERE    area    = I_AREA
               AND var     = ls_exitp-CHAVL
               AND varuser = sy-uname.
          IF sy-subrc = 0.
            DELETE upc_var_cha_act FROM TABLE it_var_cha_sel.
            CALL FUNCTION 'DB_COMMIT'.
          ENDIF.
    But the problem is the same
    In BPS0:
    1. i restrict the variable with some values
    2. execute planning function to clear the variable values
    But the restriction remains.
    3. When i do /nBPS0 the variable restriction clears
    Thanks

  • SAP BW SEM-BPS Variables

    Hi All,
    We are upgrading SAP BW SEM-BPS system from 2.0B to 6.O, in this process i need to collect some information as like below from tables,
    like BPS Variables----- UPC_VAR ,
    planning sequence----- UPC_PROFILE_BU
    planning folder(Web)---- BPS_WB
    planning folder(GUI)---UPSPM
    BPS variable exit--UPC_VAR_EXIT
    respectively, but these tables like UPC_VAR,UPC_PROFILE_BU etc are  NOT there in my system ( SAP BW SEM-BPS 2.0B), So can anyone please suggest me alternative table name OR tell me where can I get aobve information like (BPS Variables, Planning Sequence etcc. ).
    Thank you,
    CCC

    Hi,
    I need to collect same information.
    Will you share it.
    Thanks,
    Ajay

  • BPS variables exit F4 help

    Hi,
       I am having a BPS variable exit which is listing all the records from the master data table in the F4 help screen but  i want to see only those values which are populated by my exit .
    Did any one faced the same problum? Do we have a note or patch to fix this.
    Thanks,
    Ramkumar

    Hi Ramkumar,
    Check the ABAP code behind the variable.Make sure that it is fetching the right records based on the logc in the code.Check the select statement in the ABAP.
    Debug the code and find out if its fetchin the right values into the export parameter  ETO_CHARSEL.
    hope this helps.
    regards
    Sai Vishnubhatla.

  • Us Planning Function to Update BPS Variable

    I have read through several 'How To' papers on variables, but did not come across this.  Is it possible to develop a planning function (FOX or User Exit) to prgramatically read and then update a BPS variable?

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    --> You can write an ABAP Exit Variable and populate TO variable as From Variable + 1. You can then use both these variables in a Planning Level and use Normal BPS Copy to copy data from FROM version to TO version. You can include this Function in a Global Planning Sequence and later on include this Sequence in a process chainby creating variant on Standard Program UPC_BUNDLE_EXECUTE.<br><br>
    Let us assume that because of some reasons you don't want to write ABAP Exit. Then you can write a FOX Code to do copy for you. Choose Version as Field to be changed. You can use TMVL operator in FOX to increment your FROM variable and populate your TO variable. You would have to include all of your characteristics in your planning level to be safe. But please note that this is not a recommended way to do copy. You should use standard BPS Copy Function as far as possible.
    <br><br>
    Hope it helps.<br>
    Cheers Abhijit</FONT><FONT FACE = "Verdana", Font Color = "Red">
    Please assign Reward Points if I deserve them in your opinion
    </FONT>

Maybe you are looking for

  • Suspect Flash Player problem

    I have Windows XP 32bit system. I am having a problem with the latest Flash Player. The problem occurs when entering the PC to play yahoo Canasta. All information required  is entered and relevant windows are opened with correct data. When I click to

  • MacBook Pro & External Keyboard: Different Settings?

    I use an external Win layout keyboard with my MacBook Pro. It's connected via USB. I would like to be able to have the keys remapped on the external keyboard, and I can do that with Double Command. However, when I disconnect the external keyboard, th

  • How To Import From Dump File

    Dear All How Are You ? I have a dump file i and i need to import this dump file in my database this dump file consist of the database structure So how can i import this dump file in my blank database Note:- I am using Database Oracle 10 g Ramez S. Sa

  • Can't sign PDF that has restrictions

    I downloaded an adobe PDF and 2/4 files won't let me sign them. Security restrictions say signing: Not Allowed. When I click the signature box nothing happens and the options under "Sign" are grey and won't let me select them. What can I do to sign t

  • PR Item Text Different for same Material in the same Plant.

    I have a Query for SAP MM. Below is the Scenario: User raises a PR through SAP for a particular Material (Spare) which belongs to an Equipment. Let's say in Plant A, we have an Equipment 10001 & it has a sub-Equipment as 1000112 & further it has a sp