Q: Error with TimestampAdd function

Hi Gurus,
In the rpd file referenced by my Siebel demo instance I have following error [NQError: 22025] Function TimestampAdd is called with an incompatible type
Expression 1 is: " TIMESTAMPADD( SQL_TSI_DAY , CEILING("S_MKT_OLAP (MyConsumer Master)".""."MyConsumersMasterPhysicalSchema"."MyConsumers"."CU_DAYS_AS_CUSTOMER") * -(1), NOW())"
Expression 2 is: " TIMESTAMPADD( SQL_TSI_DAY , CEILING("S_MKT_OLAP (MyConsumer Master)".""."MyConsumersMasterPhysicalSchema"."MyConsumers"."CU_AGE" * 365) * -(1), NOW())"
Expression 3 is: " TIMESTAMPADD( SQL_TSI_DAY , CEILING("S_MKT_OLAP (MyConsumer Master)".""."MyConsumersMasterPhysicalSchema"."MyConsumers"."CU_DAYS_SINCE_LAST_PAYMENT") * -(1), NOW())"
This is resulting in that the related presentation catalog is showing empty in the Marketing Segment Designer which is nothing but Answers.
Could that be the source of my problem? How to resolve it?
PS: I have very limited OBIEE and PLSQL knowledge, and I'm not a member of this DL so kindly keep me on copy.
Many thanks in advance and regards,
Jad

Hi,
Kindly refer the below link
http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html
First Date of Week:
TIMESTAMPADD(SQL_TSI_DAY, (DAYOFWEEK(Current_date)*-1)+1, Current_date)
Lat Date of Week:
TIMESTAMPADD(SQL_TSI_DAY,DAYOFWEEK(Current_Date)*-1,TIMESTAMPADD(SQL_TSI_WEEK, 1, Current_date))
First Date of Year:
TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)
Last Date of Year:
TIMESTAMPADD(SQL_TSI_YEAR, 1, TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)))
Thanks
Deva

Similar Messages

  • Error with intersects function

    I've an error I don't understand the cause.(it worked before the SDK update)
    Here is my code :
         * Permet de vérifier que l'évênement passé en paramètre n'en chavauche aucun autre
        function detectCollision(guiEvent: DayEvent) {
            // On sélectionne tous les évênements affichés sauf celui pour lequel on test les limites
            for (e in app_events.displayedEvents.content[p | p.id != guiEvent.id]) {
                if (e.intersects(guiEvent.boundsInLocal.minX, guiEvent.boundsInLocal.minY+5, guiEvent.boundsInLocal.width, guiEvent.boundsInLocal.height-10) == true) {
                    guiEvent.guiEvent.stroke = Color.RED;
                    collisionsDetected = true;
                    break;
                } else {
                    guiEvent.guiEvent.stroke = Color.rgb(77,130,178);
                    collisionsDetected = false;
        }"DayEvent" is a Group...("e" too)
    The error is:
    "An internal error has occurred in the OpenJFX compiler."

    This is helpful... :-)
    I can reproduce the error with the simple code:
    var app_events: Node[];
    var collisionsDetected: Boolean;
    function detectCollision(guiEvent: Group) {
      for (e in app_events[p | p.visible]) {
        if (e.intersects(guiEvent.boundsInLocal.minX, guiEvent.boundsInLocal.minY+5, guiEvent.boundsInLocal.width, guiEvent.boundsInLocal.height-10) == true) {
          collisionsDetected = true;
          break;
        } else {
          collisionsDetected = false;
    }I suggest you report the bug to Jira / Kenai with the above code. If you don't want or cannot, just tell, I will do.
    *[EDIT]* I went ahead, since I could reproduce it, and made the bug [http://javafx-jira.kenai.com/browse/JFXC-3283]
    As guessed from the cryptic error, the problem comes from the break instruction. So a workaround is not to use it! :-) Or to change the instructions. Maybe the compiler thinks that break is supposed to be a value (implicit return).
    A possible solution is:
    function detectCollision(guiEvent: Group) {
      for (e in app_events[p | p.visible]) {
        collisionsDetected = e.intersects(
            guiEvent.boundsInLocal.minX, guiEvent.boundsInLocal.minY+5,
            guiEvent.boundsInLocal.width, guiEvent.boundsInLocal.height-10);
        if (collisionsDetected) break;
    }Simple, elegant (in my eye!) and compiling...
    A less breaking solution (ie. with minimal change to your code) is to say your function returns nothing: function detectCollision(guiEvent: DayEvent): Void
    Another, perhaps better, is to return true or false instead of changing some global variable.
    The compiler tries hard to guess the types, but sometime it fails and behaves badly or even crashes...
    Edited by: PhiLho on Jun 18, 2009 3:45 PM

  • Odd Error with decode function in Order By Clause

    I am trying to compile a procedure and can't get around an error with a dynamic order by that doesn't make much sense to me. I can repoduce the error with a plain select statment in sql plus so I can rule out a declaration error. Here is an example with 2 numeric columns and a date column.
    select task_id, display_date, remark_id from task_list
    where task_id > 1000
    order by decode('Task_ID', 'Task_ID',Task_ID, 'Display_Date', Display_Date, 'Remark_ID',Remark_ID)
    returns the error:
    select task_id, display_date, remark_id from task_list
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    I'm not sure why this error is occuring, because it doesn't even hit the Display_Date field in the Decode statment. If I take the Display_date out of the statement, it runs properly. If I change Display_Date to To_Char(Display_Date) it also runs fine, but the sorting is incorrect. Also I'm running 9.2, and do not want to use dynamic sql to build my query. Any Ideas out there as to the cause of this error?

    I did find a workaround to this issue by breaking the decode statment into three separate statement, but I still think that the way it is written above should work, and may be a bug, or an error that I don't understand fully.
    The Order by was rewritten like this:
    order by decode(pSort, 'Task_ID',Task_ID), decode(pSort, 'Display_Date', Display_Date),
    decode(pSort, 'Remark_ID',Remark_ID);
    Thanks

  • 'Missing parameter with PERFORM' error with a function IN BACKGROUND TASK

    I am getting this error when calling a custom function in MIGO user exit ZXMBCU01.  When I remove the 'IN BACKGROUND TASK' the function works fine and there are no error messages.  When using 'IN BACK...' you can't debug within it to see where the message comes from.  I see the message with SM58.  I am working in an sap 4.7 environment.  I have not found any solutions from google searches.
    Here is the statement within ZXMBCU01:
        CALL FUNCTION 'Z_UPDATE_MATERIAL_AVAIL_STATUS' IN BACKGROUND TASK
          EXPORTING
            work_order = xmseg-aufnr.
    Here is the code for the function:
    FUNCTION Z_UPDATE_MATERIAL_AVAIL_STATUS.
    ""Update function module:
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(WORK_ORDER) LIKE  AUFK-AUFNR DEFAULT '0000000000'
    TABLES: eban, resb, aufk.
    -Global Types----
    TYPES: BEGIN OF t_data,
           rsnum TYPE resb-rsnum,
           rspos TYPE resb-rspos,
           aufnr TYPE resb-aufnr,          "Order Number
           bdmng TYPE resb-bdmng,          "Requirement Quantity
           enmng TYPE resb-enmng,          "Quantity withdrawn
           bsmng TYPE eban-bsmng,          "Quantity ordered against this purchase requisition
           END OF t_data.
    DATA:  gt_data TYPE t_data OCCURS 0,
           ga_data TYPE t_data.
    -Global Variables----
    DATA: gv_refused TYPE BAPIFLAG-BAPIFLAG,
          gs_caufvd  TYPE caufvd,
          g_text TYPE t100-text,
          gv_objnr LIKE aufk-objnr,
          gv_status LIKE  bsvx-sttxt,
          gv_trig_stat TYPE c.
    TABLES RETURNED FROM BAPI
    DATA:  BEGIN OF xreturn OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA:  END OF xreturn.
      SELECT SINGLE objnr FROM aufk
         INTO gv_objnr
         WHERE  aufnr = work_order.
      CALL FUNCTION 'STATUS_TEXT_EDIT'
        EXPORTING
          flg_user_stat = 'X'
          objnr         = gv_objnr
          only_active   = 'X'
          spras         = sy-langu
        IMPORTING
          line          = gv_status.
      IF ( gv_status CS 'REL' ) AND
         ( gv_status NS 'NMAT' AND gv_status NS 'CNF' AND gv_status NS 'CLSD' AND
           gv_status NS 'TECO' AND gv_status NS 'DLFL' ).
        SELECT SINGLE *
          FROM AUFK
         WHERE aufnr = work_order AND
               ( auart = 'PM01' OR
                 auart = 'PM02' OR
                 auart = 'PM03' OR
                 auart = 'PM99' ).
        IF sy-subrc = 0.
          SELECT resbrsnum resbrspos resbaufnr resbbdmng resbenmng ebanbsmng
            INTO CORRESPONDING FIELDS OF ga_data
            FROM resb LEFT JOIN eban
              ON resbrsnum = ebanarsnr AND
                 resbrspos = ebanarsps
           WHERE resb~aufnr = work_order AND
                 resb~bdmng > 0.
        SELECT rsnum rspos aufnr bdmng enmng
          INTO CORRESPONDING FIELDS OF ga_data
          FROM resb
         WHERE aufnr = work_order
           AND bdmng > 0.
              SELECT SINGLE bsmng
                INTO ga_data-bsmng
                FROM eban
               WHERE arsnr = ga_data-rsnum
                 AND arsps = ga_data-rspos.
              IF sy-subrc <> 0.
                CLEAR ga_data-bsmng.
              ENDIF.
               IF ga_data-bdmng = ga_data-enmng OR
                  ga_data-bdmng = ga_data-bsmng.
                 "update status - but all items must pass
               ELSE.
                 gv_trig_stat = 'N'.
                 EXIT. "status won't change so get out now
               ENDIF.
         ENDSELECT.
       IF ga_data~bdmng > 0.
           IF ga_data-bdmng = ga_data-enmng OR
              ga_data-bdmng = ga_data-bsmng.
         IF gv_trig_stat <> 'N'.
              CALL FUNCTION 'CO_IH_USERSTATUS_SET'
                EXPORTING
                  I_AUFNR              = ga_data-aufnr    "'000005000263'
                  I_USR_STAT_INT       = 'E0002'
      I_USR_STAT_EXT       =
      I_SET_INACTIVE       =
      I_BUF_READ           =
                  I_SPRAS              = sy-langu
                IMPORTING
                  E_CHNG_REFUSED       = gv_refused
                  E_CAUFVD             = gs_caufvd
                TABLES
                  RETURN               = xreturn.
              LOOP AT xreturn
               WHERE type = 'E'.
              ENDLOOP.
              IF sy-subrc <> 0.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
                RETURN.
              ELSE.
                READ TABLE xreturn INDEX 1.
                CALL FUNCTION 'PI_BP_GET_MESSAGE_TEXT'
                  EXPORTING
                    iv_message_id     = xreturn-id
                    iv_message_type   = xreturn-type
                    iv_message_number = xreturn-number
                    iv_message_v1     = xreturn-message_v1
                    iv_message_v2     = xreturn-message_v2
                    iv_message_v3     = xreturn-message_v3
                    iv_message_v4     = xreturn-message_v4
                  IMPORTING
                    ev_message_text   = g_text.
              ENDIF.
         ENDIF.
         ENDIF.
           ENDIF.
         ENDSELECT.
        ENDIF.
      ENDIF.
    ENDFUNCTION.
    Does anyone have any ideas?  Thank you very much in advance.
    Glenn Allen
    Software Architect (specializing in SAP)

    I'd be starting a process of elimination... perhaps start with an "exit." right after
    SELECT SINGLE objnr
      FROM aufk
      INTO gv_objnr
      WHERE aufnr = work_order.
    exit.  "leave FM NOW
    and if that doesn't crash, work down the code down the code in the function e.g. comment out the BAPI_commit call... and / or build a little test harness report to call the Z function in background task... btw, does the ST22 dump point to anything more specific...?

  • Error with getAttribute( ) function, while navigating from parent to child

    Hi,
    I have been trying to develop a small project with two task flow(TF).
    Both the TF contains only one page.
    Both of my pages are made from different VO,s.
    from the Parent page (P1) if i select a row and navigate to Child Page (P2), i need to filter the result in P2 using the selected row in P1.
    From P1 when i selected a row and navigate to P2 by clicking a button, i have used a Bean to get the parameters from the selected row and Passed the same to TF2.
    I made an AMImpl method and binded it to P2, such that whenever my P2 render this AMImpl method will be executed.
    Inside the AMImpl method i am trying to run the VO query of P2 with new selected criteria from TF1 ie.P1.
    i also have few more functionalites in P2 like when i select a row and clicks on a button i will some some info on a pop-up for the corresponding selected row.
    When i run the page P2 individually,all works fine. But when i navigate from P1 to P2 none of the functions are working, i.e when i click on the button on P2 to see popup its showing that Attribute is Null in the selected row, even though the attribute is not null. After navigation in P2 this function getAttribute( ) is returning null. but when i run P2 individually the same function is returning all required fields without error.
    Actual AMimpl.java method code :
    RowKeySet selectedRows =
    Table.getSelectedRowKeys(); //Table is a "Rich Table" i declared outside the method and binded to my actual table on P2
    Iterator selectedRowsIterator =
    selectedRows.iterator();
    DCBindingContainer dc =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBinding =
    dc.findIteratorBinding("P2Iterator");
    RowSetIterator rowSetIterator = iterBinding.getRowSetIterator();
    Key selectedRowkey =
    (Key)((List)(selectedRowsIterator.next())).get(0);
    Row selectedRow = rowSetIterator.getRow(selectedRowkey);
    String parameter1ForCurrentRow =
    selectedRow.getAttribute("parameter1").toString(); // -->this particular line is returning null while navigating from P1 to P2, but the same line returns actual value if the run P2 individually
    Kindly guide me how to achieve this.
    Regards
    Siva

    Hi Timo
    thanks for your reply.
    The reason I am doing this is to avoid the numerous instances of VO2 (Child VO) that will get created for every row of VO1. (eg: 100 rows of Vo1 means 100 instances of VO2 created & executed ).
    I am trying to avoid that by Binding and executing the params to a single child VO instance, only on the click of a button.
    Please advise if my assumption about as many child instances of VO2 being created and executed is incorrect and ADFBC does some kind of Lazy instantiation / loading of the child VO until the point of execution of the UI code where it is bound to ?

  • Error with the function module REUSE_ALV_GRID_DISPLAY

    Hi,
    While using the fucntion module REUSE_ALV_GRID_DISPLAY
    I am getting the below error.
    Message i407(0k) with l_template_om.
    message says 'Contact your system administrator. The following template is missing: sap_mm.123
    Kindly provide me the reason why this success message is displayed for this function module.
    Vijay

    at first its an information message sind its of type I and not of type S which would be success.
    this message is beeing displayed because that template is really missing, believe it when SAP talks to you.
    So talk to your basis guys.
    to come around this problem without talking to your basis guys, i´d propose to use CL_SALV_TABLE or CL_GUI_ALV_GRID to display an ALV.

  • Error with new function u00E9lement is not in use

    I designed quickly a new function in the backend with no input and only output which give me the url off the bsp server. (since there is nobody in the house who can make the iview bsp template)
    I select the function from find data and put it in the model which gives the output to a store. when I deploy I get an error 1.1
    element 'z retrieve http server' is not in use
    anybody any clue what to do ??
    kind regards
    arthur de smidt

    thanks for the help but I already find out what happenend. I had linked my function direct to a store but apperantly there is no trigger for the function to execute since it is on it's own without input needed. apparently I have to trigger it to implement it in a flow or something like that
    kind regards
    arthur

  • TSODBC Error with TOP function

    Hello all.
    I'm have a prospect with Crystal 2008 in one big custmer here in Brazil. Here make the download of the trial version of Crystal 2008 and he are making several test with the tool.
    He are trying to get data from Kiwi system (Supplie Chan) with Crystal. He are using the ODBC of Transoft connection to reach the ISAM database.
    He are able to access the data with MS Acess and also with Crystal.
    The problem here that we need to use the TOP function in Crystal but it is not working. In MS Access, this function work fine.
    The error below is regarding the TSODBC error when trying to use the TOP function with Crystal 2008 (Add Command), but with MS Access it is work fine, have we one limitation or the MS Access solve this problem?
    "42000:[Transoft][TSODBC][usqlsd]')' expected here (TOP)
    The query below work fine in MS Access
    SELECT FACTRY.Job_number, (SELECT TOP 1 machine_number FROM FACTRY) AS WWW
    FROM FACTRY
    Can anyone help on this?
    Thanks a lot.
    Cássio

    Hello Cassio,
    if your SQL statement works in the database environment but not in Crystal Reports try to work with Database Views and simply use them as datasource.
    This could be better than recreating your SQL string to make it work in Crystal.
    Falk

  • ORA-03113 error with sdo_difference function

    Hi,
    I am trying to find the topological difference between geometries in two tables, using the sdo_difference function. For certain geometries, I am getting the "ORA-03113: end-of-file on communication channel" error.
    All my geometries are valid and are in the same projection.
    I am not able to track down why exactly this is happening. My hunch is that this occurs when there is an exact match between two geometries.
    Has anyone come across this problem before?
    Thanks in advance.
    Cheers,
    Sundar.

    My client is using 8.1.6 and I was having the same problem. The geometries I'm using are machine built (translated from Intergraph drawings) and they have complex geometries with individual lines.
    I increased my TOLERANCE from 0.0000000005 to 0.000005 metres and the problem was disappeared.
    The same workaround fixed problems I was having with SDO_INTERSECTION as well.

  • Bug: Error with q function

    When I try to compile a package that uses the q function (http://www.talkapex.com/2009/03/q-function-escape-single-quotes.html) an SQL Developer raises the following error:
    Error(503,17): PLS-00103: Encountered the symbol "! This happens in 3.1.07 (Build MAIN-07.42) Windows 32 bit. In version 3.1.05 (Build MAIN-05.97) it works properly.
    Martin
    http://www.ClariFit.com
    http://www.TalkApex.com

    Hi,
    Kindly refer the below link
    http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html
    First Date of Week:
    TIMESTAMPADD(SQL_TSI_DAY, (DAYOFWEEK(Current_date)*-1)+1, Current_date)
    Lat Date of Week:
    TIMESTAMPADD(SQL_TSI_DAY,DAYOFWEEK(Current_Date)*-1,TIMESTAMPADD(SQL_TSI_WEEK, 1, Current_date))
    First Date of Year:
    TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)
    Last Date of Year:
    TIMESTAMPADD(SQL_TSI_YEAR, 1, TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)))
    Thanks
    Deva

  • System_failure error with the function module HTTP_POST

    Hi Friends,
      While executing the function module "HTTP_POST" ,sometime we are getting the error "System_Failure" exception.
    Can anyone tell what could be the reason for this exception,any configurations need to be done on SAP???
    For this FM we are passing the RFC destination"SAPHTTPA" as one of the paratmeter and
    The two import paramters we are passing to this FM are
    URI : 
    http://10.74.40.31:8686/ArchiveBridge/?informaticaArchive&contRep=IA&sumFile=MYTA_SUMMARY_20090820063258.sum
    Destintion : SAPHTTPA
    Thanks all in advance.
    Regards
    Dharmaraju

    Hi,
    Check if any proxy is maitained in the client by going into transaction
    SICF-> Goto-> HTTP Client Proxy -> HTTP LOG TAB.
    If there is anything maintained under Host name and port, if yes you need to specify the IP address while calling FM HTTP_POST
    under PROXY as
    192.168.0.1:8080  where first part is IP address & 2nd part(8080) is port.
    Also test connection for SAPHTTPA under SM59 to see if its properly configured.
    Regards,
    Amit

  • DBMS_OUTPUT error with RAWTOHEX function

    The PL/SQL code
    declare
    x LONG RAW;
    y RAW(32767); -- RAW variable has higher maximum length than LONG RAW
    begin
    select ole_object_blob into x     --ole_object_blob is declared as LONG RAW
    from table;
    y := x;
    DBMS_OUTPUT.PUT_LINE(rawtohex(y));
    end;
    produces the error
    "PL/SQL numeric or value error at SYS.DBMS_OUTPUT". Any idea what the problem is? Thanks.

    Gary:
    Actually, the error message you get is misleading. DBMS_OUTPUT has a maximum line length of 255 characters. It is supposed to raise
    "ORA-20000,Line length overflow, limit of 255 bytes per line." but it doesn't seem to.
    This should display your data.
    DECLARE
    y RAW(32767);
    a PLS_INTEGER;
    BEGIN
    dbms_output.enable(1000000);
       select piece INTO y
       from sys.ORA_KGLR7_IDL_UB1
       where obj# = 1881 and
             part = 2 and
             piece# = 3;
       a := 1;
       WHILE a < length(rawtohex(y)) LOOP
          dbms_output.put_line(substr(rawtohex(y),a,254));
          a := a + 254;
       END LOOP;
    END;Just be aware that the RAWTOHEX function effectively doubles the length of the raw column. Each raw byte is represented by two hex characters, so the maximum length of the long raw column you can support is 16,384 bytes.
    HTH
    John

  • Error with .zoomToTheme() function

    i have a problem when i use .zoomToTheme() function
    this is the alert
    [MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:Invalid or Stale Connection found in the Connection Cache) "
    any help please
    thanks.

    as the message indicated, you may have a stale JDBC connection. Try restart your JEE container running MV and see if it fixes the issue.
    thanks
    LJ

  • Error with MonthName function

    Hello,
    I tried this:
    m = Month (CurrentDate)
    ReportName = ""
    Rem We went the month before the current month
    If (m = 1) Then
        ReportName = ToText(MonthName (12))
    Else
        ReportName = ToText(MonthName(Month(CurrentDate) -1))
    End if
    And i received this error message : A month number must be between 1 and 12.
    The error is on this line : ReportName = ToText(MonthName(Month(CurrentDate) -1))
    Specificly on : "MonthName(Month(CurrentDate) -1)"
    It's not normal. We are in January. Why Crystal Report give me this error?
    Best Regard

    Hi Eric
    I think the you are using the Crystal Syntax and missing at some point where current date is used.
    Use the variable "m" wherever you want to use: Month (CurrentDate).
    Try following code:
    m := Month (CurrentDate)
    ReportName := ""
    Rem We went the month before the current month
    If (m = 1) Then
    ReportName := ToText(MonthName (12))
    Else
    ReportName := ToText(MonthName(m -1))
    End if
    Hope this helps.
    Regards
    Nikhil Sabnis

  • Error while replacing IF statements with DECODE function in procedure

    Hi All,
    I have created a procedure which has nested IF statements. Now I want to replace the IF statements with DECODE functions to improve performance.
    Procedure:
    IF (var_int_sev = '0')
    THEN
    var_sev := '2';
    ELSE
    SELECT sev
    INTO var_int_sev
    FROM errorconfig
    WHERE errorcode = var_errorcode;
    var_sev := var_int_sev;
    END IF;
    I converted the above IF statement into DECODE function as mentioned below:
    var_Sev := DECODE(var_int_sev,0,2,SELECT severity FROM errorconfig WHERE errorcode=var_ErrorCode)
    But it throws below error at the select statement used inside DECODE.
    Error(58,51): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternativ
    Can someone help me in converting the IF to DECODE in the above case. Also how can we use a select statement inside decode.

    instead of trying to rewrite all your code and hoping that the performance will be better, it's a better option to investigate and find out which part of your application is slow
    read this:
    When your query takes too long ...

Maybe you are looking for

  • Error while executing a web template in browser

    Hi experts, I am facing an issue when I am creating copy of an existing web template and executing it. As per the query inserted in the web template, it should show the 'variable entry' screen, but its showing a page with lots of junk characters (loo

  • ITunes crashed mid-download

    I purchased and was in the process of d/l-ing season 1 of "The Office". It looks like I got 4 of the 6 episodes. At the time, I was listening to something from my library and working on other things (outside of iTunes). I'm trying to d/l these for an

  • IN range comparison

    Hi, How do I check if a value is in a range? I am testing the 'IN' clause as follows:- my test_value is declared as :- lv_current_value       TYPE atwrt, with a value of  '210' my range_table is declared as :- RANGES: lr_check_value FOR ausp-atwrt. a

  • How do we know tat a customer paid an invoice through the same Invoice no.

    Hi gurus, How do we know that a customer has paid an invoice through the same Invoice no. If it is in accounting document no, can u say where it can be seen. Moreover I want to generate a mail to customers who didn't pay their Invoice. So wat field w

  • STO in SAP SRM

    Dear Experts, Does SAPSRM support Stock Transfer scenario (STO) in intra company and intercompany mode in standard? If it supports, what configuration is needed to achive it? Thanks and regards, Ranjan