Overwrite database record - Table has only 1 field and record

Hi,
How do you overwrite a record in a database table?
The database table that we have only has one field and this field is used to count the print number of a specific label. This table will only have 1 record.
The field is also used as part of an id.
So during each program run, I will select the current number in the field, add to it in my program, then will need to overwrite the current value in the database table with the new value.
Please suggest if something different should be done.
Thanks,
John

You will need to do a delete and then insert instead of delete and update. Update wont work in this case.
"Lock DB table
DELETE FROM <DB TABLE> CLIENT SPECIFIED WHERE MANDT = SY-MANDT.
INSERT <DB TABLE> FROM <HEADER>.
"Unlock DB table.
regards,
Advait

Similar Messages

  • Access 2010 table has too many fields for web database - how to split into two web-compatible tables?

    Hello, 
    I'm in the process of converting an Access 2010 database into a web database and I'm having some trouble. I have a table which has 236 fields, which is more than the 220 field limit for web-compatible tables. I have tried to split this table into two tables
    with a one-to-one relationship, but web tables can only use lookups as relationships. I've tried to connect the tables with a lookup and then synthesize a one-to-one relationship by using data macros but I'm not having much luck.
    I realize that 236 fields is a lot, but it must be set up this way because each field represents a tasks and is a yes/no box to verify that the task has been completed - and the records are different employees for whom which the tasks need to be completed.
    Could someone please help me figure out a way to make this table web compatible?
    Thank you, 
    Ryan

    Hi,
    I found that you've cross post the quesion on our Answer forum, are you satisfiled the reply from there?
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/access-2010-table-has-too-many-fields-for-web/06ee81ea-24ab-48b8-9b8f-0ed08a868bac
    Regards,
    George Zhao
    TechNet Community Support

  • The battery for my Macbook Pro 13 "has only 121 cycles and is not charging anymore, my Mac is telling me that it is necessary to exchange it. You have any tips for me to find out what might be happening with my battery?

    The battery for my Macbook Pro 13 "has only 121 cycles and is not charging anymore, my Mac is telling me that it is necessary to exchange it. You have any tips for me to find out what might be happening with my battery?

    Guys, i am actually trying using a solution provided by the article shared by dominic23,
    It says "Another option is to get an ionizer to help the atmosphere in the workplace be more conductive and pull charges away from contact surfaces, including yourself."
    So in my home, we have such device that could clean the air using ion, and i am using it in my room...
    Result: BANG!!! The electric shock on my macbook has gone!! I don't really care about physics but somehow it works! You guys should give it a try.
    Thanks again dominic23

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • Problem with creating an dynamic internal table with only one field.

    Hi,
    i create an internal table like this:
    FIELD-SYMBOLS: <GT_ITAB>      TYPE TABLE,
                   <GS_ITAB>,
                   <FS>.
    DATA: GT_DATA TYPE REF TO DATA.
    DATA: GS_DATA TYPE REF TO DATA.
    DATA: TABNAME   LIKE DD03L-TABNAME.
    DATA: FIELDNAME LIKE DD03L-FIELDNAME.
    DATA: TBFDNAM   TYPE TBFDNAM VALUE 'LFA1-NAME1'.
    SPLIT TBFDNAM AT '-' INTO TABNAME FIELDNAME.
    CREATE DATA GT_DATA TYPE TABLE OF (TABNAME).
    ASSIGN GT_DATA->* TO <GT_ITAB>.
    CREATE DATA GS_DATA  LIKE LINE OF <GT_ITAB>.
    ASSIGN GS_DATA->* TO <GS_ITAB>.
    SELECT * FROM (TABNAME) INTO CORRESPONDING FIELDS OF TABLE <GT_ITAB>.
      BREAK-POINT.
    it works OK.
    Now i want to create an internal table not like LFA1 but with LFA1-NAME1 Field TBFDNAM.
    It's not only LFA1-NAME1 it shell be the value of TBFDNAM.
    When i change
    CREATE DATA GT_DATA TYPE TABLE OF (TABNAME).
    to
    CREATE DATA GT_DATA TYPE TABLE OF ( TBFDNAM).
    i get an shortdump.
    Any idea?
    Regards, Dieter

    Hi Dieter,
    Your approach is ok, but it will create dynamic table without a structure of NAME1. Only the line type will be suitable (but field name will not exists -> hence the error in the select statement).
    In this case you need to create a dynamic table which structure consists of one field named NAME1.
    This code is the appropriate one:
    " your definitions
    DATA: tabname LIKE dd03l-tabname.
    DATA: fieldname LIKE dd03l-fieldname.
    DATA: tbfdnam TYPE tbfdnam VALUE 'LFA1-NAME1'.
    FIELD-SYMBOLS <gt_itab> TYPE table.
    "new ones
    DATA: it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
    DATA: gt_itab TYPE REF TO data.
    " get table and fieldname
    SPLIT tbfdnam AT '-' INTO tabname fieldname.
    " create dynamic table with structure NAME1 (only one field)
    it_fcat-fieldname = fieldname.
    it_fcat-tabname = tabname.
    APPEND it_fcat.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog           = it_fcat[]
      IMPORTING
        ep_table                  = gt_itab
      EXCEPTIONS
        generate_subpool_dir_full = 1
        OTHERS                    = 2.
    CHECK sy-subrc = 0.
    " dereference table
    ASSIGN gt_itab->* TO <gt_itab>.
    " insert data only to NAME1 field
    SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE <gt_itab>.
    I checked, this works fine:)
    Regards
    Marcin

  • Which FM can append table sturcture(add key fields and so on)

    Hi everybody,
    does any one of u know a FM which append structures of table (to add the key fields and so on) in ABAP dictionary.
    The FM DDIF_TABL_PUT is only used to write a new table and I don't want to call this FM twice to realize my application.
    Thanks in advance!
    Liying

    Hi Raja,
    I got a runtime error:Perform_NOT_FOUND
    EXCEPTION:CX_SY_DYN_CALL_ILLEGAL_FORM
    following is my codes:
    DATA ATA DDFIELDS LIKE DDFIELD OCCURS 2 WITH HEADER LINE.
    DATA NAME LIKE DD02L-TABNAME.
    DDFIELDS-FIELDNAME = 'F3'.
    DDFIELDS-POSITION = '3'.
    DDFIELDS-KEYFLAG = 'X'.
    DDFIELDS-DATATYPE = 'INT4'.
    APPEND DDFIELDS.
    DDFIELDS-FIELDNAME = 'F4'.
    DDFIELDS-POSITION = '4'.
    DDFIELDS-KEYFLAG = ''.
    DDFIELDS-DATATYPE = 'INT4'.
    APPEND DDFIELDS.
    NAME = 'ZTEST'.
    CALL FUNCTION 'DB_ADD_TABLE_FIELDS'
        EXPORTING
            TABNAME = NAME
        TABLES
            DDFIELDS = DDFIELDS
        EXCEPTIONS
            FIELDS_NOT_ADDED = 01
            PROGRAM_NOT_GENERATED = 02
            PROGRAM_NOT_WRITTEN = 03
            TABLE_DOES_NOT_EXIST = 04.
    What might be the reason?
    B.R.
    Liying

  • Does cinema 4d (cineware after effect) standard render no has depth of field and physical render have depth of field?

    Dear sir
    Why cineware have only one standard render engine ? why do no have more render engine?
    as i saw in tutorial long course in internet for cinema 4d build in standard render is no has depth of field (f stop) but for physical render has depth of field.
    so the problem with using cineware in after effect provide us only standard render engine. how can we composite with shallow depth of field video footage in After Effect if standard render no depth of field to Modeling or character that we composite with?

    Now i can find solution on this depth of field cineware. I will try it
    later. But now i have one more problem about render engine tool there are 4
    in cinema 4d right? What different of them? See photo attached

  • Creating Condition Table.. Key fields and line items

    dear all
    I am creating a Condition table and have 6 fields, I want to make 5 of them as key fields and also header line fields.
    I want my 6th field as line item field but I am unable to do that. My last key field is also shoiwing in line item.
    Please help.
    Thank you.
    Madhu.

    Hi,
    Check this thread
    Re: VK11
    Regards,
    Chandra

  • Which table has the sales price and Art.no?

    Hello,
    I want to export the sales prices of parts to a excel,so who can give me the table which includes this field?
    Thanks in advance
    Helai

    Thanks All
    In A005 I get nothing after a certain part no inputted
    In A004 I get the several CondrecNo ,but no customer no.linked in this table,so I don't know which customer will get what price when I pass the CondRecNo to KONP,although I know it already includes all sales prices
    So still can't get the "NETPR" for a certain part.
    Any advices for a query for getting sales prices for a certain part
    Best Regards,
    Helai
    Edited by: lai he on May 6, 2009 7:17 AM

  • My ipad has only 1% battery and it wont charge

    My ipad has only 1% battery left, but when im trying to charge it, i wont charged even i plug to my macbook
    Please help :'(

    What model iPad? Could be the cable, charger or iPad/battery.
    Try this first - Reset 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. (This is equivalent to rebooting your computer.)
    And this - Unplug the charger from the iPad and then replug. May resume charging.
    Or - Recalibrate the battery. See link below.
    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W (5W on Mini) USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • Issue with Selection Listener when the table has only one row

    Hi All ,
    I have developed a table in which I am using Selection Listener to perform some task when any row is selected.
    It is working fine when I have more than 1 row in the table, but when I have only one row in the table , the selection listener do not call the corresponding method in bean.
    I understand that selection event will be raised only when the row is changed, but in the use case when only one row is there, what should be done to make the selection listener work ?
    In the selection listener I have written code to make the selected row as current row , and perform the required task.
    Please suggest a way out for this situation.
    Thanks in advance.

    Hi,
    try removing this attr from table
    selectedRowKeys="#{bindings.xxx_VO1.collectionModel.selectedRow}"

  • Events in Table Maintenance - How validate fields and deliver error message

    Simple transparent table.  I have generated one step table maintenance.  I use a view variant to make some fields display only.  I would like to use Events to provide some validation.  For example: If field STATUS = 'T', then field QUANTITY must be > 0.
    So far, I have tried events 05 and 21.  When the user tries to enter a new row, I can issue an error message that is returned to the screen.  The problem is that the screen is no longer typeable, i.e. the user cannot correct the error.  They have to exit and start over.
    Is there a different event or different coding I should provide to open up the screen for typing?

    Hi,
    Tried 'message type 'I' display like 'E''', in event 5 and 21. The non-key fields are now typeable but the validation is not enforced, i.e. you get a message that you must enter a QUANTITY but you can save the row without entering a QUANTITY.
    Yes I was afraid of that... that's why I would use the event 01 (with 05, if user still tries to save invalid entries, 01 will block). Normally when you get the error and press the ENTER key, you should get back to your table in edit mode... Well this is happening on my system...
    I'll let you know if I got a better idea...
    Kr,
    Manu.
    Edited by: Manu D'Haeyer on Nov 10, 2011 5:01 PM

  • My new Ipod Nano has only 14.88GB and not 16GB as promised. Why?

    I just bought an Ipod Nano 16GB. I registered it at I-tunes and to my big surprise I realized it only has a capacity of 14.88GB and not 16GB. It is such a difference that it really counts, so I am a bit frustrated.
    I have contacted Apple by E-mail, but they keep referring me to another department by saying it is not under their jurisdiction. It is as if they want to silence the matter.
    Can anybody explain to me if anything is wrong with my Nano16GB and if so what I shall do next?
    Thank you,
    Posten

    This is perfectly normal, some of the listed capacity is used for formatting and other functions including the iPod's operating software. You'll see the same thing if you connect any flash memory stick. For instance my 8GB USB memory stick is reported as 7.45 GB. The same thing happens with hard drives. With hard drives, there's a difference between how manufacturers calculate capacity and how the operating system calculates it. You'll see an example of that if you look at the size reported for your own computer hard drive. My 300 GB hard drive is reported as 279.36 for instance.: How much content will fit on my iPod?

  • Need help picking out the lowest cost phone and a plan that has only unlimited talk and text.

    *******DISCLAIMER********
    I am not an employee of BBY in any shape or form. All information presented in my replies or postings is my own opinion. It is up to you , the end user to determine the ultimate validity of any information presented on these forums.

    Tracfone is going to be launching their first Android Phone to the general retail outlet in December from what I heard. When you buy an AIRTIME CARD, They give you a seperate amount of minutes a seperate amount of texts and a seperate amount of data thats equal to the amount of the airtime on the card. I can actually make $80 last which doubles to 900 minutes , 900 texts and 900mb of data. When I had Virgin Mobile, I only used 100mb of data average per month streaming good quality audio.
    Phone will be expensive up front but the savings will be good after awhile.
    *******DISCLAIMER********
    I am not an employee of BBY in any shape or form. All information presented in my replies or postings is my own opinion. It is up to you , the end user to determine the ultimate validity of any information presented on these forums.

  • Why is creative cloud just a blank white page? This has only happened recently, and I can find nothing to tell me how to fix it!!!!

    Creative cloud won't load, nor can I shut it down. Every time I click on the icon the drop down is blank. (using a mac)

    Launch Activity Monitor and "Force Quit" all the process related to Adobe like Creative Cloud, CoreSync, AAMupdater, AAMupdater notifier, Adobe Crash demon from Activity monitor.
    1) Right click on Finder icon and  select "Go-To" Folder option.
    2) You will get a text box, type-in below command and then hit 'Return' key.( Do not miss ~ symbol)
    ~/library
    3)Then navigate to Application Support>Adobe>OOBE. Open OOBE folder and delete opm.db file.
    Once you had trashed Opm.db file , launch Creative Cloud application and check.

Maybe you are looking for

  • Can't open a document in iCloud i get the message "Tutila Paul" couldn't be opened.

    As the title says i get an error when i try to open a particular pages doc in icloud doesn't matter the device........Any ideas...?! It is an important document and it's save only on icloud with pages!

  • Installing Java 8 SE on Debian - Linux

    What is the recommended way to install Java 8 SE on Debian (32-bit or 64-bit): 1) As explained on this page JDK Installation for Linux Platforms Installation of the 32-bit JDK on Linux Platforms This procedure installs the Java Development Kit (JDK)

  • Downloaded firefox and can't get rid of ebay in search window

    Everytime i have downloaded firefox, ebay is in search column. If i go ahead and type a desired address in search such as cement it carries me to items related to cement for sale on ebay site. No matter what, firefox carries me to ebay. Where does th

  • Report Showing Account with No Activity Associated

    Hi 1) Is it possible to show report which list all the accounts which do not have any activity associated with it? 2) A report which shows All the accounts with Activity ( Even though there is no activity associated with it) Quick reply appreciated

  • Message mapping--Context related

    <b>Input file:</b> <?xml version="1.0" encoding="UTF-8" ?> - <Group01>   <Field1>A1</Field1>   <Field2>A1_B1</Field2>   <Field3>A1_B1_C1</Field3>   </Group01> - <Group01>   <Field1>A1</Field1>   <Field2>A1_B2</Field2>   <Field3>A1_B2_C1</Field3>   </