Table update by pressing a button

hello,
I would like to update all fields from r_wep where wep.gln is empty and field lieferdatum is today-100 days and r_warengru_nummer is 1,2,4 or 6 after pressing a button in the form.
It should be filled with the field gln from r_kunde if the field r_kunde.Lieferantenart=1. If I do the SQL Statement below I get a message select supplies more
than one line. what is wrong?
update r_wep
set gln=
(SELECT R_KUNDE.GLN
FROM R_KUNDE, r_wep
WHERE (LIEFERANTENART=1
AND R_WEP.KUNDE=R_KUNDE.NUMMER)
where
GLN IS NULL
AND LIEFERDATUM>SYSDATE-100
aND (R_WARENGRU_NUMMER=1
OR R_WARENGRU_NUMMER=2
OR R_WARENGRU_NUMMER=4
OR R_WARENGRU_NUMMER=6)
;

Seems to be nearly correct, try
update r_wep set
  gln=(SELECT R_KUNDE.GLN
         FROM R_KUNDE
        WHERE LIEFERANTENART=1
          AND R_KUNDE.NUMMER=r_wep.KUNDE
where GLN IS NULL
  AND LIEFERDATUM>SYSDATE-100
  aND (   R_WARENGRU_NUMMER=1
       OR R_WARENGRU_NUMMER=2
       OR R_WARENGRU_NUMMER=4
       OR R_WARENGRU_NUMMER=6
      );not tested

Similar Messages

  • Updating a column when button  pressed

    Hello,
    I have a ADF master detail table and in the detail table and I would like to add a button. When user select a row and presses the button, I need to update a column value to 'Y'. How can I do this?
    I need to have a Yes or No prompt as welll before it gets updated in the db table.
    How can I acheive this.
    Thanks a lot.

    Hi,
    if you use ADF, on the button action method, access the ADF biinding, get a hande to the iterator and call getCurrentRow() on it. The set the attribute that represents the column and set Yes or No to it.
    Make sure you use PPR to refresh the table when teh button is pressed
    Frank

  • Something has happen my ipad air 2 it wont let me download or update any apps, when I press the button do update or download it looks like it is but it doesn't so if anyone knows what's going wind please help me

    Something has happen my ipad air 2 it wont let me download or update any apps, when I press the button do update or download it looks like it is but it doesn't so if anyone knows what's going wind please help me

    Do you have any restrictions for purchasing apps on the phone? Settings > General > Restrictions. If you have a Mac computer or another Apple device can you purchase things in the App Store using the same Apple ID on something else?

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    Ive tried using wifi and 3G seperately. Ive tried restarting the phone. Ive tried restoring it from a backup but none of these have worked yet.

  • HT5622 Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected

    hie there Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected to net

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • My apps are not being updated when pressing the update all button. It just says installing and no update is being done., my apps are not being updated when pressing the update all button. It just says installing and no update is being done.

    my apps are not being updated when pressing the update all button. It just says installing and no update is being done., my apps are not being updated when pressing the update all button. It just says installing and no update is being done.

    Must be serious because you have stated the problem 4 times now.
    Here are a number of things that you can try and maybe one of them will help.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.
    You can also try going to the App Store, find an app that needs an update, tap on the app icon to bring up the description page, then tap on install that way, rather than using the Update option from the app updates screen.
    And ... You can always install the updates in iTunes on your computer and then sync them to the iPad.

  • How to when press the button and can change the value in the table?

    this is my code so far with a table and a button..how can i make it when press the button and the data in table change..
    * SimpleTableDemo.java is a 1.4 application that requires no other files.
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class SimpleTableDemo extends JPanel {
    private boolean DEBUG = false;
    private JPanel button;
    private JButton enter;
    public SimpleTableDemo() {
    super(new BorderLayout());
    //button.setBackground(Color.pink);
    //setForeground(Color.pink);
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    enter = new JButton("Press me");
    //Add the scroll pane to this panel.
    buildButton();
    add(scrollPane, BorderLayout.NORTH);
    add(button, BorderLayout.CENTER);
    private void buildButton(){
    button = new JPanel();
    button.add(enter);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("SimpleTableDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SimpleTableDemo newContentPane = new SimpleTableDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Cross-post:
    http://forum.java.sun.com/thread.jspa?threadID=676105

  • Setting editingMode (table's property) through a button pressing

    Hello ereryone.
    I'm using jDev 11.1.2.3
    I have an af:table and set editingMode=clickToEdit.
    It would be nice if there were a button before the table that actually controls that property. So, the user selects one row and then presses the button and the code in there sets the editingMode to clickToEdit and makes the record editable.
    The problem is that I don't have a clue how to do this! How the code should be like.
    Can anyone provide with a tip, a use case... etc ?
    Your input is highly appreciated.
    ~apostolos

    Anything? please...

  • Updating form after a button is pressed

    If I have a simple form with a button and a progress bar and then I create an object of this 'GUI' class and instantiate the form, then the user presses the button how can I update the progress bar from 0 to 100%? In other words, in my actionPerformed(ActionEvent e) method how can I then use the previously instantiated object of the 'GUI' class to update the form?

    More information....
    I create an object to instantiate the form. Now if I update the progress bar with this object everything works great.
    I also have an object of the same type that is global that I set equal to this original object that instantiates the form. If I update the progress bar with this object (which should be the same) then the progress bar does not update until after the progress bar is at 100%?!?
    Does any of this make any sense?

  • HT201263 APP store indicates 1 update.  Press "store", "loading" briefly on screen then white screen with updates bar on top.  Press updates button in lower right; nothing happens frozen with white screen and still indication 1 update.  Other store featur

    APP store indicates 1 update.  Press "store", "loading" briefly on screen then white screen with updates bar on top.  Press updates button in lower right; nothing happens frozen with white screen and still indication 1 update.  Other store features and ipod work ok

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>iTunes and App Stores and sign ut and sign back in
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          
    Also see:
    https://discussions.apple.com/thread/4751197?tstart=0

  • I bought a brand new ipod touch 5th gen, updated the software and now iTunes says "to allow access, please respond on your ipod touch" however the ipod has a black screen and pressing the buttons does nothing. how do i fix this?

    As the title says, this is a brand new iPod touch bought from a store, I plugged it in a commenced the "setting up" process through iTunes on may iMac. It got to the stage where it said allow this computer to access the device (or something along those lines), i clicked yes, and then a message came up "to allow access, please respond on your iPod touch. however the ipod screen is black, and pressing the buttons doesn't work. How can i fix this? or do I need to return it?

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • Problem in table update.

    Hi All.
    I am facing one problem while updating the Ztable. The scnerio is like that we are tracking PO changes. So we created one Ztable to store PO changes. In this table we ahve Sr No field as primary key. When user press SAVE button,  first maximum Sr No is selected from table and with addition of 1 new record is created with taht PO number. Now problem is that when two users save different PO at same time , them only one entry is saved in table.
    Can i use enque deque or any other login I have to use for this?
    Thanks.

    Hy PKB,
    Use Enque and Deque method..
    your problem will be solve.
    Create a lock object via SE11->Lock object and call the ENQUEUE_EZ_<TABLE> before updating the table and DEQUEUE_EZ_<TABLE> to unlock after updating the table ...
    Requesting an SAP lock
    When a lock object obj is activated, two function modules (see CALL
    FUNCTION) with the names ENQUEUE_obj and DEQUEUE_obj are generated.
    These lock modules are used to explicitly request or release SAP locks
    in an ABAP program. The SAP lock concept thus assumes a cooperative
    behavior by all the programs involved. This means that access from
    programs that do not call the specified modules are not protected.
    The lock conditions and lock modes for the requested locks are defined
    by the IMPORT parameters of the lock modules.
    The lock conditions are defined by the lock parameters of the lock
    object. If the lock object has only one base table, each primary key
    field of the table corresponds to exactly one lock parameter. Apart from
    this, a lock parameter corresponds to a group of primary key fields that
    are identified by the join conditions. For each lock parameter par, the
    lock modules have two IMPORT parameters with the names par and X_par.
    The lock condition is defined by these parameters. If a parameter par is
    not defined or if it is defined with the initial value, this means that
    the corresponding key fields should be locked generically. If you really
    want to lock the key field with the initial value, you must also define
    the parameter X_par with the value 'X'.
    To define the lock modes, the lock modules have an IMPORT parameter
    MODE_tab for each base table tab, with which the lock mode for this
    table can be defined. A default value must already be set for this
    parameter in the definition of the lock object.
    this is second procedure.
    each explicit locking process assumes that all programs which perform database accesses work together in a cooperative manner. If a program does not behave in this way, i.e. it reads or changes data without locking it beforehand, this may result in a conflict with another program, even this other program has locked data correctly.
    The following program fragment presents a solution to this problem:
    TABLES: SFLIGHT, SBOOK.
    CALL FUNCTION 'ENQUEUE_ESFLIGHT'
    EXPORTING MANDT = SY-MANDT
    CARRID = 'LH'
    CONNID = '0400'
    FLDATE = '19960516'
    MODE_SFLIGHT = 'E'
    EXCEPTIONS FOREIGN_LOCK = 1
    OTHERS = 2.
    CASE SY-SUBRC.
    WHEN 1. ...
    WHEN 2. ...
    ENDCASE.
    SELECT SINGLE * FROM SFLIGHT
    WHERE
    CARRID = 'LH' AND
    CONNID = '0400' AND
    FLDATE = '19960516'.
    IF SY-SUBRC 0.
    MESSAGE E...
    ENDIF.
    IF SFLIGHT-SEATSOCC < SFLIGHT-SEATSMAX.
    SBOOK-CARRID = 'LH'.
    SBOOK-CONNID = '0400'.
    SBOOK-FLDATE = '19960516'.
    INSERT SBOOK.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    UPDATE SFLIGHT
    SET
    SEATSOCC = SEATSOCC + 1
    WHERE
    CARRID = 'LH ' AND
    CONNID = '0400' AND
    FLDATE = '19960516'.
    ELSE.
    MESSAGE E...
    ENDIF.
    CALL FUNCTION 'DEQUEUE_ESFLIGHT'
    EXPORTING MANDT = SY-MANDT
    CARRID = 'LH'
    CONNID = '0400'
    FLDATE = '19960516'
    MODE_SFLIGHT = 'E'.
    COMMIT WORK.

  • Can anyone help me connect my Macbook Air to a SAMSUNG TV.  When I follow the basic instructions (Thunderbolt to HDMI connection) the screen on my computer goes grey and an error message appears inviting me to press any button to restart th

    Can anyone help me connect my Macbook Air to a SAMSUNG TV.  When I follow the basic instructions (Thunderbolt to HDMI connection) the screen on my computer goes grey and an error message appears inviting me to press any button to restart the Macbook.  When I do this nothing happens.  Only when I disconnect the computer from the TV does the Macbook allow me to login. The TV does not receive any signal from the Macbook even though I know the HDI port works fine.  Any ideas what I'm doing wrong?  Do I need to enable something on the Macbook?

    An update...
    I downloaded Apple's (rather large!) list of software updates today, and I was finally able to recognize my iPod again. I did a restore using the iPod updater from 06-2006, and all seemed to work OK. (I'm afraid to try the new one again!)
    Then I tried to re-load my music library from iTunes, and got stuck. It froze up after a while and wouldn't go any further.
    When I disconnected my iPod from my computer, I find 2 podcasts and nothing else, though iTunes told me it had transferred 600+ songs. Those 2 podcasts do play fine, and the basic iPod software all seems to be intact.
    So -- anyone get through this connection problem and have any ideas to share??
    iMac Mac OS X (10.4.7)

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

Maybe you are looking for

  • How do you create a cubed symbol in a string?

    I am trying to make a cubed symbol in a string. I was able to copy this text from a program someone else wrote, but can't figure out how they created it. It says its application font. Any suggestions? Thanks. Attachments: cubed.vi ‏4 KB

  • 1.41 SR1 - Inbound calls to all model phones ring only 1 time

    Has anyone else run into the scenario: 1.  End user has modified ringtone to something other than default on CUCM 792x wifi phone 2.  Call is presented to wifi phone but is only audible on first ring 3.  Call is still being presented to phone but no

  • Captcha in Visual Webpart SharePoint 2013

    I want to insert a captcha control like below in my visual web part in sharepoint 2013. Please suggest how can i achieve this.

  • Captivate 7 and Mac OS 10.9.1 : crash.

    Hi, I use Captivate 7 and MacOS 10.9.1. I can create new project, I can open captivate. But each time, I want to open an existing files, captivate crash (close). I try to install again and again captivate, but I have always the same problem.  Anyone

  • Can't upgrade to snow leopard

    Weird problem. I"m finally taking the plunge to upgrade to Snow Leopard from 10.5.8. Ran the installer, it spent ten minutes copying files. Rebooted and... Nothing. Still in 10.5.8. There's now a folder on my hard drive named "Mac OS X Install Data"