How to replace  BLANK or NULL values in rule file

Hi,
I have a source file which contains Blank or Null values which i need to replace them with a number "042" .How we can do this in the rule file using "Replace "(Field->Properties).I tried keeping spaces but its failing. I am actually new to essbase please let me know how we can do this.
Thanks in Advance

Hi,
Unfortunately you can't replace blank/null/space values directly. What you need to do is add a text field in your rules file first, then merge the text field with the column containing blank/null/space. Then you can use some creative find and replace to solve this problem.
For example, I often add a column called "TextCleaner" to my rules files where I suspect b/n/s values. After merging there are 3 possible options for the value.
1) "TextCleaner" (The original value was null)
2) "TextCleaner " (The original value was space)
3) "TextCleanerUSA Region" (The original value was valid data, such as USA Region)
Now you can use the find and replace as follows
First, F&R to remove any instance of "TextCleaner" and replace with 042. Be sure to check the "Match Whole Word" button. This swaps null values with 42
Second, do the same thing but with "TextCleaner ". This swaps any space/blank values with 42.
Third, replace "TextCleaner" with nothing. Do not check the "Match Whole Word" button. This changes any original valid values back to the original value.

Similar Messages

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How do I pass a null value to the reportDocument?

    I'm using CR 2008 and VS 2005. 
    I am using a stored procedure as the datasource for one of my report, which we run using the C# API.   The stored procedure is expecting a NULL in certain cases and I find I cannot pass a NULL with my current code:
    // Here I get the parameter
    // If we are dealing with an empty string or a NULL value, let's give it
                            // a value of a space so that Crystal's DLLs don't choke.
                            if ((value.Length == 0) || (value == "NULL"))
                                value = " ";
                            arrParams.Add(value);
    Object strParam = arrParams<i>;
    this.reportDocument1.SetParameterValue(num, strParam);
    The stored procedure parameter type is INT so in the report it shows up as NUMBER.
    How do I get a NULL value to the stored procedure?
    Thanks.

    See if this does the trick:
    Dim crParameterDiscreteValue As New CrystalDecisions.Shared.ParameterDiscreteValue()
    crParameterDiscreteValue.Value = Nothing
    C# would look something like;
    CrystalDecisions.Shared.ParameterDiscreteValue crParameterDiscreteValue;
    crParameterDiscreteValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
    crParameterDiscreteValue.Value = null;
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How do I set a NULL value for the parameter field

    Hi
    I've another question. I'm going to set single values for parameter fields.
    // e.g. set today for StartDate parameter field
    fc.setCurrentValue("", "StartDate", new Date());
    It should be possible to set a NULL value for date parameter fields.
    fc.setCurrentValue("", "StartDate", (Date)null);
    But this do not work. How do I set a NULL value correctly?
    Thank you in advance.
    Best regards,
    Thomas

    First question - is it a stored procedure parameter?
    You can't set a regular parameter field value to a null value.
    There was an issue with old version of the JRC, where it was allowing null to go through, but had unexpected behavior at times.
    Sincerely,
    Ted Ueda

  • How can I avoid the null values in cross tab?

    How can I avoid the null values in cross tab?

    Hello Anindita,
    Let me explain you the problem in detail.
    I have selected User and Program as rows in the cross tab. In Summarized Field I am counting the Programs.
    In DB I can have both User and Program null.
    Letu2019s take these scenarios...
    1) For a User, Program can be null
    2) For a Program, User can be null
    3) And both can be null.
    A null Program does not give problem since Cross tab does not count the null values and in my case too, it remove the Program which are null from the Cross tab because of the counting its doing on Program. Hence scenario 1 and 3 is not a Problem.
    Problem comes in scenario 2 (For a Program, User can be null).
    In this case since Program is not null it will get counted and will be grouped under null user but I donu2019t want to show the null user Grouping in my cross tab.
    "Suppress empty rows" and "suppress empty colums" does not help.
    Thanks & Regards,
    Amrita

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • How to remove the XML attribute value in Indesign file by javascript

    Hi all,
    How to remove the XML attribute value in Indesign file.

    Try this,
    if(elm.xmlElements[i].xmlAttributes[j].name == "aid:pstyle" || elm.xmlElements[i].xmlAttributes[j].name == "aid:cstyle")
    Vandy

  • How to delete blank space from value of Infoobject in the transfer rule

    does anyboady know how to write a routine in the transfer rule in order to delete ending blank spaces from value of Infoobject 'ORDTEXT'. E.g. value: 'ABM    '?  After routine, the result should be 'ABM'.
    Thanks for any input.

    Deleting 'ending blank spaces' from a character type field (ie info-object or text) in SAP is not meaningful. For all usage, a char type field of length 8 having value  'ABM     '  is same as 'ABM'.
    Ok, HTML is changing the display in the above, so let me restate it
    For all usage, a char type field of length 8 having value  'ABM_____'  is same as 'ABM', take the underscore character (_) in the first string as a placeholder for space character.
    Edited by: Ajay Das on Jul 29, 2009 12:07 PM

  • How to find out the null values in table

    hi experts,
    my version is oracledb10g:
    i h'd simple doubts.
    for eg:
    create table ex1( e varchar2(20));
    insert into ex1 (null).
    insert into ex1(e)
    count will be: 2
    i can easily found out the value 'e'.
    so my question is:
    how can i found out the null values in the table and i want to delete the null values from the table.

    ADF 7 wrote:
    hi experts,
    my version is oracledb10g:
    i h'd simple doubts.
    for eg:
    create table ex1( e varchar2(20));
    insert into ex1 (null).
    insert into ex1(e)
    count will be: 2That depends what you count. If you issue count(*) you are asking Oracle "how many rows are there". If you issue a count(<column_name>) you are asking Oracle "how many not null values of <column_name> are there".
    ADF 7 wrote:
    i can easily found out the value 'e'.
    so my question is:
    how can i found out the null values in the table and i want to delete the null values from the table.
    delete from <table_name>
    where <column_name> is null;Ideally you'd just place a NOT NULL constraint on the column in question, thereby prohibiting NULL values from entering into the system (assuming your business requirement is that the column MUST always have a value).

  • How to select instances without null value?

    hye all,
    i need to do th ereprocessing data whereas i have to select the instances without null value from the database..
    for example:
    id name
    123 izza
    345 alex
    567
    the id = 567 contain null value..so..its automatically will not be selected from the database...
    how about if it have about 10 or more attributes to be selected..
    how can i work with the SQL thanks..

    Hi,
    Query for your example should like like this:
    SELECT * FROM <your_table>
        WHERE name is null;
    how about if it have about 10 or more attributes to be selected..
    If using 10 or more attributes you mean 10 or more columns with null use this:
    SELECT * FROM <your_table>
        WHERE <col1> is null AND <col2> is null etc...Peter D.

  • How to query for a NULL value?

    Hi all,
    how can I query for a NULL value in a ViewObject. I tried to set null as where-clause param [setWhereClauseParam(0, null)]. But the created statement looks like this:
    SELECT ...
    FROM ...
    WHERE param = null
    I would expect it to create something like WHERE param IS NULL. I hope anybody has a solution for this.
    Thanks,
    Axel

    I think you should use setWhereClause("COL_NAME IS NULL")
    You could use setWhereClauseParam(0, "NULL"), but only if you have a predefined query similar to: "SELECT X, Y, Z FROM A WHERE X IS :0" (which is a pretty useless query, as you can ONLY set "NULL" as the value for ":0").

  • Query to replace blank or null to zero

    I have query as below
    Select id from table1 where id =32
    I dont have value in table1 for id=32.In this case i need to get a result like 0.Basically if nothing is there for that query it shoulh return 0.
    of the query is like below
    Select id from table1 where id in (12,32,10,42)
    the result should be as below. There is no id for 32 and 42 so it should be 0
    12
    0
    10
    0
    Please help

    user10285699 wrote:
    I have query as below
    Select id from table1 where id =32
    I dont have value in table1 for id=32.In this case i need to get a result like 0.Basically if nothing is there for that query it shoulh return 0.
    of the query is like below
    Select id from table1 where id in (12,32,10,42)
    the result should be as below. There is no id for 32 and 42 so it should be 0
    12
    0
    10
    0
    Please helpI used the with clause to generate data as i suppose you have it. In the future, providing this along with your version number is greatly beneficial for everyone involved in the process.
    I have also used a generic Oracle Type, if you have your own feel free to use that (it's just a table of numbers) which we use to outer join to your data, whenever we cannot join (the outer join kicks in) we decode that NULL value to 0.
    TUBBY?with your_data as
      2  (
      3    select 12 as id from dual union all
      4    select 10 from dual
      5  )
      6  select
      7    nvl(d.id, 0)
      8  from
      9    your_data                               d,
    10    table(sys.odcinumberlist(12,32,10,42))  t
    11  where
    12    t.column_value  = d.id  (+);
           NVL(D.ID,0)
                    12
                     0
                    10
                     0
    4 rows selected.
    Elapsed: 00:00:00.10
    TUBBY?

  • Selection of Null Value in Transformation file

    Hi Guru's,
    I've been trying to select NULL values of a field in transformation file but unfortunately system always gets both null and filled values of the field ALTHOUGH i had maintained the Selection Option.
    Data management package is: Load Transaction Data from BW InfoProvider UI
    The technical name of field: 0FLAG
    I've tried each possibilities as in below
    SELECTION: 0FLAG, *STR()
    SELECTION: 0FLAG, *STR();
    SELECTION: 0FLAG, ""
    SELECTION: 0FLAG, " "
    SELECTION: 0FLAG, NULL
    SELECTION: 0FLAG, *STR(#)
    SELECTION: 0FLAG, #
    SELECTION: 0FLAG, "#"
    Doesn't work.
    thanks in adv. for your precious supports

    Hi Sadi,
    I understand your question that, you want to load tr. data from infocube and you have a trouble with one field which name is "0flag" in this cube, right? If your case is above, you need conversion file for flag, and convert like that # = "DUMMY" or sth.
    Or, you can solve in BW with transformation file routine.
    I hope, it will help you.
    Thanks.

  • How to replace blank values in DATE field with 00000000

    Hi
    I have a DSO with Date field in which there are blank values. I want to replace the blank values in the DSO for date field with 00000000. Because of this blank values in the DSO the report is giving an ORA error.
    How do we replace the blank values in the DSO for historical data and also the new loads?
    Please advise.
    Thank you.
    Regards,
    Pavan.

    Hi Suman,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how to remove these "#" values in the report?

  • How to replace blank spaces with zero's in the report

    hai sdn guys,
                         we have a requirement where we cannot have any blank fields in the report and i need to replace the blanks with a zero. What is the best way to do it.

    Hi Sunitha,
    It is not proper that you are posting the same question multiple times:
    Re: report o/p should not have blank spaces in - in case of no value
    should get 0's in place of blank value in  the output of the report
    That too inspite of my requesting you not to do so.
    I am not sure if you have ever gone through the Rules Of Engagement which are prominently posted in each forum, but I think it is SDN courtesy to provide proper feedback when posting a question and assign points as deemed fit. This helps (and motivates) everyone to work on your problem and try to give you a solution. I hope you will be more careful in the future. Thanks!

Maybe you are looking for

  • SAP client and other software on a Virtual Machine

    I'm the campus coordinator for a university that is a member of the University Alliances program.  This gives us the ability to put the R/3 client and other software on lab machines and also distribute it to students. Given that we deploy in a shared

  • Setting default values for field on screen.

    Hello, I am trying to set default value for one of the fields I have on screen when I execute the custom transaction. I am doing that in PBO as follows. But the default value is not set for Date field. PROCESS BEFORE OUTPUT. MODULE PBO_OUT. MODULE ST

  • Pix on touch not sorted correctly after upgrade.

    Hi, my pix were sorted by Name in iPhoto'08, iTunes (10) and iPod touch 3g (iOS4). After upgrading my touch to 4.2.1 last week, they are scrambled on the iPod touch. I created another Event with some pix, which was appended at the bottom. I presume t

  • Mass change on Backflushing box in Routing change when several Alt. BOM

    Hello Gurus, Is there a standard program to tick the box Backflushing in Routing change ? It tried to manage it with LSMW but unfortunately there is one major difficulty: more than one Alternative BOM. When I click on CompAlloc, SAP displays a list o

  • Some Symbols disappear when I create Tween

    Hello, I seem to be having trouble with Tweening. I have a group of symbols hat I moved from one location at the keyframe 10 to another location at the keyframe 20. When I create a motion tween, some of the objects move fine, while others disappear d