Populate date fields when closing or canceling document

When any document closes or is canceled, populate the existing close date and cancel date with the date of the transaction. This would greatly help custom reporting.

Hi!
1) in query designer , go to properties of keyfigure there u can change the display name just try to change the name thats visible by default  u can see the name of keyfigure which can be changed.
2) & 3) u have to use abap code i n update routine and updates rules are in BW
just search the forum for examples there are  a loot of them in SDN.
if u r using 2004s
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/content.htm
else
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a64fae07211d2acb80000e829fbfe/content.htm
Message was edited by:
        Mohan Krishna

Similar Messages

  • LiveCycle ES2 - Auto Populate Date field when signed

    Good afternoon,
    I've got a signature field called "sgnPOC" and a date field called "sgnPOCDate" I'd like to have the date field filled in automatically when the sgnPOC is digitally signed.
    I added the following to the postSign* event to sgnPOC.
    FORM.Main.sgnPOCDate.rawValue = util.printd("mm/dd/yyyy", new Date());
    and different variations including setting the date to yyyymmdd and like. It just won't auto populate. It passes the script check in the script editor.
    any ideas?
    Thank you.

    Thank you,
    I tried the following - to no success.
    FORM.Main.sgnPOC::postSign - (JavaScript, client)
    var myDate=date()
    FORM.Main.sgnPOCDate.rawValue = Num2Date(myDate, "YYYY-MM-DD")
    I also tried this
    FORM.Main.sgnPOC::postSign - (JavaScript, client)
    var myDate=date()
    $.rawValue = Num2Date(myDate, "YYYY-MM-DD")
    Which also did not work, but wouldn't that need to know where to put the date?

  • Auto populate date field

    I have a JavaScript that I use to auto populate date fields. However, I've discovered that it doesn't work when the form is opened on an iPhone or Android phone. Is there a way to auto-populate a date field without using JavaScript?

    What app on the iPad are you using.
    Different apps on mobile devices have varying degrees of JavaScript compatibility.

  • How can I populate a date field when document is signed?

    I have 4 digital signature fields in a PDF form.  Next to each signature field is a date field (m/d/yyyy format).  I would like it so when the user signs the signature box that the date field next to it populates with todays date, then changes to read only (so it cannot be altered).
    In Adobe Acrobat Pro 9 I have this form and it has the following fields
    Signature1
    Signature2
    Signature3
    Signature4
    DateField1
    DateField2
    DateField3
    DateField4
    The Signature fields trigger a Topaz.GemSignPlus driver where the end user will be signing on an electronic signature pad.
    How can I use Javascript to detect when one of those Signature fields is populated and then fill in the date to the approrpiate date field?  I tried creating boolean variables initialized as false for each sig field.  Then when the signature is done I try to change it to true, but for whatever reason my javascript detecting the value doesn't do anything.
    I've searched the net endlessly for this solution.  I can't believe I'm having such a hard time finding an answer.  I mean how many places do you go where they ask you to "Sign and date here".  Every signature based document I've ever seen also requires a date.
    Anyway here's what I have.  In Document JavaScript functions I have a script name called populate date:
    function populatedate()
    var bSignature1 = new Boolean();
    var bSignature2 = new Boolean();
    var bSignature3 = new Boolean();
    var bSignature4 = new Boolean();
    if (bSignature1) {
        DateField1.value = util.printd ("m/d/yyyy", new Date());
    if (bSignature2) {
        DateField2.value = util.printd ("m/d/yyyy", new Date());
    if (bSignature3) {
        DateField3.value = util.printd ("m/d/yyyy", new Date());
    if (bSignature4) {
        DateField4.value = util.printd ("m/d/yyyy", new Date());
    In each signature field I have under the Signed tab "This script executes when field is signed:
    var bSignature1 = new Boolean(true);
    I'm trying to change it to true see.  My thinking is if its true than DateField1.value should print the m/d/yyyy in it from the built in Date() function.
    But maybe I am not getting this context correct.  I am new to Javascript in Adobe.

    It's quite a round-about script... Why not simply use the signature signing script to set the value of the date field? The correct syntax for that is:
    this.getField("DateField1").value = util.printd ("m/d/yyyy", new Date());

  • How to populate date & time when user enter data for custom table in sm30

    Can anyone tell me How to populate system date & time when user enter data for custom table in sm30..
      Req is
      i have custom table and using sm30 user can enter data.
    after saving date i want to update date & time in table
    Pls let me know where to write the code?
    Thanks in Advance

    You have to write the code in EVENT 01 in SE54 transaction. Go to SE54, enter your Ztable name and in the menu 'Environment-->Events'. Press 'ENTER' to go past the popup message. In the next screen, click on 'New Entries'. In the first column, enter 01 and in the next column give some name for your routine(say UPDATE_USER_DATE_TIME). Then click on the souce code icon that appears in blue at the end of the row. In the code, you need logic like below.
    FORM update_user_date_time.
      DATA: f_index LIKE sy-tabix.
      DATA: BEGIN OF l_total.
              INCLUDE STRUCTURE zztable.
      INCLUDE  STRUCTURE vimtbflags.
      DATA  END OF l_total.
      DATA: s_record TYPE zztable.
      LOOP AT total INTO l_total.
        IF l_total-vim_action = aendern OR
           l_total-vim_action = neuer_eintrag.
          MOVE-CORRESPONDING l_total TO s_record.
          s_record-zz_user = sy-uname.
          s_record-zz_date = sy-datum.
          s_record-zz_time = sy-uzeit.
          READ TABLE extract WITH KEY l_total.
          IF sy-subrc EQ 0.
            f_index = sy-tabix.
          ELSE.
            CLEAR f_index.
          ENDIF.
          MOVE-CORRESPONDING s_record TO l_total.
          MODIFY total FROM l_total.
          CHECK f_index GT 0.
          MODIFY extract INDEX f_index FROM l_total.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " UPDATE_USER_DATE_TIME
    Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated.

  • Populating Date field when Date = 00000000

    Hi Friends, Please help me with this , I have a requirement where user is not populating the date field "0objvalto" I want to populate that to 12/12/2020
    Abap code i put in transformation in BI but it is throwing error that 20.12.2008 format not correct
    Please help me correct the code or let me know what should i code to populate
    IF    SOURCE_FIELDS-REOBJVALTO = '00000000 '.
          RESULT = '20.12.2020'.
    ENDIF.
    Thanks
    Soniya

    Hi Soniya,
    Dates are internally stored as YYYYMMDD - so you must input them this way when you are doing in directly using ABAP.
    IF SOURCE_FIELDS-REOBJVALTO is INITIAL.
    RESULT = '20201220'.
    ENDIF

  • Issue loading ODS having single Data field when it is set to "No Updpate"

    Hi Gurus,
    I have a standard ODS object with 6 Keyfields & 1 Datafield.
    I am updating it from an Infosouce with help of Update Rules.
    In the Update rules:
    The 6 Keyfields are mapped from the Infosource fields which has relevant data.
    The one Data field needs to be set to "No Update" because there is no relevant field from the Infosource.
    Issue is surfacing with this Data field being set to "No Update"
    when I run the Infopackage even though there are relevant fields in Infosource for the 6 Keyfields none of them are getting updated.
    But when I set the Data field to "Overwrite" and for Update method give some constant or write some Routine and give the Result as 0, the rest 6 Keyfields are also getting updated from the Info source.
    My question is....
    If ODS is having only one Data field, is it mandatory that I have to update it with some value ?
    Can't I set it to "No Update" and load just the Key fields ?
    Thanks in advance,
    Venkat

    Thanks for the inputs.
    Even I had to agree if there is only one Data field in the ODS I have to set to some kind of Update...
    But.....I couldn't find it in writing (in  document) no where from the Web.
    Could anyone point out a document which confirms/explains this ?
    Thanks,

  • Auto-populate filename field when saving?

    I have a form which contains a Save button (using the following JavaScript: app.execMenuItem("SaveAs"))
    I have a required field on the form called 'ProjectTitle'. Is there something I can add to the button script which will pick up what the user types in the 'ProjectTitle' field and use that as the filename when they click the 'Save' button?
    They wouldn't be required to use the carried over text, but it will save time and prevent possbilty illogical filenames.
    Anyone? Thanks!

    Hi
    I know but you can try to use the field-symbols
    DATA: WI_AUFK TYPE CI_AUFK.
    DATA: FIELD(30) TYPE C.
    FIELD-SYMBOLS <FS> TYPE ANY.
    FIELD = '(PROGRAM NAME)STRUCTURE NAME'.
    ASSIGN (FIELD) TO <FS>.
    WI_AUFK-FIELD1 = ....
    WI_AUFK-FIELD2 = ....
    MOVE-CORRESPONDING WI_AUFK TO <FS>.
    So you're looking for the name of the program and the structure.
    I suppose they can be: SAPLCOIH, CAUFVD, so:
    DATA: WI_AUFK TYPE CI_AUFK.
    DATA: FIELD(30) TYPE C.
    FIELD-SYMBOLS <FS> TYPE ANY.
    FIELD = '(SAPLCOIH)CAUFVD'.
    ASSIGN (FIELD) TO <FS>.
    MOVE-CORRESPONDING <FS> TO WI_AUFK.
    IF WI_AUFK-FIELD1 IS INITIAL
    WI_AUFK-FIELD1 = ....
    ENDIF.
    IF WI_AUFK-FIELD2 IS INITIAL
    WI_AUFK-FIELD2 = ....
    ENDIF.
    MOVE-CORRESPONDING WI_AUFK TO <FS>.
    Max

  • Can a today's date be added in a date field when the submit button is pressed?

    I created a form with a submit button and the form is sent via email.  Can the date when the form is submitted show up in a date field with the button is pressed?
    Any help with this is much appreciated. Thanks.

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

  • Error with date field when inserting records into sql server from webdynpro

    Dear SDN's,
    I am trying to insert the records into sql server through my webDynpro program.
    I have created a date field in a dictionary with the datatype date.
    In my webdynpro program to insert the date i am following the below format.
    String dateString = "2006/12/10";
          java.util.Date d=new java.util.Date(dateString);
          java.sql.Date <b>date</b> = new java.sql.Date(d.getTime());
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,<b>REQDT</b>,ADVCE,ETADV,PURTR) values(21, '555-1212', '" + <b>date</b> + "', 5000, '20060501','hi')");
    when i try to execute it, it gives the following error.
    <b>com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "TRAVEL_HEADER" ("TRQID","PROJECTID","REQDT","ADVCE","ETADV","PURTR") VALUES (21,'555-1212','2006-12-10',5000,'20060501','hi')" contains the semantics error[s]: - type check error: new value (element number 3 (CHAR)) is not assignable to column  >>REQDT<< (DATE)</b>
    Please correct me.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    Hi,
    int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,REQDT,ADVCE,ETADV,PURTR) values(21, '555-1212', 'date', 5000, '20060501','hi')");
    try like this.
    I Think in SQL the general format to take date as input like this.
    INSERT INTO X VALUES ('10/30/56')
    thaks,
    Lohi.

  • Who knows how to make Word the default when closing Apple Works documents?

    step by step if you don't mind? i've never used Apple Script. is this the solution?
    thanks and Happy New Year

    Your question about making Word "the default when closing AW documents" is a bit unclear.
    An AppleWorks document is an AppleWorks document. If you want it in Word format, you must explicitly save a copy of it as such (and also append the .doc suffix to the proposed file name).

  • Focus lost in Date Field when the property autosubmit="true" is added

    Hi,
    I am using jdeveloper version 11.1.2.0.0.
    The issue I am facing is when I add the property autosubmit="true" for a date field and if I am selecting a date value using date picker, the focus is lost for the date field. But when I remove the property autosubmit="true" for the date field and if I am selecting a date value using date picker, the focus stays in the date field. This I tried in sample application with the default converter and validator. Anybody can help me with this issue?

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

  • Dell VENUE 11 PRO 7140 keeps crashing when closing a word document

    Hello all,
    I'm having an issue with a VENUE 11 PRO 7140. 
    Every time that i try to close a word document, the computer crashes giving me this error: KMODE_EXCEPTION_NOT_HANDLED. 
    On the eventviewer looks like TOASTER.EXE caused the problem...
    I know that that executable belongs to Dell data backup so i uninstalled it since it's an enterprise environment and we back everything up. I tried closing a couple of word documents and it worked fine.
    The issue happened again (BSOD) when i had the user logon and try to open one of her word documents..
    The other problem that i have is that i do not have full time access to that PC since the user needs to work with it. Had the chance to spend a couple of hours today but it doesn't seem stable.
    Another strange thing that might be related to that is that the App readiness service keeps stopping even though i configured it as automatic on startup and to restart after each failure...
    Any ideas what can probably cause this? Anybody has had any similar issues with this kind of tablet?

    Hello all,
    I'm having an issue with a VENUE 11 PRO 7140. 
    Every time that i try to close a word document, the computer crashes giving me this error: KMODE_EXCEPTION_NOT_HANDLED. 
    On the eventviewer looks like TOASTER.EXE caused the problem...
    I know that that executable belongs to Dell data backup so i uninstalled it since it's an enterprise environment and we back everything up. I tried closing a couple of word documents and it worked fine.
    The issue happened again (BSOD) when i had the user logon and try to open one of her word documents..
    The other problem that i have is that i do not have full time access to that PC since the user needs to work with it. Had the chance to spend a couple of hours today but it doesn't seem stable.
    Another strange thing that might be related to that is that the App readiness service keeps stopping even though i configured it as automatic on startup and to restart after each failure...
    Any ideas what can probably cause this? Anybody has had any similar issues with this kind of tablet?

  • Auto populate date field in form

    Hi
    I have been trying to get a field in a form to automatically populate with todays date. I have got a script which defines the default value for the field as: document.dform.currentdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
    where dform is the name of the form, and currentdate is the name of the field.
    This works fine.
    But I am using the form to populate another program, and the field name must be 00N20000001QbHo
    I assumed therefore that I should use: document.dform.00N20000001QbHo.value=displayfirst+"/"+displaysecond+"/"+displaythird
    But this does not work. In Dreamweaver the .00 appear red.
    I suspect that I need to put 00N20000001QbHo in parentheses or something similar.
    Can anyone help a newbie who doesn't know what he is doing? Full script below
    <form name="dform">
    <input type="text" name="00N20000001QbHo" size=11>
    </form>
    <script>
    var mydate=new Date()
    var theyear=mydate.getYear()
    if (theyear < 1000)
    theyear+=1900
    var theday=mydate.getDay()
    var themonth=mydate.getMonth()+1
    if (themonth<10)
    themonth="0"+themonth
    var theday=mydate.getDate()
    if (theday<10)
    theday="0"+theday
    var displayfirst=themonth
    var displaysecond=theday
    var displaythird=theyear
    document.dform.00N20000001QbHo.value=displayfirst+"/"+displaysecond+"/"+displaythird
    </script>

    JavaScript.is.not.Java.
    This is a Java forum. You could look out for a JavaScript forum at JavaScript.com. I believe JavaRanch also has one.
    db

  • Change Posting Date of an  existing OD Cancellation Document (VL09)

    Hello everyone,
    I have cancelled an outbound delivery  (VL09) with posting date 12.08 when the original posting was on 11.07. Now, I want to post a new outbound delivery with posting date 11.07 but it is not possible due to the availability check (The quantity to be returned will be delivered on 12.08 and I want to post on 11.07).
    Does anybody know how to solve the problem?
    I have tried to modify or cancel de material document created when cancelling the Outbound Delivery, but the system does not allow it. The best way would be to modify the date in which the Outbound Delivery was cancelled.
    I would really appreciate any help relating this issue.
    Thank you very much in advanced,
    Víctor Liedo

    It is not availability check that is causing the stock problem. It would occur even when available check is set to KP.
    What happens is, at the time of issue (601 movement in your case), the system checks the stocks as on that date.
    Because of VL09 with a posting date of 12.08, the stocks are now available as on 12.08 and not on 11.07 (which is in the past).
    So I would suggest the following:
    - Perform a PGI again with a posting date of 12.08
    - Perform a VL09 with a posting date of 11.07.
    - Perform a PGI with a posting date of 11.07
    This is a cumbersome process, but unfortunately this is how it works.
    Regards,
    Aroop

Maybe you are looking for

  • Install real time 8.6 problems

    Hello all, I´m trying to install Real Time 8.6 on a Desktop target. I ran the verification tool and it says that it´s a compatible target. I created the Desktop PC utility usb drive and formatted the target with no problems. When I restarted the PC t

  • Problem with adobe revel

    i cant upload some photo albums onto my adobe revel account. I have a subscription. I might have accidently uploaded them previously, but I deleted them. Now when i try to upload them again, nothing happens. The bar shows its uploading photos, but ac

  • Printer Profile- Custom Paper not installing

    I've been having an issue from prior to switching to the iPrint appliance where when I make a Printer Profile and add a custom paper size, that the custom paper does not get installed with the printer. I'm using the HP Universal Print Driver PCL6, v5

  • Will Lightroom 5 for PC work for a Mac? If not how do I get my Product key for a Mac? PC is on fritz.

    If is does not work for a Mac, how do I get my prodcut key for a Mac? My PC is on the fritz and I am getting a MAC from the in-laws.

  • Partition Exchange Swapping the data instead of Increment

    can somebody help me with the below scenerio: I have two tables stg_dim and final_dim table. It is working for first time loading but when i load second time into same partition swapping the data between two tables. For example : first time i loaded