Alternative for / Problems with: "For all entries in data_package"
Hi Guys
I doing some ABAP in a Start Rotine in BW and would like to do the following:
select * from /BI0/PMATERIAL into table 0mat
for all entries in DATA_PACKAGE
where material = DATA_PACKAGE-/bic/zmaterial.
But I get the following error:
E:When using the addition "FOR ALL ENTRIES IN itab", the fields "MATERIAL" and "DATA_PACKAGE-/BIC/ZMATERIAL" must have the same type and length. and length.
ZMATERIAL:
- Length: 28
- Type: CHAR - Character String
ZMATERIAL:
- Length: 18
- Type: CHAR - Character String
According to the error message "For all entries" cannot be used in this case since the lengths are not identical, but is there an alternative way to do what I would like to do?
Thanks in advance, kind regards,
Torben
Hi
one thing you can try like this define one variable in other itab of same type
then loop at the first table and assign it to new field and modify the itab
then use this field with for all entries
Regards
Shiva
Similar Messages
-
Solutions for problems with QuickTime files in After Effects CC (12.0)
We have a new blog post up about solutions for problems with QuickTime files in After Effects CC (12.0) because of conflict with DVCPROHDVideoOut QuickTime components.
Please read that post and let us know here on this forum thread if you have any questions or comments.
Also, please let us know if the proposed solution works for you.Mark - The new document that we published is meant to address a specific issue. You can confirm you have the issue by the following:
Adobe QT32 Server is not running when you receive these errors. Keep Activity Monitor open to track whether or not it is running.
The crash log for QT32 Server indicate CoreAudio as the last component called. You can find the crash logs in Users/username/Library/Logs/DiagnosticReports. The report will look like this:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x04981f90 0 + 77078416
1 com.apple.audio.CoreAudio 0x949d05c1 __Call_block_invoke_03 + 56
2 libdispatch.dylib 0x94a90f8f _dispatch_call_block_and_release + 15
If this is not the issue you're having, please start a new thread and provide the usual data. If your problem does match this issue, please double-check that you've followed the steps in the new document and post back here. -
How to complain to Apple about this company and how to get a formally answer for problem with Apple agent in Kuwait??
You did not buy your iphone from an Apple store. No Apple employee sold you anything.
Your complaint is not with Apple. You bought from an unauthorized seller. Your complain is with that seller.
As you have been told more than once, Apple has nothing to do with this. -
I have a problem with ( AppleSyncNotifier.exe - Entry Point Not Found ) The procedure entry point sqlite3_wal_checkpoint could not be locate in the dynamic link library SWLite3.dll.
With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
Reboot and see if all is well
In case that your OS is Windows 7 (64 bit)
1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
2. Copy file "SQLite3.dll"
3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
4. Paste file "SQLite3.dll" to the location.
5. Reboot your computer, it should not display that message, it should be clear.
Good Luck -
Performance Problems with "For all Entries" and a big internal table
We have big Performance Problems with following Statement:
SELECT * FROM zeedmt_zmon INTO TABLE gt_zmon_help
FOR ALL ENTRIES IN gt_zmon_help
WHERE
status = 'IAI200' AND
logdat IN gs_dat AND
ztrack = gt_zmon_help-ztrack.
In the internal table gt_zmon_help are over 1000000 entries.
Anyone an Idea how to improve the Performance?
Thank you!>
Matthias Weisensel wrote:
> We have big Performance Problems with following Statement:
>
>
SELECT * FROM zeedmt_zmon INTO TABLE gt_zmon_help
> FOR ALL ENTRIES IN gt_zmon_help
> WHERE
> status = 'IAI200' AND
> logdat IN gs_dat AND
> ztrack = gt_zmon_help-ztrack.
>
> In the internal table gt_zmon_help are over 1000000 entries.
> Anyone an Idea how to improve the Performance?
>
> Thank you!
You can't expect miracles. With over a million entries in your itab any select is going to take a bit of time. Do you really need all these records in the itab? How many records is the select bringing back? I'm assuming that you have got and are using indexes on your ZEEDMT_ZMON table.
In this situation, I'd first of all try to think of another way of running the query and restricting the amount of data, but if this were not possible I'd just run it in the background and accept that it is going to take a long time. -
Problem with FOR ALL ENTRIES statement
Hi all
please find the problem in the select statement.
SELECT vbbe~vbeln
vbap~vstel
marc~dispo
vbbe~matnr
vbbe~kunnr
vbbe~werks
vbbe~mbdat
vbbe~omeng
INTO TABLE l_t_dvbeln
FROM vbbe
INNER JOIN vbak
ON
vbbe~vbeln = vbak~vbeln
inner join vbap
on
vbbe~vbeln = vbap~vbeln and
vbbe~matnr = vbap~matnr
inner join marc
on
vbbe~matnr = marc~matnr and
vbbe~werks = marc~werks
FOR ALL entries IN g_t_stock
WHERE vbbe~matnr = g_t_stock-matnr
AND vbbe~werks = g_t_stock-werks
AND vbak~vkorg = g_t_stock-vkorg
AND vbak~vtweg = g_t_stock-vtweg
AND vbbe~kunnr = g_t_stock-kunnr
AND vbbe~mbdat IN r_mbdat.
g_t_stock is having only one record i.e.,
g_t_stock-vstel = 'DF01'.
g_t_stock-dispo = 'DEI'.
g_t_stock-matnr = '00100833'.
g_t_stock-maktx = 'SAC (300X400)'.
g_t_stock-kunnr = '0000600431'.
g_t_stock-werks = 'PF71'.
g_t_stock-labst = '7727'.
g_t_stock-vkorg = 'SF71'.
g_t_stock-vtweg = 'IC'.
and r_mbdat has the date range as
r_mbdat-sign = I
r_mbdat-option = BT
r_mbdat-low = 15.05.2008
r_mbdat-high = 08.06.2008
In vbak vbap & marc tables i have only one record as per the above selection criteria.
in VBBE table i have 7 records which satisfies the above criteria. But the select staement retrieves only 5 records.
if we remove for all entries and hardcode the values in the select statement then it retrieves all 7 records.
can anybody help me.
what is the reason it is showing only 5 records.Hi all
actually it has to retrieve the following records
VBELN MATNR KUNNR WERKS MBDAT LABST
30001417 00100833 600431 PF71 15.05.2008 20.000
30001417 00100833 600431 PF71 15.05.2008 20.000
30001417 00100833 600431 PF71 22.05.2008 5.000
30001417 00100833 600431 PF71 22.05.2008 7.000
30001417 00100833 600431 PF71 27.05.2008 10.000
30001417 00100833 600431 PF71 27.05.2008 10.000
30001417 00100833 600431 PF71 29.05.2008 10.000
But it is retrieving only 5 records as below
VBELN MATNR KUNNR WERKS MBDAT LABST
30001417 00100833 600431 PF71 15.05.2008 20.000
30001417 00100833 600431 PF71 22.05.2008 5.000
30001417 00100833 600431 PF71 22.05.2008 7.000
30001417 00100833 600431 PF71 27.05.2008 10.000
30001417 00100833 600431 PF71 29.05.2008 10.000
Please give the reason -
Problem with FOR ALL ENTRIES IN
This is my simple source code.
TABLES: stpo.
DATA: t_stpo LIKE stpo OCCURS 0 WITH HEADER LINE,
t_stpo_itm LIKE stpo OCCURS 0 WITH HEADER LINE,
t_stpo-stlnr = '00000058'.
t_stpo-stlkn = '00000003'.
append t_stpo.
t_stpo-stlnr = '00000058'.
t_stpo-stlkn = '00000007'.
append t_stpo.
SELECT * FROM stpo INTO TABLE t_stpo_itm
FOR ALL ENTRIES IN t_stpo
WHERE stlnr = t_stpo-stlnr " BOM No.
AND stlkn <> t_stpo-stlkn. " BOM item node number
The output from this source including BOM item node number 00000003, 00000007 but at SQL stlkn <> t_stpo-stlkn doesn't effected.
Could Anyone please tell me why?
Are there something wrong?
Thank you in advance.Hi,
You can also Use ranges for Stlnr and Stlkn fields, instead of int table.
TABLES: stpo.
DATA: begin of t_stpo OCCURS 0.
stlnr like stpo-stlnr,
stlkn like stpo-stlkn,
end of t_stpo.
data t_stpo_itm LIKE stpo OCCURS 0 WITH HEADER LINE.
t_stpo-stlnr = '00000058'.
t_stpo-stlkn = '00000003'.
append t_stpo.
clear t_stpo.
t_stpo-stlnr = '00000058'.
t_stpo-stlkn = '00000007'.
append t_stpo.
clear t_stpo.
if not t_stpo[] is initial.
SELECT * FROM stpo INTO TABLE t_stpo_itm
FOR ALL ENTRIES IN t_stpo
WHERE stlnr = t_stpo-stlnr " BOM No.
AND stlkn <> t_stpo-stlkn. " BOM item node number
endif.
or you can simply write a select for STPO like this:
SELECT * FROM stpo INTO TABLE t_stpo_itm
WHERE stlnr = '00000058' " BOM No.
AND ( stlkn <> '00000007' or stlkn <> '00000003' ). " BOM item node number
regards,
Anji -
Hi all,
When i was trying to use for all entries, i am not able to pull records inside my internal table. Though both of the tables have the common key fields between them(and ofcourse have entries in that). Now what i have analyzed was, the first table is having 7 primary keys and the one i am using for 'for all entries' comes 6th. Does this gives any impact in pulling records inside my internal table?.Else please give me a possible solution for this. The alternate statement(a normal select query with * ) that i had used for this reserved my dialog processor for a while. Which resulted in 'time exceeded' short dump.Hi,
The WHERE clause of the SELECT statement has a special variant that allows you to derive conditions from the lines and columns of an internal table:
SELECT ... FOR ALL ENTRIES IN <itab> WHERE <cond> ...
<cond> may be formulated as described above. If you specify a field of the internal table <itab> as an operand in a condition, you address all lines of the internal table. The comparison is then performed for each line of the internal table. For each line, the system selects the lines from the database table that satisfy the condition. The result set of the SELECT statement is the union of the individual selections for each line of the internal table. Duplicate lines are automatically eliminated from the result set. If <itab> is empty, the addition FOR ALL ENTRIES is disregarded, and all entries are read.
The internal table <itab> must have a structured line type, and each field that occurs in the condition <cond> must be compatible with the column of the database with which it is compared. Do not use the operators LIKE, BETWEEN, and IN in comparisons using internal table fields. You may not use the ORDER BY clause in the same SELECT statement.
You can use the option FOR ALL ENTRIES to replace nested select loops by operations on internal tables. This can significantly improve the performance for large sets of selected data.
Hope this is useful
Reema -
Problem with for all entries in select querry
hi,
Hi,
I am using select queery like this
SELECT version COUNT( * )
from ztbi_default_va4
INTO CORRESPONDING FIELDS OF TABLE lit_new
FOR ALL ENTRIES IN lit_new1
WHERE network = lit_new1-network GROUP BY version.
this is not working showing error as:
The addition "FOR ALL ENTRIES" excludes all aggregate functions with
the exception of "COUNT( * )" as the single element of the SELECT clause.
I am using only count(*) ,not using othes like max,min etc,,,,,,,,,
please suggest any missing in syntax,,,,attach relavant code using count(*) with for all entreis
any help appriciated,,,,,
Thanks in advance,,,,Hi,
Try this -
TYPES: begin of t_data,
version TYPE version,
count type i,
end of t_data.
DATA: i_data TYPE STANDARD TABLE OF t_data,
wa_data TYPE t_data.
DATA: l_version TYPE version,
l_count TYPE i.
SELECT version COUNT( * )
from ztbi_default_va4
INTO CORRESPONDING FIELDS OF TABLE lit_new
FOR ALL ENTRIES IN lit_new1
WHERE network = lit_new1-network.
SORT lit_new.
LOOP AT lit_new INTO lwa_new.
IF lwa_new EQ l_version.
l_count = l_count + 1.
ELSE.
wa_data-version = l_version.
wa_data-count = l_count + 1.
APPEND wa_data TO i_data.
CLEAR: wa_data.
CLEAR: l_count.
ENDIF.
l_version = lwa_new-version.
CLEAR: lwa_new.
I hope this will do.
Make any necessary changes.
Regards,
Harsh Bansal -
A problem with for loop..
i have a problem with this code :
int [] P = new int [M.length];
System.out.println(P[0]+" "+P[15]);
for (int i = 0 ; i < P.length ; i++){
for (int j = i + 1 ; j < P.length ; j++){
if (j == (P.length - 1) && M [ i ] != M [ j ]){
P [ i ] = M [ i ] ;
else if ( M [ i ] != M [ j ] ) continue ;
else break;
for (int i = 0 ; i < P.length ; i++){
System.out.println(P [ i ]);
this code to copy distinct values in array M and print them into array P
M and P are both of size 16
the problem is the previous code doesn't work for P[15]
and i don't know way
if i have in M {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}
P will be {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0}
could any body help ?I am sorry, but you are not done. May-be your code does what it is supposed to do but it is hard to understand. An important part of programming is not just to get your code to work, but to write code that is easily maintainable. You are probably quite new programming and I do not want to discourage you. Keep working hard and it will come.
You almost had the solution a while back:
int [] P = new int [M.length];
System.out.println(P[0]+" "+P[M.length]);
boolean unique;
for (int i = 0 ; i < P.length ; i++){
// All non-zero entries in P with index less than i are unique in M.
unique = true; //Assume M[i] unique until contrary has been proven
for (int j = 0 ; j < P.length ; j++){
if (i != j && M[i] == M[j]) { //found another entry in M with the same value as M[i]
unique=false;
break;
if (unique) { // M[i] is unique in M.
P[i] = M;
for (int i = 0 ; i < P.length ; i++){
System.out.println(P [ i ]);
}This code executes in time O(n^2). It is possible to achieve O(nlog(n)) by
1) copy M into P
2) sort P
3) iterate through P and set duplicates to 0. -
What can be done for problems with downloading Firefox to computer?
Having problems with problems downloading Firefox to a computer that has a slow internet connection. Trying to install Firefox on a computer running XP that has older Windows Explorer program. The computer was used as a stand alone computer and not connected the internet for a few years, so no recent windows explorer updates have been made. The computer seems to perform well otherwise. Have been advised by tech adviser to try loading Firefox to get most up to date browser. The thought was Windows Explorer is running too slow due to being outdated. The computer is connected by a Ethernet cable to a router. Other computers use this setup successfully. Limited internet connections can be made, so the computer modem does work. The download using Windows Explorer is timing out, due to outdated browser. Have tried to install Firefox on the computer using portable version of Firefox on USB drive. Have also tried to download to another computer, saving the install program on a USB drive, then placing the file on the older computer. Looking for suggestions on how to install Firefox on the older computer that can't download the program directly. Feel if can get Firefox on computer, can make necessary updates to computer and slow internet connection issues will disappear.
Some updates are better handled by Internet Explorer or the built-in updater, such as any updates from Microsoft's Windows Update or Office Update systems. (These systems are not compatible with other browsers.)
You can use the "all systems" page to download a full installer and then copy it over to your XP system.
https://www.mozilla.org/en-US/firefox/all/ -
Hardware ID's for problem with dv7t-3300 wrong drivers?
I saw the message regarding the other person with problems with his video drivers so here is a screen shot of the hardware id's for my display adapter:
Hi,
Please try the following driver:
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-100095-3&cc=us&dlc=en&lc=en...
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Metalink SR category for problem with CRS install
HI
Can You please tell me , where I find in SR category to create request on metaling about problem with install/start crs :
I wont to create RAC env where host is ORACLE VM and clusterware is OCFS2 and wit Oracle Enterprise linux 5 , but after istal ai have problem with start crs (root.sh) and I don't know to find relevant category
[root@lin1 bin]# ./crsctl start cluster
CRS-2672: Attempting to start 'ora.gipcd' on 'lin1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'lin1'
CRS-2676: Start of 'ora.mdnsd' on 'lin1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'lin1'
CRS-2676: Start of 'ora.gpnpd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'lin1'
CRS-2676: Start of 'ora.cssdmonitor' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'lin1'
CRS-2672: Attempting to start 'ora.diskmon' on 'lin1'
CRS-2676: Start of 'ora.diskmon' on 'lin1' succeeded
CRS-2674: Start of 'ora.cssd' on 'lin1' failed
CRS-679: Attempting to clean 'ora.cssd' on 'lin1'
CRS-2681: Clean of 'ora.cssd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'lin1'
CRS-2676: Start of 'ora.cssdmonitor' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'lin1'
CRS-2674: Start of 'ora.cssd' on 'lin1' failed
CRS-2679: Attempting to clean 'ora.cssd' on 'lin1'
CRS-2681: Clean of 'ora.cssd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.diskmon' on 'lin1'
CRS-2676: Start of 'ora.diskmon' on 'lin1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'lin1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'lin1' succeeded
CRS-4000: Command Start failed, or completed with errors.
[root@lin1 bin]# ./crsctl check cluster
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager
[root@lin1 bin]# ./crsctl check cluster -all
lin1:
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager
Thank You BranoHI
Can You please tell me , where I find in SR category to create request on metaling about problem with install/start crs :
I wont to create RAC env where host is ORACLE VM and clusterware is OCFS2 and wit Oracle Enterprise linux 5 , but after istal ai have problem with start crs (root.sh) and I don't know to find relevant category
[root@lin1 bin]# ./crsctl start cluster
CRS-2672: Attempting to start 'ora.gipcd' on 'lin1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'lin1'
CRS-2676: Start of 'ora.mdnsd' on 'lin1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'lin1'
CRS-2676: Start of 'ora.gpnpd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'lin1'
CRS-2676: Start of 'ora.cssdmonitor' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'lin1'
CRS-2672: Attempting to start 'ora.diskmon' on 'lin1'
CRS-2676: Start of 'ora.diskmon' on 'lin1' succeeded
CRS-2674: Start of 'ora.cssd' on 'lin1' failed
CRS-679: Attempting to clean 'ora.cssd' on 'lin1'
CRS-2681: Clean of 'ora.cssd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'lin1'
CRS-2676: Start of 'ora.cssdmonitor' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'lin1'
CRS-2674: Start of 'ora.cssd' on 'lin1' failed
CRS-2679: Attempting to clean 'ora.cssd' on 'lin1'
CRS-2681: Clean of 'ora.cssd' on 'lin1' succeeded
CRS-2672: Attempting to start 'ora.diskmon' on 'lin1'
CRS-2676: Start of 'ora.diskmon' on 'lin1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'lin1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'lin1' succeeded
CRS-4000: Command Start failed, or completed with errors.
[root@lin1 bin]# ./crsctl check cluster
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager
[root@lin1 bin]# ./crsctl check cluster -all
lin1:
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager
Thank You Brano -
Problem with Microsoft All-in-One Media Keyboard
Hello,
I found a problem with this keyboard when I was playing game. If I'm holding Shift + W and then i'm pressing D too (to turn right or rather to walk straight and to the right) it doesn't work. This same is happening if I'm holding Shift + D +
W. But other combinations are working, like pressing Shift + W + A or Shift + S + D, etc. First I thougt that it is some game issue or program had keyboard shortcut and it's interfering
with game. But I tried in notepad and it wasn't working too. After all it is not Windows 8.1 issue, because I launched ubuntu live cd and this problem still exist even there.
Now what can I do with it? Go to warranty shop?Hi,
Did this keyboard hotkeys work previously? Maybe this function only works in specific program or game.
Keep latest driver and software for the keyboard.
According to your description, best choice I think is sending the keyboard to the warranty shop.
Regards
Yolanda Zhu
TechNet Community Support -
I have problem with deleting all cookies, and all cache.
I use FF for web development, and frequently have to clear all cache, and cookies to see my developed changes. But with the recent update from FF3.16/17 to FF4, I have started to face a weird problem while clearing all cache, and cookies. One is, I have observed that the process takes more time compared to previous versions, and secondly, it gets stuck sometime showing a script error on a file called sanitize.js file.
I have a grab to show, but not sure how can I show it you. but the alert says "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."
Script: chrome//browser/content/sanitize.js:136
Below are 2 buttons, Continue and Stop ScriptFirefox 4 also tries to clear the cookies from plugins like Flash and starts a plugin-container process with the Flash player and possibly other plugins as well for each cookie, so that can add a lot of extra time if there are a lot of cookies to remove. Also make sure that all plugins are up to date.
Maybe you are looking for
-
I am a very amateur web designer, who is also very new to CSS, so please be gentle- I am having a very frustrating issue with Firefox. My website is designed so that when my main menu navigation bar is too long for the screen, it automatically conver
-
Customer exit variable doesn't work
Hi, I tried to create customer exit for my query but iam not getting the right result. My requirement is to create a Key figure variable that displays Q1 - Q4 based on fiscal year/period (001.2008) entered by the user. steps I have taken 1. created
-
What command to use in command prompt inside HP Recovery Manager to recover hard drive?
Hi, I'm trying to use HP's Recovery Manager to restore my hard drive to the original factory settings. When going into Recovery Manager via "F11" during computer startup, all of the options are greyed out except, "Run Computer Checkup." Inside that o
-
Does Aperture work on my RAW or JPEG files?
When using Aperture only one image appears, although both RAW and JPEG are stored originally. What am I actually editing, RAW or JPEG? How can I tell what is happening? Thanks
-
Controlling area hierarchy key
Dear guru, here i am creating controlling area and assign it to co.code also use t-code okkp i have create new hierachy but i have create cost center at that time i got error is controlling area bk01 does not have std. hierarchy k