Instr function syntax error in MDX quary

Hi all
Wen Iam excuting this MDX quary its giving error;syntax error line at 3 ','
SELECT
Filter( [PERIOD].Generations(5).Members,
InStr( [PERIOD].currentmember.[2010], "Cola" ) >0 )
ON COLUMNS
FROM REP.Rep;
but wen iam excuting this below example
SELECT
Filter( [PERIOD].Generations(4).Members,
InStr( "cocaCola", "Cola" ) >0 )
ON COLUMNS
FROM REP.Rep;
its fine
Plz can any help would be appriciated
Edited by: user8815661 on 13 avr. 2010 04:17

Hi gary,
plz help on this , i already posted in forum but iam confident on u ,
Ihave one scenario like calculate the ytd values using cross join like
IIF(is ([Flow].CurrentMember,[YTD]),
(case
when
is ([PERIOD].CurrentMember,[2008.01])
Then (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.01] })))/2)
when
is ([PERIOD].CurrentMember,[2008.02])
Then (Sum (crossjoin({[DI-3]},crossjoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.02]}))))
when
is ([PERIOD].CurrentMember,[2008.03])
Then (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.02],[PERIOD].[2008.03]))))
etc,othercase)
but I am trying other oneto decrese the size of formula
IIF(is ([Flow].CurrentMember,[YTD]),
(Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},
{filter([PERIOD].Generations(5).members,StrToNum(Right([PERIOD].CurrentMember.MEMBER_NAME,2)) <= StrToNum(Right([PERIOD].CurrentMember.MEMBER_NAME,2)) AND StrToNum(Left([PERIOD].CurrentMember.MEMBER_NAME,4))=StrToNum(left([PERIOD].CurrentMember.MEMBER_NAME,4)) ) }))))
, othercase )
but its result is same value for all the YTDs for every month, something is going wrong some where
plz any help would be appriociated

Similar Messages

  • Unexpected syntax error executing MDX sentence with a "LIKE" predicate

    Hello,
    I am executing the next MDX sentence correctly on a SAPBW server
    SELECT NON EMPTY
              FILTER (
                   [0VENDOR].[LEVEL01].MEMBERS ,
                   [0VENDOR].CURRENTMEMBER.PROPERTIES("MEMBER_CAPTION") LIKE "V01*"
         DIMENSION PROPERTIES [0VENDOR].[20ADDR_NUMBR], [0VENDOR].[20CITY_2] ON ROWS,
         {[Measures].[0NUMDAY], [Measures].[0RSPL_FCPER]}  ON COLUMNS
    FROM [$MY_CUBE]
    The MDX is working OK and returning all members that their caption start by "V01".
    The problem appears when I execute the query in another SAP server. This new server is returning the next syntax error.
    Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 113, item: 113
    I was searching about SAP and MDX, LIKE operator, the syntax error... but I did not find any interesting.
    Why this query could fail in a certain SAP server but work OK in another?
    I tried to change the FILTER condition with a "=" operator and it works OK, but I need the "LIKE" one.
    Thanks in advanced.

    Thanks for your response.
    The MDX query works OK at SAP 7.0SP1, but it does not work at SAP 7.3.1SPS5.
    Yes, all attributes are the same and exists, and query was tested also with MDXTEST transaction. At this transaction, the error was the same "Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 11" ...
    Note that is a parsing error and it happens parsing the left part of the "LIKE" predicate, so I do not think that attributes were important on this, no?

  • OBIEE timestampdiff function syntax error

    Hi all,
    I am getting an error while applying timestampdiff function .help me to sort it out.
    TIMESTAMPDIFF(SQL_TSI_DAY,"- Sanction and Disbursment"."Value Date" , VALUEOF(NQ_SESSION.VAR_CAL_CURR_DATE))
    error details
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22025] Function TimestampDiff is called with an incompatible type.Please have your System Administrator look at the log for more details on this error. (HY000)
    SQL Issued: SELECT TIMESTAMPDIFF(SQL_TSI_DAY,"- Sanction and Disbursment"."Value Date" , VALUEOF(NQ_SESSION.VAR_CAL_CURR_DATE)) FROM "SIDBI Master"

    Aswin,
    Syntax looks to be fine but before applying it here can you check if both these 2 parameters returns date in same format:
    "- Sanction and Disbursment"."Value Date" = 08/21/2011 (No Timestamp)
    VALUEOF(NQ_SESSION.VAR_CAL_CURR_DATE) = 08/21/2011 (No Timestamp)
    Both shud have same format.
    Also, try this for verification
    TIMESTAMPDIFF(SQL_TSI_DAY,"- Sanction and Disbursment"."Value Date" , CURRENT_DATE)
    Hope this helps

  • "Syntax error in the MDX statement " in Process chain failure??Urgent pls

    Hi Experts,
    could any one suggest me the procedure to rectify the below problems in process chain?
    1."Syntax error in the MDX statement "
    2."Error when getting data (Error when getting data (AXI))"
    Rgds,
    BH

    In which case it'll be that Access has a different date format to MySQL, and you're trying to push the string "'25-Apr-12 10:55 PM" into Access, which it's not understanding. To get around this, you need to treat your variable as a true date/time object, rather than a formatted string.
    CFQueryParams should be used on absolutely every database platform, they'll stop your website being vulnerable to SQL Injection attacks for one, which at the moment you're wide open to. Replace your query with something like this:
    <cfquery name="input_comments" datasource="#DSN#" username="#DSNUSER#" password="#DSNPASS#">
          INSERT INTO comments(
                             commenter,
                             comment,
                             datetime,
                             post_id
                   VALUES(
                             <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.commenter#" />,
                             <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.comment#" />,
                             now(),
                             <cfqueryparam cfsqltype="cf_sql_numeric" value="#form.post_id#" /> )
    </cfquery>
    The QueryParams will handle the data types for you, and should pass values around more safely and with fewer issues. Assuming you just want to store the current date and time you don't even need to get ColdFusion involved, as databases have their own functions for this. I believe Access' version is simply NOW(), so I've put that in your query.
    Give the above a go.

  • Error while using CURRENTMEMBER property in INSTR function

    Hi,
    I am looking for SQL 'LIKE' operator equivalent solution in MDX and I tried the below query.
    SELECT FILTER([Company].Members, INSTR([Company].CURRENTMEMBER.NAME,"AA") >0) on columns from temp1.db
    The above query is not compiling due to CURRENTMEMBER propery in INSTR function.
    When I replaced [Company].CURRENTMEMBER.NAME with a constant "AABB", then the query is working fine.
    SELECT FILTER([Company].Members, INSTR("AABB","AA") >=0) on columns from temp1.db
    Also, CURRENTMEMBER is working fine outside INSTR function.
    SELECT FILTER([Company].Members, [Company].CURRENTMEMBER.[GEN_NUMBER] = 1) DIMENSION PROPERTIES GEN_NUMBER on columns from temp1.db
    Is CURRENTMEMBER property not supported in INSTR? I am using Hyperion Provider Services 9.3.1.
    Is there any other solution for SQL 'LIKE' operator equivalent in MDX?
    Thanks in advance,
    Anil.

    With Essbase 9.3.1 it ought to work. The following is a simple query that works for me:
    select
      filter (
           [Market].Members,
           Instr (1,
                [Market].CurrentMember.MEMBER_NAME,
                "e"
           ) > 0
      ) on axis(0)
      from [Sample.Basic]
      ;

  • Incorrect syntax errors in sql server function. Please help.

    This is my sql server function:
    create function dbo.CleanTheStringAdv (@theString nvar
    char(500), @CleanMode as int) 
    returns nvarchar(500)  
    begin  
    --define variables
    declare @strAlphaNumeric nvarchar(500)  
    declare @i int
    declare @strChar nvarchar(500)
    declare @CleanedString nvarchar(500)
    --initiate values
    set @CleanedString =''  
    set @theString = @theString + ''
    SET @i = 1
    --Determine if we are looking for numeric values only or numbers and letters
    return case @CleanMode
       WHEN 1
       THEN @strAlphaNumeric = '0123456789'
       WHEN 2
       THEN @strAlphaNumeric = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
       WHEN 3
       THEN @strAlphaNumeric = '|0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
       else 0
     end 
    --Search through chars in the string passed to the function
        while (@i <= Len(@theString))
    begin
    @strChar = substring(@theString, @i, 1)
    If (charindex(@strAlphaNumeric, @strChar) <>0)
    --if the current char being reviewed is valid then add it to the new string
    begin
    @CleanedString = @CleanedString + @strChar
    end
    end
    return @CleanedString
    and below are the syntax errors I see when I press F5:
    Msg 102, Level 15, State 1, Procedure CleanTheStringAdv, Line 24
    Incorrect syntax near '='.
    Msg 102, Level 15, State 1, Procedure CleanTheStringAdv, Line 39
    Incorrect syntax near '@strChar'.
    Msg 102, Level 15, State 1, Procedure CleanTheStringAdv, Line 43
    Incorrect syntax near '@CleanedString'.
    Any help is highly appreciated.....

    Here is the full code for the function:
    create function dbo.CleanTheStringAdv (@theString nvarchar(500), @CleanMode as int)
    returns nvarchar(500)
    as
    begin
    --define variables
    declare @strAlphaNumeric nvarchar(500)
    declare @i int
    declare @strChar nvarchar(500)
    declare @CleanedString nvarchar(500)
    --initiate values
    set @CleanedString =''
    set @theString = @theString + ''
    SET @i = 1
    --Determine if we are looking for numeric values only or numbers and letters
    SET @strAlphaNumeric = case @CleanMode
    WHEN 1
    THEN '0123456789'
    WHEN 2
    THEN '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    WHEN 3
    THEN '|0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    else 0
    end
    --Search through chars in the string passed to the function
    while (@i <= Len(@theString))
    begin
    set @strChar = substring(@theString, @i, 1);
    If (charindex(@strAlphaNumeric, @strChar) <>0) --if the current char being reviewed is valid then add it to the new string
    begin
    SET @CleanedString = @CleanedString + @strChar;
    end
    END
    return @CleanedString;
    END

  • Syntax error fix needed for "...getHelperForLanguage: function(language) null,..."

    Getting the syntax error, and having limited technical experience, I do not know how to fix the problem. This is in regard to a web site asset, an mp3 file. I am having problems getting such files to play within Chrome (though they play in Internet Explorer, for instance), so I am trying to troubleshoot from within Dreamweaver, as well as from the Chrome extensions side.
    Here is the line including the syntax error, with additional lines
        getInterfaces: function(countRef) {
            var interfaces = [Ci.nsIDOMGeoPositionCoords, Ci.nsIClassInfo, Ci.nsISupports];
            countRef.value = interfaces.length;
            return interfaces;
    getHelperForLanguage: function(language) null,
        contractID: "",
    Thanks for help.

    Use HTML5 <audio>. 
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Audio Demo</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    </head>
    <body>
    <audio controls>
    <source src="path/yourSong.ogg" type="audio/ogg">
    <source src="path/yourSong.mp3" type="audio/mp3">
    <p>Ooooops.  Looks like your browser is out of date and doesn't support the audio tag.  Please upgrade to a modern browser.</p>
    </audio>
    </body>
    </html>
    Nancy O.

  • 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

  • MDX query : Syntax error at token 'NONEMPTYMEMBER'

    Syntax error when executing this very simplified MDX query :
    WITH
    MEMBER [ANNEE].[YEAR1] AS
    NONEMPTYMEMBER FY10
    [FY10]
    MEMBER [ANNEE].[YEAR2] AS
    NONEMPTYMEMBER [FY10]
    [FY10]
    SELECT
    {[YEAR1],[YEAR2]} ON COLUMNS
    FROM [MICOPIGE.COM_MBU]
    Syntax error in input MDX query on line 9 at token 'NONEMPTYMEMBER'
    Note that line 9 "NONEMPTYMEMBER FY10" is a copy of line 4
    No error if I delete line 4
    Any help to understand and fix this error would be greatly appreciated.

    Precision : My goal is to reduce the 30mn duration of a complex MDX query with many calculated members, using the NONEMPTYMEMBER token.

  • MDX Query Syntax error

    I have a simple MDX query is shown in below:
    SELECT [Accounts].[pv] ON ROWS,
    [Reporting].Members ON COLUMNS
    FROM RoggeBSO.Db
    (please note that Accounts, pv and Reporting words are in square brackets)
    When I execute this query on the MDX Script Editor (in EAS), I get the following syntax error:
    Statement Executed with warnings.
    Syntax error in input MDX Query on line 1 at token 'ON'
    Unexpected Essbase error 1260052
    I tried this on both ASO & BSO cubes but didn't work. Could anyone help please?
    Regards
    Chandra
    Edited by: user2695091 on 22-Apr-2009 03:27

    SELECT {[Accounts].[pv]} ON ROWS,
    {[Reporting].Members} ON COLUMNS
    FROM RoggeBSO.Db

  • FRF-00025  Unable to call function. Error message: Syntax error in program

    hi,
    when we try to import the export file,we are getting the following error in the 24th phase
    i.e., check DDIC Password.
    The Error is
    INFO       2007-10-29 15:53:20 [iaxxrfcimp.cpp:1017]
               CAbRfcImpl::callLibraryFunction
    Generating interface for remote function.
    TRACE      [iaxxrfcimp.cpp:1056]
               CAbRfcImpl::performFunctionCall
    Calling function module: INST_RFC_GET_INTERFACE
    WARNING[E] 2007-10-29 15:53:21 [iaxxrfcimp.cpp:1089]
               CAbRfcImpl::performFunctionCall
    FRF-00025  Unable to call function. Error message: Syntax error in program SAPLSUNI                                . .
    TRACE      [iaxxrfcimp.cpp:1090]
               CAbRfcImpl::performFunctionCall
    RFC failure or system exception raised
    TRACE      [iaxxrfcimp.cpp:1091]
               CAbRfcImpl::performFunctionCall
    Syntax error in program SAPLSUNI                                .
    TRACE      [iaxxbjsmod.cpp:657]
               CJSlibModule::showOkCancelBox_impl()
    <html>Test logon to SAP System I50 failed.<p>Make sure that the system is started, that the user DDIC exists and that the password of user DDIC is correct.</html>
    TRACE      [iaxxgenimp.cpp:1093]
               showDialog()
    waiting for an answer from gui
    What Could be the solution for this.
    waiting for ur reply
    SS

    Hi Friend,
    Please check whether or not there is view missing error recorded in dev_w0 trace file.
    if there is , you can try to follow this procedure in order to manually
    import the missing view definitions.
    All steps must be carried out with the <sid>adm user of the target
    system and from the install-directory:
    1. In the install-directory
    <sapinst_instdir>\...COPY\IMPORTT\SYSTEM\ABAP\ORA\UC\DB
    create a file SAPVIEW.cmd with the following content:
    tsk: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\SAPVIEW.TSK"
    icf: "
    <YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR"
    dcf: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL"
    dat: null
    dir: null
    ext: null
    Please make sure that all paths are written correctly (in one line) and
    the refered files are existant and readable. One exception:
    The SAPVIEW.TSK file is created with step 2.:
    2. Run from the command-line:
    R3load -ctf I
    <YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR <sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL SAPVIEW.TSK ORA -l SAPVIEW.log
    If there's a problem reading the 'SAPVIEW.STR' file, copy the
    file to the install directory and adapt the path accordingly.
    3. Run the view import by:
    R3load.exe -i SAPVIEW.cmd -dbcodepage <YOUR_CODE_PAGE> -l SAPVIEW.log
    -stop_on_error
    4. Check both the SAPVIEW.log and the SAPVIEW.TSK file whether all views
    have been created successfully.
    If 4. is okay, restart the central instance and check whether you are
    able to log on now. If yes, continue 'sapinst' by the option 'retry' or
    'continue old installation'.
    I Hope It can be helpful.
    With Best Regards
    Julia

  • SYNTAX ERROR in function module CACS_BUPA_PAI_SPECIAL_CACSB1

    Hi experts,
       I am trying to create business partner in SAP treasury module with role - general business partner and validity period 01/01/0001 - 12/31/9999. I am gettting syntax error  in Function module CACS_BUPA_PAI_SPECIAL_CACSB1, it says
    The key of internal table 'LT_BUT0BK' contains components of type 'X' or 'XSTRING'.
    The "Read table LT_BUTOBK" statement is not permitted for such tables in a unicode context.
    Please let me know if you have any solution for this.
    Thanks in advance.
    Edited by: Thanvi maraka on Apr 17, 2009 3:27 AM

    Hello Thanvi
    It seems that you need to apply the OSS note 1041283:
    FUNCTION cacs_bupa_pai_special_cacsb1.
    *"*"Lokale Schnittstelle:
      DATA: lt_but0bk TYPE TABLE OF but0bk WITH HEADER LINE.
      CALL FUNCTION 'BUP_BUPA_BUT0BK_GET'
           TABLES
                t_but0bk = lt_but0bk.
    * einmal vorhanden -> nehmen; nicht vorhanden -> Feld muss leer sein
    * mehrmals vorhanden -> Mussfeld
      READ TABLE lt_but0bk INDEX 2.
      IF sy-subrc NE 0.
    *    READ TABLE lt_but0bk.          "NOTE 1041283   " <<<<<<<<<
         READ TABLE lt_but0bk FROM lt_but0bk.            " <<<<<<<<<
        IF sy-subrc = 0.
          cacs_s_bupaw-bank_id = lt_but0bk-bkvid.
        ENDIF.
      ELSE.
    Regards
      Uwe

  • Syntax error in function call through EF6

    I'm trying to call a function from an EF6 query but it seems the compiled statement has a syntax error and the DBMS bails out with "ORA-00933: SQL-Befehl wurde nicht korrekt beendet" (SQL statement ends with an inappropriate clause). As far as I understand the Oracle .NET provider compiles E-SQL to SQL for Oracle in the first place, so how come the statement is malformed?
    Here's what EF logs for this particular statement:
    Opened connection at 26.01.2015 09:46:14 +01:00
    SELECT
    "Extent1"."Z_AS" AS "Z_AS"
    FROM "DEMO_VIVPFLEGEDOKU"."FN_GETASSESMENTCHILDS_AUSMENGE"(:STRFILTER) "Extent1"
    -- STRFILTER: '1' (Type = Object)
    -- Executing at 26.01.2015 09:46:14 +01:00
    -- Failed in 79 ms with error: ORA-00933: SQL-Befehl wurde nicht korrekt beendet
    Closed connection at 26.01.2015 09:46:14 +01:00
    This is with VS 2013 Update 4, ODP.NET (ODTwithODAC121021 package) and Oracle 12c DBMS.
    The function is defined as
    create or replace function fn_GetAssesmentChilds_AusMenge(strFilter varchar2)
    RETURN TTabOneNumber pipelined
    is
    IndexEing PLS_INTEGER;
    IndexZ_Aus PLS_INTEGER;
    Cursor CursorEing is select column_value from TABLE(fn_splitstring( strFilter ));
    Cursor CursorAssessCh is select column_value from TABLE(fn_GetAssesmentChilds_AusInt(IndexEing));
    BEGIN
    open CursorEing;
    fetch CursorEing into IndexEing;
    while CursorEing%found
    loop
    open CursorAssessCh;
    fetch CursorAssessCh into IndexZ_Aus;
    while CursorAssessCh%found
    loop
    pipe row (IndexZ_Aus);
    fetch CursorAssessCh into IndexZ_Aus;
    end loop;
    close CursorAssessCh;
    fetch CursorEing into IndexEing;
    end loop;
    close CursorEing;
    END fn_GetAssesmentChilds_AusMenge;
    Here's the sample code for what I'm trying to achieve:
    using System;
    using System.Linq;
    namespace ConsoleApplication17
       class Program
          static void Main(string[] args)
             using (var db = new Entities())
                var ids = db.GetAssessmentIds("1")
                      .Select(r => r.Z_AS);
                Console.WriteLine(string.Join(",", ids));
    For the sake of completeness, here are the relevant parts from the EDMX:
    SSDL
            <Function Name="FN_GETASSESMENTCHILDS_AUSMENGE" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="DEMO_VIVPFLEGEDOKU">
              <Parameter Name="STRFILTER" Type="varchar2" Mode="In" />
               <ReturnType>
                  <CollectionType>
                     <RowType>
                        <Property Name="Z_AS" Type="number" Precision="10" Scale="0" />
                     </RowType>
                  </CollectionType>
               </ReturnType>
            </Function>
    CSDL
              <FunctionImport Name="GetAssessmentIds" ReturnType="Collection(CareDocumentation.fn_GetAssesmentChilds_AusMenge_Result)" IsComposable="true">
                 <Parameter Name="STRFILTER" Mode="In" Type="String" />
              </FunctionImport>
    MSL
              <FunctionImportMapping FunctionImportName="GetAssessmentIds" FunctionName="CareDocumentation.Store.FN_GETASSESMENTCHILDS_AUSMENGE">
                 <ResultMapping>
                    <ComplexTypeMapping TypeName="CareDocumentation.fn_GetAssesmentChilds_AusMenge_Result">
                       <ScalarProperty Name="Z_AS" ColumnName="Z_AS" />
                    </ComplexTypeMapping>
                 </ResultMapping>
              </FunctionImportMapping>
    Return type:
             <ComplexType Name="fn_GetAssesmentChilds_AusMenge_Result">
                <Property Name="Z_AS" Type="Int32" />
             </ComplexType>
    Any ideas as to what is going on here?

    Hello Thanvi
    It seems that you need to apply the OSS note 1041283:
    FUNCTION cacs_bupa_pai_special_cacsb1.
    *"*"Lokale Schnittstelle:
      DATA: lt_but0bk TYPE TABLE OF but0bk WITH HEADER LINE.
      CALL FUNCTION 'BUP_BUPA_BUT0BK_GET'
           TABLES
                t_but0bk = lt_but0bk.
    * einmal vorhanden -> nehmen; nicht vorhanden -> Feld muss leer sein
    * mehrmals vorhanden -> Mussfeld
      READ TABLE lt_but0bk INDEX 2.
      IF sy-subrc NE 0.
    *    READ TABLE lt_but0bk.          "NOTE 1041283   " <<<<<<<<<
         READ TABLE lt_but0bk FROM lt_but0bk.            " <<<<<<<<<
        IF sy-subrc = 0.
          cacs_s_bupaw-bank_id = lt_but0bk-bkvid.
        ENDIF.
      ELSE.
    Regards
      Uwe

  • Strange syntax error message with some functions!

    Hello!
    I have a strange trouble with some functions in Numbers.
    For example when I try an IF function directly copied and pasted from Numbers documentation I get an error from Numbers that “the formula contains a syntax error.
    *The function looks like this:*
    *=IF(E6>=0, “Nonnegative”,”Negative”)*
    *The value in cell E6 is 25.*
    Anyone have a clue about why?

    Hello
    If you enter my iDisk
    <http://idisk.mac.com/koenigyvan-Public?view=web>
    You will be able to download:
    suriWork:for_Numbers:pour_modifierNumbers.zip
    Which gives the ability to change the Numbers behavior (same thing for Pages and Keynote).
    Applying it you will get an "Insert functions" tool matching your local settings.
    It will insert functions using the semi-colon as parameters delimiter.
    Yvan KOENIG (from FRANCE samedi 24 mai 2008 15:38:41)

  • Use of xdofx:Instr function in a RTF template

    I'm trying to use the xdofx:Instr function within a RTF template but am running into problems because the code produces an error. The following code worked before the data changed:
    <?if:number(DS_SEQ)=1 and( M_TRANTYPE='F')?>
    Now my M_TRANTYPE comes back as 'F,H' so I thought I would use the xdofx:Instr function. I redid the RTF code to read:
    <?if:number(DS_SEQ)=1 and( xdofx:Instr(M_TRANTYPE,'F',1)>0 )?>
    but this fails. I've tried other combinations but they also fail:
    <?if:xdofx:Instr(M_TRANTYPE,'F',1)>0 ?>
    <?if: xdofx:Instr('abc','a',2) >0?>
    Can the xdofx:Instr be used in an "if" construct or am I missing something about its proper use?
    Alex.

    Alex,
    Instr appears to be fine... check the xdofx syntax.
    i.e.
    <?xdofx: if Instr(M_TRANTYPE,'F',1)>0 then DISPLAY_XXX end if?>
    regards,
    Rownald

Maybe you are looking for