Implementing maker-checker functionality using PLSQL

Hi,
I would like to know if someone has implemented maker-checker functionality. If so then please let me know the tables/views to be created. PLSQL code to implement the logic. If you have any design document then please share.
Looking forward for your help.

user10566312 wrote:
Hi,
I would like to know if someone has implemented maker-checker functionality. If so then please let me know the tables/views to be created. PLSQL code to implement the logic. I'm not going to do your work. But I'd like to share an Idea:
The table containig the objects needing double-check would get a mandatory Creat_user attribut filled with the (front end) user name drawn from the v$session.
Then I'd create a "Check" table with Object_id and check_user as the only attributes. The check_user
attribut would also be filled with user name found in v$session.
I'd have a Trigger on the "Check" table making sure that the user inserting the "Check" entry is not the same as the one that created the Object.
Of cause I'd prevent inserting or updating the user attributes with custom values.
bye
TPD

Similar Messages

  • How to implement Excel like functionality using Table?

    I have a requirement to implement excel like functionality in a table, i.e when I update the amount in the first row and tab out, the values in the rows below should get affected.
    Could any one suggest idea how to get this done?

    Hi Timo,
    Thanks for your Reply.
    Can you please provide the code for capturing the key stroke in java script and queue it in the server and calling only the adf data table values from it.
    Thanks And Regards,
    Lovenish Garg
    Edited by: lovenish on 21-Jan-2011 04:25

  • How to implement a callback function using LabView's Call Library Function Node?

    I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
    me and I do not have the source code, just the .dll and .h files.
    The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
    callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
    Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
    this one out. I am using LabView 8.6.
    The SDK.h deacribes the function as:
    //  Function:   SdkSetPropertyEventHandler
    SdkError SDKAPI SdkSetPropertyEventHandler(
                SdkCameraRef                    inCameraRef,
                SdkPropertyEvent                inEvnet,          
                SdkPropertyEventHandler         inPropertyEventHandler,
                SdkVoid*                        inContext );
    //  Description:
    //       Registers a callback function for receiving status
    //          change notification events for property states on a camera.
    //  Parameters:
    //       In:    inCameraRef - Designate the camera object.
    //              inEvent - Designate one or all events to be supplemented.
    //              inPropertyEventHandler - Designate the pointer to the callback
    //                      function for receiving property-related camera events.
    //              inContext - Designate application information to be passed by
    //                      means of the callback function. Any data needed for
    //                      your application can be passed.
    //      Out:    None
    //  Returns:    Any of the sdk errors.
    A separate header file called SDKTypes.h contains the following data:
    typedef  SdkUInt32  SdkPropertyEvent;
    typedef  SdkUInt32  SdkPropertyID;
    typedef  void       SdkVoid;
    typedef  struct __SdkObject*    SdkBaseRef;
    typedef  SdkBaseRef    SdkCameraRef;
     SdkPropertyEventHandler
    typedef SdkError ( SDKCALLBACK *SdkPropertyEventHandler )(
                        SdkPropertyEvent        inEvent,
                        SdkPropertyID           inPropertyID,
                        SdkUInt32               inParam,
                        SdkVoid *               inContext );
    Thanks for your help.
    Alejandro
    Solved!
    Go to Solution.

    alejandroandreatta wrote:
    I am trying to call a fuction from a SDK.dll library using the Call Library Function Node. The SDK was provided to
    me and I do not have the source code, just the .dll and .h files.
    The SdkSetPropertyEventHandler function has a callback fuction as one of its parameters. How do I implement the
    callback using the CLF node? I am a good LabView programmer but this is my first time using the Call Library
    Function Node. I have read all the info I can find on NI's web site and the discussion board but cannot figure
    this one out. I am using LabView 8.6.
    Basically you do not do that. LabVIEW does not know pointers and certainly not function pointers. What you should do instead is writing a C DLL that implements the callback and also exports a function to be called by LabVIEW that translates between the callback and a LabVIEW user event. Look for PostLVUserEvent() here on the NI site to find examples how to do that.
    Rolf Kalbermatter
    Message Edited by rolfk on 02-11-2009 08:00 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How Can implement the audit function using toplink?

    My system must record all the modification, how can I use toplink to implement it.
    I know when toplink modify some object, the toplink will check how many attribute
    have been modified, and then update it to database, Can I implement the record when
    the toplink check modification?
    PS: I dont want to use database trigger.
    Thank first!!

    This thread has been inactive for a while, so perhaps I'm missing something. I am attempting to create audit events on domain objects using a TopLink 10.1.3 DescriptorEventAdapter.
    These audit events mutate or create a snapshot collection on the domain object. Based on what I understand from the above thread, do I still need to create another UoW to commit these in my preInsert()/preCreate() handler methods?
    Is there a way to get in the game before the IDs are assigned to the objects and the change set is computed?
    I certainly don't claim to fully understand the historical client session docs. However, one of our requirements is to show object-attribute-level deltas (list chronologically, grouped by transaction, the attributes that have changed, who changed them, etc. with their before and after values). So my first-blush reaction is that it's easier to utilize the change set to create a collection of transactionally-grouped audit objects on the domain.
    Thanks much,
    --Todd Fredrich                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • XPATH sum(node-set) function using PLSQL

    Hi,
    I'm using the XMLDOM and XSLPROCESSOR PLSQL packages to parse my XML and need to sum a Node element. I was wondering how can I achieve the following XSL command within PLSQL ??
    <xsl:value-of select="sum(<some nodeset>)"/>
    Can I use the XSLPROCESSOR.valueOf function to get the sum ?? Or is there another way ??
    Regards,
    Mark

    Can you try this?

  • How to implement this planning function using Fox formula

    Hello,
    I am new to Fox.
    I want to implement this complex logic in a planning function
    i have A (Kf X from infoprovider Z_A), B (Kf Y from infoprovider Z_B) & moreover there is one more condition,
    If current FISCPER > variable value of FISCPER
    KF Z = KF Z1 (from Cube C1)
    Else KF Z = KF Z2 (from Cube C2).
    for a particular calender week,
    X =   ( Y * Z ) / (summation of (Y * Z)  for each week of the whole year)
    I know it is complex.
    but i have to implement this in a planning function.
    The aggreagtion level is built on a multiprovider having A, B , C1 & C2.
    Can someone help me out with the FOX formula for this? or is there any better way to do this.
    Thanks john

    Hi Gerardo,
    Thanks for that.
    I have tried something similiar to it
    DATA CHA_CALWEEK TYPE 0CALWEEK.
    DATA CHA_COMP_CODE TYPE 0COMP_CODE.
    DATA CHA_FISCPER TYPE 0FISCPER.
    DATA VAR_PERIOD  TYPE 0FISCPER.
    DATA SUM_YEAR TYPE F.
    DATA TEMP_D TYPE F.
    DATA SUM_WEEK TYPE F.
    CURRENCY IS LOCAL CURRENCY. FOR DATA SELECTION TO BE RIGHT, NECESSARY TO DERIVE FROM CC.
    DATA UN_LOC_CURRCY TYPE 0LOC_CURRCY.
    UN_LOC_CURRCY = VARV(Z_U_I100).
    CHA_COMP_CODE = VARV(Z_U_I100).
    To Calculate the D
    VAR_PERIOD = VARV(Z_U_I010).
    SUM_YEAR = 0.
    TEMP_D =0.
    IF CHA_FISCPER > VAR_PERIOD.
    TEMP_D = {ZSA_BUD2X,CHA_COMP_CODE,CHA_FISCPER,YBUDG_01X,CHA_CALWEEK}.
    FOREACH CHA_CALWEEK.
    SUM_YEAR = SUM_YEAR + TEMP_D * {ZCREENTSV,CHA_COMP_CODE,CHA_FISCPER,ZIP_RREF1} .
    ENDFOR.
    ELSE.
    TEMP_D = ({ZSAEXCUSV,CHA_COMP_CODE,CHA_FISCPER,YRT_C02X} - {ZCREENTSV,CHA_COMP_CODE,CHA_FISCPER,YRT_C02X}).
    FOREACH CHA_CALWEEK.
    SUM_YEAR = SUM_YEAR + TEMP_D * {ZIP_INDEX,CHA_COMP_CODE,CHA_FISCPER,ZIP_RREF1}) .
    ENDFOR.
    ENDIF.
    But i am getting a syntax error
    Formula error: } expected
      Syntax error in row 21, column 20
    i have marke line21 in bold. above.
    I feel it is correct, still wonder why i am getting this error.
    can you pls help ?

  • Spell checker Functionality to be Implemented in a Oracle Ebiz Custom form

    Hi,
    I have tried implementing the Spell checker functionality in one of our Custom form,I used the OLE2 Built in Package in forms 6i to invoke the Spell checker functionality in Microsoft word but i am getting an error,Could anyone please help me in implementing the functionality?
    I used the following procedure to Implement the spell checker functionality in Forms 6i and registered the same in Oracle Applications 11i,
    PROCEDURE spell_check (item_name IN VARCHAR2)
    IS
    my_application   ole2.obj_type;
    my_documents     ole2.obj_type;
    my_document      ole2.obj_type;
    my_selection     ole2.obj_type;
    get_spell        ole2.obj_type;
    my_spell         ole2.obj_type;
    args             ole2.list_type;
    spell_checked    VARCHAR2 (4000);
    orig_text        VARCHAR2 (4000);
    BEGIN
    orig_text := NAME_IN (item_name);
    my_application := ole2.create_obj ('WORD.APPLICATION');
    ole2.set_property (my_application, 'VISIBLE', FALSE);
    my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
    my_document := ole2.invoke_obj (my_documents, 'ADD');
    my_selection := ole2.get_obj_property (my_application, 'SELECTION');
    ole2.set_property (my_selection, 'TEXT', orig_text);
    get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
    ole2.invoke (get_spell, 'CHECKSPELLING');
    ole2.invoke (my_selection, 'WholeStory');
    ole2.invoke (my_selection, 'Copy');
    spell_checked := ole2.get_char_property (my_selection, 'TEXT');
    spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
    COPY (spell_checked, item_name);
    args := ole2.create_arglist;
    ole2.add_arg (args, 0);
    ole2.invoke (my_document, 'CLOSE', args);
    ole2.destroy_arglist (args);
    ole2.RELEASE_OBJ (my_selection);
    ole2.RELEASE_OBJ (get_spell);
    ole2.RELEASE_OBJ (my_document);
    ole2.RELEASE_OBJ (my_documents);
    ole2.invoke (my_application, 'QUIT');
    ole2.RELEASE_OBJ (my_application);
    END;
    I am getting the following error,
    *305501:non-ORACLE exception*
    I get this error exactly after the following line of the procedure,
    my_application := ole2.create_obj ('WORD.APPLICATION');
    This Spell check functionality works fine when implemented in a standalone form(When a form is ran from the Form Builder),Facing issue only when it is registered in the Oracle applications 11i.
    I searched various Forums,But i unable to find any solution,Expecting your help on the same asap.
    Thanks,
    Venkat
    Edited by: 946005 on Jul 12, 2012 3:47 AM

    Hi Raja,
    Thanks for the Reply..
    Thanks a lot for your quick and efficient responses.
    But Iam unable to figure out how to implement this auto save functionality in this BSP Applicaition. If anyone has worked on this BSP Application <b>HAP_DOCUMENT</b>, can you please tell me how to do this auto save functionality. Is it possible that when I give this popup to save using java script and when the User clicks on OK, can I get the return code for this and use it to trigger the auto save functionality? And where exactly do I have to code this. Because the code here is bit confusing and the pages are called dynamically, even Iam unable to figure out the Button Id. Can anyone please help me out on this. This is a very urgent requirement.
    As specified by you, I have used this code to give the popup.
    <script type="text/javascript">
    function alertUser()
    alert('Please Save the changes by clicking Save button');
    window.setInterval("alertUser()",300000);
    </script>
    Can I use the same code for save also, like this:
    <script type="text/javascript">
    function autosave()
    htmlbSL(this,2,'SAVE:SAVE');
    window.setInterval("autosave()",300000);
    </script>
    I was trying with this but it is not working.
    Regards,
    Raju
    Message was edited by:
            Narayana Raju Sampathirao

  • How to use Spell-check functionality for textbox (like Orkut, gtalk)

    How to use Spell-check functionality for tex Hello Friends,
    I am working on a JSP application. I wanted to add Spell check for text box like we have here, when we post a message. It automatically shows red line under the word, when ever spelling is wrong. Please tell me how I can do this. If possible, the code too.
    Thanks.

    I believe the spell checking you see here, or on any other site, is the spell checking built into Firefox. At least that's what I see. Are you using Firefox?

  • What is the difference using start condition and check function module

    what is the difference  between using start condition and check function module

    That's new to me, I thought a start condition was evaluated before the workflow started, and thus now workflow work item is available. That's why I think the only situation in which start conditions/check functions can't be used, is when the availability of a workflow log for investigation of exactly what stopped the workflow is a requirement.
    I suppose the <a href="http://help.sap.com/saphelp_46c/helpdata/en/4c/86bf43feca11d2a64f0060087a79ea/frameset.htm">SAP documentation</a> is in need of an update.

  • Can I use Count, Max function in PLSQL BLOCK.

    Can U help me to use count, max function in PLSQL BLOCK.
    Because it is giving me error "It is a SQL function"

    SELECT COUNT(*)
    INTO l_variable
    FROM dual;
    Will work inside PL/SQL

  • How to use Check Function Module???

    Hi Friends,
    How to use Check Function Module in Workflow???
    My requirement is to trigger the workflow at the last line item of the Material Document.
    Rewards for sure for helpful answer.
    -Satish

    Hi Satish,
    You know, the real power of forums like these is the search functionality. First you locate the correct forum, you succeeded in that and then you locate the search field and type in your question. In your case "check function module"
    I suggest you do this right away and be amazed at all of the answers about his topic. Maybe you'll even find some topic about exactly the same issue with a different solution than check function modules and on top of that you learn something this way. Talk about win-win situation
    Kind regards, Rob Dielemans

  • Where-used list, Other WF template, Check functions

    Hi all.....within the Workflow Template screen, there are 4 icons at the top left-hand corner.....one is a 'Display-Change' function.  The other 3 however I'm not sure what they are, and what function they serve.  Can someone explain what these are, and in what scenarios they would be used?:
    Check
    Where-used List
    Other WF template
    Thanks!
    Steve

    Hi Steve,
    I hope by this tme, you might have explored these options..But if not , go ahead and try them out..
    Anyway, just for an easy way, I'll brief it:
    <b>Check</b>: Used to do the syntax check for workflow template
    <b>Where-used list</b>: SImilar to Other ABAP objects, i.e. to find out in which other places , this particular takss are used
    <b> Other WF -Template</b> : When you want to work with  workflow template other than that presented by workflow builder.
    Hope with htis you wil explore more on this front .
    Regds,
    Akshay

  • MAKE AN IMAGE USING A FUNCTION

    HI genius....
    i want to make an image using the function 1/cos(RotAngle).The image will look like i have attached below.
    faithfully.
    akhil...
    Attachments:
    New folder1.jpg ‏59 KB

    Hi Ragil,
    the attached image just shows black/white stripes.
    How is this related to "making the image using 1/cos(Angle)"???
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Explain how to implement prompt functionality using @variable

    Hi all,
    Anyone please explain how to implement prompt functionality using @variable.
    We got some sql reports.Those reports have to be converted into BO free hand sql report.
    Please provide any best practices for converting sql reports into BO free hand SQL.
    Thanks & Regards,
    James Charle

    Hi
    Please refer "@Variable" section  in page number 601, in http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_designer_en.pdf
    Regards
    Ashwini

  • Can record comparisons be done without functions or PLSQL

    I am used to writing Oracle functions to do record comparisons, however on this particular project the managers do not want to use functions or PLSQL
    Is there a way to do the following with a SQL statement rather than writing a function - see data set below? Oracle 9i.
    I have the following data set used to track packages that are moved from warehouse to warehouse on trucks
    I only want to retrieve a record if the starting location is Dallas Ft Worth and the end location is another city.
    I do not want to retrieve a record if the package moves between other cities (say Boston and New York)
    For this data set package 1324 was added and removed to the warehouses at Dallas 4 times via truck 735 before it was finally moved to a warehouse in Boston by the same truck
    I want the query to return the following record
    105273     345          1324               725          11/3/2010 14:32               11/3/2010 15:46               Dallas Ft Worth          WH4
    Showing the last location in Dallas before it was moved to Boston
    I do not want to return any of the Boston or NY records or any of the previous Dallas Ft Worth Records.
    The way the system updates the records is as follows:
    If a package is added to a warehouse the record gets an added date.
    When it is removed the system updates the removed date of that same record
    Once it is added to a new warehouse there is a new record with an added date and null date for the removed date unless it leaves that location
    In the record set if the removed date is null then that is the current location of the package
    CREATE TABLE package_location
    ( track_id NUMBER(10)
    , sender_id NUMBER(10)
    , package_id NUMBER(10)
    , truck_id NUMBER(10)
    , package_add_date DATE,
    , package_remove_date DATE,
    , city VARCHAR2 (50)
    , Warehouse VARCHAR2(50)
    INSERT ALL
    INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (100012
    , 345, 1324, 725, 8/4/2010 2:39:48 PM, 8/4/2010 2:53:07 PM, 'Dallas Ft Worth', 'WH1')
    INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (100016
    , 345, 1324, 725, 8/4/2010 2:53:07 PM, 9/30/2010 10:41:01 AM, 'Dallas Ft Worth', 'WH2')
    INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (103055
    , 345, 1324, 725, 9/30/2010 10:41:01 AM, 11/3/2010 2:32:14 PM, 'Dallas Ft Worth', 'WH3')
    INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (105273
    , 345, 1324, 725, 11/3/2010 2:32:14 PM, 11/3/2010 3:46:22 PM, 'Dallas Ft Worth', 'WH4')
    INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (105284
    , 345, 1324, 725, 11/3/2010 3:46:22 PM, 11/22/2010 11:55:18 AM, 'Boston', 'WH34')
    INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (106674
    , 345, 1324, 725, 11/22/2010 11:55:18 AM, NULL, 'New York', 'WH56')
    I tried to do a query with a subquery... the main query was getting all the records with Dallas Ft Worth and then the subquery was to check if the location was not Dallas Ft Worth, but so far I haven't quite been able to get the correct dataset.
    Any help is greatly appreciated. I don't know if there is a way to do this with just a sql query, if not other suggestions are welcomed!
    Thanks in advance

    I added a couple of rows to your table, shipping the package back from New York to Dallas on a different truck, then back out from Dallas to New York just to make sure I understand the requirements.
    SQL> SELECT * FROM package_location;
      TRACK_ID  SENDER_ID PACKAGE_ID   TRUCK_ID PACKAGE_ADD_DATE     PACKAGE_REMOVE_DATE  CITY             WAREH
        100012        345       1324        725 04-aug-2010 14:39:48 04-aug-2010 14:53:07 Dallas Ft Worth  WH1
        100016        345       1324        725 04-aug-2010 14:53:07 30-sep-2010 10:41:01 Dallas Ft Worth  WH2
        103055        345       1324        725 30-sep-2010 10:41:01 03-nov-2010 14:32:14 Dallas Ft Worth  WH3
        105273        345       1324        725 03-nov-2010 14:32:14 03-nov-2010 15:46:22 Dallas Ft Worth  WH4
        105284        345       1324        725 03-nov-2010 15:46:22 22-nov-2010 11:55:18 Boston           WH34
        106674        345       1324        725 22-nov-2010 11:55:18                      New York         WH56
        106675        345       1324        804 25-nov-2010 09:55:18 30-nov-2010 15:46:22 Dallas Ft Worth  WH4
        106676        345       1324        804 25-nov-2010 09:55:18 01-dec-2010 15:46:22 New York         WH42Given this data, you would want to get back track_id 105273 and 106675 correct?
    If so, then something like:
    SQL> SELECT track_id, sender_id, package_id, truck_id, package_add_date,
      2         package_remove_date, city, warehouse
      3  FROM (SELECT track_id, sender_id, package_id, truck_id, package_add_date,
      4               package_remove_date, city, warehouse,
      5               LEAD (city) OVER(PARTITION BY package_id
      6                                ORDER BY package_remove_date) next_city
      7        FROM package_location)
      8  WHERE city = 'Dallas Ft Worth' and
      9        next_city != city;
      TRACK_ID  SENDER_ID PACKAGE_ID   TRUCK_ID PACKAGE_ADD_DATE     PACKAGE_REMOVE_DATE  CITY             WAREH
        105273        345       1324        725 03-nov-2010 14:32:14 03-nov-2010 15:46:22 Dallas Ft Worth  WH4
        106675        345       1324        804 25-nov-2010 09:55:18 30-nov-2010 15:46:22 Dallas Ft Worth  WH4John
    Edited by: John Spencer on Aug 14, 2011 2:22 PM
    Fixed non-displaying operator

Maybe you are looking for

  • If condition in SAP Script

    Hi, I have written a condition in the text elements like below. IF &EKPO-NETWR& GT '300' Print some text. ELSE Print other text. ENDIF But its not working.If i put EQ or NE,its working fine.But if i put GT,GE,LT,LE or >,< ,its not working. Suggest if

  • How do I install adobe flash to windows 2000 os?

    Please help! I accidentally deleted flash from my computer. Since I am running windows 2000 pro, I cannot install the latest version. My question is how do I find and install a version of Adobe Flash that is compatible with Windows 2000? Thank you ve

  • How to Set Up TextEdit as an HTML or Plain Text Editor?

    How to Set Up TextEdit as an HTML or Plain Text Editor?

  • SQL Query Template to a different schema

    Hi all I am on MII 12.2, connecting to Oracle through a data source which references user/schema "Foo" I would like to perform queries involving tables from schema "Bar" . As a consequence, when I need to access Bar tables I must reference them like

  • Wildcard Character

    Hi, I use this piece of code to scan through an entire HTML file: while (!scanner.nextLine().matches( "TEXT HERE" )) { // do stuff // do other stuffIs there some kind of wildcard character that I can in the .matches() method use so that the following