Automatically Change Database Table Attribute Value.

Hi All,
I am trying to write a tool which will run as a cronjob. This tool which runs periodically, connects to DATABASE and checks the System Central Date of the Server say 20070828(this format!) and also checks the values in Database Table.. if this matches then The Table Attribute should change from "postponed" to "initial".
I have a table named "Task" it has attributes.. ID, TaskDate, Name, State..etc
Now this tool should check the "TaskDate" and alter the "State" if it satisfies the condition.
Could anyone of you help me by giving some tips, so that I can finish the project asap..? This is the last requirement which is pending now.. I am running out of ideas.. ;-(
Let me know, if you require more info to suggest me.
Thanks and Rgds,
Pradeep

Running out of ideas in the sense.. my mind is not workin!! ha ha.. just kiddin..
I already know the concept to schedule cron job.. so the problem here ends..
I wanted some tips how can i change the attribute by just checkin the TaskDate.. i need something like 20070828(i.e only the date related) but in database i have something like 20070828102000(total time!!)
If any of you just give an idea.. then it would do a world of good for me..
Thanks!

Similar Messages

  • htmlb:tableView : (table) Attribute value is not a valid reference

    Hi All,
    In Table view i am getting the following error.
    The following error text was processed in the system:
    <htmlb:tableView>: (table) Attribute value is not a table
    My code in View is
    CREATE OBJECT  MODEL TYPE  ZCL_HREPAN_MODEL_MAIN.
    CREATE OBJECT tv_itr1 TYPE ZCL_HREPAN_MODEL_ITR_STATUS exporting model = model.
    %>
         <htmlb:tableView  id              = "reportsTable1"
                           headerVisible   = "true"
                           headerText      = "All PANs:"
                           footerVisible   = "true"
                           design = "alternating"
                           visibleRowCount = "20"
                           width           = "100%"
                           fillUpEmptyRows = "false"
                           columnWrapping  = "false"
                           columnWidth     = "200"
                           sort = "server"
                           selectionMode = "lineEdit"
                           iterator        = "<%=tv_itr1%>"
                           table           = "//MODEL/DATE_RANGE_PAN" >
          </htmlb:tableView>
    in above DATE_RANGE_PAN is table from model 'ZCL_HREPAN_MODEL_MAIN'
    Controller as below:  DO_REQUEST.
    if lr_event is bound and lr_event->server_event = 'allpans'.
      lo_model ?= get_model( 'model_id_status' ).
      lo_display_view->set_attribute( name = 'model' value = lo_model ).
      lo_display_view = create_view( view_name = 'allpans.htm').
      call_view( lo_display_view ).
      ENDIF.
    DO_INIT as below
    lo_model ?= create_model( class_name = 'ZCL_HREPAN_MODEL_MAIN'
                                model_id   = 'model_id_status').
    please help me how to solve this??
    REgards,
    Kishan

    I think DATE_RANGE_PAN is not table. Make sure its a table. If issue persist, post the data type declaration here.
    Raja

  • Tricky! Change of navi-attribute values in ABAP and use in selections

    Hi gurus,
    now I have a teaser that really keeps me busy, and which might be interesting for some of you:
    we use several statuses in our <u>Demand Planning in SCM 5.0</u>, some of which can be switched by using a user-function macro which just basically is a ABAP function module that <u>changes navigation attribute values directly on the database</u>, meaning in the master data tables of the respective characteristic.
    Now, the code works, the values are changed accordingly, leaving the data set in object status "active" - <b>BUT</b>:
    <i>when we call a selection, it still shows the old values, even after activating master data or running the attribute change run!</i>
    This is not what we expected. Our wish was, that once the table was updated with the correct field values, we would also see them in our selections.
    <u>Details:</u>
    we have two statuses as navi-attributes to an article:
    <i>DP:</i> YES/NO, and
    <i>oDP:</i> YES/NO
    Combinations originally are: <i>DP</i> YES/<i>oDP</i> NO
    After the status change macro, the table shows the following, as expected:
    <i>DP</i> NO/<i>oDP</i> YES
    As we have two selections, one on DP status "YES", the other one on oDP status "YES", we would like to see the article vanish in the first selection and show up in the other one...
    Does anybody have an idea what is wrong and what we can do to have to proper navi-attribute values from the master data table in the selection? Does the selection not read from the database but from a buffer?
    Looking forward to your answers,
    Klaus

    Hi Fabrice,
    yes indeed, I did check the object version, and it is A.
    Problem is, the function module changes the data record which is "A" anyway. So the changed data record is active - however, I just had a look at the SID master data table, and it looks that direct changes to the P-table do not affect the X-table where the SIDs are stored. So I guess I will also have to update the X-table with the correct SID-values.
    If this works, I let you know. We will be using this change by ABAP quite often, it is rather useful.
    Regards and thanks for your prompt reply,
    Klaus

  • Change the Summary Attribute Value through Java code

    Hi ,
    I am working on a requirement where I need to set the Attribute value on the final Summary Screen through Java Code.
    Code :
            InterviewUserData data = new InterviewUserData();
            InterviewEntityInstance globalInstance = data.getGlobalInstance();
            globalInstance.setValue("Name", value_to_set);
    On completion of the interview session Name is displaying as NULL.
    I need to set NAME = value_to_set and display it on the final summary screen.
    Any help on this will be appreciated.
    Regards

    The InterviewUserData object is effectively a change set, to apply this to a session you use the InterviewSession.submit(InterviewUserData) method. You don't say how you are invoking this code but if it's inside an event Interview Engine handler the InterviewSession object should be accessible.
    Regards
    Ian

  • Why does Illustrator automatically change RGB and CMYK values

    Hi, I am struggling to understand why Illustrator is changing the values inside the RGB and CMYK boxes. I am also not sure of the exact relationship between these values. Essentially, it appears that if you set the Document Color Mode to RGB, it leaves the RGB values that you type in alone. If you set the Document Color Mode to CMYK, it leaves the CMYK values alone.
    But as soon as you change the Color Mode, it automatically modifies the values. So if you were in RGB mode and you set some RGB values, it changes those RGB values when you switch to CMYK mode. And vice versa.
    I had thought that the CMYK palette was a subset of the RGB palette. It would make sense to me if it did this when I switched from RGB to CMYK mode, but it doesn't make sense to me why it does this when I switch from CMYK to RGB mode.
    The other thing I am confused about is the relationship of the values in the RGB boxes to the values in the CMYK boxes. I would have thought that the relationship between them would be static. Actually, it is not. When I am in CMYK mode and I enter a CMYK value of 90 16 0 0, the RGB values become 0 158 222. But when I switch over to RGB mode, the RGB values of 0 158 222 result in CMYK values of 75 23 0 0.
    Very confusing.
    Thanks in advance if you can explain this behavior!
    Best Regards,
    Z.

    Color management.
    Hi, I am struggling to understand why Illustrator is changing the values inside the RGB and CMYK boxes. I am also not sure of the exact relationship between these values. Essentially, it appears that if you set the Document Color Mode to RGB, it leaves the RGB values that you type in alone. If you set the Document Color Mode to CMYK, it leaves the CMYK values alone.
    An Ai document can be either RGB or CMYK. The colors follow the document color mode and thus are converted immediately if they don't match.
    But as soon as you change the Color Mode, it automatically modifies the values. So if you were in RGB mode and you set some RGB values, it changes those RGB values when you switch to CMYK mode. And vice versa.
    Same reason.
    I had thought that the CMYK palette was a subset of the RGB palette. It would make sense to me if it did this when I switched from RGB to CMYK mode, but it doesn't make sense to me why it does this when I switch from CMYK to RGB mode.
    It's not. CMYK color spaces (there are more than just one) are normally smaller than RGB color spaces, but they aren't a "subset".
    The other thing I am confused about is the relationship of the values in the RGB boxes to the values in the CMYK boxes. I would have thought that the relationship between them would be static. Actually, it is not. When I am in CMYK mode and I enter a CMYK value of 90 16 0 0, the RGB values become 0 158 222. But when I switch over to RGB mode, the RGB values of 0 158 222 result in CMYK values of 75 23 0 0.
    When Illustrator converts the colors, it uses color management: the profiles you set up and the methods you set up. After converting it forgets the color that used to be. When converting "back", it uses color management again.
    When you convert an very bright RGB color, it be out of the CMYK gamut. So it get's converted to the closest possbile CMYK color (which might still be far away from the original color. But it's not possible to convert it "back" to the bright one unless you just revert the conversion (by Cmd/Ctrl + Z).

  • How to Change Messages inline attribute value Dinamically

    Hi
    I'm using Jdev 11.3
    Our requirement is if the facesmesage having onlly one message it should come like inline message
    else it should come as a popup.
    i tried EL for inline attribute but the problem is the method is calling only when submition
    public boolean isInline()
    boolean flag = true;
    Iterator it = FacesContext.getCurrentInstance().getMessages();
    if (it.hasNext())
    flag = false;
    return flag;
    regards Abhilash

    duplicate

  • Changing Element Attribute Values

    I spent far to long trying to figure out how to change an element attribute value without the FDK's SetAttributes function, so I thought I'd spare someone else the time.
    Basically, you still get the attributes using the GetAttributes() function, but now you just set the beg.child.Attributes property to the updated attribute value.
    //starting with a selected element
    elemSelect=app.ActiveDoc.ElementSelection
    //get the current attributes
    var childattributes =elemSelect.beg.child.GetAttributes()
    //find the attribute and value you want to change, and change it to a new value.
    childattributes[0].values[0] = "New_Value"
    //now assign the edited attributes to the selected element.
    elemSelect.beg.child.Attributes=childattributes
    Depending on how you selected the element, I assume you could do the above with beg.parent as well, but it wasn't something I needed to consider.
    ~Christen

    Thanks for this--you've likely saved me a headache.
    While I hadn't hit this yet, it does apply to several of the projects on my to-do list. Based on the info in the OMV, I would have expected to be able to simply use a statement like myElement.Attributes[i].value[i] = "New_Value" which, as I'm sure you discovered, has no apparent effect at all.
    The other thing I noticed in my quick testing is that defining your attributes variable by using the method (x = myElement.GetAttributes()) or by referenceing the Attributes property (x = myElement.Attributes) seem to be functionally equivalent.

  • Database Table Modification!

    Hi!
        I want to change database table i.e for e.g a table contains 10 fields with data in database i want to add 3 more fields to that table so that the data should not be removed or changed & after i ve added the fields i want to insert records to the 3 fields i ve created to the corresponding record.
      Can u pls tell me how to achieve this task.
      Thanks

    hi Rahul,
      Do this way ...
    Goto se11 and enter the name of the table in which you want to enter the fields,
    enter the fields and if any error occurs just goto UTILITIES->DATABASE UTILITY-> ACTIVATE AND ADJUST DATABASE.....
    Also see the links,
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
    Regards,
    Santosh

  • Create new rows or update rows in database table

    I have few table in database.
    I catch some values in my bean. Now I must put that values in my database tables. Values are in different tables.
    How can I update tables in database? Ok I know that my solution is updateable (entity) viewObject but please ... some example or description are welcome!
    Thx.
    Message was edited by:
    sinnerman

    Hi Frank. I read developer guide but this is detail and if you can help ... thanx in advance.
    I put code ... in my bean ... I need to insert row in table and commit. Please if you can answer me what`s wrong?
    code:
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    //Find corresponding object where variable "bindings" reside
    DCBindingContainer binding =
    (DCBindingContainer)app.getVariableResolver().resolveVariable(fc,
    "bindings");
    //Find the data control by name from the binding container
    DCDataControl dcCtl =
    binding.findDataControl("TMFStudServiceDataControl");
    //Retreive application module
    TMFStudServiceImpl am =
    (TMFStudServiceImpl)dcCtl.getApplicationModule();
    ViewObject vo = am.getGetIdStudentAnketaPitanje();
    ViewObject studentAnketaOdgovor = am.getStudentAnketaOdgovor();
    while (j < my_list.size()) {
    t = (Object)lista.get(j);
    System.out.println("IdOdgovora: " + t.toString());
    vo.setNamedWhereClauseParam("p_id_odgovora", t.toString());
    vo.executeQuery();
    Row currRow = vo.next();
    System.out.println("IdStudentAnketaPitanje: +currRow.getAttribute("IdStudentAnketaPitanje"));
    //am.insertStudentAnketaOdgovor();
    Row newStudentAnketaOdgovor = studentAnketaOdgovor.createRow();
    studentAnketaOdgovor.last();
    studentAnketaOdgovor.next();
    newStudentAnketaOdgovor.setAttribute("IdStudentAnketaPitanje", 1);
    newStudentAnketaOdgovor.setAttribute("IdOdgovor", 2);
    studentAnketaOdgovor.insertRow(newStudentAnketaOdgovor);
    am.getDBTransaction().commit();
    }

  • Unable to set default table attributes in Keynote

    I've been trying to change the default table attributes in one of my themes, and as per the description in the Keynote manual (page 237-8), this should be a straightforward process:
    1) In the slide navigator, create a new slide.
    2) If you're setting up default attributes for a particular master slide (rather than all the masters in the current theme), click Masters in the toolbar and choose the master slide. [I want to change the table attributes in all master slides in the particular theme, I skip this step.)
    3) Place a table on the slide.
    4) Select the table and set its attributes.
    5) Do one of the following: To make the table the default for only the current master slide, choose Format>Advanced>Define Table for Current Master. To make the table the default for all masters slides in the current theme, choose Format>Advanced>Define Table for All Masters.
    6) If you don't want the table on the slide, delete the table.
    Step 1) through 4) is unproblematic, but the second I try to execute step 5), the new formatting is all mixed up, and I am left with a table that looks nothing like the one I have just created in step 4). (Choosing to make the new table layout valid only in the current master doesn't help.)
    Any thoughts on how to sort this out would be greatly appreciated!  I should mention that following a similar procedure for diagrams works like a dream.

    Hi!
              We have same problem!
             The layout can be selected in application, but it is not taken as default.
         We appreciate your feedback
    Best Regards.
    Angelica

  • Change the field attribute of a field in data source - 0CRM_SALES_ACT_1

    Hi ,
    I have a data source named 0CRM_SALES_ACT_1 in CRM system.
    The fields PLANNED_TS_FROM and PLANNED_TS_TO are hidden fields i.e. the field attribute is 'A' - Field in OLTP and BW Hidden by SAP.
    Following are my doubts:
    1. Whether the values of these fields will be extracted into BW or it will not be?
    2. How do I change the fields attribute value of these fields(its standard data source)?
    3. Is there any SAP note to do this ?
    4. If the above doesn't exisits, then should I go for a append structure to the standard data source?
    Please help me.
    Regards,
    Ahmed.

    Hi,
    U can unhide ur fields in RSA6 and then replicate the datasource in BW. These fileds will come in BW.
    You cant change the attribute value for STD DSO.
    No SAP note for the same.
    You can append the datasource with the new fields with the attribute you want and hide the std. fields then goto BW and replicate it. You can then map it with the BW fields as you want.
    *Assign points if helpful.

  • How to update the change log table?

    Hi
    I am doing some manipulation on the ODS records and writing few new records directly into the active table of my ODS. how do i update the change log table so that i can do a delta from my ODS to further data targets??
    i see the fields REQUEST, DATAPAKID, PARTNO and RECORD in the change log table. what values should these fields have for my new records??
    Regards
    Sujai

    Hi,
    Please try this option. In stead of writing directly into DSO, do it in another Custom Z DSO. From there, do the FULL load to your previous DSO. This will ensure that the data consistence through the system. Also, do not forget to delete the data from Custom Z DSO once you successfully loaded the data.
    Thanks,
    Saru
    Edited by: P. Saravana Kumar on Apr 1, 2009 6:23 PM

  • Change a field value in the  database table

    Hi,
    GB01 is the database table.
    GB01-BOOLCLASS = 009
    GB01-CLASSTYPE = S
    GB01-BCLTAB = BSEG.
    GB01-BCLFIELD = GSBER.
    Upon input of above details,  will get table Record as
    BOOLCLASS    9    
    CLASSTYPE    S    
    BCLTAB       BSEG 
    BCLFIELD     GSBER
    BEXCLUDE     X   
    In the record, the field GB01-BEXCLUDE has the value “X” in it. It should be replaced by value “=.”
    Changes should be made ONLY for this record. Other Records should not be touched.
    How can we do this. Help me in doing this.
    Thanks,
    Ramya.

    Hi Ramya,
    Follow these steps :
    1. Goto the table GB01 -> Display its contents.
    2. Double click the record which you want to edit.
    3. Type /h (where you type transaction code) to go to debugging mode for that record.(Press enter twice to goto debugging mode)
    4. Click on Field CODE and give it value EDIT and then click on the PENCIL icon besides it.
    5. Now click on SAVE.
    6. Switch off the Debugging mode now.
    7. Now you can see your selected record in EDITABLE mode.
    8. Do the EDIT part and SAVE.
    Reward with points if helpful.
    Regards
    Hemant Khemani

  • How to inherit attribute values in object tables?

    I am trying to implement object inheritance with oracle 10g express. What i have done so far is created some types and subtypes. And some tables based on those types and sub types. So far i have understood that the subtypes inherit the attributes and methods from its super types.
    But is there a way to inherit the attribute values from the object table of the super type to the object table of the sub type?
    For example: The object O1 , explicitly labeled with (sIPO1 , wIPO1) , also inherits the intended purpose (sIPT 1 wIPT 1) from T1 . Similarly, the object O3 inherits the intended purposes from T3 , O1 and T1 . Note, however, that O2 , which is not labeled, inherits the intended purpose from T2 , but not from O1 nor T1 , as the intended purposes are not inherited through the reference-of relation.
    _a visual of the above description [http://picasaweb.google.com/lh/photo/1YBAQbCMQMBmd8oyw9SyNw?feat=directlink]_
    How can the types and objects be labeled as mentioned above? And how can these labels be made inheritable by the subtypes and objects based on those subtypes?
    Possible Solution*
    Only way which i could think of is using relational tables, like this: type_label(type_name, label1, label2) and a similar table table_label(table_name, label1, label2) for labeling the object tables. Then refer to these labels through some java programming. Will this be a right approach. I doubt that this will defeat the very intentions of the object database. And i hope there is a straight solution in Object Relational methods instead of java programming.
    nested tables and vararrays... will using them help solving the above problem some how?

    From those examples i can see that although the nested tables will have the super type attributes and values with them, if i have to change those attribute values the values in the whole table gets changed.
    is it possible to change the super type attribute values which is corresponding to the nested table values alone and not disturb the over all table?

  • TRIGGER_STATE changes to ERROR in QRTZ_TRIGGERS database table.

    Hi,
    I have developed an application to schedule processes. I am using QUARTZ triggers to do it.
    I am using the database to store job details and trigger states.
    for some of the triggers in QRTZ_TRIGGERS table, the TRIGGER_STATE attribute automatically turns to ERROR.
    How can i solve this problem?
    Is there a way to automatically change this state to WAITING when TRIGGER_STATE is ERROR?
    please help..

    The Oracle database doesn't support the returning clause for database views using instead-of triggers. ADF BC inherently includes the returning clause, if in a relating EO you have the refresh-after-insert or refresh-after-update property set on for an attribute.
    Hope this helps.
    CM.

Maybe you are looking for