I need to pass values dynamically into schedular

I need to pass the values into the schedular dynamically like 2 hours ,4 hours ,i minute and soon ...

Hi,
If you want the job to be created automatically, you can create a master job which checks every few minutes and creates another job on the fly if needed.
I don't understand the part about "sending the messages to the admin" but the body of the job can certainly send e-mail or AQ messages.
Hope this helps,
Ravi.

Similar Messages

  • Passing values dynamically Froman 'INLINE Query' to a 'SUB QUERY'

    If I am using an line query which uses a SELF JOIN subquery
    how can I pass the values from the Inline Query to Subquery ?
    Is this possible?
    SQL...Code
    and Inline Queries..
    (select count(*) 'PrimaryISIN'
    from instrument ins,
              instrument_xref insx
    where ins.id_inst = insx.id_inst
    and     insx.flg_active = 'Y'
    and     ins.id_source   ='MF'
    and     ins.flg_primary_listing = 'Y'
    and     ins.flg_active = 'Y'
    and     insx.id_inst_xref = (  select  DISTINCT  a.id_inst_xref
                                    from    instrument_xref a,
                                            instrument_xref  b
                                      where b.id_inst_xref ='B0DV8Y9'
                                            and     b.id_inst = a.id_inst
                                         and     b.id_inst_xref_type in ('SE','IS')
                                      and    a.id_inst_xref =  'GB00B03MLX29'
    )PISIN2
    I am hardcoding the id_inst_xref is the SELF JOIN? Can these be passed dynamically from
    the INLINE Query which is invoking the SUB QUERY?

    Hi, The hardcoded values entered in the SELF JOIN run fine.
    Now,I need to pass values dynamically from the INLINE query.
    How do I do that?
    Thanks

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • Pass values dynamically to the WHERE clause in SFAPI

    Hi there
    We have a requirement to pass values dynamically (in the run-time of the interface) to the WHERE condition to our SFAPI query.
    Eg -
    SELECT person, personal_information, address_information, phone_information, email_information, employment_information, job_information, compensation_information, paycompensation_recurring, paycompensation_non_recurring, job_relation, accompanying_dependent,         global_assignment_information, direct_deposit, national_id_card, person_relation
              FROM CompoundEmployee
              WHERE last_modified_on >= to_date('LAST_RUN_DATE')  AND
                           last_modified_on <= to_date('CURRENT_RUN_TIME') 
    LAST_RUN_DATE is stored in a custom entity for which we execute another OData query. The custom entity is updated with the CURRENT_RUN_TIME once the interface has been executed successfully. So the next time the interface is run it picks up the LAST_RUN_DATE from the custom OData entity.
    SAP PO has the functionality to run a dynamic query for OData adapters. Refer to Note 2051137 - PI Successfactors adapter : Dynamic odata query and single synchronous sfapi query
    Eg - select fields from position (this is what you state in OData query path in the comms channel; this is static); and you have an advanced tab in comms channel where you mention dynamicquery and set it to true (this points to a XSD which has the keyword TOP, SKIP & FILTER in it).
    This gets the filter values passed from the BPM from another query (from a OData cust_table).
    So the whole query is - select fields from position filter field a = x field b = y etc. Field a field b are fields in position that are you passing values x and y in run time of the interface.
    SAP PO also has the advanced tab feature for SFAPI for dynamic query.
    Question is -
    how to use it?
    has anyone implemented this before?
    What does XSD will look like?
    How do we pass values to the fields to the Where clause for SFAPI.
    Any ideas are welcome!
    Regards
    Arijit Das

    After you have added a new where clause on the detail VO, try re-executing VO's query by DetailVO.executeQuery()
    If it doesn't work try re-executing the MasterVO's query after you have added the where clause on the detail

  • How to avoid popup & pass value dynamically in 'F4IF_FIELD_VALUE_REQUEST' ?

    Hello Experts,
    I am trying to test usage of f4 help function module.
    We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
    I wrote a test program to just test if we can really do that at runtime ?
    This program pops up the window of search help First I want to surpress that window and Second I have no clue
    ( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
    Can some one suggest something here ?
    REPORT  ZTEST_F4_TEST.
    data lt_return TYPE TABLE OF DDSHRETVAL.
    data ls_return TYPE DDSHRETVAL.
    data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
    data ls_return_ddic TYPE zDDSHRETVAL.
    PARAMETERS ptable type tabname.
    PARAMETERS pfield type fieldname.
    PARAMETERS pshelp type SHLPNAMe.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = ptable
        fieldname                 = pfield
        SEARCHHELP                = pshelp
    *   SHLPPARAM                 = ' '
    *   DYNPPROG                  = ' '
    *   DYNPNR                    = ' '
    *   DYNPROFIELD               = ' '
    *   STEPL                     = 0
    *    VALUE                     = ' '
        MULTIPLE_CHOICE           = 'X'
        DISPLAY                   = 'F'
        SUPPRESS_RECORDLIST       = 'X'
    *   CALLBACK_PROGRAM          = ' '
    *   CALLBACK_FORM             = ' '
    *   SELECTION_SCREEN          = ' '
    * IMPORTING
    *   USER_RESET                =
    TABLES
       RETURN_TAB                = lt_return
    * EXCEPTIONS
    *   FIELD_NOT_FOUND           = 1
    *   NO_HELP_FOR_FIELD         = 2
    *   INCONSISTENT_HELP         = 3
    *   NO_VALUES_FOUND           = 4
    *   OTHERS                    = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data lv_count type i.
    delete lt_return where fieldname <> pfield.
    sort lt_return by fieldval.
    delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.

    Hello Sim,
    We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
    So I need to understand how can we exploit the SAP Search Helps ?
    What function modules can take these inputs as structures  and can provide the output in form of a table ?
    Regards,
    Ravi

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts,
    how do I pass values from a workflow to a step (Form) - approve form?
    I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
    I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
    Please help!!
    Thank you.

    Hello !
             Create a method just before the form step.This method should populate the values for the fields maintained in the form.
             Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
            To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
    Regards,
    S.Suresh

  • IN operator:- multiple value :- need to pass values in bundles

    Hello Everybody
    I am facing a strange problem . I got a requirement in which i need to pass around 55,000 values in the IN operator of the select query. It looks like that select query has a limitation of 2000 values. I planned to split the values based on the package of 2000 entries. this is working fine when we have just one IN operator.
    But how to make bundles when we have more than one like 2 or 3 IN operators with the values more than 2000 entries.
    eg.select vbeln matnr from vbap where vbeln in (1000, 2000, 3000, 4000......) and matnr in (11,22,33,44,...)
    and vbeln > 002234255 or matnr <> '55665.
    Please help me in breaking the query.
    Thanks in advance
    Regards,
    Khushboo

    Hi,
      You can do  one thing  .
    1)   First there is no limitation to have values  in Ranges  .
          but there  is limitation  when passing ranges to  SQL query  i.e in Operator  .
         Which will result in Dump  .
    2)  So in order to avoide that   you can have your values  in Ranges  .
    3) Then from SQl query select all raw data   whithout using ranges  .
    4) then now use that internal table in which you have selected raw data  .
    5) now you can use that ranges in loop endloop for internal table condition and filter those data .
      But see while comparing  fields  there should be compatibility  .
    tables : mara .
    TYPES  :  begin of w_mara ,
                      bismt type MARA-BISMT  ,
                    end of w_mara .
    TYPES : BEGIN OF W_BISMT  .
      INCLUDE STRUCTURE MARA .
      TYPES : END  OF W_BISMT  .
    data : it_mara type STANDARD   table OF W_MARA WITH HEADER LINE  .
    data : it_mara1 type STANDARD   table OF W_MARA WITH HEADER LINE  .
    DATA : IT_BISMT TYPE STANDARD TABLE OF W_BISMT  WITH HEADER LINE  .
    DATA : IT_BISMT1 TYPE STANDARD TABLE OF W_BISMT  WITH HEADER LINE  .
    RANGES : P_BISMT FOR  MARA-BISMT  .
      SELECT   BISMT FROM MARA
      INTO CORRESPONDING FIELDS OF TABLE  IT_MARA
      where bismt  is not null  .
    delete it_mara where bismt  is initial .
    SELECT  * FROM MARA
    INTO CORRESPONDING FIELDS
    OF TABLE IT_BISMT.
    LOOP AT IT_BISMT where bismt  in p_bismt   .
    move-corresponding  it_bismt to it_bismt1 .
    append it_bismt1 .
    clear it_bismt1 .
    ENDLOOP.
    Edited by: Rob Burbank on Sep 24, 2010 9:09 AM

  • Passing Value Dynamically in a string

    hi All ,
    i have a requirement in which i have to pass value of a parameter dynamically to a string
    e.g.
    param = 10.
    data : txt type string .
    txt = 'value of param'.
    should give a result
    value of 10.
    here i need to have the value 10 of param in the string ,
    how can this be done dynamically
    thanks in advance
    Abhishek

    Hi Abhishek,
    if you know where is the word 'param' in the sentence, you could play with the field symbols.
    Good luck
    Frédéric

  • Need to pass values to Internal table in Web dynpro ABAP

    Hi all,
    I need to pass table values for the below FM in web dynpro.
    CALL FUNCTION 'ZFMHR_RWF'
      TABLES
        PB0006        = 
    How do we declare and use Internal tables in WEBDYnpro.
    Regards,
    Vijayakumar S.

    hi,
    u mighnt need to show the internal table value in some table UI in the WebDynpro ABAP. So u can use the method bind_table for the same to bind ur context node with the internal table values.u can declare the internal table in the same  way as u do in the normal ABAP.
      DATA :itab TYPE STANDARD TABLE OF ztable.
    // itab is my internal table which can be of either ztable or standard table type
    now u can use the code wizrd(control+F7) and use the method bind_table .
      DATA: lo_nd_cn_node TYPE REF TO if_wd_context_node,
                lo_el_cn_node   TYPE REF TO if_wd_context_element,
               ls_cn_node        TYPE wd_this->element_cn_node.
    *     navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node(
      name = wd_this->wdctx_cn_node ).
      lo_nd_cn_node->bind_table( itab ).
    // where cn_node is the context node which is bind to ur table UI and itab is the value which is populated from ur FM
    regards,
    Amit

  • Need to pass value from check box to the pl/sql function in process

    My requirement is to use single value check box and pass the flag value to the pl/sql function.
    The function need to interpret the flag and execute accordingly.
    In this case checkbox name is P1_DELETE and it returns Delete, if checked.
    Anonymous block with in the process looks as follows:
    declare
    l_result VARCHAR2(1024);
    begin
    l_result := test_function(:P1_DELETE);
    end;

    Hi Visu,
    checkboxes in APEX are handled as arrays, namely APEX_APPLICATION_GLOBAL.VC_ARR2. To pass and process the checked values of checkboxes in a pl/sql function or procedure you could use the following way, assuming you have a checkbox named P1_DELETE with a single return value of "Delete"
    DECLARE
        l_checkbox_values apex_application_global.vc_arr2;
    BEGIN
        l_checkbox := :P1_DELETE;
        -- calling function test_function processing the value
        test_function(NVL(l_checkbox(1), 'SOME_OTHER_VALUE'));
    END;If the checkbox is not checked then the array at position 1 is null and you have to process that as you like.
    If your checkbox would be a group than the array would be colon separated such as 1:2:3:4 etc. and you would have to loop the array like:
        FOR idx IN 1..l_checkbox.COUNT LOOP
            test_function(l_checkbox(idx));
        END LOOP;Hope that helps.
    Andreas

  • Passing values dynamically in bulk collect

    1. hi for ex 5 account number in a table packages each account number is having of 30 records with the column aol and new(values are in 0 or 1)
    i need to copare fro old column and new column values and return if 0 and 1 means return 1 0 and 0 means 0 1and 1 means 1 1and 0 means 0
    for all days 30 days. for all account number and ouptut should be as follows
    account number value
    1 0
    2 1
    3 1
    4 0
    and this values should update in another table;
    i wrote a sample query for a single account but i need for all accounts.
    as given below please help me to solve the issues
    DECLARE
         CURSOR C1 is select rowid,old_family,new_family,OLD_SPORTS,NEW_SPORTS,OLD_DYNASTY,NEW_DYNASTY from packages where account_no='86240331';
         Type C1_type is table of C1%rowtype;
         Rec1                          c1_type;
         New_value1                     number;
         New_value2                    number;
    New_value3                    number;
    Begin
         Open C1;
              Loop
                   Fetch C1 Bulk collect into Rec1;
                   For i in 1..Rec1.count Loop
    -------- TO GET FAMILY PACKAGES VALUES-----------------------------------------------------------------------------------------------
                        If           (Rec1(i).old_family= '0' and Rec1(i).new_family ='1' ) or
                             (Rec1(i).old_family= '1' and Rec1(i).new_family ='1' )
                   then
                                  new_value1:='1';
                   Else
                        new_value1:='0';
                   End if;
    -------- TO GET SPORTS PACKAGES VALUES-----------------------------------------------------------------------------------------------
                        If           (Rec1(i).old_SPORTS= '0' and Rec1(i).new_SPORTS ='1' ) or
                             (Rec1(i).old_SPORTS= '1' and Rec1(i).new_SPORTS ='1' )
                   then
                                  new_value2:='1';
                   Else
                        new_value2:='0';
                   End if;
    ------------TO GET DYNASTY PACKAGES VALUES ------------------------------------------------------------------------------------------
                        If           (Rec1(i).old_DYNASTY= '0' and Rec1(i).new_DYNASTY ='1' ) or
                             (Rec1(i).old_DYNASTY= '1' and Rec1(i).new_DYNASTY ='1' )
                   then
                                  new_value3:='1';
                   Else
                        new_value3:='0';
                   End if;
                        End loop;
                   ---------------------------     update statement------------
                   Exit when c1%notfound;
              End loop;
    End;
    Edited by: 841719 on Mar 6, 2011 8:01 PM

    1. hi for ex 5 account number in a table packages each account number is having of 30 records with the column aol and new(values are in 0 or 1)
    i need to copare fro old column and new column values and return if 0 and 1 means return 1 0 and 0 means 0 1and 1 means 1 1and 0 means 0
    for all days 30 days. for all account number and ouptut should be as follows
    account number value
    1 0
    2 1
    3 1
    4 0
    and this values should update in another table;
    i wrote a sample query for a single account but i need for all accounts.
    as given below please help me to solve the issues
    DECLARE
    CURSOR C1 is select rowid,old_family,new_family,OLD_SPORTS,NEW_SPORTS,OLD_DYNASTY,NEW_DYNASTY from packages where account_no='86240331';
    Type C1_type is table of C1%rowtype;
    Rec1 c1_type;
    New_value1 number;
    New_value2 number;
    New_value3 number;
    Begin
    Open C1;
    Loop
    Fetch C1 Bulk collect into Rec1;
    For i in 1..Rec1.count Loop
    TO GET FAMILY PACKAGES VALUES-----------------------------------------------------------------------------------------------
    If (Rec1(i).old_family= '0' and Rec1(i).new_family ='1' ) or
    (Rec1(i).old_family= '1' and Rec1(i).new_family ='1' )
    then
    new_value1:='1';
    Else
    new_value1:='0';
    End if;
    TO GET SPORTS PACKAGES VALUES-----------------------------------------------------------------------------------------------
    If (Rec1(i).old_SPORTS= '0' and Rec1(i).new_SPORTS ='1' ) or
    (Rec1(i).old_SPORTS= '1' and Rec1(i).new_SPORTS ='1' )
    then
    new_value2:='1';
    Else
    new_value2:='0';
    End if;
    ------------TO GET DYNASTY PACKAGES VALUES
    If (Rec1(i).old_DYNASTY= '0' and Rec1(i).new_DYNASTY ='1' ) or
    (Rec1(i).old_DYNASTY= '1' and Rec1(i).new_DYNASTY ='1' )
    then
    new_value3:='1';
    Else
    new_value3:='0';
    End if;
    End loop; update statement------------
    Exit when c1%notfound;
    End loop;
    End;

  • Help needed in passing values

    Hi all,
    I'm new to jsp. So if possible pls help me. I have a page(say first.jsp) which has a link to another jsp(say sec.jsp). In sec.jsp i'm setting a value in session. When i'm clicking a use/done button in sec.jsp...I want to come back to first.jsp and use the values in session. How to do this?

    Hi,
    I'm doing what u've said. Now I don't have problem in retrieving the value which i set in sec.jsp.. The problem i'm facing is that.. I'm having a screen which has a label displaying the value i retrieved.. which is not showing the correct value even though it is set in session.. So when i'm coming back..I want first.jsp to be refreshed automatically.. Thanks a lot for both of you guys for helping me out..
    Could u give me a solution for this new problem? i.e how to refresh first.jsp automatically when i come back from sec.jsp...or is there any way to refresh the parent window..

  • How to pass concurrent request_id dynamically into workflow Business event subscription.

    Hi All,
    I created a workflow to send notification to user with the details in the message body of the workflow.
    Attached the same workflow to the subscription created under the seeded Business event 'oracle.apps.fnd.concurrent.request.completed'.
    Enabled the Business event for the concurrent program 'XXTEST' for 'request completed.'
    Workflow flow is:  Event>FUNCTION>Notification>END.
    In my workflow there are 4 attributes, 1 attribute is input (request id) for the function(procedure) attached in the workflow, based on that 1 input attribute (request id) the rest of 3 attributes are derived.
    Presently I have given constant value for the Attribute (request id) under its properties. I need to pass it dynamically as soon as the conc request is submitted.
    As I said its working perfectly, i.e., user (EG_AFZAL) receives notification after conc request is completed.
    Kindly suggest how to pass request id in the workflow.
    Regards,
    Afzal.

    Hi SamK,
    I applied as u suggested above in the procedure, but it is giving compilation errors.
    Below is my procedure which is attached to function in the workflow.
    CREATE OR REPLACE PROCEDURE APPS.XXWF_EMP_DETAILS
    ( ITEM_TYPE IN VARCHAR2,
      ITEM_KEY IN VARCHAR2,
      ACT_ID IN NUMBER,
      FUNC_MODE IN VARCHAR2,
      RESULT_OUT OUT VARCHAR2)
      AS
      V_REQUEST_ID NUMBER;
      V_USER_NAME VARCHAR2(240);
      V_PAYROLL_NAME VARCHAR2(40);
      V_CREATION_DATE DATE;
       BEGIN
      IF FUNC_MODE = 'RUN' THEN
        --  V_REQUEST_ID := getvalueforparameter('REQUEST_ID') ;
      SELECT REQUEST_ID INTO V_REQUEST_ID
    FROM PAY_PAYROLL_ACTIONS
    WHERE CREATION_DATE IN (SELECT MAX(CREATION_DATE) FROM PAY_PAYROLL_ACTIONS);
    select pap.payroll_name, fu.user_name, paa.creation_date
    INTO V_PAYROLL_NAME, V_USER_NAME,V_CREATION_DATE
      from
    pay_payroll_actions paa,
    pay_all_payrolls_f pap,
    fnd_user fu
    WHERE PAA.REQUEST_ID =V_PERSON_ID-- 44345723
    and paa.payroll_id = pap.payroll_id
    and fu.user_id = paa.created_by;
      --ASSIGNING VALUES TO THE ATTRIBUTES IN THE WORKLOW
      WF_ENGINE.SETITEMATTRTEXT(ITEM_TYPE,ITEM_KEY,'EMP_NUMBER',  V_PAYROLL_NAME);
      WF_ENGINE.SETITEMATTRTEXT(ITEM_TYPE,ITEM_KEY,'FULL_NAME', V_USER_NAME);
      WF_ENGINE.SETITEMATTRDATE(ITEM_TYPE,ITEM_KEY,'HIRE_DATE',V_CREATION_DATE);
      END IF;
        RESULT_OUT := 'COMPLETE';
      END;
    Kindly suggest.
    Regards,
    Afzal.

  • Passing values to a VI that is open dynamically?

    Hi!
    I need to pass values to a VI that I am openning dynamically.  I tried to open the VI and then pass the values as if it were a subVI.  This works, but has some problems.  The calling VI is "stuck" in the event case until the VI that is called is properly closed.  What I want to do is open the VI, pass the values to the VI, and then allow the user to close/stop that VI if they want or just minimize it and go back to the main VI.
    I tried to do this using Shared Variables, and that worked, but it seems like there should be a better way to do this.  This project does not really need shared variables.
    Attached is an image of where I am currently at by openning the VI and then passing the values as if it were a subVI.  Just thought of something:  it would also be nice if I didn't have to do any file/path name coding.  I don't like how that file name is now hard-coded into the block diagram for that VI.  I like how subVIs update their name automatically from within the same project.
    Thanks for your help!
    -Nic

    This topic is not a simple one, but there are several ways to do this and the correct solution basically depends on what it is you actually want to do. Here are some relevant points. It's definitely not coming close to properly covering the topic:
    What you're doing now is irrelevant - you could just call the subVI and set its FP to open when called.
    You can get the path by doing this:
    You can run the VI dynamically by using the call by reference node, but that will also make your event loop wait for the call to be over.
    You can use a message handler or a queued state machine running in another loop to open the VI. You can see some examples in LabVIEW's File>>New dialog or on the web. Here's one example.
    You can communicate between VIs using notifiers, queues or LabVIEW 2 style globals (example).
    I suspect that in your case, what you want can be accomplished by running the VI as a parallel process (simply place it outside your main loop) and then use invoke nodes to open its FP when needed. You can get a reference to it by using the static VI reference object found in the Application Control palette. You can communicate with it using any of the methods mentioned in the previous bullet.
    I suggest you do some searching for methods for communicating between VIs. There is a lot of material online.
    Try to take over the world!

  • Logic needed for increment value

    HI,
    This function returns me if i pass 'ABC01' it will return 'ABC02' like if i pass
    'ABC55' it will return 'ABC56'.
    But my requirment is i need to pass value from 01 to 99.
    so if i pass 'ABC99' it sud return ''ABC01'.
    so the sequence is from 01 to 99.And after 99 it will again start from 01.
    create or replace function get_next_value
    string_1 in varchar2
    return varchar2
    as
    v_string_1 number(10);
    v_string_2 varchar2(10);
    begin
    select to_number(substr(string_1,4))+1 into v_string_1 from dual;
    if length(v_string_1)=1 then
    v_string_2:=substr(string_1,1,4)||v_string_1;
    return v_string_2;
    else
    v_string_2:=substr(string_1,1,3)||v_string_1;
    return v_string_2;
    end if;
    end;
    test sript
    select get_next_value('ABC01') from dual
    select get_next_value('ABC55') from dual
    Thanks,
    Lony

    create or replace function get_next_value
    string_1 in varchar2
    return varchar2
    as
    v_string_1 number(10);
    v_string_2 varchar2(10);
    begin
    select to_number(substr(string_1,4))+1 into v_string_1 from dual;
    if length(v_string_1)=1 then
    v_string_2:=substr(string_1,1,4)||v_string_1;
    return v_string_2;
    else
    v_string_2:=substr(string_1,1,3)||v_string_1;
    if v_string_1 = 100 then
       return substr(string_1,1,3)||'01';
    end if;
    return v_string_2;
    end if;
    end;
    select get_next_value('ABC01') from dual;
    select get_next_value('ABC99') from dual;
    GET_NEXT_VALUE('ABC01')                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    ABC02                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    1 rows selected
    GET_NEXT_VALUE('ABC99')                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    ABC01

Maybe you are looking for

  • Running operating system from external hard drive

    I know that is possible, and I have done it before when I have needed to run Disk Utility or to salvage files from an an mountable hard drive, though here is my question. My iMac just ran out of applecare, and I dont know if my boss wants to put the

  • Can the new ipod nano be connected to a dock?

    I recently just got the 7th gen Ipod Nano and I was wondering if it can go onto a dock and if it can be played out loud without a dock or headphones.?

  • PanelTabbed setting background image to tab

    Hi, I have 2 questions in UI components . I am using Trinidad components. 1) I am having the paneltabbed with 2 tabs, i want to change the background of tabs based on selection(when selected tab1 background should display a.png ,when tab2 is selected

  • Publishing error Can't create the file "shapeimage_3_link_1.png."

    I keep getting this publishing error when i try to publish my sites to .mac: "Can't create the file "shapeimage3_link1.png." The disk may be damaged, full, or you may not have sufficient access privileges." I don't know what this means or how to fix

  • Syncing ical creates duplicates

    How do I stop creating duplicates when I sync iCal or Contacts to my iPad? I'm using Mountain Lion and iOS on iPad is up-to-date.