Picking sequence in oracle outbound
Hello,
We are using wms cartonization while picking for outbound. The requirement is to have a picking sequence in such a way that, the heavier items are picked first and lighter items are picked later. Can I sequence the picking tasks based on the physical attributes of the items? How can this be handled?
Thanks,
Simon
You can use the SequenceImpl helper class. In the docs: 8.3.1.2 Eagerly Defaulting an Attribute Value from a Database Sequence
// In WarehouseEOImpl.java
import oracle.jbo.server.SequenceImpl;
// Default WarehouseId value from WAREHOUSE_SEQ sequence at entity row create time
protected void create(AttributeList attributeList) {
super.create(attributeList);
SequenceImpl sequence = new SequenceImpl("WAREHOUSE_SEQ",getDBTransaction());
setWarehouseId(sequence.getSequenceNumber());Timo
Similar Messages
-
Firing sequence of Oracle forms 6.0 triggers
Hi All,
Pls tell anyone what is the sequence of trigger firing in oracle 6.0 (oracle apps).
Thanks in advanceHi,
Please see if these links/docs help.
Note: 61675.1 - Trigger Execution Sequence in Oracle Forms
firing sequence of triggers in oracle forms
http://tinyurl.com/2wyffj6
Thanks,
Hussein -
Dropped sequences in oracle 10g
Hi All,
Can we get back the dropped sequences in oracle 10g?
Command?
Thanks.
Edited by: user545846 on Apr 9, 2009 7:32 AMThanks. Oracle site is accessible.
This user has the dba previleges to select all tables. but still getting this error message:
SQL> SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24;
SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24
ORA-01031: insufficient privileges
Please give your comment. -
Accumulate Picking Quantity on an Outbound Delivery with WHSCON IDoc
Hi Friends:
I'm working on a Delivery IDoc (Msg Type:WHSCON) posting, where I've to update the Picking quantity on the Outbound Delivery. But the requirement is to accumulate the picking quantity.
WHSCON IDoc has...
- E1EDL20 - Header
- E1EDL18 with qualifier 'PIC'
- E1EDL24 with Pick quantity
- E1EDL19 with qualifier 'QUA'
- E1EDL37 with Packing header
- E1EDL44 with Item Packing details
The issue is the IDocs are posting successfully... NOT Accumulating, but replacing the already Picked quantity.
Requirement example:
Delivery has 100 EA on Item 900001.
1st IDoc posted with Pick quanity of 75 EA --> Delivery updated with 75 EA on Item 900001.
2nd IDoc posted with Pick quanity of 25 EA --> Delivery updated with 25 EA on Item 900001. (Here I want the pick quantity to be accumulated to 100 EA)
Any quick help on this is greatly appreciated. BTW... we are in ECC 6.0.
Thanks,
MLThank you JB for your reply!
Sorry to say, but I found NO User Exit or Project by name 'ALE00001'. Do you mean "EXIT_SAPLV55K_001"? Appreciate your help!
And my original intention was to find out any standard way of Accumulate Picking Quantity by switching on a flag on the IDoc or by using any config if there is any.
Seeking your help!
Thanks,
ML. -
Generate alphanumeric sequence using oracle sequence
Hi,
Can we generate alphanumeric sequence from Oracle sequence.
Sequence would be something like this. Please advice
TEMP-0001
TEMP-0002
TEMP-0010
Thanks,
Lakhi,
You can try below procedure...
SQL> create sequence sec
2 minvalue 0
3 start with 001
4 increment by 1
5 nocache;
Sequence created.
SQL> select 'temp-'||to_char(sec.nextval) from dual;
'TEMP-'||TO_CHAR(SEC.NEXTVAL)
temp-1 -
Picking status change in Outbound delivery
Hi All,
I have to create a start condition in PPF actions, whihc is nothing but BADI... whihc will trigger when the Pcikinf status is changed....
I have these threee condtions:
Action will be triggered by outbound delivery order status change:
1. Picking planned status at header level changed after warehouse order creation/cancellation (corresponds to Focus2 status 0 u2013 Forecast);:
u2022 from u201CNot startedu201D to u201CCompletedu201D and back from u201CNot startedu201D to u201CPartially completedu201D and back ;
u2022 from u201CPartially completedu201D to u201CCompletedu201D and back;
2. Picking status changed at header level after execution each of warehouse order in drop location (corresponds to Focus2 status 1 - BeginPicked);
u2022 from u201CNot startedu201D to u201CPartially completedu201D and back;
3. Picking status changed at header level after execution of last warehouse order in drop location (corresponds to Focus2 status 2 - Picked):
u2022 from u201CNot startedu201D to u201CCompletedu201D and back;
u2022 from u201CPartially completedu201D to u201CCompletedu201D and back;
any help????
I want to know how can i code this??Hi,
In the BADI, you can get reference to Delivey Object
lo_dlv_ppf TYPE REF TO /scdl/cl_dlv_ppf.
lo_prd TYPE REF TO /scwm/cl_dlv_management_prd.
get delivery reference
lo_dlv_ppf ?= io_context->appl.
Get the attributes DOCID, the find the status of the documents accordingly.
Now get the instance of the Delivery management:
lo_prd = /scwm/cl_dlv_management_prd=>get_instance( ).
Then read Delivery header and items using the below method based on DOCID:
APPEND is_docid TO lt_docid.
ls_include_data-HEAD_PARTYLOC = abap_true.
ls_include_data-HEAD_DATE = abap_true.
ls_include_data-HEAD_TRANSPORT = abap_true.
ls_include_data-ITEM_DATE = abap_true.
ls_read_options-data_retrival_only = abap_true.
ls_read_options-mix_in_object_instances = abap_true.
CALL METHOD lo_prd->query
EXPORTING
it_docid = lt_docid
iv_doccat = is_docid-doccat
is_read_options = ls_read_options
is_include_data = ls_include_data
IMPORTING
et_headers = lt_whr_headers
et_items = lt_whr_items.
You can find header status in lt_wr_headers.
Or based on DOCID, get status from table /SCDL/DB_STATUS.
Hope that helps
Vinod. -
Drop/Create sequence using Oracle Job Scheduler
IDE for Oracle SQL Development: TOAD 9.0
Question: I am trying to do the following:
1. Check if a certain sequence exists in the user_sequences table
2. Drop the sequence if it exists
3. Re-create the same sequence afterward
All in a job that is scheduled to run daily at 12:00 AM.
What I would like to know is if this is even possible in the first place with Oracle jobs. I tried the following:
1. Create the actual "BEGIN...END" anonymous block in the job.
2. Create a procedure that uses a dynamic SQL string using the same "BEGIN...END" block that drops and recreates the sequence using the EXECUTE IMMEDIATE commands
But I have failed on all accounts. It always produces some sort of authorization error which leads me to believe that DDL statements cannot be executed using jobs, only DML statements.
BTW, by oracle jobs, I mean the SYS.DBMS_JOBS.SUBMIT object, not the job scheduler.
Please do not ask me why I need to drop and recreate the sequence. It's just a business requirement that my clients gave me. I just want to know if it can be done using jobs. If not, I would like to know if there are any work-arounds possible.
Thank you.Please do not ask me why I need to drop and recreate the sequence. It's just a business requirement that my clients gave me. I just want to know if it can be done using jobs. If not, I would like to know if there are any work-arounds possible.Well, I won't ask you then, but can you ask your clients why on earth they would want that?
Do they know that doing DDL 'on the fly' will invalidate the dependent objects?
Best shot you can give at it is reset the sequence. And you could do it in a job, yes, as long as it's interval is during some maintenance window (no active users).
Regarding resetting a sequence, you, (and your clients) should read this followup:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1119633817597
(you can find lots more info on sequences and jobs by doing a search from the homepage http://asktom.oracle.com)
Regarding the authorization errors: your DBA should be able to provide you the nessecary privileges.
But in the end, this is something I'd rather not would like to see implemented on a production system... -
How to call sequence in Oracle Forms
Hi,
I am using Oracle Developer Suite 10g. I want to call a sequence that I have created in SQL Plus. When I try to call the sequence in a trigger for a command button (WHEN-BUTTON-PRESSED) the compiler tells me that the sequence cannot be used in this context. I am passing the sequence to a procedure as a parameter. Let me show you some code:
My table is:
Location(loc_id, loc_name);
primary key is loc_id
My sequence is:
CREATE SEQUENCE loc_seq
MINVALUE 1
MAXVALUE 999999
START WITH 1
INCREMENT BY 1
CACHE 20;
My procedure is:
CREATE OR REPLACE PROCEDURE loc_change (v_loc_id IN Location.loc_id%TYPE, v_loc_name IN Location.loc_name%TYPE) AS
BEGIN
INSERT INTO Location(Location.loc_id, Location.loc_name)
VALUES (v_loc_id, v_loc_name);
COMMIT;
END loc_change;
My WHEN-BUTTON-PRESSED trigger is
BEGIN
loc_change(loc_seq.nextval, :DATA_BLOCK.VARIABLE);
END;
All that I need to do is generate a random number for the parameter passed that is the primary key for Location, from within my trigger. Any thoughts?This
DECLARE
nSeq number;
BEGIN
select loc_seq.nextval
into nSeq
from dual;
loc_change(nSeq, :DATA_BLOCK.VARIABLE);
END;should do the job...
you can also put the fetching of the sequence into the database procedure. if you have DB Version 11g, you can reference the sequence simply by this:
nSeq := loc_seq.nextval;in prior 11g you have to fetch it using select into from dual.
regards -
How to create a sequence in oracle forms6i
Oracle forms 6i
Hai All
I am working in leave application entry so i need to create a sequence for giving a unique number for each entry
Pls tell me the steps how to created and how to call the sequence from database
Thanks in Advance
Srikkanth.mHi,
Create sequence <sequence_name>
Start with <number>
increment by <number>
in database
eg:- create sequence test_seq
start with 1
increment by 1;
in forms
you can assign value in pre-insert trigger
Declare
cursor cur_seq is
select test_seq.nextval from dual;
begin
open cur_seq;
fetch cur_seq into :item_key ; /* :item_key give name of ur primary key field*/
close cur_seq;
end; -
Creation of Sequences in Oracle
Hi
If i want to create large number of sequences around 30 to 35 sequences in a single database,Is there any performance down in oracle server or any limitation?
Please explain if so ! As in next project we are going to create around 30 to 35 sequences.
Thanks in advance
Raj..Raj
Sequences shouldnt degrade the performance theoritically. Because , they will not be activated unless you do explicitly. They are not
like any daemon programs or background processes running . So it should be ok .
As long as you can manage that large number of Sequences it should be fine.
prakash -
Wrong sequencing with Oracle db using sequence table?
Hi,
we have a strange problem resulting in primary key violations in a table which is using a sequence (no native sequencing, but a sequence table).
We use Oracle 9.2.0.x
We have a table which is mapped to a Java type which has two derived types, i. e. in the table, two different "object types" are contained (the table contains all attributes of both classes). This table uses a sequence key as primary key.
This works pretty fine when the table is left empty in the beginning.
However, if we fill 15 records in this table by a SQL script - not by toplink! - (for migration purposes), and then set the initial sequence value in the sequence table to 500 (which should be greater than 15 ;-) by the same SQL script, then restart the application server (Bea Weblogic), and then try to add new records via Toplink, we get a primary key violation.
It sounds odd but it seems as if Toplink would store the initial sequence value somewhere else and does not care about the value we entered "manually" in the sequence table.
Can anybody give us a hint what the reason could be for this problem? Is it the inheritance of the Java Types from one abstract type? Does sequence number caching play a role (we used a preallocation size of 500 and of 1 - with the same negative effect).
If you need additional information, don't hesitate to drop me a notice.
Thanks,
Andreas.Each time the application using TopLink starts it will lazily acquire the next pre-allocation batch of values from the database.
You will see SQL entries like:
UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'EMP_SEQ'
SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'EMP_SEQ'
TopLink will increment the table's value and then use the values from 1 greater then initial value up to and including the value it just incremented the row to.
In your example you should see, after re-starting the server, the next value to be 501.
What exact version of TopLink are you using?
When you enable SQL logging what statement do you see executed, related to the sequence table prior to the invalid INSERT?
Doug -
Migrating from Pick Database to Oracle 8i database
We are investigating the possiblility of exporting the entire contents of a pick database into an Oracle 8i database. Can you suggest any resources needed or utilities needed to perform this?
thanks in advance
warrenIf Access2000 allows you save the database as an access97 database then you can use the Oracle Migration Workbench to do the conversion. Sorry, Im not the Access expert so I can't say for sure whether the save as 97 option is shipped with 2000. I'll look into it and post a definitive answer tomorrow.
Regards
Brian. -
Sequence on Oracle Database column
Hi All,
In my scenario I have to insert data/records into a Oracle Database.The Database table has primary key with Sequence(sequence will generate next unique value for the new record to be inserted). So how can I insert the records into that table. I have created JDBC receiver message type for that particular table.
Please let me know the possible ways.
Thanks
Praveen KumarUsing Stored Proecdure is one option.Write a stored procedure that takes the rest of the column values as inputs and then uses the sequencne plus these values to insert data into the datbase.
Can you provide an example of how the insert query with the Call to the Sequence looks so that a standard insert option can also be looked into?
Regards
Bhavesh -
Hi all,
I am using a sequence in a cursor. i want the select statement to return 2 consecutive values of the sequence..
like it should give me a result
x y
1 2
3 4
5 6
how do i do this using nextval?
thanksThere is an alternative for sequence - analytic functions (if you need
to start from 1 each time you insert rows):
SQL> select tabname,
2 (row_number() over(order by tabname))*2 - 1 x,
3 (row_number() over(order by tabname))*2 y
4 from tab_copy
5 /
TABNAME X Y
ALL_CATALOG 1 2
ALL_CLUSTERS 3 4
ALL_COL_COMMENTS 5 6
ALL_COL_PRIVS 7 8
ALL_COL_PRIVS_MADE 9 10
ALL_COL_PRIVS_RECD 11 12
ALL_DB_LINKS 13 14
ALL_ENCRYPTED_COLUMNS 15 16
ALL_INDEXES 17 18
ALL_IND_COLUMNS 19 20
ALL_IND_EXPRESSIONS 21 22
ALL_JOIN_IND_COLUMNS 23 24
ALL_OBJECTS 25 26
USER_CATALOG 27 28
USER_CLUSTERS 29 30
USER_CLU_COLUMNS 31 32
USER_COL_COMMENTS 33 34
USER_COL_PRIVS 35 36
USER_COL_PRIVS_MADE 37 38
USER_COL_PRIVS_RECD 39 40
USER_DB_LINKS 41 42
USER_ENCRYPTED_COLUMNS 43 44
USER_INDEXES 45 46
USER_IND_COLUMNS 47 48
USER_IND_EXPRESSIONS 49 50
USER_JOIN_IND_COLUMNS 51 52
USER_OBJECTS 53 54
USER_PASSWORD_LIMITS 55 56
USER_PROCEDURES 57 58
USER_RESOURCE_LIMITS 59 60
30 rows selected.Rgds.
P.S.
Rownum can work too:
SQL> select tabname, rownum*2-1 x, rownum*2 y from tab_copy;
TABNAME X Y
USER_RESOURCE_LIMITS 1 2
USER_PASSWORD_LIMITS 3 4
USER_CATALOG 5 6
ALL_CATALOG 7 8
USER_CLUSTERS 9 10
ALL_CLUSTERS 11 12
USER_CLU_COLUMNS 13 14
USER_COL_COMMENTS 15 16
ALL_COL_COMMENTS 17 18
USER_COL_PRIVS 19 20
ALL_COL_PRIVS 21 22
USER_COL_PRIVS_MADE 23 24
ALL_COL_PRIVS_MADE 25 26
USER_COL_PRIVS_RECD 27 28
ALL_COL_PRIVS_RECD 29 30
ALL_ENCRYPTED_COLUMNS 31 32
USER_ENCRYPTED_COLUMNS 33 34
USER_DB_LINKS 35 36
ALL_DB_LINKS 37 38
USER_INDEXES 39 40
ALL_INDEXES 41 42
USER_IND_COLUMNS 43 44
ALL_IND_COLUMNS 45 46
USER_IND_EXPRESSIONS 47 48
ALL_IND_EXPRESSIONS 49 50
USER_JOIN_IND_COLUMNS 51 52
ALL_JOIN_IND_COLUMNS 53 54
USER_OBJECTS 55 56
ALL_OBJECTS 57 58
USER_PROCEDURES 59 60
30 rows selected.Message was edited by:
dnikiforov -
How to Use Sequence in Oracle Views
Hi ,
I have created a view which gives the information about the access rights which a Resource has got. for ex -
Res1 - GYM access - member
Res1 - Swimingpool Access - member
I need to identify a Primary Key for this data set. So i thought that i'll use a Sequence to generate an extra column in this view.
But when i'm using the Sequence i'm getting the following error - "ORA-02287".you can use sequence within view it doesnot returned error;
create sequence t1_seq MAXVALUE 150
START WITH 39 INCREMENT BY 1;
SQL> insert into t1_view values(t1_seq.nextval,'dd');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from t1;
ID NA
10 aa
20 bb
30 cc
40 dd
4 rows selected.
SQL> insert into t1_view values(t1_seq.nextval,'ee');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from t1;
ID NA
10 aa
20 bb
30 cc
40 dd
41 ee
5 rows selected.
Maybe you are looking for
-
When including multiple Criteria in the "Rows" section of Pivot Table we get a desired format of Pivot Table in BI Analytics Answers. However, when creating a Pivot Table in a BI Publisher Template, Adding multiple measures in "Rows" results in the c
-
Apple keyboard volume keys no longer working on bootcamp windows
i have the wired full size apple keyboard and the only keys that dont work are the volume adjusters and brightness adjusters is there any way to fix? they were working fine yesterday
-
Textframe Associated with Root element
Hi, I want to add a Processing Instructions before the first character of any TextFrame. (This is pure xml workflow) InterfacePtr<IIDXMLElement> root_elt (Utils<IXMLUtils>()->QueryRootElement(doc)); From this 'root_elt' how can i find the Associated
-
2008 stand-alone server acs software available?
I am using acs 4.2 on a windows 2003 server sp2 in my current network. The network is being replaced and I am being given a windows 2008 software/server and to build the app. I am a little confused as too the available software. The only 5.4 acs s
-
Why do I have two profiles stored in my profile folder?
I recently started having some issues with my laptop - I can't run a restore operation and I can't run a complete scan with my "SuperAntiSpyware" program. The spyware program always hangs up on a Firefox file. When I started troubleshooting the Firef