Texts in bps variable

Hi gurus,
I have a following problem:
I work in BW 7.0. I have character1 (xkl_kv) with compounding with two characters (xrsk, xmrsk). I create a bps variable that is processed by user-exit.  After user-exit is executed in my bps variable I have not any texts. Instead of texts I see only character1u2019s  values.
How can I display texts?
Following is code of my user-exit:
FUNCTION Y_OKB12.
""Eieaeuiue eioa?oaen:
*"  IMPORTING
*"     VALUE(I_AREA) TYPE  UPC_Y_AREA
*"     VALUE(I_VARIABLE) TYPE  UPC_Y_VARIABLE OPTIONAL
*"     VALUE(I_CHANM) TYPE  UPC_Y_CHANM
*"     VALUE(ITO_CHANM) TYPE  UPC_YTO_CHA
*"  EXPORTING
*"     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
*"     REFERENCE(ETO_ATTR) TYPE
UPC_YTO_ATTR
  CONSTANTS:
  l_buffer_call TYPE boole-boole VALUE ' '.
  DATA: ls_varsel TYPE upc_ys_charsel,
        ls_chacmp type upc_ys_chacmp,
        ls_attr type UPC_Ys_ATTRSEL.
  CASE i_chanm.
    WHEN 'XKL_KV'.
      DATA:
      l_subrc LIKE sy-subrc,
      ls_return LIKE bapiret2,
      l_type LIKE upc_var-vartype,
      lto_varsel_all
TYPE upc_yto_charsel,
      lto_varsel TYPE upc_yto_charsel,
      lto_var TYPE upc_ys_charsel,
      lto_chanm TYPE upc_yto_cha,
      lt_chavl LIKE /bic/pxkl_kv OCCURS 1000 WITH HEADER LINE,
      ls_chavl LIKE lt_chavl.
read source value
      CALL FUNCTION 'Z_VARIABLE_GET_DETAIL'
        EXPORTING
          i_area         = i_area
          i_variable     = 'XRSK'
          i_buffer       = l_buffer_call
IMPORTING
          e_subrc        = l_subrc
          es_return      = ls_return
          e_type         = l_type
          eto_varsel_all = lto_varsel_all
          eto_varsel     = lto_varsel
          eto_chanm      = lto_chanm.
      IF l_subrc <> 0.
MESSAGE i136(upc_fw) WITH l_source_var.
Values of variable &1 cannot be determined
        EXIT.
      ENDIF.
now, you are free to determine the logic on how to
*derive the values based on the source values.
      DATA: l_entries TYPE i.
      READ TABLE lto_varsel INTO lto_var INDEX 1.
check prerequisites:
- record found?
      IF sy-subrc <> 0.
MESSAGE i147(upc_fw) WITH l_source_var.
Variable &1 does not contain any values
        EXIT.
      ENDIF.
- exactly one record and characteristic?
      DESCRIBE TABLE lto_varsel LINES l_entries.
      IF l_entries <> 1.
EXIT.
      ENDIF.
      SELECT * FROM /bic/pxkl_kv INTO TABLE lt_chavl
         WHERE ( /BIC/XNAP_KV = '1.' OR /BIC/XNAP_KV = '2.' ) and ( /BIC/XKL_KV <> '0,00000000000000000000001' ) and ( /BIC/XKL_KV <> '0,00000000000000000000002' )
              AND /bic/xrsk EQ lto_var-low.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      types: begin of tkey,
         XKL_KV type /BIC/OIXKL_KV,
         TXTLG type RSTXTLG,
       end of tkey.
       types keys(60) type c.
      data: keystr type string,
      key type tkey,
      keytab type tkey occurs 10.
      ls_varsel-seqno = '0000'.
      ls_varsel-chanm = 'XKL_KV'.
      LOOP AT lt_chavl INTO ls_chavl.
        ls_varsel-seqno = ls_varsel-seqno + 1.
        ls_varsel-opt = 'EQ'.
        ls_varsel-sign = 'I'.
        ls_varsel-low = ls_chavl-/bic/xkl_kv.
        APPEND ls_varsel TO eto_charsel.
      ENDLOOP.
Thank you for your advice.
Regards,
Veronika.

up

Similar Messages

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

  • 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

  • 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

  • Inserting text from a variable in actionscript

    what is it called when you insert text from a variable in actionscript?

    Your question is not clear.  There is no specific name for the process of inserting text from a variable that I am aware of.
    If you have a dynamic textfield that you have assigned an instance name to, let's say you named it "tField", then to assign a variable called "aVar" to that textfield you would use:
    tField.text = aVar;

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

  • Conditionalized text and abutting variables

    The content uses two variables: "
    institution" and "
    campus."
    All text regarding campuses needs to be conditionalized.
    For the most part, I've had complete success with
    conditionalizing text that includes variable(s). The problem comes
    in when there is another variable before or after the text that I
    select for the condition. For example, if I try to conditionalize "
    /campus" in the phrase "institution/campus" the condition
    also grabs the
    institution variable. Or, if the phrase is "feature is
    available for institution and campuses." when I conditionalize "
    and campuses" the condition also grabs "institution."
    The grab doesn't occur when the condition is initially
    entered. In the topic content, the change occurs when I switch
    between wysiwyg and truecode. When the condition is set in expanded
    text, it looks fine. Close the expanded text and then reopen it,
    and the condition has grabbed the neighboring variable.
    I'm using Robohelp HTML 6.
    For now, I'm rewriting the text. But is there a solution?
    Thank you.

    First try getting it right in code view, then save from
    there, then open another topic. Reopen the topic and see if it
    still works. If it does (unlikely) make some other edit in WYSIWYG.
    My guess is the problem will still be there. If it is. Create
    a new project with one topic with this problem in it. Zip it up and
    send it to me via my site. In the email, include a link to this
    topic.
    In the topic have a paragraph with the problem and below that
    repeat the paragraphs with text showing the results you want to
    achieve.
    I'll verify I get the same result and try to find a
    workaround.

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

  • Text for Exit Variable Values

    Hi
    We are populating the variable with the exit function module and I am using this variable as an user restriction of values. When my user opens the input box to select the values of this variable, there not able to see the attributes that are there for that characteristic as well as description of the master data values. The only thing that they are seeing is the key values that are populated by the exit. Can you please let me know what is the reason for this behavior and we are using web excel interface and using BW 3.5 version
    Thanks,
    Raj.

    Hi Guys
    I have solved this. I had to select the Planning level in the variable component to populate the text in the variable of type exit.
    Thanks,
    Raj.

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

  • 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

Maybe you are looking for

  • TNS Listener error while opening a Form !

    Hi all, I have installed Form/Reports 11gr2 with Weblogic 10.3.6 64-bit & database 11gr2. All installations and configures are successful. But when I give URL address (servername:portno/forms/frmservlet?form=main) to open a form, it gives me followin

  • How do I process serial port strings as bits

    In response to my commands, my instrument is sending bytes to my serial port. In one instance, 2 bytes are received. I want to treat these 2 bytes as a group of 16 bits. The VISA and Compatibility Serial functions return these bytes from the serial p

  • Outbound RFC to file: Received HTTP response code 500

    hello: i am doing outbound rfc from ecc to other system using PI and I get the below error in the PI. I am on PI 7.0 and looked at the RFC destiantions in ECC and all look good. The registered program in TCP/IP RFC destination was tested and looks fi

  • PDF File in and Email

    I received a PDF form in and email. I need to fill it out. I tried to convert it to Microsoft Word but cannot. Please help. Thank you, Alrew49

  • [solved] xfce4-terminal spam after update to util-linux 2.25-3

    I use the setterm command inside a file in /etc/profile.d so that I can prevent the screen from blanking when using a console, along with a couple of other things. After the latest update to util-linux (2.25-3), whenever I open xfce4-terminal these l