I need write code executable at one time defined

I need write a code what a one time defined trigger a pl/sql, i know that command exist but in this moments not remember this command please help me.
Thanks

I am not sure if this is what you are looking for, but you can add a section at the end of a package body that will be executed one time only, when the package is first invoked within the user session. Although it must be placed at the end of the package body, it will be executed just one time before anything else in the package is executed. Here is an example:
SQL> CREATE OR REPLACE PACKAGE test_one_time_only
  2  AS
  3    PROCEDURE every_time;
  4  END test_one_time_only;
  5  /
Package created.
SQL> CREATE OR REPLACE PACKAGE BODY test_one_time_only
  2  AS
  3    -- this will execute every time:
  4    PROCEDURE every_time
  5    IS
  6    BEGIN
  7      DBMS_OUTPUT.PUT_LINE ('every time');
  8    END every_time;
  9 
10  -- this will execute one time only:
11  BEGIN
12    DBMS_OUTPUT.PUT_LINE ('one time only');
13 
14  END test_one_time_only;
15  /
Package body created.
SQL> SET SERVEROUTPUT ON
SQL> EXEC test_one_time_only.every_time
one time only
every time
PL/SQL procedure successfully completed.
SQL> EXEC test_one_time_only.every_time
every time
PL/SQL procedure successfully completed.
SQL> EXEC test_one_time_only.every_time
every time
PL/SQL procedure successfully completed.

Similar Messages

  • Need to create PIR using One Time Vendor

    Hi experts,
    I need to create Purchase Info. Record using One Time vendor (OTV) as the PIR field in PO is mandatory and as per the client requirement, this field cannot be changed to optional. 
    Is there any possibility to create PIR using OTV.
    Thanks
    Mohan

    You can create the PIR for one time vendor for material  with the vendor code similar to regular vendor PIR creation process. you can maintian the condition in PIR and same will be copied into PO.You need to check price during the PO since the price wil be change from vendor to vendor (since no fixed vendor is assigned). You can process GR/IR without any issues.Please let us know idf you need any specific requirement.
    warm regards
    Ramakrishna

  • Source code to generate one-time download URL?

    Done.

    Hello,
    Since this issue is related with web applications, I suggest that you could post to web related forum:
    http://forums.asp.net/
    If you want to know things about IIS, you could post your questions to IIS forum:
    http://forums.iis.net/
    The current forum is for .NET Class Libraries.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Execute more than one times external command of OS Windows NT

    Hi all,
            I have to execute more than one times from an ABAP program an exernal command of Operating system windows NT . In order to reach this goal I found the standard program RSBDCOS0 and it works very well if you execute it one time.  Unfortunately I have to execute this external command more than one times. Is there any soluiton?
    thank to all
                        Gino Bonfiglioli

    Well why are you using this report RSBDCOS0 to execute external commands?
    Because SAP provides certain function modules that can be used to call operating system commands; so you can use these functions to do your task.
    Just check the following link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm
    As you mentioned that you need to execute multiple times, you can easily put the call to function module inside a loop or do/enddo structure. for example consider the following
    do 3 times.
    call function 'SXPG_COMMAND_EXECUTE'                           
          exporting                                                 
               commandname                   = 'Put operating system command here'          
               additional_parameters         = full_filename        
               targetsystem                  = targtsys  
               stdout                        = 'X'                  
               stderr                        = 'X'                  
               terminationwait               = 'X'                  
          importing                                                 
               status                        = sxpg_status          
               exitcode                      = sxpg_exitcode        
          tables                                                    
               exec_protocol                 = sxpg_results         
          exceptions                                                
               no_permission                 = 1                    
               command_not_found             = 2                    
               parameters_too_long           = 3                    
               security_risk                 = 4                    
               wrong_check_call_interface    = 5                    
               program_start_error           = 6                    
               program_termination_error     = 7                    
               x_error                       = 8                    
               parameter_expected            = 9                    
               too_many_parameters           = 10                   
               illegal_command               = 11                   
               wrong_asynchronous_parameters = 12                   
               cant_enq_tbtco_entry          = 13                   
               jobcount_generation_error     = 14                   
               others                        = 15.                  
    write the results
    loop at sxpg_results.
    write:/ sxpg_results-length,
             sxpg_results-message.
    endloop.
    refresh sxpg_results.
    enddo.

  • One time Discount Coupon to be used during the Sales Order Creation

    I need help to configure a one time coupon to be used during a Sales Order creation. During 2009 our customers that have purchased more than certain amount we are going to give them a discount Coupon with a code that they can use just one time during his next purchase. I need help to configure this request.
    Thanks

    Hi Gilberto
    Go VK11.
    After maintaining the material & price, please go to -->Additional data.
    You will be displayed with Validity, Assignments, Assignments for retail promotion, Limits for Pricing, Payments.
    In the 'Limits for Pricing' you have three options - Max. condition value, Max number of orders & Max condition base value.
    In the Max number of Orders - enter 1 to avail this special price only for first order.
    Importent Note: to activate the ' Limit of Pricing' -- you need to tick 'Condition update' for the particular contion type, in condition type customising.
    FOr eg. condition type - ZR00 - you need to have special price for this condition type & want to limit only for first order order.
    In the customising for ZR00 - 'condition update' need to be ticked, then only you can get the above option.
    i hope it is clear to you
    thank you
    Anirudh

  • Enhancement / user exit for one time customer

    Hi,
    We need to upload address of one time customer when creating external billing documents.We are NOT creating billing document through sales orders . So I cannot do it manually. I have populated the Post Code and the city in the RV60AFZB but it doesnot flow to ACCFI structure, anybody has worked on this or has encountered and solved this problem before ??
    Regards,
    Narayani

    Hi,
    There are user exits to pass data to FI structures as well,
    EXIT_SAPLV60B_001: Change the header data in the structure acchd
    EXIT_SAPLV60B_002: Change the customer line ACCIT
    EXIT_SAPLV60B_006: Change the control line ACCIT
    EXIT_SAPLV60B_004: Change a GL account item ACCIT
    This might help you. If not please explain in detail about your requirement.
    Regards,
    Shashwath

  • One-time account - customer

    Hello All,
    Need some clarity on how one-time customer is useful.
    i have an one-time account customer, i want to know if this one-time customer is repeatedly ordering orders as normal sold to party, in this situation can i how do i handle this customer, can i continue with same a/c group or any best practices you suggest.
    Mahesh

    Hi ,
    One- time customer is the customer who performs all the Partner functions like sold to ship to , Bill to and Payer
    And  One time customer also comes to business occasionally for business.
    These are the two main  differences for the one time customer
    Hope this clears you.
    regards,
    santosh

  • How to re-execute the error items at one time in SMQ2(t-code)

    Hi Experts,
    today i went to check the Inbound Queues using SMQ2, there are so many error queues, how can i re-execute these error queues at one time?
    Thanks&Regards,
    Su

    Hi Su,
    While you are inside a particular error queue, choose 'Unlock' and in the popup give CF* (or whatever queue prefix you have) and run. It will execute all the error queues / LUWs starting with CF*, for example.
    Regards,
    biplab

  • Update 100 Row Data In One Time against a Code

    Dear Expert,
    How can I update a Master Data Row Table record using a particular code. Like I write a query Update Table Set U_UDF = 'Value' Where Code = 2
    U_UDF is the field of Master Data Row Table's field. There are 100 Row against code 2 & I want to update all row with same value but in one time only.
    How can I do that ?
    Plz help me.
    Regards

    Hi,
    Try this:
    SAPbobsCOM.GeneralService oGeneralService = null;
                                                    SAPbobsCOM.GeneralData oGeneralData = null;
                                                    SAPbobsCOM.GeneralDataParams oGeneralParams = null;
                                                    SAPbobsCOM.CompanyService sCmp = null;
                                                    SAPbobsCOM.GeneralData oChild = null;
                                                    SAPbobsCOM.GeneralDataCollection oChildren = null;
                                                    sCmp = SBO_Company.GetCompanyService();
                                                    oGeneralService = sCmp.GetGeneralService("UDO");
                                                    // Get UDO record 
                                                    oGeneralParams = ((SAPbobsCOM.GeneralDataParams)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                                    oGeneralParams.SetProperty("Code", ContractCode);
                                                    oGeneralData = oGeneralService.GetByParams(oGeneralParams);
                                                   // Add lines on UDO Child Table 
                                                    oChildren = oGeneralData.Child("CONTRACTDETAIL");
                                                    // Update an existing line 
                                                    oChild = oChildren.Item(LineId - 1);
                                                    DateTime dt = DateTime.Now;
                                                    oChild.SetProperty("U_STATS", "Terminated");
                                                    oChild.SetProperty("U_Updated", dt);
                                                    oChild.SetProperty("U_Remarks", "Service Terminated");
    //Update the UDO Record
                                                    oGeneralService.Update(oGeneralData);
    I have given you the sample. Just change it accordingly.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Have 3 sites on line and need to update them but each time i click on the site icon it opens always the same one... and i cannot access the other 2....

    Have 3 sites on line and need to update them but each time i click on the site icon it opens always the same one... and i cannot access the other 2....

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    You can download an already compiled version with this link: iWeb Switch Domain.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Use of field STCEG in One-Time Vendor PopUp for non EU Company Codes

    When enter a One-Time Vendor invoice by FB60 or MIRO transaction for Company Codes in non EU-member countries such as Switzerland, Norway or Canada the field VAT-registration number, STCEG, is hidden even when they should have a similar treatment. The field needs to be open when the local legal requirements are the same. How to activate the field for these countries?

    Hi Shriharsh,
    Why do you want to use one time vendor in this scenario? If in the current legacy system seperate data is maintained for all the vendors, then do not go for one time vendor.
    Create the vendor master for each vendor or for the group of vendors.
    You can do Auto generation of PO at the time of GR, that is best suitable for this scenario.
    Regards,
    Sheetal

  • Hello sir,i need labview code for a code which is written in matlab,latter one is attached with this message.

    hello sir,i need labview code for a code which is written in matlab...
    clc;
    close all;
    clear all;
    Ez= zeros(1,200);
    Hy=zeros(1,200);
    Ca=1;
    Cb=.4519;
    n=1;
    while(n<1500)
    for k = 2:200
    Ez(k)=Ez(k) + Cb*(Hy(k)-Hy(k-1));
    end
    Ez(1)=1;
    for k=1:199
    Hy(k)=Hy(k)+Cb*(Ez(k+1)-Ez(k));
    end
    plot(Ez,'b')
    hold on
    plot(Hy,'r')
    hold off
    pause(0.001);
    n=n+1;
    end
    thanku

    Well, this code is quite trivial and if you have to learn LabVIEW anyway, you might as well try to implement it.
    A few things to remember:
    The first array element in LabVIEW has index #0, while in matlab it has index #1, so everything dealing with array indices needs to be adjusted slightly.
    The zeroes function equivalent is "initialize array".
    Keep the array in a shift register as you update elements.
    use FOR loops.
    Use one of the graphs to display the data.
    LabVIEW Champion . Do more with less code and in less time .

  • What is the best way to execute code at a specific time?

    Hello,
    I have a problem. I need to execute some code at a specific time: subVI A should run at e.g. 2 seconds (after start) and stop at 3.5 seconds and subVI B should execute at 3.5 seconds until 5 s. The user can choose the time points. It could also be that subVI B has to execute before subVI A or at the same time.
    Time precission is not important +/- 20 ms is ok.
    I have implemented it like that: In a loop (period time approx. 20ms) I query if the timeframe has come and then the subVI will be executed.
    See attached picture.
    I don't believe that this is an economic way. It will produce high CPU load. How can I do it better?
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    Timeframe.PNG ‏9 KB

    @HaD
    Something like this?
    Johannes
    LabVIEW 7.1 (!)
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    Timeframe.vi ‏33 KB

  • This VI is part of a LabVIEW class. No part of the class is executable at this time because one of the member VIs is missing. However I am not missing a vi

    I only have 1 vi and its not missing.  The 1 vi claims the owning library has blocked the execution of the VI.  The class has the error "This VI is part of a LabVIEW class. No part of the class is executable at this time because one of the member VIs is missing. Find the missing member VIs on disk and load them into memory or delete them from the class definition in the project tree."
    But there is only 1 member vi!!??
    I had lots of other vi's as part of this class but somehow this class got botched with this error.  I removed all vi from the directory and from the class definition and re made just the one assessor vi and still got the error message.
    I have attached my ridiculously simple class.
    I have other classes that work fine but somehow this one seems to have gotten botched.  I really need to understand what happened here and how to recover/avoid this error or I will not have the confidence to develop large applications using classes.
    In other words...PLEASE HELP!
    Solved!
    Go to Solution.
    Attachments:
    Tree class.zip ‏14 KB

    I cannot tell you why.  Only what it is missing.
    If you look in the Tree.lvclass file using something like Notepad, towards the bottom you will see some XML that looks like:
    <Item Name="Untitled 1" Type="VI">
            <Property Name="NI.ClassItem.ConnectorPane" Type="Bin">#1#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!$H!!!!#1!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#*!=!!?!!!/$&amp;2S:75O&lt;(&lt;'&amp;T=Q!!#&amp;2S:75A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#"!=!!?!!!/$&amp;2S:75O&lt;(&lt;'&amp;T=Q!!"V2S:75A;7Y!0!$Q!!Q!!Q!%!!1!"1!%!!1!"!!%!!9!"!!%!!=#!!"Y$1A!!!!!D1M!!!!!!!!!!!A!!!!!!*!!!!!!!1!)!!!!!!</Property>
            <Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
            <Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
            <Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
            <Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
            <Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
            <Property Name="NI.ClassItem.State" Type="Int">1342841344</Property>
        </Item>
    Delete this block.  Make a backup of the file before you do that.  Start up LV and load the class again.
    My guess is that something probably did not save properly when LV shut down.  I have a large OO project and have had more than one occasion where I have corrupted the project but could ot figure out why. 
    Today I had a similar message which is why your post caught my eye.  In doing some troubleshooting I found that it no longer 'knew' where one of my files was but it never complained when it loaded the project.  I went back to the original project and tried to open that vi from the project.  That is when it told me that the vi was not in the expected location, do you want to correct it.  I said yes and all was better. 
    Trying to open all of the VIs in the class might have worked, but this can be cumbersome to say the least in a large class.
    Good luck,
    Kurt

  • I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    Hi kamfong,
    Went to Settings where?
    If you want to use your exisiting Apple ID on your iPad, you need to:
    1.     Go to Settings>iTunes & App Store and sign out the new ID, and then sign on the old one
    2.     Go to Settings>iCloud, scroll to the bottom and delete the iCloud account, and the sign back onto iCloud using the old ID
    You still have not indindated why you are saying that using your old ID originally "didn't work". What do you mean by that? Did you get some sort of error when you tried to sign on with your exisiting Apple ID?
    Cheers,
    GB

Maybe you are looking for

  • No longer seeing 802.11n base station

    Hi, I have a two-week old 17" MBP. I just reinstalled OS X (10.4.8 w/ all the latest updates) and I can no longer see my Airport Extreme base station when it is in "n only" mode. I have reinstalled the "AirPortExtremeUpdate2007001.dmg" update a few t

  • Will BT own up responsibility and compensate for E...

    Hi, In late January I noticed that I don't get a dial tone on my landline. Immediately I looked on BT forums and elsewhere for DIY advice. So finally I reported a fault with BT on Sat, 02-Feb. providing all the necessary details. I had been tracking

  • Pictures, logos etc are not viewable

    Some web pages are not loading properly and all I see is a white screen and letters. I can't see pictures or logos and I cannot use 'buttons' like if I want to upload something. (windows 7, latest version of browser) I tried, unistalling-reinstalling

  • My itunes opens but stops responding two seconds later....Help?

    Recently i got given an ipod and my itunes had been working fine previously. So i loaded my ipod and my two siblings ipods onto the computer and we were downloading music and it was working fine. Later i came back and tried to open itunes and the win

  • IPhone just stopped working

    iPhone 4 just stopped working over night, just black, cannot get any life at all. Put it on charge but not any thing can any body help me.