Performant way to select largest uom from MARM for all materials?
Hi people,
I need to select (for a large number of materials) the biggest UOM from MARM.
(biggest as in UMREZ/UMREN > other uom).
I'd like to make it into a function module, so that I can reuse it in other programs, because I'll need it a couple of times.
Does anyone have an idea how to go about this? I think if this has to run several thousand times for one report, I can't simply "select * from marm where matnr = my_matnr" and then compute umrez/umren for all lines, and return the biggest uom... it wouldn't be performant at all.
Regards
Rob
Hi,
sadly, that would only help me find the biggest UMREZ, wouldn't it? (I already tried "select max( umrez ) from MARM etc...", but it's not good enough since one can simply enter, say, 25 as umrez and 25 as umren, and basically create a uom that's equivalent to the BUOM)
Regards,
Rob
Similar Messages
-
Is there an easy way to select complimentary colors from within Photoshop?
Is there an easy way to select complimentary colors from within Photoshop?
Is there a tool like Kuler for Photoshop?
Kind regards,
Michael
Learn how to do meditationSee attached image... I have PS CS5.
Is there a way from the color picker or using color libraries to pick shades, complimentary, tetradic or triadic colors? -
Is there a way to download the attachments from the responses all at one time? Attachments were uploaded as a .doc file
Yes, read this tutorial:
http://forums.adobe.com/docs/DOC-2656
Near the bottom it explains how to download multiple files in a ZIP file.
Randy -
I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake. Is there any way I can restore them to the right place on my system Note most are on an external hard drive.
You can drag them out of the trash folder to wherever you wish. There is no automatic way to restore them.
If you have a recent backup of your computer (at the risk of preaching, everyone should have one), restore them from there.
Barry
P.S. I have no clue what you did or why you have 44,000 on the external drive -
Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
I need to set it today because there are tasks that is needed to be completed on the same day.
Is there a way without modifying the page/form. like a configuration or something?
----------------------- Sharepoint NewbieHi ,
As Ajeet said, for implement your requirement, you can change the data validation on the Due data field.
You can do as the following :
Open the site with SharePoint Designer 2010
Click on Workflows on the left launch, then find ‘Approval-SharePoint 2010’, click on it
On the Forms section, click ‘ReviewApproval_***.xsn’
Then you can find Due Data for All Tasks, and change the validation
In addition, if you create an approval workflow with SharePoint Designer, you can use a specific date, it contains hour and minute.
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
How to remove cover page from hp3530 for all?
how to remove cover page from hp3530 for all?
Hi there Vari,
Can you give us a little more information to help out? Is this a 3530 Deskjet printer or the 3530c scanner? Is this cover page for a fax?
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
In Mail Preferences>Color & Fonts I select Georgia Bold Italic 14 for all fonts. Why do I only get Georgia 14 when writing messages/replies?
Have you checked “Use classic layout”?
-
What is the best way of selecting 99 colums from a table with 100 colums?
Hi All,
Suppose in a table T, I have 100 colums .I want to select 99 columns.So what is the best way to do the same?
Anyone Help!
Thanx in advance.
PiyushTry this
SQL> ed
Wrote file afiedt.buf
1 select column_name ||',
2 ' from user_tab_columns
3 where
4 table_name = 'EMP'
5* and column_name not like 'EMPNO'
SQL> /
COLUMN_NAME||','
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO,
7 rows selected.
SQL> -
I have a table with one column (rowID) and ten rows. The values are the numbers 1 thru 10. I want to select 9. I used the MAX function as follows:
create table #tmp1(rowID int)
insert into #tmp1
values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10)
select MAX(rowID) as rwID from #tmp1
where rowID < (select MAX(rowID) from #tmp1)
--Is there any built in function that can perform this operation -- without the subquery?
Rich Pcreate table #tmp1(rowID int)
insert into #tmp1
values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10)
--select MAX(rowID) as rwID from #tmp1
--where rowID < (select MAX(rowID) from #tmp1)
--row_number in a derived table
select RowID from (
Select rowID,row_number() Over(Order by rowID DESC) rn from #tmp1) t
Where rn=2
--row_number in a CTE
;with mycte as (
Select rowID
,row_number() Over(Order by rowID DESC) rn from #tmp1
SELECT RowID
FROM mycte
WHERE rn = 2
--Lead funtion
;with mycte as (
Select rowID
,Lead(rowID,1) Over(Order by rowID DESC) leadRowID from #tmp1
SELECT top 1 leadRowID
FROM mycte
Order by leadRowID DESC
--Last_Value
;with mycte as (
Select rowID
,Last_Value(rowID) Over(ORDER BY rowID DESC ROWS BETWEEN CURRENT ROW AND 1 FOLLOWING ) LastRowID from #tmp1
SELECT top 1 LastRowID
FROM mycte
Order by LastRowID DESC
--another option to combine top and min
SELECT min(rowID)
FROM (
SELECT TOP 2 rowID
FROM #tmp1
ORDER BY rowID DESC) t
You can check all these solutions on your table and add an index to the column and test again.You may find one that works better for you.
drop table #tmp1 -
Mass Deletion of Alternate UOM from MARM Table
Hi,
We plan to remove some of the alternate UOM for few thousand materials. We would like to delete them in mass. We could remove the UOM conversion factors using mass maintenance. But the alternate UOM stays in the UOM table MARM. Is there any BAPI or IDOC available to handle this using LSMW? Has anyone come across this requirement before? If you have any input, it will be really appreciated.
Cheers !
Subbu PonnambalamCheck
Note 541538 - FAQ: Reorganisationen
for tips and tricks (and also see related notes).
Markus -
Currently, I can copy ONE tab's url and nothing else (not its name). Or I can bookmark all tabs that are open. However, I'd like to have the ability to select multiple tabs and then copy ALL of the the URLs AND their titles/or copy ALL of the URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; when I download the add on, I get a message saying that using the add on will disable Firefox's tab features. I prefer to use Firefox features rather than download and use an add on. Is there a way to do this without an add on?
Hi LRagsdale517,
You should definitely be able to upload multiple files by Shift-clicking or Ctrl-clicking the files you want to upload. Just to make sure you don't have an old version of the service cached, please clear the browser cache and then log in to https://cloud.acrobat.com/files. After clicking the File Upload icon in the upper-right corner, you should be able so select multiple files for upload.
Please let us know how it goes.
Best,
Sara -
Any Way to Change Thickness of Connector Lines for all lines of a Chart?
Post Author: ScottL
CA Forum: Charts and Graphs
Hi All,
I am trying to change the thickness of a Chart's Connector Lines for all lines of a chart and cannot find a way to accomplish this. I can go into Report Preview and individually change the thickness one at a time, but what if I do not know how many lines I will have (as in a Line Chart) ? I can't find a way to do this through Crystal Reports XI.
Many thanks in advance!
ScottI think it's even easier to just match frame the "source file"... put your playhead on the clip you want to speed change in your sequence. Then type optioncmdf. Perform the speed change in the Viewer, then simply cut it in... Might help to put it up above the older, use the double arrow selection tool facing right to move the clips past this change later... pull the upper track speed changed clip down over the old, and viola.
Gotta say though, it's a lot easier to perform the speed change in the Viewer, and edit it all in as you go rather than doing it after you've put the clip in a sequence. (not always possible to determine what the speed change should be maybe, but sure easier.... FCP 7 handles this problem a lot better for sure, and worth the upgrade price if your machine is compatible.
Jerry -
Performance issue fetching huge number of record with "FOR ALL ENTRIES"
Hello,
We need to extract an huge amount of data (about 1.000.000 records) from VBEP table, which overall dimension is about 120 milions records.
We actually use this statements:
CHECK NOT ( it_massive_vbep[] IS INITIAL ) .
SELECT (list of fields) FROM vbep JOIN vbap
ON vbepvbeln = vbapvbeln AND
vbepposnr = vbapposnr
INTO CORRESPONDING FIELDS OF w_sched
FOR ALL ENTRIES IN it_massive_vbep
WHERE vbep~vbeln = it_massive_vbep-tabkey-vbeln
AND vbep~posnr = it_massive_vbep-tabkey-posnr
AND vbep~etenr = it_massive_vbep-tabkey-etenr.
notice that internal table it_massive_vbep contains always records with fully specified key.
Do you think this query could be further optimized?
many thanks,
-Enricothe are 2 option to improve performance:
+ you should work in blocks of 10.000 to 50.000
+ you should check archiving options, does this really make sense
> VBEP table, which overall dimension is about 120 milions records.
it_massive_vbep into it_vbep_notsomassive (it_vbep_2)
CHECK NOT ( it_vbep_2[] IS INITIAL ) .
get runtime field start.
SELECT (+list of fields+)
INTO CORRESPONDING FIELDS OF TABLE w_sched
FROM vbep JOIN vbap
ON vbep~vbeln = vbap~vbeln AND
vbep~posnr = vbap~posnr
FOR ALL ENTRIES IN it_vbep_2
WHERE vbep~vbeln = it_vbep_2-vbeln
AND vbep~posnr = it_vbep_2-posnr
AND vbep~etenr = it_vbep_2-etenr.
get runtime field stop.
t = stop - start.
write: / t.
Be aware that even 10.000 will take some time.
Other question, how did you get the 1.000.000 records in it_massive_vbep. They are not typed in, but somehow select.
Change the FAE into a JOIN and it will be much faster.
Siegfried -
Spry select menu validation not working for all menus
This is VERY strange...I have two menus which show depending on the selection in another menu. The other, or main, menu has the spry validation working fine. So does the validation for one of the other 'child' menus. But the other child menu validation does not work, despite the fact that the code is nearly identical for both except for the spry ids and select ids (of course). You can see the form working at:
https://registrations.ucc.usyd.edu.au/profile.php
If you select, say, Arts faculty from the faculty menu, then you will get another menu for schools. Validation works for these when the submit button is pressed. However, if you select 'Not Faculty' from the faculty menu another menu will show instead of the school menu. This is the menu that is not validating.
I have attached my php page for the code in this form.
The same problem exists for other menus that are in hidden divs further down the page.
Any help appreciated!!!!Your key is the "suitcase fusion for a font manager" line.
There is a bug where you won't be able to create a button if you have a bad font, or a duplicate font, installed.
First try shutting off all of the fonts you have open with Suitcase, and see if that helps. If so, open one suitcase at a time until you figure out which font is the culprit.
If shutting off all but the basic System fonts does not help, you might have to reinstall your system, or somehow update your core System fonts. I don't know how to do that, but there was a recent article at http://www.tidbits.com/ that discussed fonts and their maintenance. But ultimately it's a font problem. -
I NEED select ..... for all entries for this logic
From table RBDRSEG, we need to pick up the field RBDRSEG-MATNR where RBDRSEG- RBLNR= RBKP-BELNR. If the program does not find any data then it can pick up the material id field from EKPO-MATNR for all the invoices picked up during the processing.
Hi,
Lets say that Invoices are in Int table ITAB.
IF NOT ITAB[] IS INITIAL.
SELECT MATNR FROM RBDRSEG INTO V_MATNR
for all entries in itab
where RBLNR= ITAB-BELNR.
IF SY-SUBRC <> 0.
SELECT MATNR FROM RSEG INTO V_MATNR
for all entries in ITAB
where BELNR= ITAB-BELNR.
ENDIF.
ENDIF.
Use RSEG instead of EKPO because EKPO don't have BELNR(Invoice) field.
Regards,
Anji
Message was edited by:
Anji Reddy Vangala
Message was edited by:
Anji Reddy Vangala
Maybe you are looking for
-
How to upload file on Application Server with Forms 6i?
Please, I need to upload .csv file from local to Application Server, I think to use .jsp application, but I don't know where I had to put it...Apache can't read .jsp file without Tomcat? If I launch my .jsp file from Apache/htdocs directory can't vie
-
Regarding sending certificate to the third party for data archiving.
Hi, I am stuck at one point in SAP. The steps I have followed are: 1. go to transaction code "oac0" (Display content repositories). 2. double click to any archive. 3. Here we can see a "Send Certificate", button. By pressing this button, an http
-
How do you download itunes library on to a usb flash drive
I want to download my ituneslibrary on to a sandisc ultra 16GB usb flash drive to play in my truck I never used a usb flash drive before!
-
Hello! I'm just going to implement a new Infotype that should use the Data Sharing functionality for Concurrent Employment. I've read a document about the implementation of the "new" Infotype Framework, but I haven't found an example how to use it fo
-
System Error in program SAPLRRK0 and form NODE_SET_TO_NODE-01
Encountered this problem in restricting query on hierarchy variable. Let me know if anyone has faced a similar problem. Thanks.