Auto-numbering sequence from last number used
Is there a way to set the Filename Template Editor and the Text Template Editor to automatically start numbering a batch of images from the latest number used?
At present in Editor, one has to set the Start Number manually. I am using this feature on photos that were imported into LR long ago and am now getting around to editing, processing, cataloguing them. Part of that process for me is renaming them, giving each a custom+sequence Filename, for example "DDOH-3256".
The way the text editor is set up now, I have to remember what I was working on most recently, find it, check what the last sequence number was in that batch, then set the next available sequence number in the Text Template Editor.
I used to use IView Media Pro and it had a lot more naming and re-naming conventions, including. It would be great if LR had the same options.
Thanks for any help or feedback,
Esther
Lightroom v1.4.1
Mac OS 10.5.2 Leopard
iMac 20" monitor
2.4 GHz Intel Core 2 Duo
2 GB DDR2 SDRAM
746379 wrote:
Hi,
I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
Please advice us to rectify this.First make sure that you understand the difference between a primary key and a sequence.
A sequence is just a number generator. Oracle guarantees that the sequence will give you a new unique number each time that you call NEXTVAL. If the sequence is cycling then it can even generate the same number again after some time but this is rarely the case.
A primary key is a constaint on your table that requires all values in the column to be unique and not null.
When you get an primary key violated error then you just tried to insert a value that was already there in the table.
Some scenarios might be the reason for this.
<li>You insert a row using the sequence. You insert a new row using the same number again without fetching it from NEXTVAL (e.g. using currval instead of nextval, or not updating a variable that holds the new ID,...)</li>
<li>Somebody else already inserted an ID without using the sequence</li>
<li>A variation is when you import data from another database and resetted the sequences</li>
<li>There is some test data in your tables. The test data was inserted in a high ID range to separate it from the real data. Your sequence just reached this range.</li>
Similar Messages
-
Renaming "Sequence" restart after last number used?
I'm fairly sure that when you rename files in Bridge using a sequence of numbers, it remembers what the last one used was. When you next open the dialogue box, it pre-populates the text entry box with the number following the last one used.
This doesn't happen in Lightroom - if I want to carry on from where I left off last time then I have to shut the dialogue box again, go to the last folder of images I renamed, find the last number, go back to the original folder, re-open the rename box and then type in the last number+1! It was a real time-saver to have this feature in Bridge; it would be great to have it in LR too.746379 wrote:
Hi,
I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
Please advice us to rectify this.First make sure that you understand the difference between a primary key and a sequence.
A sequence is just a number generator. Oracle guarantees that the sequence will give you a new unique number each time that you call NEXTVAL. If the sequence is cycling then it can even generate the same number again after some time but this is rarely the case.
A primary key is a constaint on your table that requires all values in the column to be unique and not null.
When you get an primary key violated error then you just tried to insert a value that was already there in the table.
Some scenarios might be the reason for this.
<li>You insert a row using the sequence. You insert a new row using the same number again without fetching it from NEXTVAL (e.g. using currval instead of nextval, or not updating a variable that holds the new ID,...)</li>
<li>Somebody else already inserted an ID without using the sequence</li>
<li>A variation is when you import data from another database and resetted the sequences</li>
<li>There is some test data in your tables. The test data was inserted in a high ID range to separate it from the real data. Your sequence just reached this range.</li> -
How to get agreement from promotion number ( using BAPI_AGREEMENTS)
Hi experts,
I have a requirement where I need to generate agreement from promotion number( As in transaction WAK2) programatically,
I have tried using 'BAPI_AGREEMENTS' but could not pass promotion number in it , would appreciate any help on this.
If any other BAPI OR Function module can be used please intimate.
Thanks
KoyelIf you are using the PDFL, there is not current page number - you are not
displaying the document, so there is no way to get from a PDDoc to a page
number. If you do have the PDPage, you can just use PDPageGetNumber() to
get the page number. -
Sequence Last Number doesn't match with currval
Hi,
I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
Please advice us to rectify this.746379 wrote:
Hi,
I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
Please advice us to rectify this.First make sure that you understand the difference between a primary key and a sequence.
A sequence is just a number generator. Oracle guarantees that the sequence will give you a new unique number each time that you call NEXTVAL. If the sequence is cycling then it can even generate the same number again after some time but this is rarely the case.
A primary key is a constaint on your table that requires all values in the column to be unique and not null.
When you get an primary key violated error then you just tried to insert a value that was already there in the table.
Some scenarios might be the reason for this.
<li>You insert a row using the sequence. You insert a new row using the same number again without fetching it from NEXTVAL (e.g. using currval instead of nextval, or not updating a variable that holds the new ID,...)</li>
<li>Somebody else already inserted an ID without using the sequence</li>
<li>A variation is when you import data from another database and resetted the sequences</li>
<li>There is some test data in your tables. The test data was inserted in a high ID range to separate it from the real data. Your sequence just reached this range.</li> -
Skipping of Employee Number using Self Service Hire Process
Dear All,
We are using 11.5.10.2
We have enable Global Employee Numbering.
Employee Numbers are generated properly using Core HR.
But in Self Service Hire Process using Manager Self Service skips employee numbers.
Suppose last number is 12. Instead of generating 13, self service hire process generates 14.
Has anyone encounterd such issue?
Is there any solution to this issue?
Regards,
Ashish ShahPTO accrual plans let you define all kind of rules via fast formulas.
-
Equivalent for Create Sequence from clip in Extendscript
Hi,
Please help me to create a sequence from a clip using Extendscript.(through jsx coding).
I want to create a sequence from a clip in same way as a sequence is made through GUI when we click on "New Sequence from clip".
This is very urgent please help..
Thanks and Regards,
Anoop NRBut before I grant this privilege, it was able to create the sequence from sql command only its like
CREATE SEQUENCE seq_name START WITH 1 INCREMENT BY 1 NOCACHE NOCYCLE;
Is the privilege specially required to be granted when used from stored procedure? -
Sometimes when connecting to sync, my phone dials last number
when connecting to sync, my phone will dial the last number used. not butt dialing. keypad is locked and in a case.
If you check this support document, http://support.apple.com/kb/TS1538 it might help as to why the phone keeps disconnecting. Has it been showing in iTunes?
-
Last Devices Used in the navigator of 6110
Hi Enyone
i have a Nokia 6110 navigator and when i start the navigator it pops up whit LAST DEVICES USED where i have some i want to delete. But i can not find out how to do it.
Can enybody help me>
Prem Karthick wrote:
> Dear All,
>
> I have created a Number range in SNRO and I have used it in many programs to generate number.
> Now I need to find out and use the Last number used (or Current number) in that Number range object in one of my program.
>
> Is there any standard Function module or Table to find out the Last number used in the Number Range?
>
> Can anyone let me know the solution for this?
Please search the forum for the FM 'NUMBER_GET_NEXT'
Regards
Rajesh -
Hi Everyone, I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?
I have friends all over Europe, does it matter what number they use to call me? Nope! All incoming calls are free for me.
The only time you ever have to worry about which number is if you get charged for incoming domestic/international calls.
You can tag their number (work/home/iphone) and that may show on the CallerID accordingly.
It should show, John Doe
underneath, work/home/mobile
For example:
http://shawnblanc.net/images/img-0009-1.png -
Problem when create auto numbering in BP master using Formatted Search
Hi all,
I have a problem in creating auto numbering in BP for Customer type using Formatted search
My query is like this
declare @tempNo as char(20)
set @tempNo=(select Isnull(max(REPLACE(OCRD.CardCode , LEFT(OCRD.CardCode,10),'')),0) + 1
from OCRD where (CardType ='C') and LEFT(OCRD.CardCode,3) = 'CU.' )
set @tempNo='CU.'left(convert(varchar,GETDATE(),112),6)'.'+@tempNo
select cast(@tempNo as char(20))
It should be creating the new number for example
CU.201101.1
CU.201102.2
CU.201103.3
CU.201103.4
The format will be like this CU.YYYYMM.autonumbering
So if the current year is still the same it will always increase the number and it will reset the number become 1 if the current year is change.
But when i execute the number , the number doesn't increase, still generate the last number CU.201103.4
I have use this query in generate item number, it runs well but different format.
Is there some thing wrong with my query?
Thanks in advance
Regards
Jia shunHi Jia shun,
You have posted an identical threads. There is no such need. Please close this one and response to the one with answer already.
Thanks,
Gordon -
Hi All,
I'm trying to create a new ECO using the PL/SQL API "ENG_ECO_PUB.PROCESS_ECO". I want the ECO name to be automatically assigned by the system but when leaving the ECO_NAME empty (in paramter P_ECO_REC) I get the error message:
"You must enter an ECO name and organization because they are the primary identifiers of a business object. Please ensure that these values exist in all your records and re-run the import process."
I have set the profile option "ENG: Change Order Autonumbering - System Administrator access" to yes.
I have set following fields in P_ECO_REC:
p_eco_rec.organization_code := 'V1';
p_eco_rec.change_type_code := 'ECO';
p_eco_rec.description := 'Test';
p_eco_rec.transaction_type := 'CREATE';
p_eco_rec.plm_or_erp_change := 'ERP'; -- also tried with 'PLM'
p_eco_rec.approval_status_name := 'Approved';
Do I need to set anything else?
Thanks,
CarolinHi Helios,
thanks for reply.
I checked note 1242524.1, but there's no advice what to configure for using auto numbering.
I tried it again with adapted sample code and leaving the ECO_NAME empty:
DECLARE
-- API Input variables
l_eco_name VARCHAR2(9) := '';
l_org_code VARCHAR2(3) := 'V1';
l_rev_item_number VARCHAR2(20):= 'CS_Test_Assem_10';
l_eff_date DATE := '8-SEP-2011';
l_new_revised_item_revision VARCHAR2(2) := 'A';
l_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
l_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
l_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
l_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
l_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
l_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
l_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
l_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
l_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
-- API output variables
x_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
x_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
x_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
x_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
x_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
x_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
x_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
x_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
x_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
-- Other API variables for return status / error handling / debugging
l_error_table Error_Handler.Error_Tbl_Type;
l_return_status VARCHAR2(1) := NULL;
l_msg_count NUMBER := 0;
l_output_dir VARCHAR2(500) := 'C:\temp';
l_debug_filename VARCHAR2(60) := 'su_debug_10_15.dbg';
-- WHO columns
l_user_id NUMBER := -1;
l_resp_id NUMBER := -1;
l_application_id NUMBER := -1;
l_row_cnt NUMBER := 1;
l_user_name VARCHAR2(30) := 'MFG';
l_resp_name VARCHAR2(30) := 'MFG_AND_DIST_SUPER_USER_APS';
BEGIN
-- Get the user_id
SELECT user_id
INTO l_user_id
FROM fnd_user
WHERE user_name = l_user_name;
-- Get the application_id and responsibility_id
SELECT application_id, responsibility_id
INTO l_application_id, l_resp_id
FROM fnd_responsibility
WHERE responsibility_key = l_resp_name;
FND_GLOBAL.APPS_INITIALIZE(l_user_id, l_resp_id, l_application_id); -- Mfg / Mfg & Dist Mgr / INV
dbms_output.put_line('Initialized applications context: '|| l_user_id || ' '|| l_resp_id ||' '|| l_application_id );
Error_Handler.Initialize;
l_return_status := NULL;
l_eco_rec.eco_name := l_eco_name;
l_eco_rec.organization_code := l_org_code;
l_eco_rec.change_type_code := 'ECO';
l_eco_rec.eco_department_name := NULL;
l_eco_rec.priority_code := NULL; --'Medium';
l_eco_rec.approval_list_name := NULL; --'SU_ONLY';
l_eco_rec.reason_code := NULL;
l_eco_rec.Approval_Status_Name:= 'Approved'; -- will default to Not submitted for Approval
l_eco_rec.Status_Name := 'Open';
l_eco_rec.description := 'ECO - '||l_eco_rec.eco_name||' API Test';
l_eco_rec.transaction_type := 'CREATE';
l_eco_rec.plm_or_erp_change := 'ERP'; -- or 'PLM'
l_eco_rec.return_status := NULL;
dbms_output.put_line('Initialized ECO Header');
l_revised_item_tbl(l_row_cnt).eco_name := l_eco_name;
l_revised_item_tbl(l_row_cnt).organization_code := l_org_code;
l_revised_item_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_revised_item_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_revised_item_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_revised_item_tbl(l_row_cnt).alternate_bom_code := NULL;
l_revised_item_tbl(l_row_cnt).status_type := 1; -- 'Open'
l_revised_item_tbl(l_row_cnt).change_description := 'Test';
l_revised_item_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
dbms_output.put_line('Initialized ECO revised items');
-- Add RS_BOM_C3, acd_type = 1
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_D'; -- Add RS_BOM_C3
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 1;
l_rev_component_tbl(l_row_cnt).item_sequence_number := 40; -- new item sequence number
l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5;
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
-- Change RS_BOM_C1, acd_type = 2
l_row_cnt := l_row_cnt + 1;
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date; -- effective date
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_B'; -- Change qty for RS_BOM_C1
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 2;
l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
l_rev_component_tbl(l_row_cnt).item_sequence_number := 20;
l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5; -- existing comp qty on Bill = 2
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
-- Disable RS_BOM_C2, acd_type = 3
l_row_cnt := l_row_cnt + 1;
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_rev_component_tbl(l_row_cnt).disable_date := l_eff_date + 2; -- disable date is 2 day from effective_date
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_C'; -- disable RS_BOM_C2
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 3;
l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
dbms_output.put_line('Initialized ECO revised components');
-- call API to create eco
DBMS_OUTPUT.PUT_LINE('=======================================================');
DBMS_OUTPUT.PUT_LINE('Calling Eng_Eco_PUB.Process_Eco API');
Eng_Eco_PUB.Process_Eco( p_api_version_number => 1.0
, p_init_msg_list => TRUE
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, p_bo_identifier => 'ECO'
, p_eco_rec => l_eco_rec
, p_eco_revision_tbl => l_eco_revision_tbl
, p_revised_item_tbl => l_revised_item_tbl
, p_rev_component_tbl => l_rev_component_tbl
, p_ref_designator_tbl => l_ref_designator_tbl
, p_sub_component_tbl => l_sub_component_tbl
, p_rev_operation_tbl => l_rev_operation_tbl
, p_rev_op_resource_tbl => l_rev_op_resource_tbl
, p_rev_sub_resource_tbl => l_rev_sub_resource_tbl
, x_eco_rec => x_eco_rec
, x_eco_revision_tbl => x_eco_revision_tbl
, x_revised_item_tbl => x_revised_item_tbl
, x_rev_component_tbl => x_rev_component_tbl
, x_ref_designator_tbl => x_ref_designator_tbl
, x_sub_component_tbl => x_sub_component_tbl
, x_rev_operation_tbl => x_rev_operation_tbl
, x_rev_op_resource_tbl => x_rev_op_resource_tbl
, x_rev_sub_resource_tbl => x_rev_sub_resource_tbl
, p_debug => 'Y'
, p_output_dir => l_output_dir
, p_debug_filename => l_debug_filename
dbms_output.put_line('x_eco_rec.eco_name:'|| x_eco_rec.eco_name );
dbms_output.put_line('x_eco_rec.org_code:'|| x_eco_rec.organization_code);
DBMS_OUTPUT.PUT_LINE('=======================================================');
DBMS_OUTPUT.PUT_LINE('Return Status: '||l_return_status);
IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
dbms_output.put_line('x_msg_count:' || l_msg_count);
Error_Handler.GET_MESSAGE_LIST(x_message_list => l_error_table);
DBMS_OUTPUT.PUT_LINE('Error Message Count :'||l_error_table.COUNT);
FOR i IN 1..l_error_table.COUNT LOOP
DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).entity_index||':'||l_error_table(i).table_name);
DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).message_text);
END LOOP;
END IF;
DBMS_OUTPUT.PUT_LINE('=======================================================');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Exception Occured :');
DBMS_OUTPUT.PUT_LINE(SQLCODE ||':'||SQLERRM);
DBMS_OUTPUT.PUT_LINE('=======================================================');
RAISE;
END;
But with this example I again get same error message...
Any idea?
Thanks,
Carolin -
Deletion of Serial numbers/ Parallel sequences from production order
HI ,
I am trying to delete the Serial numbers from the production order programatically using the FM SERNR_DEL_FROM_PP. I dont get any error , but the serial number is not getting deleted from production order. If anyone have used this FM for deletion Please let me know what extra has to be done.
Similarly i have a requirement or deletion of parallel sequence from the production order. Any FM to do the same?
Code screenshot below
CALL FUNCTION 'SERNR_DEL_FROM_PP'
EXPORTING
material = i_matnr
j_vorgang = 'PMP2'
ppaufnr = i_paufnr
ppposnr = i_itemno
IMPORTING
anzsn = l_num_serno
ZEILEN_ID =
SERIAL_COMMIT =
TABLES
sernos = gt_sernos
EXCEPTIONS
serialnumber_errors = 1
serialnumber_warnings = 2
OTHERS = 3.
DATA ls_afpod_po TYPE afpod.
MOVE-CORRESPONDING gs_afpod_po TO ls_afpod_po.
*.....Update Number of serial numbers in parent order
ls_afpod_po-anzsn = l_num_serno.
update afpo
set anzsn = l_num_serno
where aufnr = i_paufnr and
posnr = i_itemno.
commit work AND WAIT.Hello,
the function module SERNR_DEL_FROM_PP calls the function module SERNR_DEL_FROM_DOCUMENT within. There, the changes are only written into the memory.
See also the code below:
CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY' "P99K058111
EXPORTING "P99K058111
I_MEMORY_ID = MEMID_STATUS. "P99K058111
The variable memid_status has the value 'SN_STATS'.
So if you want to update the data, you have to call the following function module:
CALL FUNCTION 'SERIAL_LISTE_POST_PP'
EXPORTING
MEMORY_ID_STATUS = 'SN_STATS'
Regards Simon -
Use the last number in a column
Don't use spread sheets much and wondered if anybody could help with this problem. I am monitoring my weight and each day put the new weight value in the next cell. ie
201
198
197
I have another cell in the sheet which contains my target weight from which I want to subtract the latest weight record this of course moves to the next cell down each day. Is there a formula to pick the last number in a column of data? ie in the above example takes 198 on day 2 but 197 on day 3.
Thanks
JonathanOk. The formula didn't have to be that fancy after all. We can use COUNT to count the number of entries, then use INDEX to return the corresponding entry.
If the actual weights are in column B and goal weight in E2, then in D2 enter this formula:
=E2-INDEX(B,COUNT(B),1)
So, a couple caveats:
1) Must start entering the weights in the top body cell (whether table has header or not, see below).
2) Column B cannot have any extraneous numbers (this will throw the count of entries off).
Free Image Hosting
If you are actually using Numbers '09 and the table has headers, then for some reason the formula is slightly different depending on how many header cells are in column B. E.g. if one header, then enter =INDEX(B,COUNT(B)+1,1); if two headers, then enter =INDEX(B,COUNT(B)+2,1); Or, simply enter =INDEX(B,COUNT(B)+ROW(B)-1,1), which adjusts to whatever number of header cells.
Robin
Message was edited by: sharknca -
Export sequence from once schema to another using dbms_datapump
Hello,
Can anybody help me how to export only sequences from one schema to another using dbms_datapump or using any other packages.
I cannot use the expdp/impdp from command prompt.
Thanks.Hello Richard,
No luck yet, it's new one now.
declare
l_dp_handle NUMBER;
v_job_state varchar2(4000);
l_last_job_state VARCHAR2(30) := 'UNDEFINED';
l_job_state VARCHAR2(30) := 'UNDEFINED';
l_sts KU$_STATUS;
v_logs ku$_LogEntry;
v_row PLS_INTEGER;
BEGIN
dbms_output.put_line('get_sequence - Started');
l_dp_handle := DBMS_DATAPUMP.open(operation => 'IMPORT',
job_mode => 'SCHEMA',
remote_link => 'PSUP_DATA',
version => 'LATEST');
dbms_output.put_line('get_sequence - get handle :'||l_dp_handle);
DBMS_DATAPUMP.add_file(handle => l_dp_handle,
filename => 'test.log',
directory => 'DMPDIR',
filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE); dbms_output.put_line('get_sequence - add file');
DBMS_DATAPUMP.METADATA_FILTER(l_dp_handle, 'SCHEMA_LIST', '''PSUP_DATA'''); dbms_output.put_line('get_sequence - metadata filer1');
DBMS_DATAPUMP.METADATA_FILTER(l_dp_handle,
'INCLUDE_PATH_EXPR',
'IN (''SEQUENCE'')'); dbms_output.put_line('get_sequence - metadata filer2');
DBMS_DATAPUMP.METADATA_REMAP(l_dp_handle,
'REMAP_SCHEMA',
'PSUP_DATA',
'IRIS_DATA'); dbms_output.put_line('get_sequence - metadata remap');
DBMS_DATAPUMP.start_job(l_dp_handle); dbms_output.put_line('get_sequence - starting job');
DBMS_DATAPUMP.WAIT_FOR_JOB(l_dp_handle, v_job_state);
dbms_output.put_line('get_sequence - completed');
exception
WHEN OTHERS THEN
dbms_datapump.get_status(NULL, 8, 0, v_job_state, l_sts);
v_logs := l_sts.error;
v_row := v_logs.FIRST;
LOOP
EXIT WHEN v_row IS NULL;
dbms_output.put_line('logLineNumber=' || v_logs(v_row).logLineNumber);
dbms_output.put_line('errorNumber=' || v_logs(v_row).errorNumber);
dbms_output.put_line('LogText=' || v_logs(v_row).LogText);
v_row := v_logs.NEXT(v_row);
END LOOP;
RAISE;
end;
get_sequence - Started
get_sequence - get handle :58
get_sequence - add file
declare
ERROR at line 1:
ORA-31623: a job is not attached to this session via the specified handle
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2772
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3886
ORA-06512: at line 43
ORA-39001: invalid argument value
I go ogled some of adive i could see is grant create table to user, but my user is having DBA role as well.
Please help. -
Why, when I launch Numbers, is the last-used spreadsheet automatically opened?
When I open Number, either by using the dock, by clicking the application icon or clicking a Numbers document, teh last document I used is always opened. Why is this? How do I prevent it?
ThanksJiri Krecek wrote:
It is a new feature in Lion.
System Preferences >> General Tab >> Restore windows when quitting and reopening apps - uncheck this box.
Did it help?
In fact, it doesn't help because, as I already wrote, when we quit, the app automatically re-activate the feature.
If we apply a real Quit, there is a checkbox in the quit dialog. We must uncheck it to really diasble the feature.
If we restart there is no such a checkox allowing to disable.
I will report this boring inconsistency but there is an alternate way to disable the feature :
press the option key during the quit process.
I used this one several times today and it behave flawlessly.
Yvan KOENIG (VALLAURIS, France) dimanche 21 août 2011 23:16:27
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
Maybe you are looking for
-
Animated GIF problem. Please HELP!
the problem is that, when i open some of my GIF type documents, they show up as bigger-as if blackberry automatically resizes them and i can only see a part of the image. if you know any possbile solution to this problem, please tell me! thank you!
-
I use Filevault now. But still is it safe ? Before it was only a sign in password. Answers appreciated .
-
My movies won't play on my ipod
I just downloaded some movies to play on my ipod touch but they won't play on my ipod for some reason. all of them are mp4 files and h.264 (i don't know what this means but seems to be useful when I searched online to see if I could find answers) for
-
MSI VOX Poor picture quality / stability
I have just bought a MSI VOX and after downloading the new drivers to get it to work on XP SP2 I an experiencing a few problems. The picture quality is not very good and the viewing area keeps flashing pink / purple. I have tried altering all the set
-
idem quand je reviens en arrière ma page d'accueil devient L'adresse n'est pas valide - L'URL n'est pas valide et ne peut être chargée. La syntaxe des adresses web est généralement http://www.exemple.com/ ; Assurez-vous de bien utiliser des barres ob