Fetching the latest drawing No. after changing Sampling Drawing Procedure
Hi QM Masters,
I have 1 Report in that I fetch Drawing No. against Inspection Lot.
When I create a Inspection Lot at that time Drawing No. will generated in the system. Sampling Drawing procedure is assigned to the Lot. But the problem is that When I change the sampling procedure New Drawing No. is generated against the same lot.
Both Drawing No. are updated in QPRS table against the same lot. That's why It is difficult to fetch the latest Drawing no.
How I fetch the latest drawing no. after changing the SDP?
Gives me the Expert logic to fetch the data.
Hi can you check the fields ENTDATUM and ENTZEIT for sample drawing date and time or this date is different for you in the same table QPRS
Regrads,
Smruti
Edited by: smruti.ranjan on Feb 7, 2012 12:02 PM
Similar Messages
-
How to fetch the latest change number from CDPOS Table..?
Hi All,
im trying to fetch teh change number from CDPOS with the below select, but my requirement is always i wants to fetch the latest change number.
SELECT SINGLE objectid changenr FROM cdpos
INTO wa_cdpos
WHERE objectid = wa_e1kna1m-kunnr
AND ( tabname = 'KNA1' OR tabname = 'KNVV')
AND fname = 'AUFSD'
AND ( value_new = '01' OR value_new = space ).
Please let me know how to achive this..?
Ashoktry this way
" SELECT SINGLE objectid changenr FROM cdpos
" INTO wa_cdpos
SELECT objectid changenr FROM cdpos
INTO table t_cdpos
WHERE objectid = wa_e1kna1m-kunnr
AND ( tabname = 'KNA1' OR tabname = 'KNVV')
AND fname = 'AUFSD'
AND ( value_new = '01' OR value_new = space ).
SORT t_cdpos by changenr Descending.
read t_cdos index 1. "this is the latest change
Prabhudas -
Revision: 7868
Author: [email protected]
Date: 2009-06-15 16:37:33 -0700 (Mon, 15 Jun 2009)
Log Message:
Fixed bug in flex4test testWheel app; it needed to be updated to the latest effects API after motionPaths changed from an Array to a Vector.
Modified Paths:
flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxmlWalter Laan wrote:
almightywiz wrote:
Walter Laan wrote:
The security popup really messes with the focus in Firefox (3.6.16) though.Not saying you're wrong, but I'm using FireFox 3.6.16, as well, and I have none of the focus troubles you've described.Cannot reproduce it now either. Weird.I got the impression you were referring to keyboard focus, so I did some further tests on focus behavior. The test results are listed in the Accumulated Results table on the 1st post.
The only browser so far that works as I'd expect, or at least as I'd like, is IE.
Applets and keyboard navigation have always been a PITA. Some time ago I vaguely recall seeing an update involving a new parameter to regulate initial focus (applet or page, ..or another applet), but for the life of me I cannot locate it now. Given that it was a parameter for initial focus, I doubt it would help in this case.
Edited by: Andrew Thompson on Mar 26, 2011 6:18 PM
Removed table which has now been expanded & added to 1st post. -
Hi,
I have testcycl table which holds the results of tests for each testid and the status with execution date and time as below:
TESTCYCL
TESTID STATUS TEST_EXEC_DATE TEST_EXEC_TIME
1234 Passed
01/12/2014 00:00:00 9:00
1234 Failed
01/14/2014 00:00:00 11:00
1234 Passed
01/14/2014 00:00:00 22:00
456 Passed
01/12/2014 00:00:00 9:00
456 Failed
02/14/2014 00:00:00 11:00
999 Passed
01/14/2014 00:00:00 22:00
I need to fetch the latest status of each test id based and date and time of execution.
ie
1234 Passed
01/14/2014 00:00:00 22:00
456 Failed
02/14/2014 00:00:00 11:00
999 Passed
01/14/2014 00:00:00 22:00
Please help me abt this. Thanks in advance
SamPlease try the following.
;with TESTCYCL as
SELECT 1234 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/12/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'9:00') AS TEST_EXEC_TIME
union all
SELECT 1234 AS TESTID, 'Failed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'11:00') AS TEST_EXEC_TIME
union all
SELECT 1234 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'22:00') AS TEST_EXEC_TIME
union all
SELECT 456 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/12/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'9:00') AS TEST_EXEC_TIME
union all
SELECT 456 AS TESTID, 'Failed' AS [STATUS], CONVERT(DATE,'02/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'11:00') AS TEST_EXEC_TIME
union all
SELECT 999 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'22:00') AS TEST_EXEC_TIME
union all
SELECT 999 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'21:00') AS TEST_EXEC_TIME
union all
SELECT 998 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/14/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'9:00') AS TEST_EXEC_TIME
union all
SELECT 998 AS TESTID, 'Passed' AS [STATUS], CONVERT(DATE,'01/15/2014 00:00:00') AS TEST_EXEC_DATE , CONVERT(TIME,'8:00') AS TEST_EXEC_TIME
SELECT *
FROM TESTCYCL as t
WHERE NOT EXISTS (
SELECT 1
FROM TESTCYCL
WHERE
( TESTID = t.TESTID )
AND
(TEST_EXEC_DATE > t.TEST_EXEC_DATE)
OR
(TEST_EXEC_DATE = t.TEST_EXEC_DATE AND TEST_EXEC_TIME > t.TEST_EXEC_TIME ) -
Hp Print Diagnnostic Utility detected 'Pen Failure' I tried reinstalling printer driver again, checked cartridges installation for correctness, cleaned contact points but they did not help. Will the penfailure be solved after changing the cartridges? Installing printer again did not help.
RajeinYes, I did try it.
I completely uninstalled Firefox (including personal settings, bookmarks, add-ons etc.) and then I installed Firefox 24 from scratch. The outcome is unchanged. Namely, it installs it and then right when it is about to start for the very first time, it hangs. If I run the task manager I can see the process firefox32. It shows as if it is running. But in fact it is hanging doing nothing. It is almost as if the process is waiting for something to happen and that never occurs. Note that this should not have anything to do with, say, an incompatible add-on/plug in because I had them all removed. I also removed adobe flash prior to the installation and run the malware removal program too. -
Find the latest Start date after a gap in date Field For each id
Hi All, Can anyone help me in this, as it is so urgent ..My requirement is to get the latest start date after a gap in a month for each id and if there is no gap for that particular id minimum date for that id should be taken….Given below the scenario
ID StartDate
1 2014-01-01
1 2014-02-01
1 2014-05-01-------After Gap Restarted
1 2014-06-01
1 2014-09-01---------After last gap restarted
1 2014-10-01
1 2014-11-01
2 2014-01-01
2 2014-02-01
2 2014-03-01
2 2014-04-01
2 2014-05-01
2 2014-06-01
2 2014-07-01
For Id 1 the start date after the latest gap is 2014-10-01 and for id=2 there is no gap so i need the minimum date 2014-01-01
My Expected Output
id Startdate
1 2014-10-01
2 2014-01-01
Expecting your help...Thanks in advanceIf you're using SQL Server 2012 this will work for you...
IF OBJECT_ID('tempdb..#temp') IS NOT NULL
DROP TABLE #temp
GO
CREATE TABLE #temp (
ID INT,
StartDate DATE
INSERT #temp (ID, StartDate) VALUES
(1,'2014-01-01'),
(1,'2014-02-01'),
(1,'2014-05-01'),
(1,'2014-06-01'),
(1,'2014-09-01'),
(1,'2014-10-01'),
(1,'2014-11-01'),
(2,'2014-01-01'),
(2,'2014-02-01'),
(2,'2014-03-01'),
(2,'2014-04-01'),
(2,'2014-05-01'),
(2,'2014-06-01'),
(2,'2014-07-01')
-- SQL 2012 and later --
;WITH gg AS (
SELECT
COALESCE(DATEDIFF(mm, LAG(t.StartDate, 1) OVER (PARTITION BY t.ID ORDER BY t.StartDate), t.StartDate), 2) AS GetGap
FROM #temp t
), did AS (
SELECT DISTINCT t.ID FROM #Temp t
SELECT
did.ID,
x.StartDate
FROM
did
CROSS APPLY (
SELECT TOP 1
gg.StartDate
FROM gg
WHERE did.ID = gg.ID
AND gg.GetGap > 1
ORDER BY gg.StartDate DESC
) x
If you're on an earlier version than 2012, let me know. It's an easy rewrite but the final code isn't as efficient.
Jason Long -
Problem in fetching the latest updated record.
Hello ,
I have a program in which i am creating a BDC session and submit the same in program rsbdcsub, now the problem is that i need to capture the Field Qstate from the table APQI, its not updated instantaneously, so i am not able to get the latest value of QSTATE from updated APQI table,
I have used commit work, commit work and wait , SET UPDATE TASK LOCAL, nothing is working, only if i put wait up to '1.5' seconds before fetching the value from table APQI i get the updated Qstate, but this will create a performance issue so please suggest.
Can any one please help me resolve this problem.
Regards,
Abhinavit's quite normal that status is updated after the job is modified
and you cannot know beforehand how much time it will take to do it (even the start time is not sure because it could be delayed !)
you could select the value until it is one of a list that you expect (for example, finished or cancelled) -
Cursor not fetching the latest value in the loop.
Hi!
I'm facing a peculear problem. I've a procedure which will check the total number of records in a loop. It will fetch that value. If that value mathced with certain condition then the outer loop execution need to stop. Here is my script -
<<Outer Loop Script>>
declare
j number(5);
begin
j := 1;
dbms_output.enable(100000);
while j <> 3 and j <=3
loop
sel_pri(3,j);
dbms_output.put_line('J is : '||j);
end loop;
dbms_output.put_line('Executes.....');
exception
when others then
dbms_output.put_line(sqlerrm);
end;
-- Procedure Script --
create or replace procedure sel_pri(x in number,y out number)
is
pragma autonomous_transaction;
begin
select count(a.flg) cnt
into y
from (
select flg
from t_priority
where flg <= x
and flg < 4
union
select flg
from t_priority
where flg > x
and flg < 4
) a;
--commit;
end; Now, the problem is -
Suppose i've two records are there in t_priority table. So, when i run my anonymous pl/sql block it won't satisfy the condition - as a result the loop will iterate untill the condition satisfiy. Now, if i insert data from a different session and commit the value in table t_priority which have only one field named flg and if count is 3. Then the process of the while loop should be stopped. But, it that is not happening. Infact it is fetching the old value. Why is it so?
Thanks in advance for your reply.
Regards.
Satyaki De.sir i cannot understand your example.
SQL> declare
2
3 cursor bc is
4 select ename from emp;
5
6 procedure change_in_another_trans
7 is
8 pragma autonomous_transaction;
9 begin
10 update emp set ename = ename || '?';
11 commit;
12 end;
13 begin
14
15 for v in bc loop
16
17 if bc%rowcount = 3 then
18 change_in_another_trans;
19 end if;
20
21 dbms_output.put_line(v.ename);
22
23 end loop;
24
25 end;
26 /
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
PL/SQL procedure successfully completed.
Procedure change_in_another_trans is autonomous and is executed
only once in the loop - when I fetched 3 rows from cursor. It updates
the data I fetch in cursor loop and commits autonomous transaction.
If Oracle would not support the read consistency for queries you had
SMITH
ALLEN
WARD
JONES?
MARTIN?
BLAKE?
CLARK?
SCOTT?
KING?
TURNER?
ADAMS?
JAMES?
FORD?
MILLER?
But you see the data as they were at the moment (exactly SCN - System Change Number) of the query issue dispite they have been changed by another transaction after the cursor has been open. Hope I'm clear now.
Rgds. -
I have tried to update my iPod Touch 4G to the latest update, I currently have iOS 4.1. After the 4 hours an error message appears saying iTunes had lost connection even when I am fully connected to the internet. I have repeated the update 4 times now with not luck. Any ideas?
Thanks in advance
AdamIf you get a network timed out error, try disabling the security software on the computer during the download and install.
You can also try a direct download andinstall by:
iPod, iPhone and iPad Firmware Download
Nera the top of the page aretheinstructions for selecing the download for the install. -
my remote wont turn my appletv on even after changing the battery
Nothing, the light didn't flash at all? If so you either have a dead remote or a dead Apple TV.
If you have a Mac you can try pairing the remote with it to test. Go to System Preferences->Security & Privacy and unlock the panel. Click the Advanced button and look for the Disable Remote Control Infrared Receiver checkbox. Clear it and click the Pair button. If the remote is ok you should be able to pair it to the Mac.
If you can't pair the remote it most likely pints to a bad remote. If the Apple TV still won;t respond then you need to get the Apple TV looked at.
Good luck -
I have a iPad 3 (wifi+cellular). Today I updated with the latest software update. But after the installation of the update it doesn't start. Again and again the apple logo flashes and nothing happens. I tried to reset it by accessing it through iTune. But it is not recognized by iTune. Please help.
Hello bhar.suman,
Thank you for using Apple Support Communities.
For more information, take a look at:
iOS: Not responding or does not turn on
http://support.apple.com/kb/ts3281
Have a nice day,
Mario -
How can I see the previously purchased Apps after changing region?
I recently changed the the region of my Apple ID and now none of the previously purchased apps are showing up in Purchased info even if I delete and download them again. Before I changed the region I downloaded the free app called Constellation on my iPad, but upgraded it to Pro after changing region. Now when I installed it to my iPhone, it doesn't have the Pro license and asks me to buy it again.
once you connect the new iPhone, iTunes should ask you if you want to restore the backup of your old one. you can also redownload your purchased app over and over free of charge: How to redownload purchased apps from the App Store
-
Problem after change item status procedure in sales orders.
Hello experts,
I have changed item status procedure for sales orders. But now all BDoc with queue name CSA_ORDER_xxxxx remain in state 'Written to qRFC Queue (intermediate state)' and needs to be reprocessed manually.
No problem reprocessing.
Have somebody any idea ?
Best regards
Juan SalomHi,
Is your inbound queue un-registered(type U)? Look at trx.
SMQR
and see if it is in un-registered. If yes, select the CSA_ORDER_*** queue and click on
Registration
button.
If this does not help, re-generate your Bdoc services (for Bdoc BUS_TRANS_MSG) using
SMOGGEN
or
using the generation workbench.
Then try the delta once again and observe for queue and Bdoc status in the
SMW01
Hope it helps! Reward if helpful.
Regards,
Sudipta -
when downloading itunes why all my web based programs change to itunes programs and all of the desktop icons change to itune icons?
That's because iTunes is registering itself as the default application to open those kinds of files. I believe you can stop that behavior when you install it. To revert a file type's default handler you need to select it and select "Get Info" from the File menu and change the settings under "Open with:" to your desired application.
-
How to keep the latest log message after jboss restarted
I am using time/date based rolling appender for the jboss log. but I found the server.log file will be updated with new log message after I restart the jboss server. therefore all of the message before jboss restarting are gone. is that a way I can keep the lasted log message that is just before jboss restart.
Thanks.Don't know about any jboss options, you could always create a bat or sh file that renames the existing log before starting jboss.
Maybe you are looking for
-
How to change the background color of a cell in datagrid using flex3
i want to change the background color of a cell.....how can i achieve this.....and also i want to know how a spacing cane be done between cells in a datagrid...plzzz help me???
-
Weather app on iPhone, iOS 8.1, shows "no results found" in China
Hello, I've checked about 20 iPhones in China so far and they all seem to have the same problem. When using iOS 8.1 or 8.1.1 (even 8.0.x) the weather app shows "no results found" when searching for any city in the UK. Only London can be found. The sa
-
Supporting Object Install Scripts - populate clob table
All Before I delve into exactly how I thought I'd ask the forum if anyone had packaged up an install script to populate a table with a clob column? I have an app that I am finishing up and the one remaining table has a clob column which obviously doe
-
Error when trying to Install Measurement Studio 7.0
I did not mention this before, but the disks, Measurement Studio Professional Edition for Windows XP, Visual Studio.net and the Device Driver Reference CD installed fine. The Measurement Studio Professional Support for VIsual Studio 6.0 did not insta
-
Some ports randomly get blocked and the external program is unable to rece
We have configured few ports to send out Idocs using TRFC mechanism. Initially all the ports are working fine and the external program is able to receive Idocs from all the ports. However after sometime, some ports randomly get blocked and the exte