Unable to restrict a rolling char field in MDX Universe.

Hello!
I am trying to create a restricted Characteristic in a SAP BW OLAP Universe. The chararcteristic is a Quarter field and has to be restricted for some reports to not display the last quarter in a rolling quarter period.There are a few menthods I followed inorder to achieve this, which are as below:
1) Object - SELECT CLAUSE : <EXPRESSION>EXCEPT( [0CALQTR].[LEVEL01],[0CALQTR].[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>. This gives and error messsage that the MDX expression is not valid.
2) Object - WHERE CLAUSE : <EXPRESSION>EXCEPT( [0CALQTR].[LEVEL01],[0CALQTR].[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>. This gives and error messsage that the MDX expression is not valid.
3) Pre-Defined Filter -
<FILTER KEY="[0CALQTR].[LEVEL01]">
<CONDITION
OPERATORCONDITION="NotEqual">
<CONSTANT CAPTION="[0CALQTR].[LEVEL01].CurrentMember.LastSibling"/>
</CONDITION>
</FILTER>. This also does not work giving a MDX statement not valid error message.
However, the only thing that works in all of the above the is the predefined filter with the following expressions:
<FILTER KEY="@Select(Fisc. Year/Quarter\L01 Fisc. Year/Quarter)">
<CONDITION
OPERATORCONDITION="NotEqual">
<CONSTANT CAPTION="@Prompt('L01
Quarter','A','L01 Fisc. Year/Quarter',mono,constrained)"/>
</CONDITION>
</FILTER>.
Kindly suggest if I can avoid using the prompt and just restrict the Quarter characteristic (with rolling quarters) to avoid displaying the last quarter.
Any inputs are highly appreciated.
Thanks,
Vivek.

Hi,
I believe you have to explicitly include a validate activity...
http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_appx_ref.htm#BABJDHEH
Cheers,
Vlad

Similar Messages

  • Can sorting facilty in internal tables can be used on char fields?

    Can sorting facilty in internal tables can be used on char fields?

    there is no restriction to sort by any TYPE. u ve the freedom to sort on any TYPE of fields.
    sort itab by ascending / descending F1 F2 F2.
    abap doubts, i request you to try and practise your doubts befor posting here in forums. I can understand you are a buddy.Please remember, PRACTISE MAKES MAN PERFECT. Try to master on own and approch forum in worst case.
    Also award points to all helpful answers.
    All the Best
    Thanks & Best Regards
    Kiran

  • Unable to define Radio Button Text field & unable to change column position

    Hi,
    While designing a screen in Screen Painter, I am unable to define Radio Button Text field as this option is not there in Graphical Element. And also I want to specify the starting position of column of that element different from the default value, but I am unable to define that because the field is non-editable.
    Can any one please help me out.
    Regards,
    Koushik

    Hi,
    Please find below the sample program from ABAP docu :
    PROGRAM demo_dynpro_input_output.
    DATA: input  TYPE i,
          output TYPE i,
          radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.
    CALL SCREEN 100.
    MODULE init_screen_100 output.
      CLEAR input.
      radio1 = 'X'.
      CLEAR: radio2, radio3.
    ENDMODULE.
    MODULE user_command_0100 input.
      output = input.
      box1 = radio1.
      box2 = radio2.
      box3 = radio3.
      IF exit NE space.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    Here radio1(1) TYPE c is defined within the program but in the element list there are RADIO1 element exist. One is actual radio button and the other is Radio Button Text.
    I am not able to create that radio button text using same object name.
    Please suggest.
    Regards,
    Koushik

  • COPA structure cross 50  char-How to add more char fields in the sturcture

    Hi SAP CO Guru's,
    I am facing one problem in COPA characteristics, I have created the characteristics however in the KEA0 structure where we have already exhaused max limit of 50 char, hence system is not allowing to add these new fields in the structure.
    I need help for getting addition 2 fields into structure.
    I have one more option where few Char fields are not usable, can be remove from the structure if we can not increase the limit of 50 Char in the structure but system is not allowing me th remove the already selected Char fields.
    Thanks in Advance.
    Uday Suryawanshi
    SAP FICO consultant, Pune

    Hi Uday
    There is a way you can increase the limit.. refer the note given above
    However, SAP wont take the responsibility of any thing that happens later on.. It is completely your headache....
    So, better rename the Chars and use them....
    If you are still in DEV Client, delete COPA docs posted till now.. refer Note 21207... This helps you to delete a char if posted data exists
    I personally would prefer to rename and reuse.. After all, recycling is encouraged these days
    Br, Ajay M

  • How to  Place the Cursor at Specific Position with-in a Char Field ?

    Forms 4.5 ver.
    Sun Solaris / Citrix env.
    Char Field - Length 65434
    How Can I Place the Cursor at "Specific Location"
    with in a Field ?
    with GO_ITEM('field Name') I can place the Cursor at Specific Field.
    But, How Can I achieve to Place the Cursor at Specific
    Position within that Field ?
    I know, the starting position, length of string I want to hightlight with the Cursor.
    tried using :
    go_item('substr(field_name,position,length)') ;
    but didn't work !
    Is it possible ?
    Thanks, Peri

    The only cursor postion behavior that can be controled is the item property "Keep Position".
    The following is the text from the on-line help for item property "Keep Position"
    KEEP_POSITION Specifies whether the Keep Position property should be True or False. When Keep Position is True, the cursor returns to the same position it was in when it left the text item. When Keep Position is False, the cursor returns to the default position in the text item. Valid values are PROPERTY_TRUE and PROPERTY_FALSE.

  • Unable to fill out interactive form fields in the pdf form.

    I'm unable to fill out interactive form fields in the pdf tax form in Reader 11.0.06 with purple bar inviting to do so.

    The only Flash Player that is remotely connected to Adobe Reader is the plugin.
    Can you temporarily uninstall the plugin (or both ActiveX and plugin using http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html and see if the problem disappears?
    Reinstall both using these installers http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_text_4

  • Unable to Restrict Navigational Attribute in Query Designer

    Hi BI Experts,
    I had a Requirement to restrict on navigational attribute.......
    i have checked in every levels such that
    1.at info object level ....checked  type as navigational
    2.at info cube level checked the navigational on.
    still iam unable to restrict on navigational attribute................in the context menu its giving the options cut, remove and where used list .........its not giving option to restrict...........
    its very urgent ...........please give any suggestions how to restrict on navigational attr

    Dear Ram,
    Dont expand the InfoObject and see the Attributes ( They r Dis Attrs )
    Just expand the Dimension --- Nav Attrs are available  ?
    Dont put them in Filter pane..( if available )
    Drop them under Rows.
    But restrict them under Default values ( By clicking on Filter pane ).
    Regards,
    Ram.

  • Can't format a char field as a date

    I have a char field coming in from a table that really is a date. I wanted to display the YYYYMMDD char field as MM/DD/YYYY.
    I could not get any conversion (CDate) to work and I can't figure out how to set field[0,4]  = year and so on, so I could come back and build the string.
    Can somebody help me?

    I have a field that should be a DATE type, but is instead a VARCHAR2(8).  The data in the VARCHAR2(8) field is displayed as what looks like a date -- EX:  09/18/09.  I need to be able to convert the VARCHAR2(8) field so that it brings back the spelled out month plus the numeric day and year -- EX: September 18, 2009.
    I've been able to successfully convert a DATE type to the needed format (September 18, 2009) using the following syntax line, but now need to convert the VARCHAR2(8):
              to_char(jud_report_hear_off_v.incdate,'fmMonth dd, yyyy,') as INCDATE
    Your help is appreciated!!!

  • Unable to read from .csv having field in double quotes

    Hi to all,
    I am trying to reading data from .csv file using JDBC it was reading perfectly when fields are without quotes
    i.e. Field1 and unable to read with filedname as "Field" instead giving Exception Column Not Found, please help me out with this.
    Expecting your responses in this matter.
    Thanks in advance.
    khiz_eng

    So you really read the csv (ASCII) file over JDBC?
    Well, for DSNless connection there's a simple trick:
    1) configure a DSN exactly like your actual (system or user DSN), but as a file DSN.
    This can't be used for JDBC conections, but it contains all the params in a very clear format which you have to set for your JDBC connection just with the same values.
    2) Code your connect string:Connection con = DriverManager.getConnection( "jdbc:odbc:Driver=valueForDriverInFileDSN;Database=valueForDatabaseInFileDSN", user, pw );Look, if you succeed this way.
    If not, please post:
    * your connect string
    * the DBException's informations
    * the content of your FileDSN file

  • ALV: ADD leading ZEROs in a CHAR field

    Hello Everybody!
    I have a problem and I hope you can help me
    What I have:
    1. ALV (hier)
    2. Char field 'DEBIT' type SAKNR.
    3. Field catalog TYPE slis_t_fieldcat_alv,
       created by FUNCTION MODULE 'REUSE_ALV_FIELDCATALOG_MERGE'.
    The problem is: i need to show leading zeros in ALV.
    For example: an account '07110000' (in the inner table) is shown as '7110000'.
    What I've done:
    1. ls_fieldcat-lzero = 'X'.
         ls_fieldcat-no_convext = 'X'.
    2. CLEAR ls_fieldcat-ref_tabname.
         ls_fieldcat-lzero = 'X'.
    ( ls_fieldcat-ref_fieldname was clear after filling by the function module)
    I'm realy waiting for your advice!

    >
    nagaraj kumar nishtala wrote:
    > Hi,
    >
    > try to give refernce table name and reference field name for the field after the fieldcatalog merge FM.
    >
    > i mean to say modify the fieldcatalog for that particluar field  by giving refernce table name and reference field name .
    I've tried it, but it doesn't work:
        ls_fieldcat-outputlen = 8.
        ls_fieldcat-lzero = 'X'.
        ls_fieldcat-no_convext = 'X'.
        ls_fieldcat-ref_tabname = 'T599I'.
        ls_fieldcat-ref_fieldname = 'PARAM'.
        ls_fieldcat-datatype = 'NUMC'.
        ls_fieldcat-inttype = 'N'.
    >
    nagaraj kumar nishtala wrote:
    > or use conversion_exit_alpha_input to add zero's to it.
    >
    > Regards,
    > Nagaraj
    How can I use conversion_exit_alpha_input? I have no idea...

  • Trailing space in char field

    Hello there,
    I am a BW developer and I am currently having an issue with trailing spaces in an ABAP routine.
    This is the situation (example... In real life I use larger char fields):
    - From a source I get a text line that is let's say max. 60 characters long.
    - In BW I split this line into 3 parts and save those in the short text fields of 3 different InfoObjects. Short text is defined as CHAR 20.
    - Later on I can display the text line I just split up as one line of text again. I need to do this because BW can only store texts with acertain length.
    - Now it is possible that the text line I get has a blank at position 20. I need to keep this blank in the first of my 3 parts. But since it is a character field, the blank is ignored and only the first 19 characters are saved.
    Question:
    How can I manage to save all first 20 characters in the first of the three CHAR 20 fields, including any trailing blanks?
    The fields have to be defined as CHAR because that is the definition of text fields in BW. (data type RSTXTSH, to be exact)
    Example:
    Incoming text line (Notice, the character at position 20 is a blank):
    "blabla1111blabla111 blabla2222blabla2222blabla3333blabla3333"
    After splitting it into three parts, I get this:
    Part 1: "blabla1111blabla111" (no trailing blank)
    Part 2: "blabla2222blabla2222"
    Part 3: "blabla3333blabla3333"
    What I need is this:
    Part 1: "blabla1111blabla111 " (with trailing blank)
    Part 2: "blabla2222blabla2222"
    Part 3: "blabla3333blabla3333"
    Any help will be greatly appreciated
    Thanks and regards,
    Stefan

    Hi Stefan,
    As Stefan Seeburger already said you can use RESPECTING BLANKS to get that.
    DATA: i_input TYPE c LENGTH 60,
           e_part1 TYPE c LENGTH 20,
           e_part2 TYPE c LENGTH 20,
           e_part3 TYPE c LENGTH 20,
           v_space   TYPE c LENGTH 1,
           e_partfull TYPE c LENGTH 60.
    i_input = 'blabla1111blabla111 blabla2222blabla2222blabla3333blabla3333'.
    SPLIT i_input AT v_space INTO: e_part1 e_part2 e_part3.
    e_part1 = i_input(20).
    e_part2 = i_input+20(20).
    e_part3 = i_input+40(20).
    DATA: lv_length TYPE i.
    lv_length = STRLEN( e_part1 ).
    CONCATENATE e_part1 e_part2 e_part3 INTO e_partfull RESPECTING BLANKS.
    DATA: lv_length2 TYPE i.
    lv_length2 = STRLEN( e_partfull ).
    BREAK-POINT.
    Cheers!

  • Converting from NUMC field in R/3 into  CHAR field on BW

    Hi all,
       We have a field (COST) which is defined as NUMC 6 with DECIMAL 2 like12.50 in R/3. I want to receive it into CHAR field on BW side.
      What is the simplest way to convert it, please. What should be the CHAR length in BW?
    Thanks in advance.
    Regards.

    Hi Venkat,
    I don't have any sample code for this. You will create one local variable in the trasnfer routine. Accept the NUMC value in that local variable and then assign that local variable to the final destination i.e. to CHAR InfoObject.
    PB

  • Converting DECIMAL field in R/3 into CHAR field on BW

    Hi all,
       We have a field in R/3 which is defined as :
          Data Type : Decimal
          Length      : 6
          Decimal Places : 2
         I want to receive it into CHAR field on BW side.
         How could I convert it, please. What should be length of this CHAR field in BW?
    Thanks in advance.

    Hi Venkat,
    Create a character infoobject of length 18. Include the infoobject in your data target and map the key figure value to the character infoobject by writting the following update routine for the character infoobject.
    Result = comm_structure-xxxxxx (xxxxxx = key figure infoobject you want to map for example say comm_structure-net_price if key figure is 0net_price)
    Please assign points if it helps,
    Neelima
    Message was edited by:
            Neelima Ravipati

  • Decrypt and Encrypt a CHAR Field

    Hello everybody,
    my issue is that I want to encrypt a Char field with length 12, which is written in a table. It should be possible if necessary to decrypt the char field after encryption. Do you have any suggestions?
    Thank you already
    Best Regards
    Martin

    Hi Martin..
    try this code
    Data enpwd(32) type c.
    parameter pwd like enpwd .
    ******** Encrypting *******************
    CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
    EXPORTING
    IM_DECRYPTED_PASSWORD = pwd
    IMPORTING
    EX_ENCRYPTED_PASSWORD = enpwd
    ******** Decrypting *******************
    CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
    EXPORTING
    IM_ENCRYPTED_PASSWORD = enpwd
    IMPORTING
    EX_DECRYPTED_PASSWORD = pwd
    ********* Output **********************
    write:/ 'Encrypt data=', enpwd,
    / 'Decrypt data=', pwd.
    also try this forum links
    http://forums.sdn.sap.com/thread.jspa?messageID=5077062#5077062
    https://forums.sdn.sap.com/thread.jspa?threadID=1196646&tstart=0
    Regards .
    Shiva

  • AT END OF for char field not working

    Hi all,
    AT END OF (char field) not working,
    I sorted the itab and also avoid the stars(*) problem also, but its not working.
    Thanks in advance.
    Edited by: Vijay Babu Dudla on Jan 28, 2009 11:01 PM

    Hi, Niranjan
    Test the following Sample Code it will solve out your Problem,
    " This is not working properly right now.
    TYPES: BEGIN OF t_name,
      name1(10),  " if You Change Cut the Name2 from the 2nd line and past it up to the Name one will work fine
      name2(10),
      amount1 TYPE p,
      amount2 TYPE p,
      END OF t_name.
    DATA: it1_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it1_sum TYPE t_name,
          it2_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
          wa_it2_sum TYPE t_name.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 100.
    wa_it1_sum-amount2 = 200.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'AAAAAA'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 500.
    wa_it1_sum-amount2 = 10000.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 105000.
    wa_it1_sum-amount2 = 20500.
    APPEND wa_it1_sum  TO it1_sum.
    wa_it1_sum-name1 = 'BBBBBB'.
    wa_it1_sum-name2 = 'AAAAAA'.
    wa_it1_sum-amount1 = 21000.
    wa_it1_sum-amount2 = 22000.
    APPEND wa_it1_sum  TO it1_sum.
    SORT it1_sum BY name1 name2.
    LOOP AT it1_sum INTO wa_it1_sum.
      APPEND wa_it1_sum TO it2_sum.
      AT END OF name2. " When you will use this in this Condition it will give you wrong Because this row is on number two and
                       " it is not changing but the Row one is Changing so it will work fine if LEFT MOST
        SUM.
        wa_it1_sum-name1 = 'End Name 2'.
        wa_it1_sum-name2 = 'End Name 2'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
      AT LAST.
        SUM.
        wa_it1_sum-name1 = 'At Last'.
        APPEND wa_it1_sum TO it2_sum.
      ENDAT.
    ENDLOOP.
    Please Reply if need more help about it.
    Kind Regards,
    Faisal

Maybe you are looking for

  • My ipod has been stolen. How can I get it back?!

    Please I am in tears, im on the verge of just blowing my brains out and I need it back. Is there anything I can do or should I just end it.

  • Unable to Preview barcode font fields in Word Template Builder PDF Preview

    I have searched for solutions to this problem but did not find anything that I have not tried. I have IDAutomation Barcode fonts installed and am using the Word template builder v10.1.3.4 Build 129. My Templates work fine in EBS, but I cannot Preview

  • LiveType Major Problem: HELP!

    Running OS 10.4.11, FCS 2 6.0.3, QT 7.4.5 on both a Mac Pro Dual 3Ghz and MacBook. Livetype styles, effects, objects do not show in LiveType and renders are black. Old .ipr files display as plain text within FCP without styles or effects. This all st

  • Oracle.apps.fnd.framework.OAException: Message not found. Application: FND

    Hi Team, In My Project i am using One AM called rootAM and 2 VO's are attached with the rootAM,While running the page i am getting following error ..Please help me....... oracle.apps.fnd.framework.OAException: Message not found. Application: FND, Mes

  • POC Weight on basis of Activity Duration

    Hi Experts, I need POC weight to be assigned on the basis of activity duration, can any one tell me which BADI / BAPI should be used for the purpose. Thanks & Regards, Murtaza