Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5986367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:39:40+00:00 2026-05-22T22:39:40+00:00

I have a screen in ABAP that makes it possible to update a database

  • 0

I have a screen in ABAP that makes it possible to update a database row. It’s sort of working: I can update the ‘row’ but the problem is, that it’s updating EVERY row in the table and not the one specified in the where clause.

This is the code I’m using:

UPDATE zmotoren_jat SET:
prijs = zmotoren_jat-prijs,
naam = zmotoren_jat-naam
WHERE motorid = zmotoren_jat-motorid. "this line doesn't seem to work!

Any idea why this won’t work? I’m sure that ‘motorid’ exists: I’m not getting an error and I’m using the same line, motorid = zmotoren_jat-motorid to delete a row, which does work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:39:40+00:00Added an answer on May 22, 2026 at 10:39 pm

    Your problem seems to have to do with the colon (:) in the first line, and the comma (,) in the second line.

    The colon introduces chained statements, and it could be seeing the first one with prijs as a separate statement, thereby updating all records in the first statement (because the WHERE clause then only applies to the second statement).

    Take out the colon and remove the comma between the SET specifiers and try again.

    See Esti answer for an explanation with some example code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am experiencing a strange problem: I have a Screen that is using the
I have a screen where you can enable/disable modules for my Android application. For
In an embedded program I have a screen object that needs to manage a
I have a screen in my windows mobile app that I is intended for
I have an screen that displays all the names in the Contacts in a
I have a screen that pops up on load with a print dialog using
I have a screen that lists users. It doesn't show what roles they have.
I have a screen that has textviews and edittexts. I am trying to edittexts
I have a screen with several UserControls, but only one of them remains active.
According to http://developer.android.com/guide/practices/screens_support.html Normal screen with hdpi can have few resolutions, like 480X800 600x1024

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.