Replacing # with blank space in Bex Analyser

Hi All,
Can any one help me out in replacing # values in Bex analyser with blank space.
I tried with the macro:
Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
' First Query in the workbook
If queryID = "SAPBEXq0001" Then
' Selects the area where the report query is rendered
resultArea.Select
'Replace "" with 0
Selection.Cells.Replace What:="", Replacement:="0", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=True
End If
End Sub
Means I have include the macro to the Excel, but still it is not working.
If this macro is the correct solution, then may be I am not using it properly(in the sense I'm not calling with proper syntax).
Please provide me with the solutiuon to get rid of this problem.

Hi,
We are using BEX 7.0.
I got a macro code which is working. The code is as follows.
Dim resultArea As Range
Set resultArea = varname(1)
Dim c As Range
For Each c In resultArea.Cells
If c.Value = "#" Then c.Value = " "
Next c
This works fine but the problem is that this macro code should be added each and every time when the query is run.
Can any one suggest me where the code can be added in Bex Analyzer itself, so that when the query is run the above macro runs along with it and removes the #.
Thanks and Regards,
Geetha.

Similar Messages

  • How to replace a character in a string with blank space.

    Hi,
    How to replace a character in a string with blank space.
    Note:
    I have to change string  CL_DS_1===========CM01 to CL_DS_1               CM01.
    i.e) I have to replace '=' with ' '.
    I have already tried with <b>REPLACE ALL OCCURRENCES OF '=' IN temp_fill_string WITH ' '</b>
    Its not working.

    Hi,
    Try with this..
    call method textedit- >replace_all
      exporting
        case_sensitive_mode = case_sensitive_mode
        replace_string = replace_string
        search_string = search_string
        whole_word_mode = whole_word_mode
      changing
        counter = counter
      exceptions
        error_cntl_call_method = 1
        invalid_parameter = 2.
    <b>Parameters</b>      <b> Description</b>    <b> Possible values</b>
    case_sensitive_mode    Upper-/lowercase       false Do not observe (default value)
                                                                       true  Observe
    replace_string                Text to replace the 
                                         occurrences of
                                         SEARCH_STRING
    search_string                 Text to be replaced
    whole_word_mode          Only replace whole words   false Find whole words and                                                                               
    parts of words (default                                                                               
    value)
                                                                               true  Only find whole words
    counter                         Return value specifying how
                                        many times the search string
                                        was replaced
    Regards,
      Jayaram...

  • Adobe Pro XI deletes and/or replaces letters with blank spaces or an x

    How do I fix the problem where Adobe Pro XI deletes and/or replaces letters with blank spaces or an x.
    This is really annoying to have to go back to each thing I type into a document and re-choose the fonts to get them to be correct.
    Thanks for your help!

    Adobe is a company, not a program... do you mean ACROBAT Pro?
    If yes, this is the Premiere Pro video editing forum, you need to go to http://forums.adobe.com/community/acrobat

  • Change Filenames with blank spaces in the Filename

    I want to change many filenames with blank spaces and replace
    blank spaces with underbar character.
    Example:
    File One change to File_One
    File Two change to File_Two
    Here is my script:
    for file in `ls`
    do
    i=`ls -1 *" "*`
    b=`ls -1 *" "* | sed -e s/\ /_/g`
    done
    mv "$i" $b
    Please advise what is wrong with my script that isnt
    working. The script works if I only have one filename
    with a blank space. But if I have several filenames
    with blank spaces in the name then it doesnt work.

    I want to change many filenames with blank spaces and replace
    blank spaces with underbar character.
    Example:
    File One change to File_One
    File Two change to File_Two
    Here is my script:
    for file in `ls`
    do
    i=`ls -1 *" "*`
    b=`ls -1 *" "* | sed -e s/\ /_/g`
    done
    mv "$i" $b
    Please advise what is wrong with my script that isnt
    working. The script works if I only have one filename
    with a blank space. But if I have several filenames
    with blank spaces in the name then it doesnt work.

  • Fill with blanks(spaces) a VARCHAR2 type

    Thanks in advance,
    I have a VARCHAR2 type rtesta's var of length x(100 char)
    how i can fill(write) it without create a other varchar2 var that it'll be only filled with blanks(spaces). e.g
    rtesta := ' PC'||fil1||'xxx||fill2....
    where fil1 = say 10 spaces.. fill2 = 63 spaces and so on
    I would like something as
    rtesta := ' PC'|| RPAD(null,10)||'xxx||RPAD(null,63) ...
    but.... Oracle treats an empty string as null. And nulls are always a bit special within Oracle. Particularly, rpad('', n) and lpad('', n) returns null.
    Exists a built in for my problem?
    Thanks

    alter table your_table modify(your_column char(100));
    update your_table set your_column = ' '
      where your_clumn is null;  /* (added) But,this is no good for performance */
    alter table your_table modify(your_column varchar2(100));Exapmples.
    SQL> set null (null)
    SQL> create table test (vc varchar2(100));
    Table created.
    SQL> insert into test values ('');
    1 row created.
    SQL> insert into test values ('a');
    1 row created.
    SQL> insert into test values ('abcde');
    1 row created.
    SQL> select substr(vc,1,10) vc,length(vc) len from test;
    VC                          LEN
    (null)               (null)
    a                             1
    abcde                         5
    SQL> alter table test modify(vc char(100));
    Table altered.
    SQL> update test set vc = ' ' where vc is null;
    1 row updated.
    SQL> alter table test modify(vc varchar2(100));
    Table altered.
    SQL> select substr(vc,1,10) vc,length(vc) len from test;
    VC                          LEN
                                100
    a                           100
    abcde                       100----
    I misread OP's problem, sorry.
    Message was edited by:
    ushitaki

  • Why FileUtils::CopyFile doesn't work with blank space?

    Hi all,
    If I have a destination directory with blank space inside, looks like: "C:\Users\Pattrick James\Documents" for Windows or "Macintosh HD:Users:Pattrick James:Documents" for Mac.
    Then I want to copy a file to that directory, use FileUtils::CopyFile(src, des). Why it doesn't work?
    Can someone please help me to resolve this issue without change my path?

    Sorry, it works fine. It happens because the permission of the directory.

  • Pass parameter with blank space for report ver 6

    Hi,
    I face a problem that i willing to pass the acno where it's value with blank space, for example ' 9' as parameter into my report, and assign it as v_acno. Inside the report query i add a where condition, acno >= :v_acno. When i run the report and pass acno without ' , it do not show any record. But when i run the report and pass acno with ' then able to show the records.
    for example the value i key in
    with ' = ' 9'
    without ' = 9
    So how i can solve it by pass the acno without ' but the record still able to show?
    thks
    Message was edited by:
    user569740
    Message was edited by:
    user569740

    Hi Nick,
    It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
    dtexec Utility (SSIS Tool) document, we can see:
    All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
    An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
    Doubled quotation marks within quoted strings represent escaped single quotation marks.
    Options and arguments are not case-sensitive, except for passwords.
    So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
    Regards,
    Mike Yin
    TechNet Community Support

  • Carriage returns are replaced by blank space in SOAP message.

    Hi,
    i am using SOAP request based website. i am using the weblogic webservices. when we sent any SOAP request to the server, if the SOAP xml message contains any carriage returns(new lines) are replaced by a single balnk space.
    i have a requirement where user can enter details in multiple lines. but by the time when it readched server, the SOAP xml message has changed. all the carriage returns are repalced by a blank space.
    Can you please help how to solve this issue.
    Thanks
    subba.

    What are your trying to accomplish?
    I'm thinking you are trying to get a several 'fields' together as a single 'string'. In which case I'd simply concat the fields together like
    SELECT a, b||' '||c ...
    to create a single string with "contents of b space contents of c"
    If you are trying to get one hundred and one blanks, of make a field 101 characters wide with blank padding, then you want to look in the SQL Reference manual for things like lpad, rpad and trim.

  • Special character "/" replacing with blank with Direct Input Method posting

    Hi All,
    I am posting FI historical data using Direct Input Method. Payment term contains special character "/"( I/E). SAP standard program replacing Special character "/" with blank (I E) so document posting is failing. Could you please advise.
    Thanks
    Chandra.

    Can You please specify the Transaction code and SAP program name for direct input.

  • Work with text with blank spaces, how separate text?

    Hi:
    I have a problem in abap programming, I hope you could help me.
    I have a txt file, with a code and its description. I have this file uploaded to a sap internal table, in same field of internal table are code and description.
    The problem is next:  I need only the code, not the description, but length of code is not constant, and it is separated from description for at least two blank spaces. The code contains also a blank.
    Do you know how I can take only the code until these two blanks spaces? Any abap function, any idea..?
    Thanks in advance for your help.

    Hi,
    You could use split. if you code always contain a blank space then you won't have any problem.
    data: a(30).
    data: b(10).
    data: c(10).
    data: d(10).
    a = 'XY ABCDEF  EFGHI'.
    SPLIT a at space into b c d.
    Regards,
    Nitin.

  • Do not show the # values should be replaced with blank at report

    Dear All,
    There is a requirement do not show the null (#) values at report level for characterstics fro example for onedocument there is no notification type in report for that document it is coming with null value but i do not want that null value in report it should be blank
    any suggestions  please,mostly provide the information at report level,but at cube level any options at the time loading( through start routine)
    Thanks & Regards
    sathish

    Hi Satish,
      There is one tcode where u can keep ur symbol defined say blank  to show in report when null values occur... i didnt rememeber tcode i will tell you as soon i get it....
    but it will effect not only this query but all the queries so it is upto u....
    and at cube level u can write a routine to check ...
    if  this field value is initial .
       change it with blank
    else
      leave it.
    hope it helps...
    regards
    vamsi
    Edited by: vamsi talluri on Mar 15, 2009 10:33 PM

  • How to remove pound values (#) in bex and need to replace with Blank

    Hello Everyone,
    In Business Explorer Query Designer ,If the data of an infoobject is initial, it will display as  pound(#)  in reports.I want to remove the pound(#) symbol as BLANK , what can i do ? Can anyone help me ?
    Regards,
    John

    Hello Sunny,
    You can refer to the below blog which i had written for a similar requirement .
    Remove '#' for characteristics in BEx output and display it as blank
    Let me know if you face any difficulties in any of the steps mentioned in the blog.
    Regards,
    Ashutosh Singh

  • String Manipulation with blank space at the end

    Hi All,
    DATA:  str1(999),
           a(10),
           b(10).
    DATA: len TYPE i.
    a = 'Welcome'.
    b = 'To all'.
    CONCATENATE a b INTO str1 RESPECTING BLANKS.
    len = STRLEN( str1 ).
    WRITE: len.
    result : 16.
    If I declared str1 as string result is 20. Because in above case empty space is truncated at last .
    So any otherway to getting result 20 with out declaring str1 as string.

    Hi vinoth ,
    To get spaces at last  ,
    data : str1 type char10 ,
             len type i .
    str1 = 'the ' .                  " space given by pressing space bar button
    len = STRLEN( str1 ).     " in len we get it as 3 , coz 'the ' is 3 only .
    str1 = 'the ' .                 " space given by pressing ALT 2 5 5
    len = STRLEN( str1 ).   " in len we get it as 4 , coz 'the ' is 3 and 1 space is given by pressing ALT 255 .
    This works,
    Hope it might be helpfull,
    Regards,
    Aby

  • Comparing the Dates and Exclude the Dates with Blank one in BEx Query

    Hi all,
        I have created the Formula Variables ZFV_DATE1 on ZDATE1, ZFV_DATE2 on ZDATE2,
           Calculated KF ZCKF_Date with 'ZV_DATE1 <  ZV_DATE2' and
           Restricted KF ZRKF_DATE on Key Figure ZCKF_DATE & Characteristic ZDELETE = 'X' to find the Count.
    I should exclude if any ZDATE1 or ZDATE2 is Blank in the report. So I kept ZDATE1 & ZDATE2 with Exclude when it is Blank in Filter Section. It is excluding globally all Blank ZDATE1 & ZDATE2, but the Calculated KF logic 'ZV_DATE1 <  ZV_DATE2' is not working. It has 'ZV_DATE1 > ZV_DATE2' records also. Next I moved ZDATE1 & ZDATE2 to Restricted KF ZRKF_DATE to Exclude the Blank dates and the report doesn't show correct results. How could I get the correct results with 'ZV_DATE1 < ZV_DATE2' and any ZDATE1 or ZDATE2 is not Blank.
    Thanks,
    Venkat.

    In that case, you approach seems to be mor or less correct. Restrcit the report using Filters on ZDATE1 and ZDATE2 not equal to Blank. You have mentioned that you have defined the CKF as 'ZFV_DATE1 < ZFV_DATE2'. i am assuming you have used boolean operator here. In this case it would  result in '1' when the condition is true (i.e, when ZFVDATE2 is greater than ZFVDATE1), else it will result in a '0'. Now, in your report, you should create a condition where you only keep the records where this CKF, ZCKF_Date = 1. This would filter out all the ZCKF=0 records, and hence only thiose records with ZFV_DATE1 < ZFV_DATE2 would be shown.
    Regards,
    Satwik

  • Replace # with Blank in report output

    Hi,
    I am using BI7 and WAD. When there are no values for the variable, system is showing #  instead of a blank. How to change this? Pl. suggest
    Regards
    Jayaram

    Hi Jayaram,
    Go to transaction RSCUSTV4. Remove the # key and it will not appear for your reports. Or if that doesn't work you can try this:
    http://sap-img.com/business/removing-hex-sign-in-analyzer-report.htm
    Hope this helps,
    Juice

Maybe you are looking for

  • Drill down report...

    HI abapers, How to create drill down report in alv. When i double click the particular field, another report has to pop up and display the details of that particular field. for eg, When double click the amount spent field other report has to say, For

  • How to change the alpha of a graphic symbol in flash depending on score

    i'm making a game and i don't know what script to use to change the alpha color of the graphic symbol i used. the game is a shooting game, ex: target points is 50, if the score is 25 the alpha color should be at 50%, if  score is 50 alpha is at a 100

  • Changing Field property

    Hi all, i try to change the field property "requiered" depending on values within the same form. For example: Set the property requiered to true if thevalue of the field "test" is null. Any ideas?? Thanks Frank

  • How to change name in Finder?

    Macbook with Snow Leopard. When I click on Finder on the desktop and it opens, in the left menu the HOME icon shows the user's full name, he wishes to rename it to show only his initials, I tried the net but can only find this: How To Move or Rename

  • Get invitation link code

    HI How do I retrieve the link with invitation code that is send to the user in email? it has the format as  xxx.sharepoint.com/_layouts/15/acceptinvite.aspx?invitation={guid code} ? since some of these emails are blocked by my external client's syste