Variable for restriction based on part of the String

Hello Experts,
I have a characteristic named Product Hierarchy (0PRODHIER) in the query. I want to create a variable so that the report displays the results based on the first character of 0PRODHIER.  How can this be achieved?
Thanks,
Rishi

Hi Mayank
Thanks for your response. I knew that we can do this at the Cube level but I was just wondering if there is any other way to achieve this at the BEx level.
Thanks
Rishi

Similar Messages

  • CSS loadbalancing based on parts of the URL

    HI,
    I've to do loadbalancing based on parts of the URL.
    The URL will look like this:
    www.myserver.com/a/b/c/d/x=12345/bdc/*.htm
    If the x=<digits> is includes I've to use server1-3 1 if the x is not included I've to use server 4-6
    I can right now think of two (2) methods:
    1) url ="/x=*"
    2) using a header-field group with field "request-line" and the operator contains.
    Now my two questions:
    - Is it enough to define in method 1 only "/x=*" or do I have to write down the whole path (/a/b/c/d/x=*) or is it possible to do url="*/x=*".
    - Is there any other way to have this sort balancing done?
    - Which method is best practise?
    Thanks in advance for answering.
    Kind Regards,
    Joerg

    Hi Gilles,
    thanks for your reply.
    So both methods are possible. From my point of view method two is more flexible even if less specific. Is there any other draw back you can think of using method two, the one with the header group.
    Kind regards,
    Joerg

  • Mass changing for accrual object assignments part of the field profit_ctr

    Hi Experts,
    Does any one know about mass changing for accrual object assignments part of the field profit_ctr (profit center).
    How can we do this?
    Best Regarts.

    Hi,
    I have equal problem. How did you save him?
    Regards,Irena

  • Addressing of part of the string in the container

    Hello,
    in a mail task I would like to print only some characters from a string - e.g. from second to tenth - is it possible to address some part of the string in the container as is usual in abap?
    thx,
    JJ

    Hi,
    Yes , it is possible. If you want to show only some part of the string value in mail description you can use normal abap string operations. For example: In Mail description if you want to show only a part variable VALUE. you can just use &VALUE+a(b)&. It will work !!
    You can try it out !!
    Regards
    Krishna Mohan

  • Converting part of the string to a date and subtract with sysdate.

    HINT! In order solve this you must know how the pnr is assembled. Study this:
    650323-5510, we only need the first six characters. They inform us about when the person (car owner) was born. In this case it is 23 Mars 1965. You have to use several oracle built-in-functions to solve this. Hint! Begin by converting part of the string to a date and subtract with sysdate.
    select to_char(to_date(cast(pnr,'YYMMDDMM'))) from car_owner;
    please what am i doing wrong. i need the result to be something like this
    Hans, Rosenboll, 59,6 years.

    Hi.
    The main problem here is you have only last two digits of year. That could be the problem in a couple of years from now, when somebody born after 2k would get in to your database. For now if we ignore this problem the right solution would be :
    <code>
    SELECT months_between(trunc(SYSDATE),
    to_date('19' || substr('650323-5510',
    1,
    6),
    'YYYYMMDD')) / 12 years_old
    FROM dual
    </code>
    Suppose you are expecting the age of the car owner as a result above code will give you that. One again notice the '19' I appended.
    Best regards.

  • Using INSTR to extract part of the string ?

    Morning guys and Happy Friday.
    I have a situation where I have to pull out part of the string using a select statement.
    Here is the string and I have to get the contents between the 2nd and 3rd backslash. So, basically, I have to extract marypoppins. Any ideas ?
    C:\USERS\marypoppins\Docs\SpecificationHere is where I started ... and I have stumbled upon trying to find the 3rd backslash. I can easily start the INSTR at 4 because I know that it will always be 'C:\'
    select select substr(C:\USERS\marypoppins\Docs\Specification',
                                INSTRB('C:\USERS\marypoppins\Docs\Specification', '\', 4), .....) from dual;

    Additionally you can break it all up simply with regular expressions..
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'C:\USERS\marypoppins\Docs\Specification' as txt from dual)
      2  -- END OF TEST DATA
      3  select rownum, regexp_substr(txt, '[^\]+',1,rownum) as element
      4  from t
      5* connect by rownum <= length(regexp_replace(txt,'[^\]'))+1
    SQL> /
        ROWNUM ELEMENT
             1 C:
             2 USERS
             3 marypoppins
             4 Docs
             5 Specification
    SQL>

  • User Exit Variable for Infoprovider based on month characterstic in query

    Hi,
    I am financial reporting with reports created on a mulit-provider over a plan & Actual cube.  Along the top of the report is a structure which has amongst other restricitions a column for each month, i.e columns 1 to 12. 
    Currently we are in month 9, so the report should show data from the Actual infoprovider for months 1 to 9, but data from the plan infoproviders for 10 to 12.  My question is how should the variable be coded for the infoprovider which will return a value based on the month characteristic in each columns selection.  I understand how I can look at say the current system date, derive the month and return the plan/actual value for the correct infoprovider based on the current month.  But I need to create a variable which will look at the month value which is in each column selection in the query itself.
    Many thanks,
    Richard

    we recently had this kind of reporting requirement. only difference being week instead of month.
    you need to create 12 variables for actual month columns and 12 for budget.
    now you will write a code to address all the variables. in following format :-
    when var1.         "suppose var1 represents month 1 of actual columns
    1. derive month from date.
    2. if month <= i_vnam+3(1)                         "get the number from var and compare
                  set the  variable value as the month number of that year for e.g
                  concatenate year i_vnam+3(1)      into        l_s_range-low       
        else
                  set the variable value way back in past which will not have any data.
    above logic will cause values in following fashion
    if this month is 3 and year is 2008
    var1 = 200801
    var2 = 200802
    var3 = 200803
    var4 = 199001
    var5 = 199001
    etc.
    In the query all columns will be set with the property = hide if not values are present. so if 199001 is set in the variable then it will be collapsed.
    same way logic for variables in budget column can be written which will set all the month variables which are less than
    current month to 199001 (just in reverse fashion of above mentioned logic.)

  • Get a part of the string

    Hi SAP gurus 
    i have a string where i need to eliminate 'A.B.N' from the following string please advice
    as i am new to xslt i am not sure how
    xsl:value-of select="concat('A.B.N. ',$vABNNameValue)"/
    this is the part of the xsl i am trying to change the above statement in .
    :for-each select="/ORDERS02/IDOC/E1EDKA1" >
                                        <xsl:if test="PARVW = 'LF' ">
                                            <Name3>
                                                <xsl:variable name= "vABNNameValue">
                                                     <xsl:value-of select="''" />
                                                     <xsl:for-each select="E1EDKA3" >
                                                        < xsl:if test="QUALP = 'ABN' ">
                                                            <xsl:if test="STDPN != ''">
                                                                 <xsl:value-of select= "STDPN"/>
                                                             </xsl:if>
                                                         </xsl:if>
                                                     </xsl:for-each>
                                                 </xsl:variable>
                                                 <xsl:choose>
                                                     <xsl:when test= "$vABNNameValue != ''">
                                                        < !xsl:value-of select="concat('A.B.N. ',$vABNNameValue)"/-!>
                                                        <xsl:value-of select="concat(' A.B.N. ',$vABNNameValue)"/>
                                                        <!<xsl:value-of select="$vABNvalue"/>>
                                                    </xsl:when >
                                                    <xsl:otherwise >
                                                        <!-- OVSD Call 324728 End -- >
                                                        < xsl:variable name="Name3Test">
                                                            <xsl:call-template name="Template_GetE1EDKA1Name3">
                                                                 <xsl:with-param name= "TestValue">LF</xsl:with-param >
                                                            < /xsl:call-template>
                                                        < /xsl:variable>
                                                        < xsl:if test="$Name3Test != ''" >
                                                            <xsl:value-of select="$Name3Test"/ >
                                                        </xsl:if >
                                                        <!-- OVSD Call 324728 Begin -- >
                                                    < /xsl:otherwise>
                                                < /xsl:choose>
                                            < /Name3>
                                        < /xsl:if>
                                    < /xsl:for-eac
    please advice its so urgent i have a production issue
    i know there is a function substring
    thanks

    Have a look at this
    http://www.w3schools.com/xpath/xpath_functions.asp#string
    i guess this might be useful to you :
    <b>replace(string,pattern,replace)       </b>
    Returns a string that is created by replacing the given pattern with the replace argument
    Example: replace("Bella Italia", "l", "")
    Result: 'Bea Itaia'
    in your case
    <b>replace("someA.B.Nssss","A.B.N","")</b>
    I think it would work. try this....
    PS: award points if answer helps you.
    thanks,
    Pooja

  • To validate each part of the string

    Hi,
    In one string, we have these
    ID_A,ID_B,ID_C, ..., ...
    I know that there's a way in PL/SQL to divide it into several parts and each part is for one ID. But can I expect that to divide the string into several parts, and then to store all IDs in something like an Array, in PL/SQL? Is this possible, though I know there's no array field type in PL/SQL?
    Regards,
    huamin

    xtender wrote:
    You can use my package xt_regexp - http://github.com/xtender/XT_REGEXP
    To install execute in this order:     types.sql,     xt_regexp.jsp,     xt_regexp.pck
    Example:
    with t as (
    select 'ID_A,ID_B,ID_C,' str from dual
    union all
    select 'ID_A,ID_B,ID_C,ID_D' str from dual
    select
    t.*,
    row_number() over (partition by t.str order by t.str) substr_number,
    substring.column_value substring
    from t,
    table(xt_regexp.split(t.str,',')) substring
    That's nice, but you may want to benchmark that against an approach that doesn't make a bunch of external calls (for performance)...
    with t as
      select 1 as id,'ID_A,ID_B,ID_C' str from dual
        union all
      select 2 as id, 'ID_A,ID_B,ID_C,ID_D' str from dual
    select
      t.*,
      regexp_substr (t.str, '[^,]+', 1, s.column_value) as split
    from
      t,
      table( cast (multiset (select level from dual connect by level <= length(regexp_replace(t.str, '[^,]+'))  + 1) as sys.odcinumberlist)) s
         ID STR                 SPLIT
          1 ID_A,ID_B,ID_C      ID_A
          1 ID_A,ID_B,ID_C      ID_B
          1 ID_A,ID_B,ID_C      ID_C
          2 ID_A,ID_B,ID_C,ID_D ID_A
          2 ID_A,ID_B,ID_C,ID_D ID_B
          2 ID_A,ID_B,ID_C,ID_D ID_C
          2 ID_A,ID_B,ID_C,ID_D ID_D
    7 rows selected.
    Elapsed: 00:00:00.02
    TUBBY_TUBBZ?For example.

  • Display only part of the STRING field, but search ALL field

    Hi all,
    I have a field VARCHAR2(4000) that holds a lot of text.
    When I make a report in APEX, it shows in each row, ALL text, so the report is very "ugly".
    I want to limit the display of that column for only the first 60 characters.
    I tried to use the SUBSTR function, that worked, but the search option will search for the text only in that 60 lenght characters, and will now search in the rest (not displayed) part of the field.
    Is there a way to do this full search and display only part of the field?
    Thanks

    You can have the 'substring' column displayed to the user, but have another column which shows the full text lets say it has an ALIAS of "*SEARCH_LARGE_TEXT*" in the report definition(and is among the displayed columns).
    You can hide the large text column(SEARCH_LARGE_TEXT) using JS as
    $('th[id="SEARCH_LARGE_TEXT"],TD[headers^="SEARCH_LARGE_TEXT"]').hide()
    Note: ^= syntax used to match data column even when break formatting used
    You can make sure that the column stays hidden even after an IR filter or refresh by binding it to the refresh event of the IR by
    $('#apexir_WORKSHEET_REGION').bind('apexafterrefresh', function(){ 
      $('th[id="SEARCH_LARGE_TEXT"],TD[headers^="SEARCH_LARGE_TEXT"]').hide()
    change the string "SEARCH_LARGE_TEXT" with your column's alias
    Hope it helps

  • How to Create a Selection Variable for restricting the querry output

    Hi Gurus,
    I have created a query in query designer on a Multiprovider and the output of the query is a Formula in a structure which calculates a % value, the client is looking for entering a range of number during the query selection screen and the output should be restricted to the given selection values.
    Can any one tell me how i should create a selection variable that would take the input from the user during the query selection screen and then restrict the output to that value which user specified.
    Is there a need to write any customer exit or is there any alternative way to make the query work as the requirement is.
    I hope this explains my problem but if any questions please let me know so that i can give u specific information.
    Thanks,
    Nisha.

    Hi Nisha,
    Firstly, in order to restrict the query output by a key figure value, you will need to create a condition on that key figure. This is done in the query deisgner. Now when you are creating the condition you can also use user entry variables (formula variables with user entry) to let the users enter the value that they want to see.
    See here for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/content.htm
    Hope this helps...

  • How to create a text variable for Calender Yr/Month depending on the prompt for calendar year

    Hi everyone
    Please assist on this issue:
    i have created a Bex report that has an offset for 12 months from the current calender month, i tried to use text variables to replace the calender months but i just learned now text variables from Bex dont work in BO, so I would like to create a prompt in BO to enter Calendar Year and then based on the input(Calender Year) the Webi report must display a 12 months for that Year.
    Please also indicate where exactly  i have to click in order to get that "Helpful icon "  when the my issues have been resolved, because i searched it and havent seen it anywhere on the communications
    Thanks in Advance
    Ole

    Hi Gill
    In BO I recieve my all months for existing data  and when i create a prompt for Calender Year the months in the report still has those text varibale for exampl if i enter 2011 on the prompt the text remains for the year that was already there wen i created my text variable... so its not dynamic.....
    So if i have text variables in Bex it will display like this in Webi in which it wont change if i put in 2011 as input for the prompt...

  • Condition type for materials based on age of the material

    Hi,
    Could you all tell me about pricing of a material of mine .
    We have the creation date for it But when a order is placed for the material it should automatically propose a price which is based on the age of the material
    suppose says 1 year elapsed 100(order created after 1 year after the creation of the material)
    and so on
    Think Aged Alcohol

    Hi
    You can directly create the PR00 records in the VK11 for different periods. If the price changes (with age) monthly, you can give different price with validity dates of that month.
    Thanks,
    Ravi

  • SSO for External application not part of the portal framework

    Greetings,
    I am desperate!!!
    I am trying to do the following:
    I have a pl/sql application that presents to the user a set of external applications links.When the user activates a link, I would like to make a call the SSO server so it can do external application login.
    I know I can configure the external applications as described in the SSO admin guide.
    Unfortunately the API to query the SSO server for external application mapping is not public.
    ANY IDEAS ON WHERE I CAN GET THIS INFO??
    Every thing I have read says that external applications can be accessed through Portal. This is not my case. I can use any packages or classes available by the SSO server to portal, but MY APPLICATION IS NOT A PORTAL.

    I have similar kind of requirements for Single sign-on to external web applications.
    But in my applications I have to auto-generate random userid & password for different external web applications.
    These uids & password are exported to external applications, which upon recieving creates user in their applications.
    So, actual user will never have access to these credentials(uid &pwd).
    So, how can I cutomize the Portlets to do the first time SSO when user is created & their credentials to external apps are stored to OID.
    Any idea Barry..
    Bye

  • LLDB: A new debugger for developers ... part of the LLVM project

    I recently submitted https://aur.archlinux.org/packages/lldb-svn/ to the AUR.
    The main website for the LLDB project is here: http://lldb.llvm.org/.
    LLDB aims to be modular and easy to use and maintains much of the familiarity of GDB. This allows GDB users to quickly ramp up to start using LLDB.
    LLDB is also able to disassemble machine code using LLVM libraries so as soon as new instructions are added to LLVM, they are automatically available in LLDB.
    LLDB also has a large and active developer base and a larger customer base will get more bugs filed and hence better support for non-traditional distros like Archlinux. I myself am a long-term Arch user and even mentioning it at my workplace sparked quite some interest in the distribution.
    The main motivation to submit this package was to get a larger customer base for the LLDB project that one of the teams were developing during my Winter internship at Intel Corporation, one of the main contributors to the LLVM project.
    It does however take some time to build as it needs to build the LLVM libraries, the Clang libraries and then LLDB libraries/executables. If someone is interested enough to give it a try, please do and upvote the AUR submission and/or report any build/install problems and I will try to fix them.
    Also, AFAIK, LLDB does not support multi-threaded executables yet. I am not sure since my internship ended a while ago.
    Thanks!
    Last edited by mtahmed (2013-05-01 04:05:36)

    B. I have only been given a QT file of the pilot, as to cut a rough idea of the trailer, which I will then have to redo with the original HD files, when I return to them tomorrow.
    Well, this will make cutting more difficult. Because a low res version of the trailer will not have any timecode...nothing that references the main movie. So you will do the cut with the QT movie and then have to go back and eyematch-cut the trailer with the high res footage. Not fun and very time consuming. Not to mention that you will be cutting with the mixed audio of the trailer, including music and that will not sound right when you cut the trailer with the new music.
    You need a QT version of the movie that contains the timecode of the original master (using media Manager to recompress to DV or other offline codec will do this), and you REALLY need to get split track audio. If they are record producers, they'll know what that is.
    Shane

Maybe you are looking for

  • Applet Not loading in my browser???

    Iam using a IE browser (Version 6.0).i can able to run all applets which is available in my local machine.but only my browser is not supporting to run the applet from server. the error is load: class HelloApp not found. java.lang.ClassNotFoundExcepti

  • Cannot view topics in generated HTML help

    I am using RoboHelp HTML Version 11 with Windows 7 Enterprise/Service Pack 1. My problem is with generating HTML help files. It appears to generate and I get the message that it ran successfully. It even generates the CHM file, but when I click on a

  • Explain plan script

    Gurus, I am using Toad, in which I am trying to use the option explain plan for one of my queries, everytime it is showing an error, plan_table doesnt exist .. I tried running UTLXPLAN.sql but in vain .. So, can anybody assist me with the script of U

  • Sub controller problem

    Hello Guys,                   I have created  one e.g. using MVC and  i have called three sub-controller using <bsp:call> tag in main controller's view.  I have some input fields in 1st sub-controller's view. I wanted to read this value in 1st sub co

  • New PC can't load old library.

    I was able to use my iPod to transfer my library from my old PC to my new PC, however now I can't get the library into my newly installed iTunes library. What am I doing wrong? I followed the on-line help and it just says once I've copied it from iPo