How to add the entries and how to delete the entries from custom Z-table?
Hi Experts,
My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
Here how to add the entries from program to Z-table.???
And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
Could you please guide me the logic how to crack this???
Let me know if you need more Info
Thanks
Sanju
Hi Sanjana,
What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
*Insert Statement
INSERT dbtab
Syntax
INSERT { {INTO target VALUES source }
| { target FROM source } }.
Effect
The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
System Fields
The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
sy-subrc Meaning
0 At least one row was inserted.
4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
The INSERT statement sets sy-dbcnt to the number of rows inserted.
Note
The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
*Modify Statement
MODIFY dbtab
Syntax
MODIFY target FROM source.
Effect
The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
System fields
The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
sy-subrc Meaning
0 At least one line is inserted or changed.
4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
The MODIFY statement sets sy-dbcnt to the number of processed lines.
Note
The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
Hope it helps...
P.S. Please award points if it helps...
Similar Messages
-
When I set up my iPhone, I accidentally put in an apple ID that doesn't exist. Therefor, I don't know the password and can't delete my account from iCloud. I was trying to sync my contacts to my iPad and now it's not possible without iCloud on my phone. Can anybody help?
Have you tried changing the admin password in System Preferences > Users & Groups > Password ??
The Apple ID that is associated with your admin password is noted there.
message edited by: cs -
How to add PCI 7340 and UMI in my labview program from functions palette or how?
Am using PCI 7340 and UMI7764 for motion control of a stepper motor.
How to add the functions for PCI and UMI in my labVIEW program and how
do I use these further? I need to control the direction of stepper
motor rotation based on the pressure applied which we calculate as
either clock.anti clockwise. So which function palette should I use for
that.
We use a darlington pair driver unit. ? The output
from UMI are from the individual axis control whereas the driver input
is through a serial bus. So what kind of cable should we use to connect
the UMI with this and how do we connect this or should we use any other
driver unit? Please explain in detail.
Thank youThank you I ll see to it
-
How to add music to my iphone without deleting the music already on it
I have many laptops in my house and they all have different music on it. So i want to know is there a possible way that i can add music to my iphone without deleting my musc already on it?
No.
iphone will sync/manually manage to one and only one comptuer at a time. Syncing/manually managing to another wil erase the current content. -
For the last two months, when i am working some league of legends music (i think it is) pops up in the background and the only way i can turn it off is by restarting the computer. It is driving me nuts. Why does it do this when i've deleted the application ages ago and how do i fix my computer?
Please help me people, im a dumb uni student after all!
-
Trashcan icon in mail closes the app and does not delete the email any suggestions?
Trashcan icon in mail closes the app instead of deleting the email, any suggestions?
First thing to try is a reset: hold the on/off button and the hold button at the same time until the iPad completely shuts down, then turn back on.
May not work, but often resolves simple app issues. -
I need help deleting songs from my Itunes library. When I follow the instructions it ends up asking me if I am sure I want to hide this song in iCloud!? I don't even know what iCloud is!!!
It's the online version of the song you are deleting from your library, if you hide it you won't see it any more.
-
== Issue
==
I have another kind of problem with Firefox
== Description
==
When i tried to install DownloadHelper this happened Firefox could not install the file at
https://addons.mozilla.org/en-US/firefox/downloads/latest/3006/addon-3006-latest.xpi?src=addondetail
because: Unexpected installation error
Review the Error Console log for more details.
-203
, how do i check the log and how do i resolve this problem? thank you
== This happened
==
Just once or twice
== today
==
== Troubleshooting information
==
Application Basics
Name
Firefox
Version
3.6.3
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Ask Toolbar for Firefox
2.1.0.5
true
AVG Safe Search
9.0.0.783
true
{3f963a5b-e555-4543-90e2-c3908898db71}
Java Console
6.0.17
true
Microsoft .NET Framework Assistant
1.1
true
{20a82645-c095-46ed-80e3-08825760534b}
BitDefender Antiphishing Toolbar
2.0
true
[email protected]
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar
0
browser.places.smartBookmarksVersion
2
browser.startup.homepage_override.mstone
rv:1.9.2.3
extensions.lastAppVersion
3.6.3
general.useragent.extra.microsoftdotnet
(.NET CLR 3.5.30729)
network.cookie.prefsMigrated
true
places.last_vacuum
1276351876
print.print_printer
HP Photosmart D5300 series
print.printer_HP_Photosmart_D5300_series.print_bgcolor
false
print.printer_HP_Photosmart_D5300_series.print_bgimages
false
print.printer_HP_Photosmart_D5300_series.print_command
print.printer_HP_Photosmart_D5300_series.print_downloadfonts
false
print.printer_HP_Photosmart_D5300_series.print_edge_bottom
0
print.printer_HP_Photosmart_D5300_series.print_edge_left
0
print.printer_HP_Photosmart_D5300_series.print_edge_right
0
print.printer_HP_Photosmart_D5300_series.print_edge_top
0
print.printer_HP_Photosmart_D5300_series.print_evenpages
true
print.printer_HP_Photosmart_D5300_series.print_footercenter
print.printer_HP_Photosmart_D5300_series.print_footerleft
&PT
print.printer_HP_Photosmart_D5300_series.print_footerright
&D
print.printer_HP_Photosmart_D5300_series.print_headercenter
print.printer_HP_Photosmart_D5300_series.print_headerleft
&T
print.printer_HP_Photosmart_D5300_series.print_headerright
&U
print.printer_HP_Photosmart_D5300_series.print_in_color
true
print.printer_HP_Photosmart_D5300_series.print_margin_bottom
0.5
print.printer_HP_Photosmart_D5300_series.print_margin_left
0.5
print.printer_HP_Photosmart_D5300_series.print_margin_right
0.5
print.printer_HP_Photosmart_D5300_series.print_margin_top
0.5
print.printer_HP_Photosmart_D5300_series.print_oddpages
true
print.printer_HP_Photosmart_D5300_series.print_orientation
0
print.printer_HP_Photosmart_D5300_series.print_pagedelay
500
print.printer_HP_Photosmart_D5300_series.print_paper_data
9
print.printer_HP_Photosmart_D5300_series.print_paper_height
11.00
print.printer_HP_Photosmart_D5300_series.print_paper_size_type
0
print.printer_HP_Photosmart_D5300_series.print_paper_size_unit
1
print.printer_HP_Photosmart_D5300_series.print_paper_width
8.50
print.printer_HP_Photosmart_D5300_series.print_reversed
false
print.printer_HP_Photosmart_D5300_series.print_scaling
1.00
print.printer_HP_Photosmart_D5300_series.print_shrink_to_fit
true
print.printer_HP_Photosmart_D5300_series.print_to_file
false
print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_bottom
0
print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_left
0
print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_right
0
print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_top
0
privacy.sanitize.migrateFx3Prefs
true
security.warn_viewing_mixed
false
== Firefox version
==
3.6.3
== Operating system
==
Windows Vista
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
== Plugins installed
==
*-npdivxplayerplugin
*Default Plug-in
*Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*6.0.12.732
*RealPlayer(tm) LiveConnect-Enabled Plug-In
*RealJukebox Netscape Plugin
*Shockwave Flash 10.0 r45
*Adobe Shockwave for Director Netscape plug-in, version 11.5
*iTunes Detector Plug-in
*DivX Web Player version 2.0.0.254
*GEPlugin
*4.0.50524.0
*Office Live Update v1.4
*NPWLPG
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*RealPlayer(tm) HTML5VideoShim Plug-In
*Google Update
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsersMark Leary:
As TXGuy posted above:
See:
https://support.mozilla.com/en-US/kb/Unexpected+installation+error+-203+when+installing+add-ons
http://kb.mozillazine.org/Unable_to_install_themes_or_extensions_-_Firefox#Unexpected_installation_error_-203
Also see:
http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile
http://kb.mozillazine.org/Show_hidden_files_and_folders -
The wifi has been lost or disconnected on my iPad. It's the iPad 2 and has not been updated yet. It's IOS 6.1.3 .. how do I add a network back onto it? I have typed in the name and chosen each of the securities and still hasn't connected!
Hey there Luba_kalstad,
It sounds like you are unable to join your network and cannot see it in the Wi-Fi list in Settings. I would try the troubleshooting outlined in this article named:
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/ts1398
Be sure you're in range of your Wi-Fi router (access point).
Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your Wi-Fi setting is dimmed, follow these steps.
Confirm that your Wi-Fi router and cable or DSL modem are connected to power, turned on, and connected to the Internet. If not, refer to your network administrator or Internet service provider (ISP) for assistance.
Restart your iOS device.
Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
Tap and Forget this Network.
Try to connect to your desired Wi-Fi network.
Note: You may need to enter your Wi-Fi password again if your network requires one.
Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
Update your device to the latest version of software.
Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
And this section down toward the bottom if needed:
Unable to locate a Wi-Fi network
Verify that the network is available by tapping Settings > Wi-Fi and choosing from the available networks.Note: It may take a few seconds for the Wi-Fi network name to appear.
Move closer to your wireless router (access point) and attempt to locate the Wi-Fi network.
If you do not see the network you would like to join, you may be attempting to connect to a hidden network. Learn how to join a hidden network.
Supported Wi-Fi configurations vary by iOS device model. Find out which standards your device supports3.
Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
previously connected Wi-Fi networks and passwords
recently used Bluetooth accessories
VPN and APN settings
Thank you for using Apple Support Communities.
Take care,
Sterling -
i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by step explanation please beginner
Please post (a relevant section of) it right on this Forum.
-
How to add new row and update existing rows at a time form the upload file
hi
How to add new row and update existing rows at a time form the upload file
example:ztable(existing table)
bcent smh nsmh valid date
0001112465 7.4 26.06.2007
0001112466 7.5 26.06.2007
000111801 7.6 26.06.2007
1982 7.8 26.06.2007
Flat file structure
bcent nsmh valid date
0001112465 7.8 26.06.2007 ( update into above table in nsmh)
0001112466 7.9 26.06.2007 ( update into above table in nsmh)
000111801 7.6 26.06.2007 ( update into above table in nsmh
1985 11 26.06.2007 new row it should insert in table
thanks,
Sivagopal RHi,
First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
Then :
Loop at it.
*insert or modify as per your requirement.
Endloop.
Regards,
Srilatha. -
Had to reinstall iTunes,backed up iPhone5 before the reinstall and need to restore the iPhone backup that is on the computer,Windows8, but it is not an option in the new iTunes restore menu. How do I map or add the old backup to the new iTunes restore option?
Hi MrsMoosie,
I'm sorry to hear you are having these issues with your iPad. If your iPad isn't responding or doesn't appear to be charging, you may find the information and troubleshooting steps outlined in the following articles helpful, in particular the following portion:
If you don't see the charging screen within an hour, or you see the connect to power screen, check your connector, USB cable, and power adapter. Make sure that everything is plugged in firmly, free of debris, and not damaged. You might want to try a different USB cable or power adapter.
If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
If you can’t charge your iPhone, iPad, or iPod touch - Apple Support
Regards,
- Brenden -
do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?
do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?
-
How to count the per group-entries and put them in the new table
Hello Guru,
I want to sort the table cdhdr.
for example :
SELECT objectclas objectid changenr *******
INTO TABLE cdhdr_data
FROM cdhdr
WHERE ( ********) AND
objectclas = i_objectclas
The problem that I need to order the table by objectclas and objectid.
Let say objectclas is always MATERIAL.
Let's assume our key is changenr. May be our key will change to "objectclas objectid".
So, my problem that I need to get the number of the same "objectid" with different "changenr".
And also I need to put the count number of each object id with different changenr in the table cdhdr_data.
For example
objectclas objectid changenr count
MATERIAL 00***001 1 3
MATERIAL 00***001 4 3
MATERIAL 00***001 7 3
MATERIAL 00***005 2 2
MATERIAL 00***005 6 2
MATERIAL 00***003 5 2
MATERIAL 00***003 3 2
So later I'm going to use it.
LOOP AT cdhdr_data FROM sy-tabix TO ( sy-tabix + cdhdr_dat ( sy-tabix ) + count - 1 )
some optimized cdpos processing
IF entry found.
*don't loose time
*change the boundery
sy-tabix = count
ENDIF.
ENDLOOP.
Best Regards,
KaisHi Marcin,
Thanks for replying.
I'm having a trouble.
Let say I got an error on insert into ****.
It says me that the object (i_)cdhdr_data is not known.
Why, should I avoid to put objectclas = i_objectclas there.
I need to have MATERIAL OR DOKUMENT.
I can't just put 10000entries like that.
I'm also sceptic about how much this operation will cost.
Because I need to proceed the data with cdpos.
And This's why I'm doing that.
Later with this implementation I'm gone use LOOP AT *** FROM sy-tabix TO ****.
If I use my method, it will cost lower than inserting, changing, ...
I rather ignore the objectid and don't make any processing.
But with your solution I can say its rapidly.
Let assume there's n entries in cdhdr and m entries per n in cdpos.
So my algorithm will select n entries and will follow n*m entries but some of them will be proceeded an other not.
in cdhdr :
for n entries : n * 1 selecting
in cdpos :
always : n*m comparing,
processing between : n1 - nm
With you algorithm we will do :
in cdhdr :
for n entries : n* (1 selection + 1 modifing + 1 appending) <=> each operation cost O(1)
in cdpos :
for comparing between : n1 - nm
processing between : n1 - nm
Let see the middle value :
your case :
in cdhdr we have : n * O(3) ~ n * O(1) ~ O(n)
in cdpos :
O(c(nm)/2) + O(p(nm))2) ~ O((cp)((nm)/2)) ~ O(d(nm)) d= (cp)/2 ~ p/2
we know that O(c*n) ~ O (n) ; c ist a constant
c : comparing cost
p : processing cost
p >> c
my case :
in cdhdr we have : n * O(1) ~ O(n)
in cdpos :
O(c(nm)) + O(p((nm)/2)) ~ ? maybe O(d(nm)) d = c + (p/2) ~ p/2
c : comparing cost
p : processing cost
p >> c
Ok, this in theorie, but in reality I've no idea.
Is there a mathematician there ?
Regards,
Kais
FORM get_cdhdr_data_modified_1
USING
i_from_date TYPE dats
i_from_time TYPE terf
i_to_date TYPE dats
i_to_time TYPE terf
i_objectclas TYPE j_objnr
CHANGING
cdhdr_data TYPE SORTED TABLE.
types: begin of t_cdhdr_data,
objectclas type cdhdr-objectclas,
objectid type cdhdr-objectid,
changenr type cdhdr-changenr,
count type i,
end of t_cdhdr_data.
DATA : i_cdhdr_data type table of t_cdhdr_data with key objectclas objectid changenr with header line.
DATA: st_index LIKE sy-tabix, count TYPE i.
SELECT objectclas objectid changenr
INTO TABLE i_cdhdr_data
FROM cdhdr
WHERE ( ( udate GT i_from_date AND udate LT i_to_date ) OR
( udate EQ i_from_date AND udate NE i_to_date AND utime GE i_from_time ) OR
( udate EQ i_to_date AND ( udate NE i_from_date OR utime GE i_from_time ) AND utime LE i_to_time )
) AND
objectclas = i_objectclas.
INSERT INTO i_cdhdr_data FROM i_cdhdr_data.
ENDSELECT.
LOOP AT i_cdhdr_data.
AT NEW objectid.
"remember start position
st_index = sy-tabix.
endat
at end of objectid.
count = sy-tabix - st_index + 1. "count accual position
cdhrd_data-count = count. "now you have how many entries are in each objectid
MODIFY TABLE i_cdhdr_data FROM i_cdhdr_data.
ENDAT.
ENDLOOP. -
I'm trying to download itunes 10 but I get to a point in the download and it tells me, "The feature you are trying to use is on a network resource that is unavailable" but I haven't had itunes on my computer for a year now so how can I get around this?
iTunes.msi
Perfect, thanks.
Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
To install the utility, doubleclick the msicuu2.exe file you downloaded.
Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
How to add a new column (Project Number) in the action items table under NPD Module?
There are two projects with same name and created by same person in NPD.
So when it is displayed in "Action Items" table, It looks similar.
To avoid this, I need one more column (Project Number) to be added in the "Action Items" table and " Strategic briefs and projects" table.
So, How to add a new column (Project Number) in the "Action Items" table and " Strategic briefs and projects" table under NPD Module?
Please do the needful.There is no out of the box configuration available to add columns to NPD action items. As always we welcome enhancement requests.
Thanks
Kelly
Maybe you are looking for
-
Hi, i am having trouble adding vidoes to the itunes library. i have added 9 with no dramas, all play perfect on the iPod, but i can no longer add any more. i click on add files, the top of itunes quicky flashes teh tranfer bar, then nothing?? i have
-
Hello, what to do if a program crash? I was working in a power point presentation and suddenly the little rainbow circle appeared and can not close the program, thanks
-
I would like to option to Highlight selected Text in Preview, Pages and Mail. I would prefer to have a right Click option similar to the Bold and Color selections.
-
How to configure the web server
Hi there! I'm using the Apache Server 2.0.63 and PHP 5 on my computer and Apache is set as "loclhost" using the port 80 .They're are both good to go but I have failed to configure Dreamweaver so that I would be able to test my PHP projects directly f
-
I am looking looking for an in-car adapter for use with my Satellite A50-114. If Toshiba doesnt do one, does anyone know where else I might get one. Thanks.