Only Once in A day

Can anbody help me to write the code for following task
i have to create a program Zabc which can be run only once in a day
if you run Zabc second time you should get message that you can run this program only once in a day
very urgent

hi
good
if you are running the program manually than it is not possible to fulfill your requirement, yes if you r scheduling the job once in a day than it will run once in a day but if someone run the same report manually than you cant do anything, or if anybody from different id try to schedule the job second time in a same day than you might dispaly a error message, for that you can refer the table TBTCS which will help you to give the details of the user who has again schedule the job int he same day and by giving a condition you can display a message for the user other than your username.
thanks
mrutyun^

Similar Messages

  • Password self-service errors -  Password can be changed only once in a day

    Hi experts,
    We've been using password resets without issues for several months. Recently we upgraded from version 5.3 SP12 to SP14.
    I've read the CUP release note that explains that how password resets now validates against the ABAP system parameter for login/password_change_waittime.
    The errors we are experiencing happen even when the users' password is reset for the first time in a day.
    Error message:
    X Unable to reset password in the following system(s): ECDCLNT100. Password can be changed only once in a day
    Please advise if you have experienced this error, if there is a resolution, and/or if there is a way to disable the parameter check.
    FYI - We are only using password resets in our non-production systems and are not concerned with multiple daily password resets.
    Thanks.

    Hello
    Are you using PSS with a CUA system?
    Then you can try to upgrade the CUA to virsanh sp16.
    or maybe this note: 1552707
    KSM

  • Trigger Process chains only once in a day

    Hi All,
    I have a requirement where a process chain triggers on arrival of some files.Now I want this chain to trigger only once in a day even if file arrives before the start of next day.How can i acheive this.
    Reagrds,
    Raj

    Hi,
    Please use below:
    REPORT  ZCHECKPCNEW.
    TABLES : RSPCLOGCHAIN.
    DATA : IT_TAB TYPE TABLE OF RSPCLOGCHAIN,
           WA_TAB TYPE RSPCLOGCHAIN.
    FIELD-SYMBOLS <FS> LIKE LINE OF IT_TAB.
    PARAMETERS :LV_CHAIN TYPE RSPCLOGCHAIN-CHAIN_ID.
    SELECT * FROM RSPCLOGCHAIN INTO TABLE IT_TAB
    WHERE CHAIN_ID  = LV_CHAIN
    AND DATUM = SY-DATUM.
    SORT IT_TAB DESCENDING BY DATUM ZEIT.
    READ TABLE IT_TAB INDEX 1 ASSIGNING <FS>.
    IF SY-SUBRC = 0.
      IF <FS>-ZEIT < SY-UZEIT.
      MESSAGE E000(SABAPDOCU) WITH 'Error'.
      ELSE.
      MESSAGE I162(00) WITH 'Successful'.
      ENDIF.
    ELSE.
    MESSAGE I162(00) WITH 'Successful'.
    ENDIF.
    -Vikram

  • FI, GL datasources support delta only once in a day

    Hi All,
    Please tell me in BW these FI,GL datasources like...(0FI_GL_4, 0FI_AP_4, 0FI_AR_4)supports delta only once in a day??/  ...
    Please tell me why delta load possible one time only  in a day??/.
    Regards,
    Venkatesh.

    Hi ,
    For general -Ledger data source,  the delta process uses a lower interval setting of one hour (this is the default setting).Ok so after every hour the delta come. In this way, the system always transfers all postings made between one hour before the last delta upload and the current time.
    Please folow the below link for more details :
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/757140723d990ae10000000a155106/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/e8/747140723d990ae10000000a155106/frameset.htm
    Thanks,
    Deepak

  • Abap report need to run only once in a day

    can i restrict my abap report that it should run once in a day. is there any authorization funda? or any sap provided concept? how can i approach this?

    hi,
    no authorizations for tht if u want try this code i think it will help u
    DATA:count,date LIKE sy-datum.
    GET PARAMETER ID 'MAX' field count.
    GET PARAMETER ID 'DAT' FIELD date.
    IF date is initial.
    date = sy-datum.
    ENDIF.
    IF date = sy-datum.
    count = count + 1.
    else.
    message e000(zmsgtab)."u con't execute it more than once in a day.
    endif.
    set PARAMETER ID 'MAX' field count.
    IF count > 5.
    count = 0.
    set PARAMETER ID 'MAX' field count.
    date = date + 1.
    set PARAMETER ID 'DAT' field date.
    message e000(zmsgtab)."u con't execute it more than once in a day.
    ENDIF.
    write:/ 'this is my program'.
    <b><removed_by_moderator></b>
    <b><removed_by_moderator></b>
    feel free to ask any quiries
    <b><removed_by_moderator></b>
    <b><removed_by_moderator></b>

  • How to get lauchctl daemons/agents to run only once a day

    How do you get a daemons/agents to run only once a day regardless of the error code of the .sh you are running?
    (not I'm not looking for run once or run on reboot. I want a job to run at 3am every day and it has several bash commands in it. Regardless of the returns by any of the commands in the script, I only want this to run once - NO RESPAWN).

    Ok still not working.. here is the plist
    the .sh file does file processing and then uploads xml files to my server and should run once a day. Here I have it running at 11:45am. It completes and then runs again and again and again.
    The plist is placed in LaunchAgents and loaded with $launchctl load com.iclassicnu.crontabtest.plist
    ideas?
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>label</key>
    <string>com.iclassicnu.crontabtest</string>
    <key>ProgramArguments</key>
    <array>
    <string>/Users/dan/Desktop/iClassicNu/Idea/Forexite/ForexUpdate.sh</string>
    </array>
    <key>WorkingDirectory</key>
    <string>/Users/dan/Desktop/iClassicNu/Idea/Forexite</string>
    <key>OnDemand</key>
    <false/>
    <key>Nice</key>
    <integer>1</integer>
    <key>StartCalendarInterval</key>
    <dict>
    <key>Hour</key>
    <integer>11</integer>
    <key>Minute</key>
    <integer>45</integer>
    </dict>
    <key>StandardErrorPath</key>
    <string>/Users/dan/tmp/icnTest1.err</string>
    <key>StandardOutPath</key>
    <string>/Users/dan/tmp/icnTest1.out</string>
    </dict>
    </plist>

  • 0crm_mktattr_attr - delta only once per day possible?

    Hi all,
    we want to use delta functionality for 0crm_mktattr_attr. The problem is, that only once a day the delta for a business partner is beeing transfered to the bw. If you have done another change on the same business partner, no delta is being generated (neither that day nor the next day - so this change is lost). If we change another business partner, a new delta is created (if the business partner was not changed before the first delta. Is there any other setting we have to do to transfer get each change?
    We're using CRM 7.01 SP07, BW 7.0. 0crm_mktattr_attr is already set to Delta-method AIE, changepointers (general) are activated and changepointers for message type RS0026 are also activated.
    Regards,
    Florian

    Hi Florian,
    Any solution for this problem?
    I also need to load data 0CRM_MKTATTR_ATTR and I´m not sure which change pointer I have to activate. For the INITIAL data load into SAP CRM, we deactivate the Change Pointer RS0027 as SAP oriented.
    If I set it back, will this Datasource be Delta enabled?
    Thanks
    Fábio

  • I am getting entries which are 'all day' entries duplicated 8 to 9 times. I have updated my software on the phone to the latest version. Entries in iCal are only once.  I have completely emptied my iPhone of all data. Has Apple resolved the issue yet?

    I am getting entries which are 'all day' entries duplicated 8 to 9 times. I have updated my software on the phone to the latest version. Entries in iCal are only once.  I have completely emptied my iPhone of all data. Has Apple resolved the issue yet?

    Simple solution. Get a real internet service and not a cell phone internet connection service it was never meant to be used as the primary internet service
    And how do you lose a home and job and be sued as you claim. What over 10 Gb of data? Give me a break
    In my city small claims is $5000.00
    And over that amount you can go to a superior court to have your issue settled.
    http://www.bbb.org
    Good Luck, Elector

  • Materialized View to run only once in a year...

    Hi everybody...
    I want to create a materialized view which will run only once in a year and specifically some minutes after 00:00 a.m. on new year's day,
    so i created the following:
    CREATE MATERIALIZED VIEW <mv_name>
    BUILD IMMEDIATE
    REFRESH START WITH TO_DATE('01/01/2007 00:15:00','DD/MM/RRRR HH24:MI:SS')
    NEXT SYSDATE+366
    I have two notes:
    1) how to declare the refresh to be done the first new year's day after the day it'll be created , i mean not static date (01/01/2007)
    2)some years are leap and some are not , so in order to run every new year's day how should i transform the above..????
    3)is there any view which displays the next run of a materialized view..???
    the view DBA_MV_REFRESH_TIMES displays the last refresh of mv's...
    I use Oracle 10.2.0.1 on XP ...
    Thanks , a lot
    Simon

    1).
    use the expression that evaluates to next january first.
    SQL> select sysdate, add_months(trunc(sysdate, 'yyyy'), 12) from dual ;
    SYSDATE     ADD_MONTHS(
    19-JUN-2006 01-JAN-2007
    1 row selected.
    SQL>2). for this also use the same expression that will evaluate to the january first of the year after that.

  • How to make for loop pass only once in a next() method

    Good Day!
    Can anyone help me or suggest any idea to resolve my problem with the below code, wherein it will only pass the for loop only once. I already tried inserting the for loop in side the if (sqlset4.isFirst()) condition but the problem is it only retrieved the first row of the resultset.
    Cheers!
                   Statement sOutput = consrc.createStatement();
                            ResultSet sqlset4 = sOutput.executeQuery(xquery);
                            ResultSetMetaData rsMetaData = sqlset4.getMetaData();
                            int numberOfColumns = rsMetaData.getColumnCount();
                            String writefld = "";
                            while (sqlset4.next()) {
                                 writefld = "";
                                 for (int i = 1; i <= numberOfColumns; i++) {
                                     if (xxformatid.equals("1") || xxformatid.equals("3")) {
                                         writefld = writefld + "sqlset4.getString(" + i + ").trim()" + "|";
                                writefld = writefld.substring(0, writefld.length() - 1) + ")";
                                output.write("\r\n");
                                output.write(writefld);
                            output.close();I am using Netbean IDE 6.8
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi

    Hi everyone!
    What I actually trying to do is that I have a multiple tables and from these tables I'm going to write each of it into a flatfile that is a pipe delimeted that is why I have to make a loop to know how many fields I am going to write. The code that was attached are actually working, my only concern is that it will take a longer time of processing cause every record of a table it will pass to the for loop(checking how many column) wherein number of column/ were already known on the first loop.
    Hi kajbj,
    I think what your trying to explain is almost the same with below code which i had already tried. The problem with this is that the every loop of the outer loop data retrieve is only the data of the first record.
                   Statement sOutput = consrc.createStatement();
                            ResultSet sqlset4 = sOutput.executeQuery(xquery);
                            ResultSetMetaData rsMetaData = sqlset4.getMetaData();
                            int numberOfColumns = rsMetaData.getColumnCount();
                            String writefld = "";
                            while (sqlset4.next()) {
                                 writefld = "";
                                 if (sqlset4.isFirst()) {
                                    for (int i = 1; i <= numberOfColumns; i++) {
                                        if (xxformatid.equals("1") || xxformatid.equals("3")) {
                                            writefld = writefld + "sqlset4.getString(" + i + ").trim()" + "|";
                                writefld = writefld.substring(0, writefld.length() - 1) ;
                                output.write("\r\n");
                                output.write(writefld);
                            output.close();

  • PS10 Elements does not open in Windows 8, or opens only once. Can it be fixed?

    PS Elements 10 preinstalled on my new computer with Windows 8. It worked fine for a week, now opens once, then won't open again, or doesn't open at all. Adobe gives no support to fix this (they told me to research the answer on their site), yet their info says PS 10 and Windows 8 are compatible. Automatic troubleshooter gives non-compatibility message. Can this be fixed? Have spent many hours trying to figure this out. Uninstalled and reinstalled. Nothing works so far.

    Thank you for your help. I tried ctrl-alt-shift, and it worked a few times, but not every time.  After trying your suggested fix, here's what I've since found that works - so far - today.Open Task ManagerClose PS Elements 10Close Task ManagerLaunch PS Elements 10 Please keep in mind that I was closing the program the usual way (from the program) all along. I used an older version of PS Elements for years on my old computer (Windows XP), and never had a problem launching or closing the software. This problem came about on a new computer with PS Elements 10 and Windows 8. No other versions of PS Elements were installed on the new computer, nor were any settings brought over from the old computer. Again, thanks for your input. Will keep your suggestion in mind for any future troubles with Adobe products.
    A Digiovanni
    Date: Fri, 11 Jan 2013 00:51:43 -0700
    From: [email protected]
    To: [email protected]
    Subject: PS10 Elements does not open in Windows 8, or opens only once. Can it be fixed?
        Re: PS10 Elements does not open in Windows 8, or opens only once. Can it be fixed?
        created by c.pfaffenbichler in Photoshop for Beginners - View the full discussion
    Good day! You may want to post on the Photoshop Elements Forum. http://forums.adobe.com/community/photoshop_elements In general trashing the Preferences (by keeping command-alt-shift/ctrl-alt-shift pressed while starting the application) can be helpful with malfunctions in many Adobe applications.  Regards, Pfaffenbichler
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4985553#4985553
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4985553#4985553
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4985553#4985553. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop for Beginners by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I bought an ipod in 2006 and used it only for a few days, and i lost it when it fell two times from my hand and it wasn`t working, help me regarding this.

    i bought an ipod in 2006 and used it only for a few days, and i lost it when it fell two times from my hand and it wasn`t working, help me regarding this.
    REGARDS
    RISHABH AULIYA

    Apple - Support - iPod - Repair pricing - http://www.apple.com/support/ipod/service/prices/
    ipod repair options - https://discussions.apple.com/thread/3900047 and https://discussions.apple.com/message/18867033
    Service Answer Center - iPod - http://support.apple.com/kb/index?page=servicefaq&geo=US&product=ipod  <-- enter correct country once on page.

  • HT201317 Is it possible to retrieve photos once the 30 days is up or once the photo stream exceeds the 1000 photo limit?

    Is it possible to retrieve photos once the 30 days is up or once the photo stream exceeds the 1000 photo limit?

    No.  Photo stream photos are not backed up so there is no way to restore them.  Only camera roll photos are backed up.

  • Is there some utility that could wake a computer more than once in a day

    I need to be able to bring my computer out of sleep when I'm not around to run some automator routines. The built in software in Energy Saver is great but it only lets you set your computer to wake once in a day. I probably need mine to work a couple of times in a 24 hour period.
    Thanks
    Kerry

    Hi,
    There is no limit to the number of times Sysprep can run on a computer. However, the clock for Windows Product Activation begins its countdown the first time Windows starts.
    If you anticipate running Sysprep multiple times on a single computer, you must use the SkipRearm setting in the Microsoft-Windows-Security-Licensing-SLC component to postpone resetting the activation clock. Because you can reset the activation clock only
    three times, if you run Sysprep multiple times on a computer, you might run out of activation clock resets. Microsoft recommends that you use the SkipRearm setting if you plan on running Sysprep multiple times on a computer.
    Alex Zhao
    TechNet Community Support

  • [EVL] Execute constraint check only once (per model)

    Hi All,
    I have been working with Epsilon for a few days now and I love the tool so far
    I am currently working on a model validation but I cannot find an elegant way to perform a certain check only once for the entire model. The casus/Meta-Model is very simple. I have a Node that has 0..* references to itself. The idea is to have a very simple tree where nodes have a reference to their parent.
    What I want to check is that there is one and only one root node, so only one node without a reference. This results in the following check: AT!ATNode.allInstances.select(n|n.Parents.size() == 0).size() = 1
    I do not know where to perform this check however. If I perform it in the context of the node, it (correctly) returns an error, but does this for every node.
    I also tried to have the entire model as 'context' or to apply the check in a pre-condition, but could not get any of these approaches to work. I also could not find a suitable guard to put on the constraint.
    Can you help me find a more elegant solution?
    Greetings,
    David

    Hi David,
    Quote:an elegant way to perform a certain check only once for the entire model
    May be you could model the "entire model" ... I mean, it's a kind of a good practice to create a ModelRoot class containing all your nodes. [A better name could be "Tree" or another appropriate name according to your domain]
    Then your validation wizard, with the exactly same expression, could be set on this class, a.ka. the "entire model" ?
    Furthermore, you could also ensure the root unicity by setting proper cardinalities in the metamodel, and avoid writing a check.
    I even met a special case where I had to model explicitely the RootNode as a class => A tree contains one root node which itself contains nodes ...
    Cheers,
    --Eric

Maybe you are looking for