Change indicator via trigger (Date/Timestamp)

I have set up triggers on all my tables to update the 'TIME_STAMP' field whenever a change is made to the row. It works flawlessly in sql*plus as well as in TOAD. However,if I insert a record using a ADF client I can view the record and the trigger provided value using sql*plus. If I update it using the ADF client the data becomes corrupted. I get a "ORA-01877: string is too long for internal buffer" when trying to view it with sql*plus or TOAD and if I dump() the column I get "Typ=180 Len=11: 0,0,0,0,0,0,0,0,0,0,0" (note: this is a dump when I had reset the datatype in my table and entity to a DATE).
The xml file for my entity follows:
Any Ideas?????
<?xml version='1.0' encoding='windows-1252' ?>
<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
<Entity
Name="WbsUsers"
DBObjectType="synonym"
DBObjectName="WBS_USERS"
AliasName="WbsUsers"
BindingStyle="Oracle"
UseGlueCode="false"
RowClass="wbs.model.entity.WbsUsersImpl"
CollClass="wbs.framework.entity.EntityObjectCollImpl"
MsgBundleClass="wbs.model.entity.common.WbsUsersImplMsgBundle" >
<DesignTime>
<Attr Name="_isCodegen" Value="true" />
<Attr Name="_version" Value="10.1.2.17.96" />
<Attr Name="_codeGenFlag2" Value="Init|Access|Msg" />
<Attr Name="_superClass" Value="wbs.framework.entity.EntityObjectImpl" />
<Attr Name="_collSuperClass" Value="wbs.framework.entity.EntityObjectCollImpl" />
<AttrArray Name="_publishEvents">
</AttrArray>
</DesignTime>
<Attribute
Name="Id"
IsUpdateable="false"
Precision="32"
ColumnName="ID"
Type="java.lang.String"
ColumnType="CHAR"
SQLType="CHAR"
TableName="WBS_USERS"
PrimaryKey="true"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="32" />
</DesignTime>
</Attribute>
<Attribute
Name="Username"
IsNotNull="true"
Precision="30"
ColumnName="USERNAME"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="30" />
</DesignTime>
</Attribute>
<Attribute
Name="Fname"
IsNotNull="true"
Precision="50"
ColumnName="FNAME"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="50" />
</DesignTime>
</Attribute>
<Attribute
Name="Lname"
IsNotNull="true"
Precision="50"
ColumnName="LNAME"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="50" />
</DesignTime>
</Attribute>
<Attribute
Name="WbsRoleId"
IsNotNull="true"
Precision="32"
ColumnName="WBS_ROLE_ID"
Type="java.lang.String"
ColumnType="CHAR"
SQLType="CHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="32" />
</DesignTime>
</Attribute>
<Attribute
Name="Email"
IsNotNull="true"
Precision="255"
ColumnName="EMAIL"
Domain="wbs.model.entity.emailDomain"
Type="wbs.model.entity.common.emailDomain"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="WBS_USERS"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="100" />
</DesignTime>
</Attribute>
<Attribute
Name="TimeStamp"
IsUpdateable="false"
ColumnName="TIME_STAMP"
Type="oracle.jbo.domain.Date"
ColumnType="DATE"
SQLType="TIMESTAMP"
TableName="WBS_USERS"
ChangeIndicator="true"
RetrievedOnUpdate="true"
RetrievedOnInsert="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="11" />
</DesignTime>
</Attribute>
<AccessorAttribute
Name="WbsRoles"
Association="wbs.model.entity.WbsUserRoleFkAssoc"
AssociationEnd="wbs.model.entity.WbsUserRoleFkAssoc.WbsRoles"
AssociationOtherEnd="wbs.model.entity.WbsUserRoleFkAssoc.WbsUsers"
Type="wbs.model.entity.WbsRolesImpl" >
</AccessorAttribute>
<AccessorAttribute
Name="WbsUserPeriods"
Association="wbs.model.entity.WbsUpUFkAssoc"
AssociationEnd="wbs.model.entity.WbsUpUFkAssoc.WbsUserPeriods"
AssociationOtherEnd="wbs.model.entity.WbsUpUFkAssoc.WbsUsers"
Type="oracle.jbo.RowIterator"
IsUpdateable="false" >
</AccessorAttribute>
<Key
Name="SysC0012735" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Id" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012735" />
<Attr Name="_checkCondition" Value="&#34;ID&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012736" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Username" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012736" />
<Attr Name="_checkCondition" Value="&#34;USERNAME&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012737" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Fname" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012737" />
<Attr Name="_checkCondition" Value="&#34;FNAME&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012738" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Lname" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012738" />
<Attr Name="_checkCondition" Value="&#34;LNAME&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012739" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.WbsRoleId" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012739" />
<Attr Name="_checkCondition" Value="&#34;WBS_ROLE_ID&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012740" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Email" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012740" />
<Attr Name="_checkCondition" Value="&#34;EMAIL&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="SysC0012741" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.TimeStamp" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C0012741" />
<Attr Name="_checkCondition" Value="&#34;TIME_STAMP&#34; IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="WbsUsersEmailCheck" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Email" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="WBS_USERS_EMAIL_CHECK" />
<Attr Name="_checkCondition" Value="&#34;EMAIL&#34; IS NOT NULL" />
<Attr Name="_isNotNull" Value="true" />
<Attr Name="_isCheck" Value="true" />
</DesignTime>
</Key>
<Key
Name="WbsUsersPk" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.Id" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="WBS_USERS_PK" />
<Attr Name="_isPrimary" Value="true" />
<Attr Name="_isDeferrableConstraint" Value="true" />
<Attr Name="_isInitiallyDeferredConstraint" Value="true" />
</DesignTime>
</Key>
<Key
Name="WbsUserRoleFk" >
<AttrArray Name="Attributes">
<Item Value="wbs.model.entity.WbsUsers.WbsRoleId" />
</AttrArray>
<DesignTime>
<Attr Name="_DBObjectName" Value="WBS_USER_ROLE_FK" />
<Attr Name="_referencedKey" Value="WBS_ROLES_PK" />
<Attr Name="_isForeign" Value="true" />
<Attr Name="_isDeferrableConstraint" Value="true" />
<Attr Name="_isInitiallyDeferredConstraint" Value="true" />
</DesignTime>
</Key>
</Entity>

Hi all,
I am a dope. I was having so may problems with the TIMESTAMP datatype in ADF and in TOAD I decided to just go with a DATE datatype for a change indicator. I did all the changes in the build scripts and model but forgot to run the build script so the errors I was getting were based on the old datatype.
BTW, Steve Muench had published a workaround to the issue in October that I found after I did all my changes. (http://radio.weblogs.com/0118231/2004/10/07.html#a394)

Similar Messages

  • Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    Photos recently changed from sequential numbering to date/timestamp.  When I import into apps for editing they are out of order.  What can be done to change back to sequential numbering instead of date/timestamp?

    The date information is taken from the camera which writes it to the file. This needs to be set to the correct date and time in the camera itself.
    The order the images are shown in the Library mode is set by clicking on the sort button in the tool bar, which if not showing can be activated from view, tool bar. There are different sort orders that can be applied including sorting by file name. You can also sort by dragging the images to the order you wish them to appear in by selecting user order.

  • Change indicator and readRowXML( )

    I'm trying to enforce concurrency checking in a web application for an update that is done using readRowXML().
    I am trying to base this check on a ModDate field. (I am currently setting the field manually, but it will eventually be set by a database trigger any time a record is modified). I have set the ModDate attribute as the change indicator in the entity object. The element I am passing into readRowXML() has a ModDate child with a value that is different that than ModDate that exists in the database for that record.
    I am expecting a RowInconsistException to be thrown, but instead the update succeeds and the ModDate is changed to whatever I pass in.
    Any thoughts?

    If I understand correctly, this will only work within the context of a single transaction? The way my architecture is designed, the data is read in one transaction and passed to a web page for presentation. The ModDate for the record is passed as a hidden field.Yes, ChangeIndicator feature assumes the data being modified was fetched in the same transaction.
    When the page is saved, the ModDate is returned and a new instance of the app module is created to do an update. I want to compare the ModDate passed back in the HTTP post to the value that is currently stored in the database to make sure the database record hasn't been updated by someone else.
    Would it be accurate to say that the only way I can accomplish this using the 'Changed Indicator' is by using a stateful session bean to hold onto the original app module and therefore a cached version of the original data? Assuming that modDate value is "not-updated" via UIs/any other means, you can put logic in setModDate method to verify if the modDate value in the entity is different from what's coming in and if it is, then throw RowInconsistentException.
    readXML() does call setAttribute on the Entity, which will end up in the setModDate method to run thru' the above logic.

  • Change pointers to trigger the IDOC

    HI
    I am having a selection screen with fields to create a custom info record (transaction VD51/ VD52 )
    Customer
    material
    salesorganisation
    distribution channel
    division
    if we can use change pointers to determine when procedure is triggered.
    Please provide the steps for that (including change document)or we need to check the CDHDR table using the following fields.
    Plz suggest

    Change pointers is the one of the IDOC processing method in ALE.
    In this once we make the config to any of messages type , if any changes are made in sending system then IDOC will be posted directly to destination with user interation.
    Changes pointers are configured using BD50,BD51,BD53,BD61.
    Change pointers are stored in tables BDCP and BDCPS (or BDCP2 in case of high-performance setting) - like CDHDR and CDPOS for change documents (but this is not a controlling table!).
    1. Do you really need change pointers?
    You need change pointers to distribute changes with the ALE SMD tool. If you do not use this tool, you do not need to write change pointers.
    You can deactivate change pointers and activate them again with the transaction BD61.
    2. Do you really need to activate change pointers for this messages type?
    If some messages types are no longer to be distributed by change pointers, you can
    deactivate change pointers for this message type.
    You can deactivate change pointers for the message type
    and reactivate them again in transaction BD50.
    For reduced message types, deactivate the change pointer with the
    Reduction tool (transaction BD53).
    Applications which write change documents will also try to write change pointers for ALE operations. These are log entries to remember all modified data records relevant for ALE.
    Most applications write change documents. These are primarily log entries in the
    tables CDHDR and CDPOS.
    Change documents remember the modified fields made to the database by an
    application. They also remember the user name and the time when the modification
    took place.
    The decision whether a field modification is relevant for a change document is
    triggered by a flag of the modified field’s data element. You can set the flag with
    SE11 by modifying the data element.
    For the purpose of distributing data via ALE to other systems, you may want to
    choose other fields, which shall be regarded relevant for triggering a distribution.
    Therefore R/3 introduced the concept of change pointers, which are nothing else
    than a second log file specially designed for writing the change pointers which are
    meant to trigger IDoc distribution via ALE.
    So the change pointers will remember the key of the document every time when a
    relevant field has changed.
    Change pointers are then evaluated by an ABAP which calls the IDoc creation, for
    every modified document found in the change pointers.
    The Change pointers are written from the routine CHANGEDOCUMENT_CLOSE
    when saving the generated change document. So change pointers are automatically
    written when a relevant document changes.
    The following function is called from within CHANGEDOCUMENT_CLOSE in order to write the change pointers.
    CALL FUNCTION 'CHANGE_POINTERS_CREATE'
    EXPORTING
    change_document_header = cdhdr
    TABLES
    change_document_position = ins_cdpos.
    Activation of change pointer update :
    Change pointers are log entries to table BDCP which are written every time a transaction modifies certain fields. The change pointers are designed for ALE distribution and written by the function CHANGE_DOCUMENT_CLOSE.
    Change pointers are written for use with ALE. There are ABAPs like RBDMIDOC
    which can read the change pointers and trigger an IDoc for ALE distribution.
    The change pointers are mainly the same as change documents. They however can
    be set up differently, so fields which trigger change documents are not necessarily
    the same that cause change pointers to be written.
    In order to work with change pointers there are two steps to be performed
    1) Turn on change pointer update generally
    2) Decide which message types shall be included for change pointer update
    R3 allows to activate or deactivate the change pointer update. For this purpose it
    maintains a table TBDA1. The decision whether the change pointer update is active
    is done with a Function Ale_Component_Check
    This check does nothing else than to check, if this table has an entry or not. If there is an entry in TBDA1, the ALE change pointers are generally active. If this table is empty, change pointers are turned off for everybody and everything, regardless of the other settings.
    The two points read like you had the choice between turning it on generally or
    selectively. This is not the case: you always turn them on selectively. The switch to
    turn on generally is meant to activate or deactivate the whole mechanism.
    The change pointers which have not been processed yet, can be read with a function
    module.
    Call Function 'CHANGE_POINTERS_READ'
    The ABAP RBDMIDOC will process all open change pointers and distribute the
    matching IDocs.
    When you want to send out an IDoc unconditionally every time a transaction
    updates, you better use the workflow from the change documents.
    Reward if useful

  • Fast change for statistical delivery date in me21n

    hi
    need fast change for statistical delivery date in me21n
    in me21n when i enter on to fast change screen i doesn't find statistical delivery date
    can anyone tell me the process
    thanks

    Dear Anudeep,
    You cannot change this via "Fast Change".
    Please see the usage of this field.
    Calculation of the delivery time is an element in the determination of a vendor's adherence to delivery dates (that is, the vendor's delivery timeliness, or on-time delivery performance) in MM Vendor Evaluation.
    If it becomes known that the vendor can only deliver ordered goods some days later than originally stipulated, for instance, you can change the delivery date accordingly for materials planning and control purposes. However, the statistics-relevant delivery
    date remains unchanged.
    As a result, the vendor's "on-time delivery performance" score worsens. At the same time, it is ensured that materials planning and control works on the basis of the right date.
    Regards,
    ian, Wong Loke Foong

  • Send changes of Artical master data from sap to nonsap (idoc outbound prog)

    Hi Experts,
    I am  new to interfaces
    I have one requirement in Idocs, i.e the changes of artical master data is send to sap to nonsap system through idoc.
    idoc type is ARTMAS05, msg typ is ARTMAS.
    I am giving some information for my object.
    For article (MATNR) by site (WERKS plant)
         If MRP Type (MARC-DISMM) = u201CX0u201D
              Then if changes to fields:
              MARC-KZAUS     Discontinuation ind.
              MARC-AUSDT     Effective date out
              MARC-NFMAT     Follow-up article
    Then send idoc type ARTMAS05 with the following data
    segment E1BPE1MATHEAD
         MATERIAL
    segment E1BPE1MARCRT
    MATERIAL             PLANT                     DISCONTINU            
    EFF_O_DAY            FOLLOW_UP
    Systems Referred to:
    The planning system for our client is nonsap system. This software requires to be informed of relevant changes on articles in order to start its planning runs. When an article is superseded by another we have to send the replacement article (if any) as well as the discontinuation date.
    Dependencies/Prerequisites :
         Change pointers for Article master active
         Change pointers active for fields:
         MARC-KZAUS      Discontinuation indicator
         MARC-AUSDT     Effective date out
         MARC-NFMAT     Follow-up article
      Idoc ARTMAS05 required with reduction in order to only send relevant fields
    Filter to only send idocs for materials in the u201CAutomotiveu201D type where MARC-DISMM = u201CX0u201D.
    So this is my requirement, please send some sample code or idea how to complete object.
    with regards,
    gs reddy.

    Hi,
    All the details mentioned seems to be correct.
    just change one "automotive" material and check change documents are getting generated.
    i hope partner profiles are already in place.
    once change docuements are inpalce check RBDMIDOC program is scheduled in back ground or you can manually execute the program for testing.
    and check the IDoc generated.
    do you  want supress some segements?
    di your NOn-sap ssytem can accept Idoc?
    Suresh

  • Change Apple ID country,then change back, all the data of apps store is gone

    Use iPhone 5s change Apple ID country,then change back, all the data of apps store is gone,the apps I uninstall but buy before if I want to buy before,I need to buy again!Is there any way that I can fix it? Thank you!

    Apple ID is only valid for purchases in the Swiss iTunes Store.
    The issue is that your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • How to get a current date timestamp ?

    Hi,
    I need to get the current date timestamp in a format DDMMYY HH:MM:SS.mmmm and store it in an Oracle column which is declared as of type DATE.
    Also i need to store this timestamp in a string format.
    Please give your inputs in this regard, which is appreciated.
    Regards

    Dates dont' have formats. String represenations of dates do.
    If you have a DB column that is of char or varchar type but represents a date/time, you should change your data model so that the column type is date or time or timestamp. If you can't do that, and need to put a date into a particular format, use java.text.SimpleDateFormat.
    To get the current date and time, look at System.currentTimeMillis, java.util.Date, java.sql.Date, java.sql.Timestamp.
    To put one of these into a database, use PreparedStatement. For example, a timestamp would be something like this: PreparedStatement ps = con.prepareStatement("insert into some_table (some_timestamp) values(?)");
    Timestamp ts = new TimeStamp(...);
    ps.setTimestamp(1, ts);
    ps.excuteUpdate();

  • Primary key and change indicator

    So I was creating an employee and then I committed the records and then I tried to delete a record from the same table. I encountered an error like below:
    "Another user has changed the row with primary key"
    So I searched the solution of this problem, and then I read this article https://blogs.oracle.com/onesizedoesntfitall/entry/the_case_of_the_phantom
    This is the solution according to the above article:
    Alternatively you can set the Change Indicator on one of the attributes.  This will work as long as the relating column for the attribute in the database itself isn't inadvertently updated.  In turn you're possibly just masking the issue rather than solving it, because if another developer turns the Change Indicator back on the original issue will return.*
    Well, then set the Change Indicator of the EmployeeID attribute (which happens to be the primary key of the table). Now its working fine.
    But my question is: Is this okay if I am setting the Change Indicator of a primary key attribute to be True?

    >
    Sonull wrote:
    I have set the Type property of employeeID as DBSequence. So when the system creates a row, the values displayed for the employee ID is in the form of negative numbers (-1, -2, -3). Only after committing the rows does the trigger gets fired, and the next number in the sequence is generated, and the row is saved in the database.
    >
    I don't understand you? are you asking a question or provide information?
    When set the type of an attribute to DBSequence, by default Jdeveloper sets the Refresh on Insert property.
    What I want to say is that the problem is not in the EmployeeId attribute.

  • Add date-timestamp to PDF

    Hi,
    Is there a way I could add current date-timestamp to the PDF, when the PDF is opened or printed?
    I read the iTEXT documentation and it seems its possible to add javascript to the PDF document using iTEXT and this javascript will get executed when the PDF is opened.
    I was successful in adding the "this.print" javascript; however, I am still struggling to figure out how to add "this.addWaterMarkFromText" javascript. I know I can use the iText API to add watermarks, however, I want to use the Adobe Javascript instead. This exercise is just to figure out how to add javascript to PDF.
    This would help me figure out how to use various Adobe javascript events such as "WillPrint" to dynamically add the timestamp just before the Print button is clicked.
    Any help will be highly appreciated.
    Thanks,
    Shilpa.

    Hi Shilpa,
    Please note, I am using C# in my example code, but the solution is similar in Java.
    To answer your question regarding using javascript events like Will Print, one way to add a timestamp by first creating a (blank, readonly) field and adding it to your document using iText using, say iTextSharp.text.pdf.TextField. Then you assign javascript to the WillPrint event with writer.SetAdditionalAction(PdfName.WP, PdfAction.JavaScript(jScriptBeforePrint, writer))where writer is an instance of iTextSharp.text.pdf.PdfWriter.
    The javascript, in this case jScriptBeforePrint, will change the value of the field you created earlier to contain the date-timestamp value. For example, you can use:
    this.getField('datestmp').value =\"This document was printed at \" + util.printd(\"HH:MM on mmmm dd, yyyy\",new Date());where datestmp is the name of the field created earlier.
    (by the way Will Print is initiated after the clicking of the print button, not before - as per your post).
    Callan

  • [Access 2010] Change default formats for data types

    Whenever I import data, the default format for Boolean data types is "-1,0." I know how to subsequently change this format to "Yes/No," but I'd like to change the default
    setting to "Yes/No." Is this possible?
    Thanks in advance.

    Hi,
    I found you post the same question in other place and got the advice. I agree with Mr. Kees suggestion. The data type is a build-in default setting with Access, we can't change it. We may try the workaround via VBA to test.
    http://forums.cnet.com/7723-6129_102-627633/access-2010-change-default-formats-for-data-types/#message5617496
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Have a good time.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Mass Change to Requested Delivery Date

    Hallo Everyone,
    We have a scenario where we want to change the Requested Delivery Date to all Line Items when it is changed in Header Level.The reason is we might have 80-120 Line items in a Order.It is difficult for a person to change the req. delivery date for each line item.
    Can any one tell me is there any standard way or FM to do ?
    Thank You in advance.
    Regards
    RR

    Hi Stephen ,
    Thank You for your quick response , i did exactly as you have guided .I havnt see anything that does match .
          And forgot to mention in my first message ,but some times i need to able to change one or two items manually . If i use BADI is it possible ? to change a one or two line items manually ?? as i am concerned when i save it again the BADI will trigger back line item requested delivery date to header level ?? Please guide me .
    Thanks
    RR

  • Post Calculation Computation for Date/Timestamps

    Hello,
    I would like to know how to apply Post Calculation Computation for Dates/Timestamps?
    I had trouble trying to add this to the Post Calculation Computation area:
    TO_CHAR(:P1_TARGETDATE, :DEFAULT_DATE_TIME_MASK);
    or should it be something more like:
    SELECT
    TO_CHAR(:P1_TARGETDATE, :DEFAULT_DATE_TIME_MASK) FROM DUAL;
    What would be the correct code to allow me to format a date/Timestamp where a Application Variable of DEFAULT_DATE_TIME_MASK could be used as well. (I dont want to use the existing Format Mask.)

    Just a hunch, but you might be having a problem because of the double quotes. Oracle likes single quotes. You also might want to forgo the quotes entirely.
    As for an invalid number, is it possible that one of the values that you are adding might be NULL. You can't add NULL to a number or you get an error. There are two solutions to that. One would be to do an NVL around each number you are adding (changing it to zero if the value is NULL). The second option (and easier option) is to use the SUM function. Mathematical functions like SUM and AVG ignore those values that are NULL.

  • Regarding "Change Indicator + History Column + Refresh After Update"

    Hi,
    In our app, we are not using any separate column for change indicator and using LastUpdateDate as both Change Indicator and History Column(Modified On) as well.
    The problem is that when 'Refresh After Update' option is not selected for this column, then RowInconsistentException is throw on commit for multi user scenario, and when 'Refresh After Update' option is selected for this column, then exception is not thrown but value is also not updated. Here is the summary of observations:
    Settings for LastUpdateDate Column:
    Only Setting History Column (Modified on)
    Single User - Value Updated , no exception is thrown.
    Multi User - throws (oracle.jbo.RowInconsistentException) JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[3 ]. for second user.
    History Column ( Modified on ) & Change Indicator property checked.
    Single User - Value Updated , no exception
    Multi User - throws (oracle.jbo.RowInconsistentException) JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[3 ]. for second user.
    History Column ( Modified on ) & Change Indicator property checked & Refresh After Update option enabled.
    Single User - Value not updated, no exception thrown
    Multi User - Value not updated, no exception thrown
    What I want is that in multi user scenario, the value of LastUpdateColumn should be updated and no exception should also be thrown.
    Is this a bug in ADF Techstack or am I missing something?
    Thanks,
    Lalit.

    First and Second scenario are as expected.
    1) Only Setting History Column (Modified on)-> Last updated value will be updated when a user changes anything in that entity. But if another user tries to update the entity on top of a stale state then lost update detection is performed by ADF by comparing every attribute of entity against current values in database. So it will give error.
    2) History Column ( Modified on ) & Change Indicator property checked.
    Same thing will happen as in case of first scenario but this time detection of lost update will be more efficient as framework will check only that column for "lost update" detection for which change indicator is selected.
    But for the third one where you have selected the history column LastUpdatedDate as a change indicator with "Refresh On Update" selected, the behaviour is strange. I do not know why the last updated date is not updated after a commit. It does not throw any error also which it actually should. It is not detecting lost updates in this scenario. Probably because the only change indicator LastUpdatedDate is not changed.
    Regards,
    Harmeet

  • Changing creation or modification date with Automator

    Three computers access iTunes in my apartment. The files are located on a drive connect to an airport extreme base station. Each computer needs to import music and have physical access to it for iPods and playlist creation. Since iTunes does not automatically check for new files I am in the process of building an Automator script to fix the problem.
    I have created an Automator action that allows the user to control-click a folder with audio files in it and have Automator manually change the file name, then import the files into iTunes. My hope was that this would change each files modification date so that, at a later time, another Automator action could search the network drive for newly added media via the modification date. My problem is that simply changing the name does not change the modification date. Even creating an archive and unzipping it before importing does not change the date.
    What action can I do with Automator that will change the modification date on those files so that I can search for them later? I know I can add the date to the file name but I don't want a user to have to guess which dates files were added (i.e. I'd have to tell Automator "look for this specific date in the file name' which is obviously unhelpful if I don't know the specific date).
    Long story short, how can I change either dates with Automator?

    Create a column with the following.
    TIMESTAMPDIFF( SQL_TSI_day, Opportunity."Created Date" , CURRENT_TIMESTAMP )
    add a filter on this column, for example, <=90.
    the SQL_TSI_month does not return accurate number of months.
    Cheers!
    Shilei

Maybe you are looking for