Procedure needed 4 changing the sequence order
For example, there are ten employees. The first employees id will be 1. The second employee says his id he wants to be 14. For the third employee, the employee id should come in sequence, i.e it should assign 2 by default, if he have not requested an id. Again when the fourth employee comes, he will request for number 4. When fifth employee comes, he will be assigned number 3, when he has not requested of his choice. When sixth employee comes, number 5 should be assigned, since number 4 is already in use.
So how can I write a Procedure for this?
this example might be of help.
-- assuming that you have this in your procedure:
-- pEmpId Number => for Employee ID
-- vEmpId Number => place holder for employee id
-- vCtr Number => counter for checking rows
-- emp_seq_no => sequence for employee
-- employee does not request for an Id
If pEmpId Is Null Then
Loop
Select emp_seq_no.nextval
Into vEmpId
From dual;
--check if existing on the table
Select empid
Into vCtr1
From employee
Where empid = vEmpId;
If vEmpId <> vCtr1 Then
exit;
End If
End Loop;
Else
-- employee requested for an Id
Select Count(*)
Into vCtr1
From employee
Where empid = vEmpId;
-- check if existing on the table
If vCtr1 > 0 Then
-- code goes here on what do you want to do when
-- the requested id exists
End If;
End If;note: this code has not been tested.
Similar Messages
-
I need help changing the sequence settings to my video
I shot on a JVC Everio in 720x480 29.97fps. I normally shoot in 1080x420 so I know the picture quality isn't going to be AS good. Normally, when I drag my clips into the timeline Premiere changes the sequence settings for me and everything looks fine. However when I drag this footage (the 720p) in, it becomes elongated and fuzzy.
I've messed around with the sequence settings by using DV-NTSC widescreen 48kHz and DVCPRO50 480i NTCS widescreen. When I drag my clips in they're cropped really close and they still look a bit off when I change the image to fit the screen (DVCPRO 50 looks a little bit better).
When I shot the video it looked crisp and clear on the monitor. I'm wondering if it looks strange because of the sequence settings and if so, what would be the best settings for this video.
The final video is going on youtube and I would like to make it look as good as possible!
Please let me know if you can help me out!However when I drag this footage (the 720p) in, it becomes elongated and fuzzy.
What 720p? You gave us two frame sizes. Neither of them are 720p.
1080X420 is a very strange frame size. And you say it is normal? A 720p video is 1280X720 non-interlaced.
Chances are very good that it is 480i video you shot with a frame size of 720X480 and it is interlaced.
That video should be interpreted with a Pixel Aspect Ratio (PAR) of 0.9091 (rectangular pixels that are taller than they are wide) - and what that means is that it isn't 16:9 it is 4:3 and should be edited in a 4:3 sequence. If, however, Premiere Pro is seeing the footage as having a PAR of 1.0 (square pixels) then you may have to right click on the clip in the Project Panel and select Modify|Interpret Footage and set it to D1/DV NTSC (0.9091) -
How to change the fields order by pushing the TAB button?
Hello.
I have 4 input fields on a screen that i have build.
When i'm running the screen, I can move from one field to
another by the TAB button.
I need to set a different moving order that is performed by the TAB button.
For example: the fields are 1,2,3,4. if I use the TAB button to move from one field to another- the order is 1->2->3->4.
I want it to be 1->3->2->4.
Is it possible??
Thanks, Barak.Hi Barak Sahar,
a) set the initial cursor at dynpro level
b) set the cursor positions dynamically using codeSET CURSOR[/code]
Here are the online help links I found:
http://help.sap.com/saphelp_470/helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_470/helpdata/EN/9f/dba47e35c111d1829f0000e829fbfe/frameset.htm
Go through below thread...
How to change the sequence of fields accessed with the tab key on a dynpro;�
Hope it will solve your problem
<REMOVED BY MODERATOR>
Thanks & Regards
ilesh 24x7
Edited by: Alvaro Tejada Galindo on Dec 25, 2007 9:13 AM -
Approval Procedure to change the price of items
Hi!
i 'm trying to create a query to an Approval Procedure to change the unit price in the Purchase Order i create this query:
SELECT DISTINCT 'True' FROM POR1 T0 INNER JOIN OITM T1 ON T0.[ItemCode] = T1.[ItemCode] WHERE T1.[ItemCode] = $[$38.1.0] AND T1.[LastPurPrc] <> $[$38.14.0]
as you see this query compare is the Last Purchase Price is different than the actual unit price, and these for each line of item.
I think this is correct, and i configure the Approval Procedure, but when i check the AP in the Purchase Order changing the Unit Price, it gets me an error that says
1) [Microsoft][SQL Native Client][SQL Server] Error converting data type nvarchar to numeric.
What happend?
Am i doing something wrong ?
In easy term, i just want to execute an approval procedure when the user change the unit price in the purchase order.
Hope you can help me !
Thanks in Advance
Best Regards !Xavier,
maybe you are with a problem thar you dont' know, i can to expain this point,
1. if you want one approval at level line (comparing prices), not possible to make this way the approval, because you don't have control at level line while the document isn't in database.
2. i bealeve that the better way is to make a store procedure for to insert each record into temp table while to add line in purchase order without (formatead seaches), now, when you create a purchase orden you need create a query for to search record in the temporal table with the condicion that you needed.
3. now, if you want to call a value on the screen (money), the better way is $[$38.1.number]
Good look,
OSCAR KLENNER
> Hi!
> i 'm trying to create a query to an Approval
> Procedure to change the unit price in the Purchase
> Order i create this query:
> SELECT DISTINCT 'True' FROM POR1 T0 INNER JOIN OITM
> T1 ON T0.[ItemCode] = T1.[ItemCode] WHERE
> T1.[ItemCode] = $[$38.1.0] AND T1.[LastPurPrc] <>
> $[$38.14.0]
> as you see this query compare is the Last Purchase
> Price is different than the actual unit price, and
> these for each line of item.
>
> I think this is correct, and i configure the Approval
> Procedure, but when i check the AP in the Purchase
> Order changing the Unit Price, it gets me an error
> that says
> 1) [Microsoft][SQL Native Client][SQL Server] Error
> converting data type nvarchar to numeric.
>
> What happend?
> Am i doing something wrong ?
>
> In easy term, i just want to execute an approval
> procedure when the user change the unit price in the
> purchase order.
>
> Hope you can help me !
> Thanks in Advance
> Best Regards ! -
What is the procedure to change the owner of the BW jobs.
Hi Gurus,
Version- BW 3.5
I need to change few jobs Owners which are collected from the SM37 from a individual User to generic account(ALEREMOTE).
Will any body help me out with the procedure to change the owner of the BW jobs.
Thnaks in advanace..
With Regards,
MBSin SM37, take all release jobs by giving JOb name as "" and user as "".
When you get the release job details then follow the steps.
1. Select theJob --> Menu Bar --> JOB --> Change --> here you will get the details of the job and Clieck on STEP just above the job name.
In the next screen select the job and click on Change ICON. here you can see the user name in change mode and you can update the user to ALEREMOTE. And then save the job.
Once done then the job will be on the new user.
Hope this helps.. -
Problem in Changing the Service Order Using BAPI_ALM_ORDER_MAINTAIN
Hi ABAPers,
I want to change the Service order(<b>TCODE-IW32</b>) Using <b>BAPI_ALM_ORDER_MAINTAIN</b>.But i don't know what are all the
Parameters needs to be passed.I want to chnage the <b>COMPONENT</b> of the Service Order.Please anyone tell me what all are the
mandatory parameters should be passed to change the <b>COMPONENT</b> of the Service Order.If anyone has the code Please send me.
It is very Urgent Kindly help me to Solve this problem.
Regards,
Ashok.Hi Ashok,
i am sending u the sample eg thread for bapi create i thnk u can find out the mandatory fields frm tht ...
check this link though it is for create the mandatory fields and structure will be same .
Create Order BAPI
regards
Sana M.
reward for useful answers.. -
Change the Purchase Order : Item - Conditions value
Hi,
How to change the Purchase Order : Item - Conditions value.
In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
How can i change it??Hi,
Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
MN05 is the Transaction code for Purchase order condition types.
Please check and revert back if you need more details.
regards,
santosh -
Can you change the tab order in Muse forms?
Can you change the tab order in Muse forms?
Hi Rebecca,
By tabs do you mean the form fields? If yes, then you can simply rearrange them by repositioning the other fields using mouse.
However, the e-mails that are received on submission of the forms show the original sequence of the fields.
Regards,
Neha -
iPhoto is changing the sequence of the photos I have in my file for the book I want to create. Help?
The problem has been solved. As it turns out, I was highlighting the photos in the album I wished to create. And then generating the request for a book. This caused the photo images when loaded into the book format to revert to the sequence used when I originally loaded them into the album. Not the edited sequence. Turns out that I did not need to highlight the photos. By eliminating this step, they remained in the edited sequence.
Thank you for responding. Warmly, Janice huseby -
How do I change the PDF order in a portfolio?
I have been creating a PDF portfolio and would like to know how to change the specific order of the files as they appear in the carosel. I have tried all of the view modes, dragging and dropping doesn't work, renaming and adding 1,2,3 or a,b,c doesn't work.
I just want to be able to place the pdfs in a specific order. Any help would be appreciated.
Best SteveYou need to change the name and then change the Initial Sort order.
-
HT2470 Why does this not explain how to change the sort order?
Why does this (i.e. support at Apple.com) not explain how to change the sort order? I can "arrange" by Date Modified for example but it won't let me switch to use most recent dates first. Also, what is Apple-speak for arrange versus sort anyway? It seems I used to be able to click on a column heading in finder and get a drop down arrow allowing me to change the sort sequence.
Arrange roughly translates to "group the items in the folder." Sort is how each group is ordered. If you have arrange set to none, you can sort by anything. However, there is no way in the Arrange/Sort menu to choose the direction. The only way to do that is in the List View, and you must have Arrangement set to None.
I've submitted an Enhancement Request to allow choosing sort direction from the Arrange/Sort menu, but I haven't ever gotten a response, which is good and bad. Good because they will often respond that they have considered it and don't plan on implementing. Bad in that they've haven't implemented it. -
How can i change the sequence of text element in standard driver program ?
Hi,
can u tell me how can i change the sequence of text element in standard sapscript driver program.. without making a zcopy of standard driver program.
My problem is when MEDRUCK form is getting printed for PO print , header text is coming before item. But the requirement is to come it after item.So how cani do that without making the zcopy of SAPLMEDRUCK program..Is there any enhancement point in SAPLMEDRUCK driver program..where i can put my customise code for changing the sequence of text element ?Hi,
Just copy the MEDRUCK to ZMEDRUCK. No need to copy the driver program.
1) SE71Menu > Utilities > COpy from Client
MEDRUCK ->>Client 000
New formname ZMEDRUCK
2) Now open the ZMEDRUCK in DE language in SE71
3) Menu > Utilities > Convert original Language
Change DE to EN, save and activate
4) Now open the ZMEDRUCK in EN language
5) Goto Pagewindows > Main window,
Look for the HEADER text Text element, copy the whole code under this Text element just after the ITEM text Text element, and comment the HEADER text above.
Now the Header text Text element will be below ITEM text only. This will full fill your requirment.
Now goto NACE transaction and add the copied ZMEDRUCK to the EF application.
Regards
Bala Krishna -
How do you change the movie order in iDVD?
I'm doing a video showreel and need to change the running order of movies that I'm using. My menu page lists the 4 movies in a vertical list, which is fine, except I'd like to move the last one up the running order in the menu.
I assumed you'd drag it, but that doesn't work. Can anyone help?You can drag the sub-item (movies) back into the parent item and it will place the item you dragged into it at the "end" (on the right looking at it in the top-down tree view.) You cannot put the first item on the end, but you can get around this by putting it into a child node and then back into the parent node.
Hope this makes sense... -
Changing the Z-Order of objects
Is it possible to change the z-ordering of items, either as they are being drawn or at a later time? I have an extension that calculates and draws overlapping objects, and in order to get the sizes and positions correct, I need to occasionally move some of the items back after they are created. The ADK appears to have some basic ability do adjust selected items, but it would be a lot easier if I could simply create the object and then place it into the correct z-order location.
You can get a UIDList of frames to bring to the front and call:
UIDList framesToResort =.......
Arranger::SortItemsBackToFront( &framesToResort );
Or you can use the commands BringToFrontCmd, BringForwardCmd, SendBackwardCmd, SendToBackCmdBoss -
CATS- change the sequence of columns
Hi,
Can we change the sequence of the columns in the time sheet the way it appears?
Lets say.. currently, PERNR - Name - sender cost center - activity type - rec order - activity - designation.. is the sequence.
Can we make it to
PERNR - name - designation - sender cost center - rec order - activity type - activity
By dragging from one column to another column in Tcode:CAT2, it was change, but its not saved.
Please let me know.
Regards
VijayHi,
I got the solution
Regards
Vijay
Maybe you are looking for
-
Can't access Solaris 10 after install Essbase 11.1.1.3 32/64-bit clients
We try to install Oracle Essbase 11.1.1.3 Client 11.1.1.3 32 and 64 bit in separated folders on Sun Solaris 10. Installation performed by root. 1. 32-bit Essbase 11.1.1.3 Client was installed and cofigured in ../ESS11113_32 folder with Oracle install
-
Found Practically new iPod Touch 5th Gen. - I'm throwing it away
Hi, I've read several of these same questions: Someone finds an iSomething, can't find owner, and wants to get it out of "disabled" mode and use it. And then they get accused of being a criminal. I have an iPhone 6, iPad 2, iPhone 4, and my son an
-
I have tried to sync my shuffle to my macbook pro. But I keep getting the unknown error message above. All I want to do is import the playlist so I can get my new iPod up and running. Any suggestions?
-
1 SP for multiple Marketing Form
Dear Experts.. Plz check this SP *IF @transaction_type IN ('A', 'U')AND @object_type in ('22') BEGIN If exists (SELECT T0.DocEntry FROM opor T0 inner join ousr t1 on t0.docentry = t1.userid where t0.docentry =@list_of_cols_val_tab_del AND t0.U_series
-
More than one Library on two different computers
When I purchased my iTouch I took it to my work and downloaded itunes on that computer and imported hundreds of songs from some CD's. I had no problem syncing my iTouch. I recently downloaded itunes on my notebook at home and opened my library (or st