How to perform CTRL + ESC action on a JFrame

I use following code for performing window closing when pressing ESC key, but i now want to perform a action when clicking CTRL + ESC
, though i modifid following code i can't get soulution.
KeyStroke escapeKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);
        Action escapeAction = new AbstractAction()
             public void actionPerformed(ActionEvent e)
                 cancel.doClick() ;
        getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escapeKeyStroke, "ESCAPE");
        getRootPane().getActionMap().put("ESCAPE", escapeAction);

try
Robot r = new Robot();
r.keyPress(KeyEvent.VK_CONTROL);
r.keyPress(KeyEvent.VK_ESCAPE);
r.keyRelease(KeyEvent.VK_CONTROL);
r.keyRelease(KeyEvent.VK_ESCAPE);
} catch (AWTException e)
System.err.println("Error: " + e.getMessage());
}

Similar Messages

  • How to disable CTRL + ESC from regedit?

    Hello,
    I have an issue and need to disable ctrl+esc in Windows 8. I found some FixIt to do that but it's only for Windows 7. I know that in previous version it was possible (per example with changes in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell] "DisableCtrlEsc"=dword:00000001).
    Thank you in advance,
    Best regards!
    Slobodan

    I am afraid there is no official method to disable Ctrl+Esc.
    Niki Han
    TechNet Community Support

  • How to perform an enter in a dynamic action?

    Hi friends,
    I would like to know How to perform an enter in a dynamic action?
    Thanks in advance.
    Albio.-

    Hi Vivas,
    A dynamic action has the following components.
    Infotype Number (INFTY): specifies the infotype for which you want the dynamic action triggered
    Subtype (SUBTY): narrows the focus to a specific subtype
    Field Name (FIELDN): starts your action when a maintenance function is performed on a particular field
    Function (FC): specifies the various maintenance operations to which your dynamic action would respond. They are 02 (change); 04 (create); 06 (create and change); 08 (delete); 10 (change and delete); 12 (create and delete). Dynamic actions are only applicable in maintenance operations, not in display functions.
    Sequence Number (NO): refers to a sequential number.
    Step (A): specifies a particular type of action. No dynamic action is executed if the function character has a value other than one of the following:
                 P: Plausibility checks, which allow you to check certain conditions.          
                 I: Calls an infotype for processing
                 W: Called after the I statement and used to assign values to screen fields while creating or copying another infotype record through the I statement 
                  F: Calls a FORM routine (subroutines in ABAP) during your action. The routine may reside in or out the module pool MPNNNN00.
                 V: Lets you treat collectively a number of fields for which you want to define a common dynamic action
                  M: Sends SAP Office mail
    Variable function part: The variable function part along with the step indicator forms the core part of your action. It specifies the processing details when the dynamic action is triggered. For example: 
    Requirement: When the postal code or the city of an employeeu2019s permanent residence is changed in infotype 0006, an email should be sent to the administrator.
    INFTY    SUBTY    FIELDN    FC          NO.    STEP       VARIABLE FUNCTION
    0006           1             ORT01      06             001           V               PSTLZ            
    0006           1             PSTLZ      06             002           M               M0001
    The V statement on line 001 is used to link the two fields to the M statement. The statements relevant to field PSTLZ are also applicable to the ORT01 field.
    When a record is created or changed in infotype 0006 of permanent address, an email is sent using the feature M0001. Information such as the recipient address, subject, and content of the mail is derived from M0001.
    The maintenance of dynamic actions is done via the view V_T588Z, as shown in Figure 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions).
    Warm Regards,
    Kapil Kaushal

  • How to Perform an Action from an outside MouseListener.

    Hi to all,
    The MouseListener Object can be either inside the main applet class or outside it. I want to define the MouseListener object outside the applet class.
    My question is how can the MouseListener object perform the specified action on an mouse event, when it is outside the main applet class?

    By "outside" you mean it's a top-level class, as opposed to a nested class?
    An event handling class is just a class that performs certain required actions. It doesn't need to be an inner class.
    If you're asking how a top-level class can access another class's private data or methods...it can't. So the programmer is required to do the various things that are necessary to control and/or permit access, which one has to do in other cases where one class needs (or seems to need) another class's privates.

  • How can I assign a action to a button of the many scripts in the script file.

    How can I assign one action of many actions in a script file.
    I have many actions in a script file and I want to run one of them by clicking a button on the panel. However, loading the script I can not isolate the action that interests me.

    Hello,
    Try System Preferences>Energy Saver>Options tab, uncheck Allow power button to sleep computer.
    Some possible other options...
    Control-Eject
    The dialog box "Are you sure you want to shut down your computer now?" appears with options to Restart, Sleep, Cancel or Shut Down. After the dialog appears, press the R key to Restart, press the S key to Sleep, press the Esc key to Cancel, or press the Return key to Shut Down.
    Control-Command-Eject
    Quits all applications (after giving you a chance to save changes to open documents) and restarts the computer.
    Control-Option-Command-Eject
    Quits all applications (after giving you a chance to save changes to open documents) and shuts the computer down.
    Command-Option-Eject
    Puts the computer to sleep.
    Shift-Control-Eject
    Puts all displays to sleep.
    Power button (if the computer is not responding)
    Press and hold the power button on the computer for six seconds to shut down the computer.
    http://support.apple.com/kb/ht2448

  • How to define a Custom Action in VC 6.0 ?

    Hi all
    I want to know how to define a custom action like for a check box UI Element, I want particular action to be performed when it is checked ? How can I achieve this in VC 6.0
    Please feel free to ask me if my question is unclear ?
    Regards
    Kapil

    Hi,
    Try adding an expression element on your form.
    Go to the Expression control properties and in the Expression attribute enter
    IF(@Selected==true,"X"," ")
    @Selected is the checkbox. For your function call input use the expression element and not the checkbox.
    Hope this helps. Let me know if it works.
    Thanks.

  • There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel

    I just installed Window 7 professional in place of Windows 7 Ultimate RC to which I subscribed. I was not pleased to do a clean install as opposed to an upgrade and was not informed about it.
    When I reinstalled Office 2007, my outlook does not work, although exchange on the web works. I get the following error message:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel 

    Louis,
    This issue may occur if the Outlook registry key is corrupted. When other programs try to use the Outlook Simple MAPI interface, they cannot retrieve the required information from the registry.
    You must first remove the corrupted Outlook registry key, and then perform a Detect and Repair operation to have Outlook rebuild the key. To do this, follow these steps:
    Click Start, and then click Run.
    In the Open box, type regedit, and then press ENTER.
    In Registry Editor, locate the following subkey in the registry: HKEY_LOCAL_MACHINE\Software\Clients\Mail\Microsoft Outlook
    Select the subkey, and then press DELETE.
    Click Yes.
    Quit Registry Editor.
    Start Outlook.
    On the Help menu, click Office Diagnostics.
    Follow the instructions on the screen to complete the repair.
    Important: Above section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
    322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows.
    Hope above information helps.
    Pooja Katiyar

  • "An unspecified error occurred while performing a conform action on the following file:"

    Has anyone else gotten this error in any of their projects?  I've searched around Adobe support pages and elsewhere on the internet, but have found nothing.
    It comes up in the events window and I can't even read what file it's talking about because it's on the next line, but the error message only shows one line and I haven't figured out a way to expand it.
    I'm not even sure if it's causing any problems, or not (the project seems to work ok).  This message shows up twice, as a red circle with an 'X' in it, but I also get the following message numerous times referring to a large amount of my .avi files:
    "File importer detected an inconsistency in the file structure of filename.avi.  Reading and writing this file's metadata (XMP) has been disabled."
    That message shows up as a yellow triangle with an '!' in it.  Since I haven't been able to turn anything up about these messages, I figured I'd ask here and see if anyone knew what was going on, how to fix the problem or if I should even worry about them.
    Thanks.

    I am having this problem now when i use dynamic link from Premiere to after effects. I copy the footage from premiere then paste into after effects, i add alittle text maybe some light rays etc save it then go back to premiere. Then i get this message "An unspecified error occurred while performing a conform action on the following file C:\Caches\Media Cache Files\text comp 1 48000.cfa." does anyone have any idea as to what this is? i have had a few problems using the dynamic link from premiere to after effects problems such as Premiere freezing, not playing the after effects comps back in real time, crashes etc. Its as if the 2 programs dont like the dynamic link.
    Im running Master Collection CS5 & CS 5.5 on running on a 24gb ram, Intel Core i7 950 @3.07GHz PC with a NVIDIA GeForce GTX470 graphics card.

  • How do I assign an action to a user at runtime in GP?

    Hi All,
    Can anyone give me an insight to how I can assign an action role to a user at runtime? My GP has around 7 actions. One of the actions determines a portal user via a RFC. The user id (portal id) returned by this RFC is whom I want to assign to the following action in the block. How can I achieve this?
    Thanks in advance,
    TM.

    Interesting disucssion..:) yeah You are correct you assign user to Role. But you also assign role to action by consolidating the action in one role in role consolidation of process.
    You can not assign the processor of action to action. Lets make it simple, I will try to explain the trick in simple terms.
                      Action    Input           output                                       Role              
    [                        A       -                 UserId ( UniqueID )                   Inititator ][UserRoleAssignment) B      UserList-UserIdentifier                        ProcessorB   ]
                        [      C       X                   X                             ProcessorB   ]        
    Now what happens in Action B is user which is input get assgined to Role ProcessorB ( becuase it is of that kind of callable object). Since once the user is (user-U) assigned to ProcessorB any of the subsequent step which needs to be performed by ProcessorB can be performed by  the same user user-U.
    Now I have explicity assigned the Action C to be in the same Role ProcessorB so it will be performed by user-X
    One more thing the userID which you have output is uniqueID not the logonID it has to be like USER.PRIVATE_DATASOURCE.un:00000006.
    And the ProcessorB needs to be defined as RuntimeDefined.
    Hope it make sense.

  • How to disable CTRL+ALT+S on Win8

    I have an HP notebook (Pavilion 17 or something) with Windows 8 64-bit.
    I mainly use it (and primarily bought it) to play video games.
    The shortcut CTRL+ALT+S (which opens system information) interferes with playing video games as I use those keys when doing so and far too often at the same time.
    How do I disable the CTRL+ALT+S shortcut?
    I mean besides a clean install of Windows without any HP programs, obviously.

    Hello @jdk21,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how you are looking to disable the CTRL + ALT + S combination on your notebook computer, and I would be happy to assist you in this matter!
    To disable this combination, I recommend performing a clean boot on your computer. This can be done by following the steps in this document on How to perform a clean boot in Windows. This should help boot your system with a minimal set of drivers and software, enabling your system to keep the settings changed with the keyboard combination.
    If the issue continues, I recommend following the steps below by proceeding to this file location:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\HP Help and Support
    Right click HP Support Information
    Click properties
    Click the box next to shortcut key
    Hit backspace so the field says 'none'
    Apply
    Done!
    (Note, If you can't access the folder above you need to show hidden & system files. In a file explorer window click the view tab at the top, then click options on the right, select 'change folder and search options' if prompted. go to the view tab in the popup. check show hidden files, folders, drives. uncheck hide protected operating system files. apply)
    reference: http://h30434.www3.hp.com/t5/Desktop-Operating-Systems-Software-Recovery/How-to-disable-Alt-S-shortc...
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • How to perform a QBE in the tree table

    Hi,
    How can we perform the following actions on the tree table
    1) We wanted to display all the enabled children for all the node stamp. There is a column for the child node which can say whether tehy are enabled or not .
    we can have an action listener. But how can perform this query in the action listener. How to access all the childern in all the node stamps
    2) similarly we we want go back again to display all the children for all the node stamp, jow can we do that.
    As per my uderstanding we don't have toolbars filter for the tree table.
    any pointer or code snipet will help a lot
    Thanks
    Santosh

    Hi,
    you cannot disable nodes in the sense that they cannot be expanded or selected. What you can do though is to ignore node selections in a custom selection handler or to render the node different (e.g. using an output text component instead of a command link or image etc.). What is your functional requirement for what disabled nodes should not do
    Frank

  • How U Perform Client Side Validations In Webdynpro?

    Hi experts,
    explain me abt How U Perform Client Side Validations In Webdynpro?
    Thanks in advance
    Sreenivas

    Hi ,
    As the javascripts used for client side validations are not supported in Webdynpro, All the validation written in a code take a complete cycle at runtime.
    You need to write the validations in the corresponding eventhandler i.e. action.
    Regards
    Deepak

  • How to perform binding in workflow?

    Hi all,
    Please tell me what are types of binding in workflow?
    and how we perform binding to transfer data from event->workflow,workflow->task etc and
    how i know which container elements are passed in binding?
    Regards,
    Arpita.

    Welcome to the world of WORKFLOWS
    binding to transfer data from event->workflow,workflow->task etc and
    how i know which container elements are passed in binding?
    You can perform Binding event to workflow from the BASIC DATA (CTRL + F8) of the workflow   hee in the version independent tab you can see a tab START EVENTS here under this tab you will mention the BO ( Business Object Name) and EVENT that for which you want to trigger the workflow  here you will do the binding between WORKFLOW AND EVENT conatiners.
    check this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b0ae453d11d189430000e829fbbd/content.htm]
    Even you can send the values from the ABAP program to the workflow conatiner by using the various FM
    Search SE37 by using SAP_WAPI_*

  • How to perform calculations using column data in BI Publisher

    Hello guys
    I am very new to BIP, and recently I am learning to create new templates using XML files..
    I am trying to create a report that has Account Amount, Amount Net Amount, PM_Amount and a New field say "X"
    For Account Amount it is what it is, but for Net Amount it is "Account Amount/40%", for PM_Amount it is "Net Amount x (Account Amount/30)" and for field X it is "(Net Amount + PM_Amount)/column A" where column A is another data field in the XML file but it should not be included in the template report..
    Could anyone help me with how to perform such kind of calculations in BIP Template builder? In OBIEE, it is very easy that I can just use column formula, but in BIP I still haven't figure out the way yet..
    PLease advice
    Thanks

    Thanks for the reply..
    I looked at the link you provided already, what I wanna know is how to exactly apply the expression in my calculation. In other words, I know that Column C = "Column A div Column B", but in BIP form property, how do I actually substitue "column A" with the actual column..
    I wish I could post the XML, but it is huge, it contains 6 data sets and more than 100 columns. I only need 15 columns on my template.
    On the form property of each measures, in the "advance tab", I see codes like <?accountamount?>. Now I wanna have a new column said "PM_Amt" which should be "(accountamount div %40) x column B". So I just randomly select another column said "payment". I rename it to "PM_AMT" and on its "advanced tab" it is still <?payment?>. So right there, if I wanna replace that code with a new one that does "(accountamount div %40) x column B" calculation, how would I do it? What would be the syntax including how to propertly refer to the right column field as part of the expression?
    And do I have to always use xdofx between <>? how would I know?
    Please advice if you understood what I am trying to say
    Much thanks
    Edited by: user7276913 on Sep 14, 2009 11:24 PM

  • How To Perform Lot Split Transactions Using Transaction Open Interface (MTI)

    Can anyone give me some guidance on how to perform lot split transaction using MTI?
    I am using the following code:
    DECLARE
    l_transaction_type_id NUMBER := 83;
    l_transaction_action_id NUMBER := 41;
    l_transaction_source_type_id NUMBER := 13;
    l_org_id NUMBER := 1884;
    l_txn_header_id NUMBER;
    l_txn_if_id1 NUMBER;
    l_txn_if_id2 NUMBER;
    l_txn_if_id3 NUMBER;
    l_parent_id NUMBER;
    l_sysdate DATE;
    l_item_id NUMBER :=287996;
    l_user_id NUMBER;
    l_distribution_account_id NUMBER;
    l_exp_date DATE;
    BEGIN
    --For Lot Merge, there should be only one resultant lot.
    --The transaction_quantity populated in MTI/MTLI should be the entire
    --quantity that is available to transact for the org/sub/item/locator/LPN in
    --that particular lot number.
    --Get transaction_header_id for all the MTIs
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_header_id
    FROM sys.dual;
    --Get transaction_interface_id of resultant record
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_if_id1
    FROM sys.dual;
    l_parent_id := l_txn_if_id1;
    l_sysdate := SYSDATE;
    l_user_id := -1; --substitute with a valid user_id
    l_distribution_account_id := NULL; --needed for lot translate
    l_exp_date := NULL; --set if required
    --Populate the MTI record for resultant record
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id1, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --l_transaction_action_id
    100000, --transaction_quantity
    'EA', --transaction_uom
    100000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    2, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the resultant MTI record
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id1 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000.1' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , 100000 --transaction_quantity
    , 100000 --primary_quantity
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id1, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --l_transaction_action_id
    100000, --transaction_quantity
    'EA', --transaction_uom
    100000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    3, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the resultant MTI record
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id1 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000.1' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , 100000 --transaction_quantity
    , 100000 --primary_quantity
    --Get transaction_interface_id of Source record-1
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_if_id2
    FROM sys.dual;
    --Populate the MTI record for Source record-1
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id2, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --transaction_action_id
    -200000, --transaction_quantity
    'EA', --transaction_uom
    -200000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    1, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the Source record-1
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id2 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , -200000 --transaction_quantity
    , -200000 --primary_quantity
    END;

    the first MTI record should be the source record ...ie. it should have transaction quantity as negative.
    new set of MTI records should have positive transaction quantities.
    Also ensure that sum of transaction quantities for the set should be 0...
    What is the error that you are getting?
    Thanks,
    Hrishi.

Maybe you are looking for

  • Flash uploader is not working properly in safari 5.1

    Hi All, I'm using safari 5.1 in windows, i had created a flash uploader and when tried to run in safari 5.1 the functionallity below the flash uploader script is not working, i had tried with safari 3.0 it's working fine. I'm facing the problem only

  • Sharing of IRQ - how can i avoid it?

    Hi! I'm now in a process of finding solution against my frequent motherboard power-off. My board is K9N platinum and it's not in a list of affected boards (users who in are know what i'm talking about). But i still have number of unexpected power-off

  • Snippet manager and Extended Script Toolkit

    Is there a snippet manager tool that works with ExtendedScript Toolkit? Wondering if it is possible to crete a script file in a code snippet manager and export it into the ExtendedScript Toolkit.

  • Linux Server Sizing

    Is there any documentation on server sizing? I have a client/server application that will have between 100 and 200 users (75-100 concurrent), and would like to go to a Linux platform. The app is currently running on a large HP server with other apps

  • Nikon D90 footage: Can you edit natively in Final Cut?

    Just wondering if anyone has been using the new Nikon D90 to shoot video, and then importing the footage natively into FCP6. The camera's video-recording format, from what I have read, is 720p24, an .avi file, and a Motion JPEG codec. I see that in t