@prompt syntax error with Optional

Hi Everyone,
My first post here, hope you guys can help me out. I have some predeifned conditions on a UDT universe which does not parse but works fine. However, In IDT i am making the same but unable. As I have seen so far with the .UNX universe any predefined conditions which does not parse on IDT does not work on the report as well unlike UNV universe. So here is my issue:
This does not parse on .UNV but works fine on the report:
convert(varchar, Vw_Ln_Umb.rim_no)  =  @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL',}) OR 'ALL' =
@variable('Customer No:')
I have corrected the mistake of the 7th parameter which is the default value as follows:
convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL'})
OR 'ALL' =  @variable('Customer No:')
and i get the following error : Incorrect syntax near the keyword 'OR'.
When I remove the "OR 'ALL' =  @variable('Customer No:')"
I get the error: Incorrect syntax near ')'.
So i have to correct the filter condition as
convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent)
but this does not allow me to have ALL as the default value which inturn acts as an optional prompt at report level.
Kindly help me either fix this or create pre-defined conditions with optional prompts.
Mahee

Hi mahee,
Apply this filter condition
if you want to select single value in report use "Mono"
Vw_Ln_Umb.rim_no = @Prompt('Customer No:','N','Limit Details\Customer No.',Mono,Free,Not_Persistent)
if you want to select multiple value in report use "Multi"
Vw_Ln_Umb.rim_no IN @Prompt('Customer No:','N','Limit Details\Customer No.',Multi,Free,Not_Persistent)
Remove extra comma in your filter condition.
Regards
Mustafa

Similar Messages

  • Illegal register: "icc" : syntax error with  Sun C 5.8 compiler

    I wanted to compile my C file with compiler option "cc -c -Xc -mt -fast -xarch=amd64" on Solaris 10 amd64 machine but it failed with following error -
    Assembler: abc.c
    "/tmp/GAAOBain6", line 819 : Illegal register: "icc"
    "/tmp/GAAOBain6", line 819 : Syntax error
    Near line: " orq %icc,%r8 ;/ line : 210"
    "/tmp/GAAOBain6", line 852 : Illegal register: "icc"
    "/tmp/GAAOBain6", line 852 : Syntax error
    Near line: " movzwq %icc,%r9 ;/ line : 215"
    cc: ube failed for abc.c
    *** Error code 2
    I am using following sun C compiler -
    /SS11/SUNWspro/bin/cc -V
    cc: Sun C 5.8 Patch 121016-02 2006/03/31
    Do anybody has idea about this issue?
    Thanks
    Sgupta

    Thanks Boris for your help.
    My abc.c file is following -
    struct struct_1 {
    unsigned type:8;
    unsigned level:5;
    unsigned seen:1;
    unsigned pad:2;
    unsigned length:16;
    void sample (unsigned char type)
    struct struct_1 *q;
    /*** Allocate and assign pBody here **/
    q->type = type;
    q->length = type;
    ==========================================
    compiling this file with following option gives the error in Sol-10 amd64 -
    /SS11/SUNWspro/bin/cc -c -Xc -mt -fast -xarch=amd64 abc.c
    But compiling without "-fast" options work fine.
    Thanks
    Sgupta

  • Syntax Error with EXPORT statement in ECC 6

    Hi All,
    I have one issue with EXPORT statement syntax.
    I have declared data like below:
    DATA: BEGIN OF mem_id,
              mandt LIKE sy-mandt,
              uname LIKE sy-uname,
              modno LIKE sy-modno,
            END OF mem_id.
    export the memory id
        EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID MEM_ID.
    When I am checking the syntax error i am getting like "MEM_ID" must be a character-type field (data type C, N, D or T). by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".
    I know this statement would be like IMPORT ITAB TO JTAB FROM MEMORY ID 'table'. So I have written like below
    EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID 'MEM_ID'. But still it is throwing an error.
    Can you please let me know how can I resolve this?
    Regards,
    Jyothi CH.

    Hi Jyothi,
    data: l_var type string.
    concatenate '6' '8' into l_var separated by space.
    export l_var to memory id 'BB'.
    Here we have to declare the type(structure) for l_var not for BB
    and in another program
    data:l_var type string.
    import l_var from memory id 'BB'.
    write : l_var.

  • Syntax Error with JSON.Parse method to parse SharePoint List Items

    Hi All,
    I want to get SharePoint List data and bind that retrived data to the JQuery Grid Control.
    For this I used SPServices to get the SharePoint List data in SOAP Envelope. Now I need to parse the soap envelope and store the retrieved items in array to pass it to the Grid Control.
    While using the JSON.Parse(resporseText) method, Iam consistenly getting an Syntax Error!
    Could anyone help me with this ?
    Please find the SOAP Envelope I received from SP List as below:
    "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
    xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
    xmlns:rs='urn:schemas-microsoft-com:rowset'
    xmlns:z='#RowsetSchema'>
    <rs:data ItemCount="2">
    <z:row ows_OBNumber='112211.000000000' ows_Project_x0020_Name='Project 1' ows_MetaInfo='11;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 1' ows_ID='11' ows_UniqueId='11;#{FBBCBCF9-666D-42F9-92D7-67188C51BC9B}' ows_owshiddenversion='1' ows_FSObjType='11;#0' ows_Created='2015-01-12 10:25:06' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:25:06' ows_FileRef='11;#sites/Lists/Projects/11_.000' />
    <z:row ows_OBNumber='1122343.00000000' ows_Project_x0020_Name='Project 2 ' ows_MetaInfo='12;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 2' ows_ID='12' ows_UniqueId='12;#{0D772B76-68E4-4769-B6FF-6A269F9C7ABD}' ows_owshiddenversion='1' ows_FSObjType='12;#0' ows_Created='2015-01-12 10:33:48' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:33:48' ows_FileRef='12;#sites/Lists/Projects/12_.000' />
    </rs:data>
    </listitems></GetListItemsResult></GetListItemsResponse></soap:Body></soap:Envelope>"
    Any help on this will be greatly appreciated.
    Thanks In Advance.!

    Hi,
    According to your description, there is an issue when parsing result from the data retrieved using SPServices.
    By default, SPServices returns data as XML format, however, the JSON.parse() method “Throws a SyntaxError exception if the string to parse is not valid JSON”:
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
    To extract the data needed from the response, you can either take the demo below for as a reference:
    http://spservices.codeplex.com/wikipage?title=GetListItems
    Or use the jQuery.parseXML() function:
    http://api.jquery.com/jquery.parsexml/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Syntax Error with Table Parameter (type: ANY) when Creating Function Module

    Hello experts,
    I want to create a function module with a table parameter and table type is ANY. But when I check (Ctrl+F7) this function module, syntax error occurs - "In this statement, the internal table "MSG_TABLE_ITEM" must have the type "STANDARD TABLE"."
    Could anyone tell me what the wrong is? And how can I fix it?
    Thanks,
    Shelwin

    Hi,
    For table parameters, you can only pass
    MSG_TABLE_ITM   TYPE STANDARD TABLE
    or
    MSG_TABLE_ITM  ( don't fill other columns TYPING ASSOCIATED TYPE  ).
    For reference check FM 'GUI_UPLOAD' - Table parameters
    Regards,
    DPM

  • MySQL syntax error with TestStand 4.0 database logging

    I had been using MS Access database to log results which worked fine but the access database is too limited. Switched to MySql. Database works fine and I can query it from Visual C++ and was able to create all my result tables fine from TestStand.
    I get a syntax error when actually trying to log results and it has to do with either a missing quote or and extra quote, I can't quite tell. I thought I saw a post on this somewhere but can't find it now. Here is the complaint from TestStand:
    An error occurred calling 'LogOneResult' in 'ITSDBLog' of 'zNI TestStand Database Logging'
    An error occurred executing a statement.
    Statement: UUT_RESULT.
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT VALUES' at line 1
    Description: [MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT VALUES' at line 1
    Number: -2147467259
    NativeError: 1064
    SQLState: 37000
    Reported by: Microsoft OLE DB Provider for ODBC Drivers
    Description: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    Number: -2147217887
    NativeError: 0
    SQLState: 37000
    Reported by: Microsoft OLE DB Provider for ODBC Drivers
    Source: TSDBLog
    And here is all that appears in the MySql logfile:
    INSERT INTO UUT_RESULT DEFAULT VALUES
    070914
    You can't see it here but the string is truncated after the word VALUES. The next line starts with the odd number.
    Any ideas?
    Thanks,
    Bill Peters
    BAE SYSTEMS

    Sure. There were two bugs in the ini file that contains the default TS schemas (I think it was Default_Database_Options.ini or like that...).
    Anyway the table description for STEP_NUMERICLIMIT had for it's command line INSERT INTO MEAS_NUMERICLIMIT. I guess TestStand looked at that and said hmm I better create that table too. Then later down the page when you try to create MEAS_NUMERICLIMIT it says the table already exists even though it is empty. The generate SQL button builds a bad file and then the database viewer creates a bad database. I would have to go into MySql and drop the database. I had to save the schema under a custom name, edit it read it back in, generate a new SQL file, but then it would still fail validation because the ini files don't get updated until you exit TestStand. So basically I did this process 3 times before I got it right.
    It's wasn't a big deal but it's amazing how a little thing can cause a lot of work.
    The second bug, I'm not certain was initially in the file or somehow got set on the fly. There was a random int statement at the very end of the SQL table description for UUT_RESULT. It was also in the schema INI file. Since the int had no name and occurred in a odd place, it created a syntax error in MySql. Same fix as above.
    But like I said it's working great now. I like this approach because I serve it to the net with Apache and parse the database with simple PHP scripts.
    Thanks,
    Bill Peters
    BAE SYSTEMS

  • Syntax errors with ES freeze/hang FM

    Hi,
    I keep bumping into situations where a small syntax error causes FM to freeze, like there is a modal dialog open except there is no dialog. For example:
    doc = app.ActiveDoc();
    ...this is wrong because of the parenthesis, but rather than throwing any errors, FM just freezes and I can't get it unfrozen, except to kill it with the Task Manager. Is there a way to prevent this freeze or at least thaw it out? It's becoming tiresome to restart FM and reset locks, etc. with every little typo.
    Thanks,
    Russ

    Hi Russ,
    I think this won't help you, but I can reproduce this with app.ActiveDoc() and app.ActiveBook().
    With other properties I get a correct runtime error "app.AutoBackup() is not a function".
    So generally it works as expected, but not in these two cases.
    I think this is a problem of the script engine in these two cases. Perhaps there's an invisible (private) method defined, which is used internally, I don't know.
    Bye
    Markus

  • Syntax Error with creating object

    Hi,
    I am getting the following syntax error in the code below:
    non-staic variable this cannot be referenced from a static context
    job[ ] thread = new job(20);
    non-staic variable this cannot be referenced from a static context
    thread[index] = new job(index);
    public static void main (String[ ] args) {
    job[ ] thread = new job(20);
         for(int index=0; index < 20; index++) {
              input1[index]=index;
              input2[index]=index*2;
         for (int index=0; index < 20; index++) {
              thread[index] = new job(index);
              thread[index].start();
    Zulfi.

    Declare the nested class 'job' as static. Like "static class job" etc.

  • Syntax Error with SWF files on SH903i

    I'm using Flash Pro 8 and thought I'd try out creating a very
    simple SWF to test on the phone. Using the basic templates for
    Flash 1.0/1 and Actionscript 1... I made a simple bouncing circle,
    but I keep getting a "syntax error" when I try to download it into
    my phone via the phone web browser. Is there something I'm missing?
    It seems very straight-forward, but is there something I'm
    missing?

    I figured it out. I had to access the file directly.
    Oddly.

  • Firefox generates a javascript syntax error with ![CDATA[

    I have an app written in HTML5, SVG and javascript that ran until today. I uploaded 3.6.10, and now javascript reports a syntax error for the <![CDATA[ tag. Even when I remove the tag, the SVG will not run. I haven't made ANY changes to the app, just updated Firefox. What changed to break this?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25
    You need to post a link to the website or post relevant parts of the code.

  • Syntax error with CL_ABAP_CHAR_UTILITIES

    Hi,
    I am facing an error during syntax check of the include program ZXMBCU01.
    My code is:
    class cl_abap_char_utilities definition load.
    CONSTANTS: c_lf TYPE C VALUE CL_ABAP_CHAR_UTILITIES =>CR_LF.
    CONSTANTS: c_cr TYPE c value cl_abap_char_utilities=>newline.
    CONSTANTS: c_tab TYPE C VALUE CL_ABAP_CHAR_UTILITIES =>HORIZONTAL_TAB.
    whats wrong with it?
    thanks!
    Chika

    Found that CR_LF is two characters, right?
    Sorry for double...I just hit post once.

  • Syntax error  with Transformation

    Hi all,
    I am trying to write a routine in Transformation which reads the navigation attribute of the char Ymaterial from a ODS and fills an internal table which will then be uploaded to a char in the cube.
    The Code looks like the one below:
    $$ begin of 2nd part global - insert your code only below this line  *
    DATA: G_MATERIAL TYPE TABLE OF /BIC/PYMATERIAL.
    TABLES: /BIC/PYMATERIAL.
    $$ begin of routine - insert your code only below this line        -
    SELECT * INTO TABLE G_MATERIAL
    FROM /BIC/PYMATERIAL.
    FOR ALL ENTRIES IN SOURCE_PACKAGE
    WHERE /BIC/YMATERIAL = SOURCE_PACKAGE-/BIC/YMATERIAL.
    SORT G_MATERIAL BY /BIC/YMATERIAL.
    I am getting the following error message:
    E:The statement "FOR" is not expected. A correct similar statement is
    "FORM". statement is "FORM".
    In other words, how do I ensure that the value of the attribute which I am reading from the master data table of Ymaterial is the one that is present in the ODS. Can you give the syntax for the same.

    Hi rakesh
    I think You are right but when I removed the full stop after FROM /BIC/PYMATERIAL, I got the following error Field "SOURCE_PACKAGE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement
    Thanks

  • Syntax error with offset

    Hi All,
    I have the below logic in ECC 6
    FORM ysd_sd09_124_clean_up_zzcmw.
      DATA: lv_a0 TYPE i VALUE 160.
      DATA: lv_trans(2).
      FIELD-SYMBOLS: <lf> TYPE c.
      ASSIGN lv_a0 TO <lf> CASTING TYPE c.
      lv_trans(1) = <lf>+3(1).
      TRANSLATE vbkd-zzcmw USING lv_trans.
    ZZCMW is a custom field(customer master warranty field).
    When I am trying to create a sales order this user exit will trigger and giving dump for the code  TRANSLATE vbkd-zzcmw USING lv_trans.
    Category               ABAP Programming Error
    Runtime Errors         DATA_OFFSET_TOO_LARGE
    Except.                CX_SY_RANGE_OUT_OF_BOUNDS
    ABAP Program           SAPMV45A
    Application Component  SD-SLS
    Date and Time          21.09.2011 10:09:33
    Short text
         Invalid subfield access: Offset too large
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPMV45A" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    In the running program "SAPMV45A", the field "<LF>" of the type
    "C" and length 2 was to be accessed with the offset 3.
    However, subfield accesses with an offset specification that is not
    smaller than the field length are not permitted.
    But same is wokring in 4.7. I tried to change the declarations but it did not work out. Can you please tell me what would be the difference in both versions?
    Regards,
    Jyothi CH.

    Did you activate Unicode during the upgrade, check [Assignments to Field Symbols|http://help.sap.com/saphelp_nw04/helpdata/en/79/c55491b3dc11d5993800508b6b8b11/frameset.htm]
    Assignments to Field Symbols
    Until now the ASSIGN statement made it possible to define addresses past field limits by specifying the offset or length. There was only a runtime error when addressing past the limits of the data segment. Cross-field accesses to the offset/length in an ASSIGN, for example, could be used to edit repeating groups.
    With Unicode, however, problems occur since it is not possible to ensure that cross-field offset or length definitions can be interpreted as bytes or characters in an identical and meaningful manner in both a US and an NUS. For this reason, the ASSIGN statement was enhanced with the RANGE and INCREMENT additions while the CASTING addition now supports all variants of this statement. The RANGE addition is offered for all valid variants of ASSIGN and can be combined with the CASTING addition.
    Try a
    lv_trans = cl_abap_conv_in_ce=>uccp( '00A0' ).
    (UTF-16 to UTF-8 ?)
    Regards,
    Raymond

  • Syntax error with ' ' in param

    Hi,
    Can anybody can tell me what is wrong with my sytax, I'm using sample kindly provided to me in earlier thread by Tubby(c) like below, which works fine from SQL+ as we can see. But then I tried to apply this approach to code insdie my PACKAGE BODY and it fails, telling me:
    create or replace --procedure
    PACKAGE BODY UPK_nuls_CRUD_Ryba AS
    PROCEDURE usp_nuls_idryba_01 (open_Cursor_Ryba OUT CURSOR_Ryba, act_date IN date) IS
    BEGIN
    OPEN open_Cursor_Ryba FOR
    ' SELECT * FROM nuls.t_pool_cust partition (' || act_date || ')' ;
    END;
    END ;
    ORA-00933: SQL command not properly ended
    ORA-06512: at "nulsADMD.UPK_nuls_CRUD_Ryba", line 4
    ORA-06512: at line 7
    All partition are fine and exist, how to twick that qoutes to make it work? can I use execute immediate? or ..
    Please help. That really killing me, will take a break for yoga....
    Tx to all and Tobby.
    V
    TUBBY_TUBBZ?TUBBY_TUBBZ?
    TUBBY_TUBBZ?
    TUBBY_TUBBZ?
    variable x refcursor;
    TUBBY_TUBBZ?
    declare
    l_partition_name varchar2(300) default 'p1';
    begin
    4
    open :x for
    'select * from t1 partition (' || l_partition_name || ')';
    end;
    8 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    TUBBY_TUBBZ?print :x
    PARTITIONID NAME
    2 value2
    1 row selected.
    Elapsed: 00:00:00.01
    TUBBY_TUBBZ?

    Syntaxically, its correct, but you need to debug the issue here. I doubt the date format, with which the partition is created in the table and what you are trying out here
    Declare a local parameter, assign the sql statement for it....print the sql actual sql statement which is going to be parsed in the cursor.
    So if any issue is due to the date, you can resolve it out
    Note, I have declare a local variable L_SQL and assigned the sql statement to it.
    create or replace
    PACKAGE BODY UPK_nuls_CRUD_Ryba AS
    PROCEDURE usp_nuls_idryba_01 (open_Cursor_Ryba IN OUT CURSOR_Ryba, act_date IN date) IS
    l_sql varchar2(4000);
    BEGIN
    l_sql := ' SELECT * FROM nuls.t_pool_cust partition (' || act_date || ')' ;
    dbms_output.put_line(l_sql);
    OPEN open_Cursor_Ryba FOR  l_sql;
    END;
    END

  • Dynpro Syntax Error with CATT

    Hi everyone, I am new to this so hopefully I am in the right place.
    Just installed MiniSAP & all is working well except getting an ABAP dump when entering CATT (SCEM) ... haven't changed anything!
    Text of dump is redirecting me to SAP Notes for resolution ... problem is as an ABAP student (cross-training from Delphi) I don't work in an SAP environment.
    I do not have a customer number (I just bought the ABAP Objects book) & the installation number that comes after licensing doesn't work @ www.service.sap.com ... the helpdesk staff just tell me that I need on or the other to register.
    Any thoughts on a) how else to gain access to SAP Notes or b) how to interpret a ABAP dump by other means?
    Thanks,
    Ian

    No. Still I am getting tthe same error. Invalid character in the string.
    Zulfi.

Maybe you are looking for

  • HTTP Response Status Codes: GET (retrieve), POST (create), PUT (modify), and DELETE (REST, Bulk, Any API)

    Many of us, who are starters, starting to wonder when reading any API documentations or starting out with your first program built to make any of the API calls, what do all error codes means, when I get many different types of response from running t

  • Getting Error in Activation

    Hi Experts, I am having error in activating my own created table. My table name : ZFINAL1 Getting the error like, ZFINAL1-KWMENG (Specify reference table & reference field) Then i given  reference table 'VBAP' & reference field "KWMENG" Again am gett

  • Reverting to 1.1 software?

    Can't wait any longer for Apple to fix the Smart Playlist bug. How do I revert back from the flawed 1.2 to the good 1.1? Three months waiting and I've given up on this - it's hopeless! • How do I do it? • Disadvantages? Does it play well with iTunes

  • Planning horizon and planning time fence

    What is the meaning of terms - planning horizon. - planning time fence. Where and how we can use these terms? Kindly explain with a example.

  • Printing with jdk1.4

    Hi, If anybody has tried printing in Java with jdk1.4 please let me know. I want to print contents of a file. U can reach me at [email protected] Thanx