Dump in Value-Help Component for date

I created a Value-Help-Component for date fields. (I cannot use the standard value help, because I need the help to start in the month, the user is working on).
I am using the Date Navigator to select a date.
If I first change the month with an arrow of the date navigator and then select a date I get a dump in the method IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE_REF in line
    attr_info = me->node_info->if_wd_context_node_info~get_attribute( name_only ).
, because the element does not have a node_info.
If I just choose a date in the preselected month (without using the arrows of the date navigator) everything is fine.
Does anybody have an idea??
Many thanks in advance.

I found the "solution" to the problem myself.
I used the method bind_structure in the component containing the date navigator.
After I replaced it by set_static_attributes it worked without producing dumps.
Very strange!

Similar Messages

  • Input Value long enough for date format ,Error in executing parallel query

    Hi,
    My Table: ANML( ID, STATUS,B_DATE,B_MONTH,B_YEAR, DEATH_DATE)
    status 1 for alive and 2 for dead.
    i wrote a view to get age.
    as
    create or relace view view1 as
    select top."ID",top."STATUS",top."DOB",top."DEATH_DATE",top."ANML_AGE",top."DAYSDIFF",
    CASE
    WHEN anml_age < 1
    THEN 'D'
    ELSE 'M'
    END age_unit,
    CASE
    WHEN anml_age < 1
    THEN TO_CHAR (daysdiff || ' Day(s)')
    WHEN anml_age < 12
    THEN TO_CHAR (anml_age || ' Month(s)')
    WHEN MOD (anml_age, 12) = 0
    THEN TO_CHAR (ROUND (anml_age / 12, 0) || ' Year(s) '
    ELSE TO_CHAR ( ROUND (anml_age / 12, 0)
    || ' Year(s) '
    || MOD (anml_age, 12)
    || ' Month(s)'
    END age_string
    from
    (SELECT a.*,
    CASE WHEN status IN ( 1)
    THEN FLOOR(MONTHS_BETWEEN(TRUNC(SYSDATE),dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(MONTHS_BETWEEN(death_date,dob))
    END anml_age,
    CASE WHEN status IN (1)
    THEN FLOOR(TRUNC(SYSDATE)-TRUNC(dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(TRUNC(death_date) - TRUNC(dob))
    END daysdiff
    from (
    SELECTanml.id, status,
    TO_DATE ( DECODE (b_date,
    NULL, 1,
    b_date
    || '-'
    || DECODE (b_month,
    NULL, 1,
    b_month
    || '-'
    || b_year,
    'dd-mm-yyyy'
    ) DOB,
    death_date
    FROM anml
    WHERE b_year IS NOT NULL
    ) a) top
    when i tried to fetch all values from view its working fine.
    But when i tried to fetch values based on condition like as follows,
    select * from view1 where anml_age > 20 and anml_age<30
    I am getting error like:
    Input Value long enough for date format and Error in executing parallel query
    Please tell me wht is wrong.

    Here is your formatted code
    create or relace view view1 as
    select top."ID",top."STATUS",top."DOB",top."DEATH_DATE",top."ANML_AGE",top."DAYSDIFF",
    CASE
    WHEN anml_age < 1
    THEN 'D'
    ELSE 'M'
    END age_unit,
    CASE
    WHEN anml_age < 1
    THEN TO_CHAR (daysdiff || ' Day(s)')
    WHEN anml_age < 12
    THEN TO_CHAR (anml_age || ' Month(s)')
    WHEN MOD (anml_age, 12) = 0
    THEN TO_CHAR (ROUND (anml_age / 12, 0) || ' Year(s) '
    ELSE TO_CHAR ( ROUND (anml_age / 12, 0)
    || ' Year(s) '
    || MOD (anml_age, 12)
    || ' Month(s)'
    END age_string
    from
    (SELECT a.*,
    CASE WHEN status IN ( 1)
    THEN FLOOR(MONTHS_BETWEEN(TRUNC(SYSDATE),dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(MONTHS_BETWEEN(death_date,dob))
    END anml_age,
    CASE WHEN status IN (1)
    THEN FLOOR(TRUNC(SYSDATE)-TRUNC(dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(TRUNC(death_date) - TRUNC(dob))
    END daysdiff
    from (
    SELECTanml.id, status,
    TO_DATE ( DECODE (b_date,
    NULL, 1,
    b_date
    || '-'
    || DECODE (b_month,
    NULL, 1,
    b_month
    || '-'
    || b_year,
    'dd-mm-yyyy'
    ) DOB,
    death_date
    FROM anml
    WHERE b_year IS NOT NULL
    ) a) top

  • How to Restrict Master data in value help screen for a user???URGENT

    Hello Gurus,
    I have a requirement.When a authorized user logins to view the report, he should see only list of customers assigned to that user in the value help screen, instead of displaying whole master data.and the data is displayed perfectly fine for the authorized sales rep. By default, Value help screen displaying all the customer numbers.
    How can I restrict in the value help screen?
    Any help appreciated with points.
    Regards,
    PNK

    Hi Chandran,
                I got that Idea too. I created a authorized customer, I created a authorized Object and assigned to a role.But in the role, when I am changing the object to generate profile, it is asking to select list of customers from the customer table.If the customers are always constant then this would work,  but in my scenario, customers for the sales rep changes over time and when I ever reps open the query, they should see updated list of customers assigned to them only, as we update the master data everyday from source system and that shud reflect in the value help.
    I am trying User Exit to achieve this, but I am not getting proper ideas how to do this.
    Any Help on this issue with user exit code???
    Thanks in Advance
    regards,
    PNK

  • Mapping conversion help needed for date

    Hi Experts,
    I need help in message mapping convesion for date field
    The source date field can have value '2010-06-04T02:09:59.610-07:00' or 2010-06-04T02:09:60.610-07:00
    I have to change it to '2010-06-04T02:09:59.000-07:00'. ie, if the seconds are 59.XXX, or 60.XXX, then change to 59.000.
    Please let me know the best way to do this
    Thanks
    Mike

    Again, to make it more clear
    The source date field can have any date value such as
      2010-06-04T02:09:59.610-07:00 -
    This needs to be changed to 2010-06-04T02:09:59.000-07:00
      2010-06-04T02:09:60.610-07:00 -- This needs to be changed to 2010-06-04T02:09:59.000-07:00
    2010-06-04T02:09:60.000-07:00 -- This needs to be changed to 2010-06-04T02:09:59.000-07:00
    2010-06-04T02:09:59.000-07:00  - This need not be changed
    2010-06-04T02:09:58.610-07:00 -- This need not be changed
    2010-06-04T02:09:57.610-07:00  etc etc - These need not be changed.
    The only change using date function is for the first two dates, in which 59.XXX and 60.XXX need to be replaced with  59.000
    Using the above date function, all the seconds 59.XXX, 58.XXX, 60.XXX, etc etc,,, are converted to 59.000, 58.000 and 60.000
    I dont need this as per the requirement. So looks like the UDF needs to be altered a little to accomodate my requirement.
    Please help me.
    Thanks
    Mike

  • LIST OF STOCK  VALUES  BALACE REPORTS FOR DATE WISE

    Dear friends,
    In MB5L T.Code we can get period wise balance reports,but client's requirement is date wise Balance report,could you help me any kind of standard reports for date wise.
    Regards,
    Sabhapathy  R

    Dear Vishal,
    Thanks for your reply,mb5b only stock and  documents number  we can get client want to mb5l with date specific balance reports with GL account's.
    Regards,
    Sabhapathy R

  • Description for value help field for custom infotype field

    Hi,
       I`ve got to include a field in custom infotype. This field has got a value help attached to it. The values to be displayed in the value help are stored in the domain of the field(in the dictionary).
    The requirement is that once I select a value from the F4 help, the description for that value should be fetched and be dispalyed on the screen.
      I`m using the FM "<b>AM_READ_TEXT_ON_DOMAIN_VALUE</b>" to read the description from the domain ,but unable to make it display it on the screen.
      Can anyone suggest me as what should I do for displaying the description in the custom infotype screen.
    Regards,
    Farhana

    Hi anji,
       While using the "GET_DOMAIN_VALUES", I do get all the values from the domain. But I want only description to be displayed when I select a Value for that field.Kindly help out..
    Eg:
    1-Individual
    2-Family
    Then the description should be displayed as Family when I select the value 2 from the value help.
    Regards,
    Farhana.

  • OEM Capacity Planner - location of help definitions for data items

    Does anyone know the location of the help definitions for the OEM Capacity Planner data items? In the GUI, these definitions are accessible individually from Help > Selected Item. The definition provides a description, source, and user action.
    I would like to consolidate these into a glossary for our users of OEM C.P., as well as in a planning document.

    perhaps that information can be here:
    Enterprise Manager Administrator's Guide Contents / Search / Index / PDF
    Enterprise Manager Concepts Guide Contents / Search / Index / PDF
    Enterprise Manager Configuration Guide Contents / Search / Index / PDF
    Enterprise Manager Event Test Reference Manual Contents / Search / / PDF
    Enterprise Manager Messages Manual Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel P�rez

  • Help needed for data updation in User Defined Tables

    Hello Experts,
    I am developing one add-on in SAP B1 8.8 to input data in a User Defined Table described as under
    Table Name
    DriverMst UDT Type is No Object
    Description
    Stores the Driver master data which are used to get reference in Sale Delivery Form and Driver data management activity
    User defined fields
    Data Name
    Data source
    Size
    Pane Level
    Description
    Driver Code
    Code
    Alphanumeric
    0
    No object table fixed field
    System Name
    Name
    Alphanumeric
    30
    0
    No object table fixed field
    Full Name
    FullName
    Text
    50
    0
    Father Name
    FatherName
    Text
    50
    0
    Birth Date
    BirthDate
    Date
    0
    Phone Number
    PhoneNo
    Alphanumeric
    50
    0
    Mobile No
    MobileNo
    Alphanumeric
    13
    0
    I have created one form using screen painter displaying text boxes and bind them to the table.
    This form is working absolutely fine when there are some data in table (i.e. Browse using navigation)
    My problem is, when I click add button from tool bar the "OK" button turn to "Add" that means the form is set to Add mode, but when I click "Add" button after entering some data nothing happens and input data is not stored in Table. The same "OK" Button turned to "Update" when I do changes in loaded data, but my changes are not reflected to table after I click "Update".

    Thanks Nagarajan,
    None.
    There is no such query. The table fields is directly linked to Edit Box or Combo Box in form.
    From the examples I learned that I have to do something like this to get my table updated
    Dim oUsrTbl As SAPbobsCOM.UserTable
    Dim Res As Integer
    oUsrTbl = oCompany.UserTables.Item("DRIVERMST")
    oUsrTbl.Code = oBPC.Value 'Item Specific of Driver Code Edit Box
    oUsrTbl.Name = Left(oBPN.Value, 30) 'Item Specific of Name Edit Box
    oUsrTbl.UserFields.Fields.Item("U_FullName").Value = oMFN.Value
    oUsrTbl.UserFields.Fields.Item("U_FatherName").Value = oFTHN.Value
    oUsrTbl.UserFields.Fields.Item("U_BirthDate").Value = oDOB.Value
    oUsrTbl.UserFields.Fields.Item("U_PhoneNo").Value = oPHN.Value
    (Similar For rest ofthe fields)
    Res = oUsrTbl.Add()
    Just let me know that is this necessary to do like above.. To be frank there are few more fields and matrices on the form which I didn't mentioned. I am just trying to get recovered from first step to proceed further.
    Regards

  • Help Required for date display & mutating trigger

    Hai all..
    I need clarification for 2 problems.
    Problem 1
    Is there a possibility to display the values with a date range.
    I mean if there is no data for a particular date within the given range. it should display some null value.
    Eg.
    table name : sample
    Sno Date1 Name desgn
    1 1-may-2004 xyz engr
    1 3-may-2004 xyz engr-1
    1 4-may-2004 xyz engr-2
    The query is
    select * from sample where date1 between '01-may-2004' and '04-may-2004'.
    The result of query will be
    Sno Date1 Name desgn
    1 1-may-2004 xyz engr
    1 3-may-2004 xyz engr-1
    1 4-may-2004 xyz engr-2
    But i need the result to be displayed as
    Sno Date1 Name desgn
    1 1-may-2004 xyz engr
    nil 2-may-2004 nil nil
    1 3-may-2004 xyz engr-1
    1 4-may-2004 xyz engr-2
    Pls let me know how to achieve this.
    Problem 2:
    While i am updating a value using a trigger.
    I am getting "mutating" error.
    Is there a possibility to avoid the mutation.
    The two triggers i am using is
    Trigger 1
    CREATE OR REPLACE TRIGGER TRIG_DURATION_UPDATED
    AFTER UPDATE ON
    TIMESHEET_DATA
    FOR EACH ROW
    DECLARE
    ID_COUNT DATE;
    A date;
    NN NUMBER;
    AA NUMBER;
    NN1 NUMBER;
    BEGIN
    b_dur :=0;
    IF UPDATING('PROGRESS') THEN
    SELECT COUNT(1) INTO AA FROM TIMESHEET_DATA_PAUSE WHERE DATA_sNO = :OLD.DATA_SNO AND EMP_ID = :OLD.EMP_ID AND
    ACNUM = :OLD.ACNUM AND DURATION IS NULL;
    IF AA > 0 THEN
    SELECT to_date(START_TIME,'DD-MON-YYYY HH:MI AM') into a FROM TIMESHEET_dATA_PAUSE WHERE
    EMP_ID = :NEW.EMP_ID AND ACNUM = :new.acnum AND DATA_SNO = :new.data_sno AND pause_TIME IS NULL
    AND DURATION IS NULL;
    select to_date(sysdate,'DD-MON-YYYY HH:MI AM') into id_count from dual;
    SELECT A - ID_COUNT INTO NN FROM DUAL;
    SELECT round(TRUNC(NN*24),2) INTO NN1 FROM DUAL;
    UPDATE TIMESHEET_dATA_PAUSE SET DURATION = NN1,PAUSE_TIME = SYSDATE WHERE
    EMP_ID = :NEW.EMP_ID AND ACNUM = :new.acnum
    AND DATA_SNO = :new.data_sno AND pause_TIME IS NULL AND DURATION IS NULL;
    END IF;
    END IF;
    END;
    Trigger 2
    CREATE OR REPLACE TRIGGER TRIG_DURATION_UPDATED_PAUSE
    AFTER UPDATE ON
    TIMESHEET_DATA_PAUSE
    FOR EACH ROW
    DECLARE
    ID_COUNT DATE;
    A_COUNT NUMBER(10);
    A date;
    NN NUMBER;
    AA NUMBER;
    NN1 NUMBER(10,2);
    BEGIN
    IF UPDATING('DURATION') THEN
    SELECT COUNT(1) INTO A_COUNT FROM TIMESHEET_DATA WHERE DATA_sNO = :new.data_sno AND EMP_ID =:new.EMP_ID
    AND ACNUM = 'ACNUM' AND DURATION IS NULL;
    IF A_COUNT >0 THEN
    SELECT NVL(SUM(DURATION),0) INTO NN1 FROM TIMESHEET_DATA_PAUSE WHERE DATA_sNO = :new.data_sno AND EMP_ID =:new.EMP_ID AND ACNUM = :NEW.ACNUM;
    UPDATE TIMESHEET_DATA SET DURATION = NN1 WHERE DATA_sNO = :new.data_sno AND EMP_ID =:new.EMP_ID AND ACNUM = :NEW.ACNUM AND DURATION IS NULL;
    END IF;
    END IF;
    EXCEPTION WHEN DUP_VAL_ON_INDEX THEN
    DBMS_OUTPUT.PUT_LINE ('CANNOT INSERT');
    END;
    Pls let me know the solutions for the two..
    Thanks in Advance
    Gaya3

    In future please start two threads when you have two questions to ask. Othewise it makes things difficult to follow and may well lead to some of your questions not getting an answer. Unlike some other sites there is no limit to the number of posts we can have :)
    To answer your first question:
    If you have Oracle9i you can do this using a PIPELINED function to act as a pivot table (in earlier versions you will have to have a table of some description - ALL_OBJECTS will do in a pinch).
    CREATE OR REPLACE TYPE t_dates AS TABLE OF DATE
    CREATE OR REPLACE FUNCTION f_dates
      (st IN DATE, cnt IN INTEGER) RETURN t_dates
      PIPELINED
    AS
      dd date;
    BEGIN
      FOR a IN 1..cnt LOOP
        SELECT  st + (a-1)
          INTO  dd
          FROM  dual;
        PIPE ROW (dd);
      END LOOP;
      RETURN;
    END f_dates;
    /So, given this data...
    SQL> select * from t57
      2  /
          COL1 COL2
             3 05-MAY-04
             4 06-MAY-04
             5 07-MAY-04
             6 12-MAY-04
             8 15-MAY-04
    5 rows selected.
    SQL>...we can run this query...
    SQL> SELECT nvl(to_char(t.col1), 'Nil'), dd.ndate
      2  FROM   t57 t
      3         , ( select column_value AS ndate from table(cast(f_dates(trunc(SYSDATE), 11) AS t_dates))) dd
      4  WHERE trunc(dd.ndate) = trunc(t.col2(+))
      5  /
    NVL(TO_CHAR(T.COL1),'NIL')               NDATE
    3                                        05-MAY-04
    4                                        06-MAY-04
    5                                        07-MAY-04
    Nil                                      08-MAY-04
    Nil                                      09-MAY-04
    Nil                                      10-MAY-04
    Nil                                      11-MAY-04
    6                                        12-MAY-04
    Nil                                      13-MAY-04
    Nil                                      14-MAY-04
    8                                        15-MAY-04
    11 rows selected.
    SQL> Obviously, you will want to tidy up the function to suit your needs.
    Cheers, APC

  • Custom pegging component for data grid in flex

    A pegging component useful when you want to display a limited amount of data in datagrid.
    <code>
    <pagging:Pagging id="pagging" size="15" ui="{dataGridRef}" dp="{data}" />
    </code>

    Flex Builder 2 uses Actionscript 3.
    You will need to write a renderer for for this column.
    There are a lot of examples of datagrids with images in them.
    here is one from the livedocs
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=cellrenderer_072_28.html

  • Help - formula for date automatically displayed as per given frequency period

    Details of report received date and delayed no of days  in submission
    S/No
    Details of Report
    Frequency
    Date as per Frequency (Target Date)
    Received up to as on
    lapse of days
    Fin per Day
    Fine Amount
    24.07.2014
    (Rs.)
    1
    Cash book
    Daily
    24.07.2014
    30.06.2014
    24
    10
    240
    2
    DSR
    Previous Day
    23.07.2014
    31.05.2014
    53
    10
    530
    3
    Day book hard copy
    Thursday & Monday
    Formula Required latest date for Thursday or Monday and date with in cell E4
    10
    0
    4
    Asset stock
    Fortnight
    Formula Required latest date for 15 th day  or last date of month and date with in  cell E4
    10
    0
    5
    Labour approval 
    1st Day of Month
    Formula Required 1st day date of month with in cell E4
    10
    0
    6
    Qty as per drawing
    Every Quarter
    Formula Required last day date of quarter of the year with in cell E4
    10
    0
    Note: I want simply enter the date in  E4 and the formula calculated the date in column D 

    do you want to calculate the date format directly? see the sample:
     =DATEVALUE(TEXT(date,"d/m/yy"))
    KR

  • Graphical component for date??

    is there any graphical component enable user to select a date (day,mounth,year)?
    thanks in advance

    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFormattedTextField.html

  • Help needed for Data Pump.

    Hi,
    I am using oracle 11g release2 and I am not able to find data pump utility in SQL developer.
    Please let me know, if I need to install it. I am new to this utility.
    Thanks.

    I do not believe SQL Developer would have DataPump utility.
    As the name implies, SQL Developer is intended to be used as a tool to facilitate development (typically of SQL code), as well as provide additional features to assist developers in their daily routines.
    DataPump, is more of a DBA tool used for extracting logical copies of data from an existing database and/or port to another database. To use this utility, you would typically need to be in the dba group (although not necessary if configured properly). But at least on the same server as the datapump utility software resides.
    There are many options and features to using datapump, including network_link which allows extraction of data from a remote database to another database on a different server without ever creating a file on the operating system.
    If I recall correctly, I believe in older versions of Oracle client (e.g., 8.x), the Oracle client provided the export/import utility. But those days are long gone now. With datapump, it is primary a DBA tool.

  • Help ! for date column type

    Hi,
    I am having two tables tdz12 and tdf31. TDF31 is a date field. and TDZ12 is transactions history table. If I do
    11:30:39 SQL> alter session set nls_date_format='DD-MON-RRRR HH24:MI:SS';
    11:30:57 SQL> select c65201 from tdf31;
    C65201
    30-NOV-2006 00:00:00
    11:46:48 SQL> select distinct a9000 from tdz12 where a9000 >= '01-NOV-06';
    A9000
    01-NOV-2006 00:00:00
    02-NOV-2006 00:00:00
    03-NOV-2006 00:00:00
    04-NOV-2006 00:00:00
    06-NOV-2006 00:00:00
    07-NOV-2006 00:00:00
    08-NOV-2006 00:00:00
    09-NOV-2006 00:00:00
    10-NOV-2006 00:00:00
    11-NOV-2006 00:00:00
    13-NOV-2006 00:00:00
    14-NOV-2006 00:00:00
    15-NOV-2006 00:00:00
    16-NOV-2006 00:00:00
    17-NOV-2006 00:00:00
    18-NOV-2006 00:00:00
    20-NOV-2006 00:00:00
    21-NOV-2006 00:00:00
    22-NOV-2006 00:00:00
    23-NOV-2006 00:00:00
    24-NOV-2006 00:00:00
    25-NOV-2006 00:00:00
    27-NOV-2006 00:00:00
    28-NOV-2006 00:00:00
    29-NOV-2006 00:00:00
    30-NOV-2006 00:00:00
    26 rows selected.
    If I do
    11:26:39 SQL> select sum(a9060)
    11:27:52 2 from tdz12
    11:27:52 3 where A9000>=(select to_date(to_char(C65201,'YYYYMM')||'01','YYYYMMDD') FROM TDF31);
    SUM(A9060)
    0
    Why I am getting 0 records ? ( Pl tell me the reason, not alternate way to get records )
    thanks & regards
    PJP

    TRUNC(c65201,'MONTH')is a simpler alternative to
    TO_DATE(TO_CHAR(c65201,'YYYYMM')||'01','YYYYMMDD')although it will give the same result here.

  • Need help searching for dates

    I have to search the database for a month and year. When using the following sql statement i get error message ORA-01843 not a valid month. What am i doing wrong.
    select creation_date,customer_id from apps.cs_incidents_all_b
    WHERE to_date(creation_date,'MM') = to_date('10','MM')

    I figured it out. Thanks
    select creation_date,customer_id from apps.cs_incidents_all_b
    WHERE to_char(creation_date,'mm') = '10'
    and to_char(creation_date,'yyyy') = '2004'

Maybe you are looking for

  • Advice on sequence settings - frame size for VHS video in FCP

    Hello, I was hoping that I could get some advice on editing and output for video captured from VHS Tapes to ensure the best quality possible. My current workflow to digitize the VHS tapes is: VHS signal from JVC S7600u with TBC into ADVC 300 (no de-i

  • Can't get browser.cache.disk.parent_directory to work

    I've tried to use the browser.cache.disk.parent_directory method to move my disk cache, but this isn't working. Details: I did a clean install of Firefox 22 on Vista, and then, following instructions, went into about:config, created the browser.cache

  • Importing Vb Dll in Oracle Forms 6i

    If any one have idea importing vb dll in oracle forms 6i. If any one have idea to Use ORA_FFI package or any other way.

  • Lighroom crashes every time I try to email

    I am using Windows 7 64 bit, lightroom 5.3 and I suspect that this problem has started since I installed Outlook 2013.  I have tried reinstalling lightroom and even deleting the preference file with no success.  I have noticed that other people are h

  • Pictures on internet coming up as question marks

    PLEASE HELP....I recently purchased a Macbook Pro and am having trouble viewing pictures online. I am a college student and a frequent visitor of Facebook and Myspace. However, I am unable to view web pages and pictures on these sites. Pictures show