Query for Serial number
Hello all,
I want a query for show all the record along with serial number.Here i mentioned a sample table along with data.
COMPCODE
ITEMCODE
ACTIVITY
DESIGNATION
QTY
105
001
A13
D7
50
105
001
A22
D7
44
105
001
A34
7
54
105
001
A45
D7
34
105
001
A45
D8
54
105
001
A52
D13
32
105
001
A52
D14
3
105
001
A61
D2
43
105
002
A12
D1
43
105
002
A25
D1
53
105
002
A35
D5
42
105
002
A35
D4
45
105
002
A35
D3
65
105
002
A44
D2
423
105
002
A55
D3
43
105
002
A62
D4
65
These is the sample table along with data.My requirement is I want show the serial number based on the itemcode and activity.
The final result should be like this
COMPCODE
ITEMCODE
SLNO
ACTIVITY
DESIGNATION
QTY
105
001
1
A13
D7
50
105
001
2
A22
D7
44
105
001
3
A34
D7
54
105
001
4
A45
D7
34
105
001
4
A45
D8
54
105
001
5
A52
D13
32
105
001
5
A52
D14
3
105
001
6
A61
D2
43
105
002
1
A12
D1
43
105
002
2
A25
D1
53
105
002
3
A35
D5
42
105
002
3
A35
D4
45
105
002
3
A35
D3
65
105
002
4
A44
D2
423
105
002
5
A55
D3
43
105
002
6
A62
D4
65
I tried write a query used with row_number() function but i didn't get the exact output.kindly help me for getting this type of output
I see, try dense_rank instead:
SQL> with your_view_resultset as (
2 select 105 compcode, 001 itemcode, 'A13' activity, 'D7' designation, 50 qty from dual union
3 select 105, 001, 'A22', 'D7', 44 from dual union
4 select 105, 001, 'A34', '7', 54 from dual union
5 select 105, 001, 'A45', 'D7', 34 from dual union
6 select 105, 001, 'A45', 'D8', 54 from dual union
7 select 105, 001, 'A52', 'D13', 32 from dual union
8 select 105, 001, 'A52', 'D14', 3 from dual union
9 select 105, 001, 'A61', 'D2', 43 from dual union
10 select 105, 002, 'A12', 'D1', 43 from dual union
11 select 105, 002, 'A25', 'D1', 53 from dual union
12 select 105, 002, 'A35', 'D5', 42 from dual union
13 select 105, 002, 'A35', 'D4', 45 from dual union
14 select 105, 002, 'A35', 'D3', 65 from dual union
15 select 105, 002, 'A44', 'D2', 423 from dual union
16 select 105, 002, 'A55', 'D3', 43 from dual union
17 select 105, 002, 'A62', 'D4', 65 from dual
18 )
19 --
20 --
21 --
22 select t.*
23 , dense_rank() over (partition by t.itemcode order by t.itemcode, t.activity) slno
24 from your_view_resultset t
25 order by t.itemcode, t.activity;
COMPCODE ITEMCODE ACT DES QTY SLNO
105 1 A13 D7 50 1
105 1 A22 D7 44 2
105 1 A34 7 54 3
105 1 A45 D7 34 4
105 1 A45 D8 54 4
105 1 A52 D13 32 5
105 1 A52 D14 3 5
105 1 A61 D2 43 6
105 2 A12 D1 43 1
105 2 A25 D1 53 2
105 2 A35 D3 65 3
105 2 A35 D4 45 3
105 2 A35 D5 42 3
105 2 A44 D2 423 4
105 2 A55 D3 43 5
105 2 A62 D4 65 6
16 rows selected.
Similar Messages
-
Query for serial number for items sold
hi,
I want a query which would show serial numbers for Product A and Product B which were sold. I know that following tables will be used
SELECT T0.[CardCode], T0.Docnum,T0.[DocDate], T0.[CardName],T1.Quantity,T1.[ItemCode],T6.DistNumber
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
inner join DLN1 T4 on T1.DocEntry=T4.BaseEntry
inner join ODLN T7 on T4.DocEntry=T7.DocEntry
inner join OSRN T6 on T4.itemcode=t6.itemcode
WHERE T1.[ItemCode] in ('ProductA','ProductB') and T0.[CardName] like'% naaveol%' and T0.CANCELED<>'Y'
group by T0.[CardCode],T0.[CardName], T0.[DocDate],T1.[ItemCode] ,T0.Docnum,T6.DistNumber,T1.Quantity
Howerver I am doing some thing wrong and it is showing alot more records than it should. basically what I was trying to do was to get
item code
serial num
quantity
for the items mentioned sold to the particular business partner.
Your help will be greatly appreciatedHi again.......
Please try this.......
SELECT T0.CardCode, T0.Docnum,T0.DocDate, T0.CardName,T1.Quantity,T1.ItemCode,T4.DistNumber
from ODLN T0 inner join DLN1 T1 on T0.DocEntry=T1.DocEntry
left outer join SRI1 I1 on T1.ItemCode=I1.ItemCode and (T1.DocEntry=I1.BaseEntry and T1.ObjType=I1.BaseType)
left outer join OSRN T4 on T4.ItemCode=I1.ItemCode and I1.SysSerial=T4.SysNumber
Regards,
Rahul -
dear all,
we are useing serial number profile. i want to create one query which will includes
material number,
document number,
movement type, with special indicator,
serial number applied.
qty
can anybody suggest me suitable table from which i can grab serial number ( in MIGO) field ?Hi
Have a look on these tables.
SER00 General Header Table for Serial Number Management
SER01 Document Header for Serial Numbers for Delivery
SER03 Document Header for Serial Numbers for Goods Movements
SER04 Document Header for Serial Numbers for Inspection Lot
SER05 Document Header for Serial Numbers for PP Order
SER06 Document Header for Serial Numbers for Handling Unit-Content
SER07 Document Header for Serial Numbers in Physical Inventory
SER08 Document Header for Purchase Order Item Serial Numbers
SERI Serial Numbers
check in table AFPO field ANZSN with respect to AUFNR
Thanks
S.Murali
Edited by: S.Murali on Sep 14, 2009 1:31 PM -
Mac OSX Photoshop CS6 keep asking for serial number
Hi, I don't know why, but since few days ago, my photoshop CS6 started to pop up with the trial message and ask me to enter serial number. However, I'm on a one year subscription for photoshop CS6 only, there is no serial number.
I opened the software, and choosed "lincese this software" and then signed in with my adobe ID. After that, the message ask me for serial number. This didn't happen before.
My systme is :
Now it says I only have one day for the trial. Please help me to resolve this.
Thanks
Eric@CKPAD.co - The Adobe ID you are using to post here has never signed up for the Creative Cloud, not even a free/trial account. Are you using a different Adobe ID for a Creative Cloud subscription? If not this would be the correct behavior. The 30 day trial ends and you can either puchase a perpetual license (serial number) or a Creative Cloud subscription.
Feel free to follow up with me by email at [email protected] since I do not want you share private information like your email address in public forum. -
Payment made for lightroom and photoshop joint package, still prompted for serial number
payment made for lightroom and photoshop joint package, still prompted for serial number which I have not been given. what do i do next?
Hi ,
I think you have downloaded the program directly from adobe. As you have the Photography plan, then you have to download this from Creative Cloud Desktop then they will be activated through with your email address. Then it will not ask for serial number. -
Serial number? I have a MacBook Air (mid 2011). When I go into about this Mac or any of the other ways to look up the serial #,all it says for serial number is systemserial#. Is there a way to fix this?
About This Mac will show something like this:
Click on More Info... leads to some thing like this:
Serial Number is the second line from the bottom. -
Problem on forms for serial number generation with last record next_record.
Hi Experts,
currently i'm facing one problem like :
i'm populating one receipt detail in Multi block , like when user key in one receipt number that time record should go in first record ,and if they key in second receipt number then record should go in second record . mean to say every time record go in last record ..but the problem is i want to generate Serial no correspondence to every last record ..
here is my approch :
cursor c1 is
select * from table
where cname =:blk_name.clm_name.
Last record;
next_record;
for v1 in c1 loop
processed record;
next_record;
end loop;
last_record;
go_block(___);
first_record;
:sno := system.cursor_record ;
next_reocrd;
end loop;
first_record;
And in block level i'm writing code for Serial number generation when user key in manual entry for receipt detail:
:blk_name.coulumn_name := :system. cursor_record;
so in this approach their is no problem it is working properly but the problem is that
when user fetch one receipt automatically and then after he want to enter next record manually and he decided to go in detail block ,
and once he reached in detail block that time block level trigger i firing .ans serial number 2 generated and then suddenly he came to know no i want to fetch next record automatically mean to say now user going again master block and fetching next receipt detail ,
but the problem is when user leaving seccond sr no and going in master block and population next receipt detail that time cursor going on 3 record
but logically have to replace the second Serial no and generate the again serial number 2 record population .mean to say its not refreshing last_record..
so i'm appreciating is anyone if came accoross this type of issue please corrrect my code and send updated code ..plsssssssssssssssssssssssssssssss
Thanks
Abhishek
[email protected]hi
I put this below code on when_new_record_instance on block level..
:blk_name.column_name :=system.cursor_record;
so can you please help me.....
Thanks
Abhishek -
I have an invoice that I paid to use photoshop and now it is asking for serial number however it does not show a serial number when I log in
Please then use your web Browser address http://www.adobe.com/ and sign in with your Adobe User ID and Password to your account the has your Subscription and use https://www.adobe.com/account/my-products-services.html capture the page which shows you have a subscription like I showed you I have.
Open Adobe Creative Cloud desktop application use the APP tab and capture that scree to show Photoshop is installed and up to date like I did. Capture that screen. Show us you have installed Photoshop and its up to date.
Open Photoshop and use menu Help it should show tha its activated because there will be a menu item Sign Out. If it is Sign In, Sign in using the account that has the subscription the one you used above to Activate Photoshop. -
Lightroom 3 asks for serial number launching in non-admin account
The following information was provided by Carey Burgess (Adobe Employee):
Does Lightroom 3 launch and work fine in an admin account, but when you launch the application in a standard (i.e. non-admin) account it asks for a serial number?
If so, then it is likely due to a file permissions issue either in the original (admin) account or with the standard account.
(Although you need administrator access to install Lightroom, and you do need proper access permissions to your photos, you should be able to run Lightroom without issue in a standard user account.)
Lightroom 3 stores registration data (the serial number) in a file called Lightroom 3.0 Registration, which is stored by default in one of these locations:
* Mac OS: /Library/Application Support/Adobe/Lightroom
* Windows XP: C:\Documents and Settings\All Users\Application Data\Adobe\Lightroom
* Windows 7/Vista: C:\ProgramData\Adobe\Lightroom
- Check for the registration file in the appropriate location for your system.
If the file does not exist in that location, then ensure you are logged in with the admin account (the one where Lightroom doesn't prompt for a serial number) and check the user-specific location instead:
* Mac OS: /Users/YOUR USER NAME/Library/Application Support/Adobe/Lightroom
* Windows XP: C:\Documents and Settings\YOUR USER NAME\Application Data\Adobe\Lightroom
* Windows 7/Vista: C:\Users\YOUR USER NAME\AppData\Roaming\Adobe\Lightroom
If the file exists in the user-specific location instead, then I would suggest that you ensure that you have quit Lightroom, and then move the registration file from the user location to the default system-wide location. Lightroom should now no longer prompt for serial number when you open it from a non-admin account.
If the registration file did (or now does) exist in the default system-wide location, but you are still being prompted to enter a serial number when opening Lightroom in a standard user account, then that account does not have sufficient access permission to the registration file.
To resolve this aspect, there are two possible solutions (the first being the recommended solution):
1. Change the access permissions on the Lightroom folder that contains the registration file to grant "Read" access for the standard user account. (You can do this for each account individually, or you can use a broader group like Everyone.)
For more information about changing permissions, see one of these articles:
* Windows XP: http://support.microsoft.com/kb/308419#4
* Windows Vista/Windows 7: http://windows.microsoft.com/en-us/windows7/What-are-permissions
* Mac OS: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8342.html
2. Copy the registration file from the system-wide location to the user-specific location for the standard user account. (You would need to repeat this step for each standard user that needs access to Lightroom.)
Reply here if these steps do not resolve your issue, or if you have any questions.Months ago, I had a routine clearout of old software boxes etc and chucked out my Lightroom 1.0 box. A couple of weeks ago I reinstalled Lion on my mac to find that I cannot register Lightroom. I have the 3.0 upgrade serial, the 2.0 upgrade serial, but the 1.0 was on the box..
I followed the instructions above to find the files in crashplan form before the fomat that hold the registration details. I have tried placing them in the location described, but it doesn't seem to work.
The serials (or something) are in the file, but given in the string that is difficult to decipher - and doesn't work in the registration screen, wrong size and a mix of letters and numbers rather than just numbers as my 3.0 serial is.
Any suggestions for what I could do? Could I send the strings in to Adobe to be deciphered? Perhaps move files around a bit more?
Thanks in advance,
Rog. -
Why doesn't pop-up window for serial number open?
My mother has bought the Lightroom 5 CD and is installing it but for some reason when she clicks ther installed Lr icon as told in your instruction, the serial number is not requested. The whole window with the empty boxes for serial number does not appear. I'm not sure what she has done earlier but she is saying she hasn't been able to give any serial number to her Mac (she has had earlier version in other MAc but is facing major problems with this new Mac and Lightroom, she has had trial version in this Mac). So, could the problem be that she has removed some Adobe Acrobat reader, Java, Adobe ActiveX or something and that's why the pop up window for serial number does not appear or has she managed to activate something which is blocking something or if she has already put serial number somewhere could that be blocking the process? How to change the serial number? Does Lightroom require some other sw like cloud or sth?
Hi Sari,
Kindly try the below mentioned steps.
Launch Lightroom
Click on Help.
Click on Lightroom Registration
Follow the on screen instruction.
Thanks,
Atul Saini -
Aperture purchased from the App Store asking for Serial Number?
Aperture purchased from the App Store asking for Serial Number?
Has anyone seen this? I just updated the app and now I can't get in.
I don't understand.First thing to try is delete the app. Open the Mac App Store and the status in the Purchases section should update to "Install". Click to download the full app rather than an update.
-
IO 229 - Batch for serial number 1234 (BBB) differs from document batch AAA
Hello All,
We use batch management for serialized materials only at our central plant. For all other plants, there is no batch control. Sometimes we need to return materials back to the central plant but with a different batch number.
When we do two step stock transfer 303 / 305, we receive the following error message if we don't use the original batch number.
"IO 229 - Batch for serial number 1234 (BBB) differs from document batch AAA".
However, when we use one step plant to plant stock transfer 301, there is no error message. The batch number is also updated correctly in IQ02.
I wonder if there is any configuration to use 303 / 305 with different batch numbers.
Thanks,
HakanThanks Arminda.
64044 recommends to use 309 to change the batch, which works but this is an additional step.
Currently 1 step plant to plant transfer i.e. 301 doesn't require this additional step. It updates the batch information with no problem.
Is there any configuration option to change the behavior of 305, so that we don't have to do an additional movement? -
Hi Gurus
Pl let me know the Table Name for Serial Number what we are creating in IQ01 /IQ04 Transaction for Material
K.PrabakaranHello Prabakaran,
the serial numbers to a delivery are found in the SER01 and to find the link between serial number and delivery you need the OBJK table. Here you can find the correspondent equipment.
If you are looking for serial numbers for a production order these can found in the SER05.
SER00 Generic table for serial numbers
SER01 Serial numbers assigned to a delivery
SER02 Serial numbers assigned to a guarentee
SER03 Serial numbers assigned to a material document
SER04 Serial numbers assigned to an inspection lot
SER05 Serial numbers for a production order
SER06 Serial numbers for Handling Units
SER07 Serial numbers for Stocktaking
SER08 serial numbers for Orders (SD)
The assignment of serial numbers to a production order can be done either via transaction CO02 or at the latest when the GR from Production is made.
I hope that this information clarifies the issue.
Regards,
Isabelle -
Ive downloaded csk6 design and web premium trial its asking for serial number
I've downloaded cs6 design and web premium trial its asking for serial number, WHERE DO I GET SERIEL NUMBER FOR TRIAL
There are no serials for trials. it simply has expired. Read this:
Adobe trial software expired early
Mylenium -
Cc lightroom trouble asking for serial number
I purchased the cc photography package. I was able to download and open Photoshop but unable to open lightroom. It ask for a serial number. I tried the trouble shooting tips still having trouble.
Hi Kirstygem,
If the above mentioned steps have not helped , can you please try the below mentioned article. Although its for LR3 but its still effective for the newer version .
Lightroom 3 asks for serial number launching in non-admin account
Updated kb For LR5 : Preference and other file locations in Lightroom 5
Do let us know if this worked for you or not .
Cheers,
Kartikay Sharma
Maybe you are looking for
-
Is it possible to use an external hard drive for time machine backup and also as a regular hard drive?
-
Https in Httpservice doesn't return response to the caller.
Hi, I am accessing my aplication through https and i am using http service to get the data from my application server. Actually the httpservice request is going to the server and repsonse is writen to the caller. But the response is not retur
-
Move images in an iPhoto Journel???
Can i move images to an existing page in a journel within iPhoto?
-
Sap help ( bc-abap help )
can any one send me the url link of sap abap 4.6c bc-abap text help ...here i'm not getting even thou i tried for http://help.sap.com but i'm unable to find that help. i want topic wise help regds raj
-
How to install java under suse linux 8.0 prof
hi, first of all, i'm a newbie. i have downloaded the file j2re-1_4_0_01-linux-i586.bin into my public_html directory. which comand do i have to use to install java?? please help! best regards Mad Elk