Inserting data in a table when the save button is pressed

Hello all,
I have a form displaying all fields in a table. it contains an adjustment column which is null by default and also an adjustment flag which is set to NO by default
Now when the form is executed the user is able to add a value in that adjustment column and this value is stored in another table order_adjustment. Entries should be made in the adjustment table only when there is a change in the adjustment column and only for that value that was modified
create table order_adjustement
  adjustment_id number,
  oe_line_id number,
  adjustment_cnt number,
  created_by varchar2(100),
  created_date date,
  modified_by varchar2(100),
  modified_date date
)i have created a procedure in my form to insert my adjustment value
PROCEDURE p_adjustment IS
BEGIN
  insert into order_adjustement
    adjustment_id     ,
    oe_line_id        ,
    adjustment_cnt    ,
    created_by        ,
    created_date     
  values
    order_adjustment_seq.nextval,
    :oe_lines.oe_line_id,
    :oe_lines.adjusted_cnt,
    user,
    sysdate
END;i have used the trigger when new item instance on that adjustment field but the problem is that its not saving the value i am passing through it the first time but if i modify those same values then those values are recorded in the table.
Edited by: Kevin CK on Aug 17, 2010 3:34 PM

Kevin CK wrote:
for eg
for order 1 initially its adjustment_cnt is null
if i insert 1 then save, it saves the null value but if i change the 1 to 10 then it records 1, if i change the 10 to 20, it records 10.If you are calling that procedure in PRE-UPDATE then it should not happen like this. It should insert always the recent updated value.
It seems as if it keeps those values in a buffer.No nothing called buffer while updating and saving records in forms. Because you are using the field like :my_field_name so it should always give the current value which is in the item.
i have tried calling that trigger at block level but still doesnt workWhat did you try? And in which trigger did you try?
-Ammad

Similar Messages

  • Is it possible to save a data portion starting from when a "save" button is pressed?

    Hi,
    The below attached vi acquires data from a sensor. The sensor signal output can be reset to zero and the data saved into a file. However, the saved data comprises the data portion starting from when the vi starts running until the "stop" button is pressed. Is it possible to save the data portion starting from when the "save" button until the "stop" button are pressed?
    Best regards,
    Ninjatovitch
    Solved!
    Go to Solution.
    Attachments:
    Sensor Signal Acquisition.vi ‏52 KB

    this should be in 8.2
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    RandomNumberSubVI.vi ‏8 KB
    savefilewhenselected.vi ‏11 KB
    f.txt ‏1 KB

  • FB70: User exit when the save button (for posting) has been click

    Hi ABAP Gurus,
    With regard to FB70, can anyone provide me the name of the user exit that will be triggered when the save button (for posting) has been clicked?
    Thanks!
    <b>
    Best Regards.
    Brando</b>

    Hello Brando,
    With FB70 I recommend you implement the user-exit via the Business Add-In (BADI) way and avoid SMOD exits if possible.
    The list below are the BADIs that are called by the <b>ECC6.0</b> system after you click the <b>Save</b> button to post a document. <u>They are listed in the order which they are called before the actual post</u>. You'll have to find the right one as per your requirement - you can view their definition via transaction SE18 then after you find the right one you need to use that definition to create an implementation via SE19. Here again, you'll have to choose the right method that suits your requirement. You'll find the method and class documentation in some cases with examples on how to implement, you need to write the code between the Method..EndMethod statement using the parameters provided by the Method.
    1. PPA_CUST_BADI
    2. FI_RES_ITEM_CURRENCY
    3. AC_QUANTITY_GET
    4. BADI_PRKNG_NO_UPDATE
    5. FM_POP_CORE
    6. FMRI
    7. FMRE_BUS_PROCESS
    8. FAGL_SET_SEGMENT
    9. EXIT_XFMPR1_001
    10. BUAVC_CHECK_RESTRICT
    11. UKM_R3_ACTIVATE
    12. CO_DOCUMENT_INFO
    I spent a bit of time debugging FB70 to find this info for you, please appreciate by rewarding points (or else
    Good luck.
    Cheers,
    Sougata.

  • User exit in Delivery after the SAVE button is pressed.

    When the Delivery gets picked and Post Goods issued , the Delivery quantity for example instead of 48,000 LBS may be little less say 47,345 LB. We need to update this number in the order quantity which will originally have 48,000 LBS.
    I need to update this quantity in the sales order VA02 after the delivery is saved. Whats the user exit AFTER the save button is pressed?
    Thank you in advance

    Hi,
    Check this User Exits related to Delivery,
    Delivery related exits
    V50PSTAT - Delivery: Item Status Calculation
    V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 - Collective processing for delivery creation
    V50R0002 - Collective processing for delivery creation
    V50R0004 - Calculation of Stock for POs for Shipping Due Date List
    V50S0001 - User Exits for Delivery Processing
    V53C0001 - Rough workload calculation in time per item
    V53C0002 - W&S: RWE enhancement - shipping material type/time slot
    V53W0001 - User exits for creating picking waves
    VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)
    V02V0001 - Sales area determination for stock transport order
    V02V0002 - User exit for storage location determination
    V02V0003 - User exit for gate + matl staging area determination (headr)
    V02V0004 - User Exit for Staging Area Determination (Item)MV50AFZ1 - User Exits for Delivery Processing
    MV50AFZ2 - User Exit for Batch Quantity Allocation
    MV50AFZ3 - LIPS-KOQUI (Picking is subject to confirmation) determination
    MV50AFZK - The user exits in this include can be used to fill the condition tables for material listing and
    material exclusion (KOMKG and KOMPG) and product selection (KOMKD and KOMPD) with own data.
    MV50AFZL - In delivery creation process for sales orders there is the possibility to restrict the delivery creation to some order items.
    If these order items are member of a delivery group, but not all items of
    this delivery group are includes in the restriction range of the order item nubers, you can specify in this routine what to do.
    MV50AFZP - This user exit can be used to modify change mode of pricing screens in delivery processing.
    MV50AFZZ - Users Exit for Batch Determination; LIPS-LGORT determination
    Thanks & regards,
    Dileep .C

  • TS1365 My Macbook Pro 17" 2.44ghz all of a sudden one day decided to not boot up. When the power button is pressed the sleep light in the front on the latch release turns on and there is a small running sound but it never boots up and the screen never lig

    My Macbook Pro 17" 2.44ghz all of a sudden one day decided to not boot up. When the power button is pressed the sleep light in the front on the latch release turns on and there is a small running sound but it never boots up and the screen never lights up. Anyone else have this problem? Any ideas?
    I'd love to repair it but not if it'll cost 500 bucks or more to replace the logicboard.
    I appreciate any help
    Michael

    Lao Bo,
    yes, you can locate and copy a file from your HD to a USB key using UNIX commands. If you know the exact name of the file which you’re trying to locate, try this:
    find / -iname filename -print
    This command will search your entire internal disk for the particular filename. If you know that it’s within a particular user account, then you can save search time with this variation:
    find /Users/username -iname filename -print
    Either variation of this command will print all files found which have the given filename. Presuming that you’re able to identify the correct file, you can copy it to a USB key using the command
    cp -p filename_returned_by_find /Volumes/USB_volume
    If you’re not sure which volume name your USB key has, this command will show you what the possibilities are:
    ls /Volumes
    Please let me know if you have any trouble with these commands.

  • IPhone 4s Voice Memo App has 5 second delay when the record button is pressed. When it starts recording, it goes from 0 seconds to 5 or so seconds recorded. This happens randomly and often and sometimes has the delay but starts at zero. Solution Anyone?

    After iOS 7 update, my iPhone 4s Voice Memo App has 5 second delay when the record button is pressed. When it starts recording, it goes from 0 seconds to 5 or so seconds that it shows has recorded. This happens randomly and often, sometimes it will have the 5+ second delay but starts recording at zero seconds. Besides the delay it has been working fine as far as saving and playback is concerned. I have plenty of storage on the phone itself and it NEVER had this problem before I updated to iOS 7. I've reset the phone a couple times by holding down the power and home buttons at the same time. The reason I have an issue with this is that I'm always recording song ideas, melodies, and scratch takes; what I'm saying is when I come up with an idea I need to be able to know that when I hit record it will start right then so I don't forget anything that has just popped in my mind.
    Does anyone have a solution or suggestion?
    Thanks

    After iOS 7 update, my iPhone 4s Voice Memo App has 5 second delay when the record button is pressed. When it starts recording, it goes from 0 seconds to 5 or so seconds that it shows has recorded. This happens randomly and often, sometimes it will have the 5+ second delay but starts recording at zero seconds. Besides the delay it has been working fine as far as saving and playback is concerned. I have plenty of storage on the phone itself and it NEVER had this problem before I updated to iOS 7. I've reset the phone a couple times by holding down the power and home buttons at the same time. The reason I have an issue with this is that I'm always recording song ideas, melodies, and scratch takes; what I'm saying is when I come up with an idea I need to be able to know that when I hit record it will start right then so I don't forget anything that has just popped in my mind.
    Does anyone have a solution or suggestion?
    Thanks

  • Why does Satellite Pro A300 not start when the power button is pressed?

    Suddenly my new Satellite Pro A300 will not start correctly when the power button is pressed. The situation is this: When I press the power button the Toshiba opening picture (Leading Innovation) appears and disappers quickly. Then there is a black screen for about 30 seconds. Then there is a rectangular frame with the text Microsoft Corporation underneath. And nothing happens however long I wait.
    In order to get on with the starting proces I then shut down the computer by pressing down the power button until the computer stops. ("The hard way to shut down")
    Now I press the power button shortly to turn on the computer. Then the computer starts normally with the Toshiba opening picture and after a few seconds I am asked to open the computer in safe mode or in normal mode. I now choose to open in normal mode and the computer opens normally and is ready to work.
    What shall I do to get a normal start procedure?

    When notebook starts normally (after choosing normal mode) shut down your notebook properly using START > Shut down option. Next start should be normal.
    When the OS is switched down on irregular way you will be always asked how to start it again (safe or normal mode).
    The same happen on my Satellite A300.

  • My Wireless mac keypad has stopped properly working. The keys sometime do not correspond to the result, or a a simultaneous duel actio, for example when the delete button is pressed the. Ursor does go backwards, but it also turns the sound up. Any ideas?

    My Wireless mac keypad has stopped properly working. The keys sometime do not correspond to the result, or a a simultaneous duel actio, for example when the delete button is pressed the. Ursor does go backwards, but it also turns the sound up. The keyboard is properly connected to the computer, and the battery life is up in the nineties.
    Help please !!!!

    Hi, thankyou for your response. Can I just confirm that you mean turning the computer on and off again, or re-booting the whole system. If it is the first I have already turned the system on and off, with no luck.
    Regards

  • Fire a left click when the right button is pressed

    I am working on a small program with a text area and mouse functionality. I have all my listeners in place but I need one additional feature and I am unsure how to go about implementing it. I want to be able to fire a left click when the right button is pressed.
    The reason is because right clicking does not move the caret around the text area. I need to be able to move the caret with a right click so I can then invoke another method to do some other functionality that is associated with the right click. Any method is acceptable as long as a right click will result in the caret being able to move to a location much like a left click can.
    all help is appreciated. Thanks.

    I'm not sure if this is "better", and my guess is that it isn't, but how about using a Robot object here to create a left mouse press and release? For instance,
    import java.awt.AWTException;
    import java.awt.Robot;
    import java.awt.event.InputEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JComponent;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class RightClickAsLeft
      private JPanel mainPanel = new JPanel();
      private JTextArea area = new JTextArea(20, 50);
      private Robot robot;
      public RightClickAsLeft()
        try
          robot = new Robot();
        catch (AWTException e)
          // TODO Auto-generated catch block
          e.printStackTrace();
        mainPanel.add(new JScrollPane(area));
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 18; i++)
          for (int j = 0; j < 80; j++)
            sb.append((char)(40 + j));
          sb.append("\n");
        area.setText(sb.toString());
        area.addMouseListener(new MyMouseListener());
      public JComponent getComponent()
        return mainPanel;
      private class MyMouseListener extends MouseAdapter
        @Override
        public void mouseClicked(MouseEvent e)
          int button = e.getButton();
          if (button == MouseEvent.BUTTON3)
            if (robot != null)
              robot.mousePress(InputEvent.BUTTON1_MASK);
              robot.mouseRelease(InputEvent.BUTTON1_MASK);
      private static void createAndShowUI()
        JFrame frame = new JFrame("RightClickAsLeft");
        frame.getContentPane().add(new RightClickAsLeft().getComponent());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
          public void run()
            createAndShowUI();
    }Edited by: Encephalopathic on Apr 10, 2009 9:59 AM

  • Newsstand suppresses the home screen from the app switcher view when the home button is pressed?

    Newsstand suppresses the home screen from the app switcher view when the home button is pressed.
    Has anyone else seen this before, I needed to lock and unlock iPad to get back to the home screen.

    Aloha Ethan. Fortunately it's working as designed, but you'd never believe how many people wanted to argue with me smply because it worked differently. Can't please everybody I guess.  Bob. 

  • User exit name which triggers when a save button is pressed in CJ20N

    Hi, does anyone knows which user exit is called when press the 'SAVE'  button in CJ20N transaction.
    Thanks

    hi,
    Below are the list of user exits available
    for cs02.
    PCSD0001            Applications development R/3 BOMS                           
    <b>PCSD0002</b>            BOMs: Customer fields in item                               
    <b>PCSD0003  </b>          BOMs: Customer fields in header                             
    PCSD0004            BOM comparison                                              
    PCSD0005            BOMs: component check for material items                    
    PCSD0006            Mass changes user exit                                      
    PCSD0007            Check changes in STKO                                       
    PCSD0008            WBS BOM: Customer-specific explosion for creating           
    PCSD0009            Order/WBS BOM, determine URL page                           
    PCSD0010            Order/WBS BOM, determine explosion date                     
    PCSD0011            Knowledge-based order BOM, parallel update                  
    PCSD0012            Customer - Mat. number/mat. number during material change 
    PCSD0013            Customer-specific processing of an explosion for BOM rowser
    Hope this helps !!
    Cheers
    Alfred

  • Can a today's date be added in a date field when the submit button is pressed?

    I created a form with a submit button and the form is sent via email.  Can the date when the form is submitted show up in a date field with the button is pressed?
    Any help with this is much appreciated. Thanks.

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

  • User exit name which triggers when a save button is pressed in cs01

    Hi Gurus,
    Can anybody tell me what is user exit which will trigger for a save button in tcode
    CS02
    Regards
    Yathish

    hi,
    Below are the list of user exits available
    for cs02.
    PCSD0001            Applications development R/3 BOMS                           
    <b>PCSD0002</b>            BOMs: Customer fields in item                               
    <b>PCSD0003  </b>          BOMs: Customer fields in header                             
    PCSD0004            BOM comparison                                              
    PCSD0005            BOMs: component check for material items                    
    PCSD0006            Mass changes user exit                                      
    PCSD0007            Check changes in STKO                                       
    PCSD0008            WBS BOM: Customer-specific explosion for creating           
    PCSD0009            Order/WBS BOM, determine URL page                           
    PCSD0010            Order/WBS BOM, determine explosion date                     
    PCSD0011            Knowledge-based order BOM, parallel update                  
    PCSD0012            Customer - Mat. number/mat. number during material change 
    PCSD0013            Customer-specific processing of an explosion for BOM rowser
    Hope this helps !!
    Cheers
    Alfred

  • Web DynPro Behaviour when the Reload button is pressed

    Hi,
    I'd like to know what is the behaviour of the Web DynPro when an user presses the Reload button on the browser.
    I'm asking this because I designed a WDP that has a view with some input fields, two button and a table to show the result of a search operation based on the content of the input fields.
    Some of the input fields are text inputs and others are dropdown list controls. In some cases, e.g. after having performed a search, if I hit the Reload button the content of one dropdown list was shown in another dropdown list.
    The dropdown lists and the other input fields are bound to some context attributes and nodes.
    I'm trying to figure out why the WDP is kept in this 'dirty state' when the page is reloaded.
    Thanks,
    Pietro.

    Hi Pietro,
    a reload of the Browser causes every time a reload of WDJ-Application. That means the content in the wdDoInit-Method is executed and the UI-Input elements are in initial state.
    If you want to store the selection in the Input fields and droodowns the only way is to store that in the session.
    Here is an example to do that.
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, "ABC", "someValue");
    Than you have to read this in the init-Methods.
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, "ABC");
    Regards
    Gunter

  • HT201401 My iphone4s struggles to open when the home button is pressed,seems blurd and grainy

    When pressing the home button on my iPhone 4S it has started to struggle and appear grainy and slow, tho it works well after that.

    Hi Ashyrah,
    Have you tried rebooting the phone? Hold down the Home and Power buttons at the same time and continue to hold them until the Silver Apple appears (no data will be lost, but it may take up to 20 seconds to reboot and display the Apple, so be patient).
    Once the Home screen comes up again, see if things are working a little more like you'd expect them to....
    Cheers,
    GB

Maybe you are looking for

  • Open dialog box default

    Hi- I recently upgraded to DW CC and most everything else in the CC. I am only having this issue with DW on a Win 8, 64-bit system. PS, AI, InDesign and Premiere CC  do not do this. When I want to open files, and I routinely want to open .cfm files,

  • Upgrade from 7.1.2 to 9.3.1

    Hi All, I have a query regarding the migration of Essbase applications from 7.1.2 to 9.3.1. I have been able to migrate the apps with the outline, rule files, and calc scripts. But I am stuck up in migration of security. Can anyone please let me know

  • Condition Pricing Date

    Hi, I have a PO made on 17/02/2011. but when I check its pricing details it shows CondPricingDate - 25/11/2011. How is this possible?

  • How to Hide Form Library under Enterprise Sourcing Menu

    Hi Experts, I am using SAP Sourcing 10.0 and trying to hide the option " Form Library" in Buyside portal which appears under Enterprise Sourcing-->Library--> Form Library (Attached) I tried it via Toolbar Customization; however this particular Librar

  • One hour difference in events

    We just encountered a user who is seeing all his appointments as one hour behind where they should be via the web interface but perfectly normal otherwise. Time zones for the web interface, desktop client, and Connector (which he's also tried), as we