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

Similar Messages

  • Pass Input Parameter With Blank To SSIS Get Strange Result

    Hi! I stuck for a while when executing SSIS from stored procedure with input parameter. My input value is not consistent with output one. If I pass value with blank , SSIS seems gets second part. For example , if I pass "CALL FROM SP", SSIS get
    "FROM" only. 
    I use Execute SQL Task to store input parameter. Here is the SSIS snapshot.
    And here is the sp snippet
    DECLARE @Path VARCHAR(200),
    @Cmd VARCHAR(4000),
    @ReturnCode INT,
    @QUERY_STRING VARCHAR(70),
    @BATCH_NO VARCHAR(14)
    SELECT @Path = 'xxxxxx'
    SELECT @QUERY_STRING = 'CALL FROM SP'
    --BatchNo = YYYYMMDDHHMMSS
    SELECT @BATCH_NO = CONVERT(VARCHAR(10),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(8),GETDATE(),108),':','')
    SELECT @Cmd = 'DTexec /FILE "' + @Path + 'Package1.dtsx" /MAXCONCURRENT 1 /CHECKPOINTING OFF /REPORTING EW ' + '/Decrypt ALCM '
    + ' /SET \Package.Variables[User::BATCH_NO].Properties[Value];' + @BATCH_NO
    + ' /SET \Package.Variables[User::QUERY_STRING].Properties[Value];' + @QUERY_STRING
    My test are
      input parameter
     write to TESTTB correctly ? 
    any error?  
     execute SSIS in design mode
     CALL FROM SSIS
     YES
     execute SSIS by sp
     CALL FROM SP
     NO
     Option "FROM" is not valid.
     execute SSIS by sp
     CALL_FROM_SP
     YES
    Anyone could give me some hint ? 
    Thank you so much!!

    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

  • Passing parameter from forms 9i to reports

    Hi,
    I have a parameter form running on forms 9i. i am running my forms through a web browser. When i pass a character parameter containing blank spaces in between, my report does not run, but it works fine when i pass a parameter without any spaces...
    my application is thin client based..
    Any solution for this problem?
    Thnks

    Hi Frank,
    Thanks for replying, How do i do this? here is the piece of code
    run_report('DGAR004''p_signatory',:signatory,
              'p_gua_title', :title
    I will have to pass :signatory within quotes ? how do i do this?

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

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

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

  • XML Publisher Printing Blank spaces for no data

    hi All,
    We are trying to build a report using XML Publisher and .RTF template.
    We have dynamic fields like Wt Uom, Volume Uom, Dimensions.So when we don’t have data in these fields XML Publisher consider these data as blank and so blank spaces comes. If we have data in these fields then blank spaces will not come, as the blank spaces will be filled up the data of Wt, Volume and Dimension fields.
    We want to remove the blank spaces for the items that do not have any corresponding data for the fields. Is there any way we can remove the field header and the blank spaces that are there?
    Please help
    thanks,
    Chandan

    Hi Chandan
    The element is present in the XML data, but it has one space
    <?if:element_name and element_name=' ' ?> desired behavior when
    the element exists but value has one space <?end if?>
    Or
    what you can do is trim the data before forming XML .

  • 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

  • Itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?

    itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?
    new to itunes, used windows media player before that and always ripped music directly to an external hardrive and accessed it through the player. now that i downloaded itunes it is taking from the external hardrive and copying a second file for each song onto my lap top hard drive which does not have the capacity for all my music. as itunes converts music files i want them saved back onto my external drive or another location i have space for rather than the lap top. how do i change the setting to move the itunes media folder to another location. assuming that hitting copy and past and dropping it in a random location will cause a few errors.

    When I have done this, all I did was network the two machines and copy the contents of the iTunes folder to the other machine, and that's it.
    My understanding (which may not be 100% correct) is that the one file that is absolutely necessary is iTunes Library, and that the XML file is actually a copy auto-generated from the iTunes Library, appearing in a different format only for non-iTunes apps that take advantage of the iTunes Library data.
    As far as I know, if you simply have the Library (database) file and all your original music files, iTunes on that computer should operate as it did on your old computer. I believe that the Album Artwork, Genius Data, and XML files can be regenerated from the Library file. Not sure about the Extras file.

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

  • Pass parameter with apostrophe

    Hi,
    How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
    Thanks in advance.
    Pramod

    If you are using bind variables, the string should be escaped automatically. If you are not using bind variables, you should be using bind variables.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to   Pass Parameter from BIP  to Dashboard  Report

    Hi,
    Parameter from BIP to Dashboard Report
    If I select BIP report paremeter should pass value to dashboard report
    thanks in advance.
    CHEERS ,
    Jel

    Hi Saichand,
    I hav gone through above link its passing values from Dashboard prompt to BIP report only..
    just i need like reverse (if i click on BIP report value then it should pass that value to Dashboard reports) in this this case how to pass parameter from BIP to dashboard report
    Thanks in advance
    Cheers,
    Jel

  • GR with backflush not for reporting point logic with autom. GR option

    Dear Experts,
    While doing backflashing though MFBF we are getting following error
    "GR with backflush not for reporting point logic with autom. GR option"
    We have maintained 5 production version for this material while calling with first production version we are getting the error.
    Rate routing & BOM maintanied for the FERT material
    Thanks

    Did you check the BackFlash option are actuvated in the following places ?
    1. In the Rate routing, the backflush indicator is set in the component assignment.-CA22
    2. In the material master record, the backflush indicator has the characteristic "Always backflush".-MRP3
    3. In the material master record, the backflush indicator has the characteristic "Work center decides", the indicator being set in the work center.-CR21-Basic Data View .
    4.Goto-MM02-MRP4 View -Select the PV-Goto Details -Check particularly this production version REM Allowed or not
    5.You should use REM-Profile -0004/0003  where RP and Auto GR with RP at last Back Flashing Activated .
    6.Check Rate Routing Operation Control Key -Auto GR  with indicator Confirmation required
    Regards
    JH
    Edited by: Jiaul Haque on Jun 22, 2010 11:19 AM

  • Blank template for report--Urgent!!

    How to make or include blank template for report?

    you can go to
    Navigator > Applications > Shared Components > User Interface Templates
    and create a unstructured template ,In that It's upto you what all you wish to add as a template .Create a blank template say
    Template name = "Blank Template" and then while creating the report you can use the same "Blank Template" .I hope it helps.

Maybe you are looking for

  • Apple TV, monitor use and lag time with mouse and keyboard

    I purchased an Apple TV so that I could use one monitor to switch between my Mac Mini and my MacbookPro. The monitor is hardwired to the Mini, but the MacbookPro uses airplay. My wireless mouse and keyboard lag with this setup. Is there a way to fix

  • Release Management for Visual Studio & Windows Forms Projects

    Is Microsoft's new Release Management (RM) tool a viable option for Windows Forms applications that utilize ClickOnce for installation?  It seems all of the examples I have seen for RM center around web based applications.  I intend to have TFS build

  • InDesign Script question

    We had InDesign CS2 and updated to CS5 last fall and rewrote many of our scripts. About a month ago we updated to MS Office 2010. When we try to run our scripts on text copied out of Windows 2010 it seems like the script isn't catching the same thing

  • Getting Rid of Norton Anti virus

    I tried this posting before so far nun of the suggestions seem to work.. this time, i thought i would share some screen shots for you all to see if maybe that would help. So t his is my current system and in this screen in the booted up system you ca

  • HELP:cant't open .vi

    Hil all, I was just working on this .vi when it stopped responding. Now whenever I try to open it I get an error message telling me to verify that no file was found with that name. Could any of you please try to open it for me? It will ask for VxmDri