Onhand Quantities Conversion API
Hi all
Can any one suggest me the API to Convert Onhand quantities from a legacy to Apps 11.5.10?
Thank you
Regards,
Suhasini
Hi Suhasini
I didn't get you convert onhand quantities means what.
To load the Onhand quantities into Oracle you should use the Transactions Open Interface process, Misc. Receipts transactions types.
Regards/Prasanth
Similar Messages
-
R12.1 customer conversion APIs or interface tables
Hi
When converting customers in R12.1, is it best to use TCA APIs or the ra_customer interface tables and customer import importThere was not interface / api for Uom conversions in 11.5.10.2.
I don't think it is there in R12 either but you can check the following
Note: 462586.1 - Where are the Oracle® Release 12 (R12) API Reference Guide?
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=462586.1
Note: 458225.1 - Release 12 Integration Repository
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=458225.1
Note: 396116.1 - Oracle Integration Repository Documentation Resources Release 12
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=396116.1
Sandeep Gandhi -
Inventory onhand quantities check from third party OM system - EBS R12
We need to build a custom program in EBS which will give the onhand quantity availability of an item being ordered (in third party system), when being called from the third party ordering system. How do i start building such a custom program in EBS (tables, some logic ideas). Any inputs?
First of all, find out if you need to get Onhand Quantity in Oracle or the Available quantity in Oracle.
Getting Onhand quantity is a matter of simply looking up one table.
Getting availability is a little bit more complicated.
Then you need to find out the architecture. Is the 3rd party app going to have a real time connection to EBS? Can it connect to EBS using dblink? Does that app need a file on daily basis?
You need to define your requirements further.
Sandeep Gandhi -
Help! Help! benefit enrollment conversion API doesn't work well!!!
We just acquired a big company. Now we are converting new employees benefit information from their system to our OAB. As
per Note:365034.1 suggested, I have been trying to use API
'ben_election_information.election_information_w' to create new enrollments in
OAB. Here are my questions:
1. There are two procedures named 'election_information_w' under package 'ben_election_information', which one
should I use?
2. Both above procedures require to pass in data to parameters 'p_prtt_enrt_rslt_id' and 'p_enrt_bnft_id'. If you don't pass such information
in, you would get the error message like 'PLS-00306: wrong number or types of
arguments in call to 'ELECTION_INFORMATION_W' ORA-06550: line 5, column 3:
PL/SQL: Statement ignored'. Obviously these are mandatory parameters. However,
you would get 'p_prtt_enrt_rslt_id' only after enrollment, if you do it in
professional user interface. How am I supposed to get this ID before an
enrollment is created? 'p_enrt_bnft_id', for some enrollment, there is no
benefit coverage, how am I supposed to get info for this mandatory paramenter?you can pass null for these parameters while creating enrollments.
to get more info on oracle apis, you can refer Oracle Integration Repository.
http://irep.oracle.com/index.html -
Inventory onhand quantities Report.
Hi Everyone,
I have a requirement regarding Inventory, a report needs to show the details of inventory like
Unusable_Quantity,
Available_Quantity,
Onhold_Quantity,
Total
Can any one help me in this.
Regards
Vamsi
Edited by: 965678 on May 6, 2013 2:13 AM
Edited by: 965678 on May 6, 2013 2:45 AMHi;
I suggest to review:
http://docs.oracle.com/cd/A60725_05/html/comnls/us/inv/invirilc.htm
http://docs.oracle.com/cd/A60725_05/html/comnls/us/inv/invirsiq.htm
Regard
Helios -
Hello everyone! I am having some difficulty getting the correct results from this query. This query generates on hand quantity. I started getting the issue when I added the last three fields to this query, VENDOR, PO and UNIT_PRICE. I think that I am missing other parameters aside from just joining the tables
CREATE OR REPLACE FORCE VIEW "APPS"."XXGVN_INVENTORY_ONHAND_VIEW2" ("ORG", "ITEM_TYPE", "ITEM", "DESCRIPTION", "LOT_NUMBER", "SUBINVENTORY", "LOCATOR", "UOM", "QTY", "SEC_UOM", "SEC_QTY", "COST", "AMOUNT", "PO_VENDOR", "VENDOR", "PO", "UNIT_PRICE") AS
SELECT MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1 ITEM, M.DESCRIPTION, Q.LOT_NUMBER, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS LOCATOR
, M.PRIMARY_UOM_CODE UOM, SUM(Q.TRANSACTION_QUANTITY) QTY, Q.SECONDARY_UOM_CODE SEC_UOM, SUM(Q.SECONDARY_TRANSACTION_QUANTITY) SEC_QTY
, NVL(C.ITEM_COST,0) COST, SUM(Q.TRANSACTION_QUANTITY)*NVL(C.ITEM_COST,0) AMOUNT
, M.ATTRIBUTE16 PO_VENDOR, PV.VENDOR_NAME VENDOR, POH.SEGMENT1 PO, PLA.UNIT_PRICE PRICE
FROM MTL_ONHAND_QUANTITIES Q, MTL_SYSTEM_ITEMS_B M,MTL_ITEM_LOCATIONS_KFV L, CST_ITEM_COSTS C, MTL_PARAMETERS MP, PO_VENDORS PV, PO_LINES_ALL PLA, PO_HEADERS_ALL POH
WHERE 83 = M.ORGANIZATION_ID
AND poh.po_header_id = pla.po_header_id
AND pla.item_id = M.inventory_item_id
AND poh.vendor_id = pv.vendor_id
AND Q.INVENTORY_ITEM_ID = M.INVENTORY_ITEM_ID
AND Q.LOCATOR_ID = L.INVENTORY_LOCATION_ID(+)
AND Q.ORGANIZATION_ID = C.ORGANIZATION_ID(+)
AND Q.INVENTORY_ITEM_ID = C.INVENTORY_ITEM_ID(+)
AND C.COST_TYPE_ID(+) = 2
AND Q.ORGANIZATION_ID = 86
AND MP.ORGANIZATION_ID = Q.ORGANIZATION_ID
GROUP BY MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1 , M.DESCRIPTION, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS, C.ITEM_COST, Q.LOT_NUMBER
, M.PRIMARY_UOM_CODE, Q.SECONDARY_UOM_CODE, M.ATTRIBUTE16, PV.VENDOR_NAME, POH.SEGMENT1, PLA.UNIT_PRICE
UNION
SELECT MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1 ITEM, M.DESCRIPTION, Q.LOT_NUMBER, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS LOCATOR
, M.PRIMARY_UOM_CODE UOM, SUM(Q.TRANSACTION_QUANTITY) QTY, Q.SECONDARY_UOM_CODE SEC_UOM, SUM(Q.SECONDARY_TRANSACTION_QUANTITY) SEC_QTY
, (SELECT NVL(SUM(C.CMPNT_COST),0) FROM CM_CMPT_DTL_VW C, GMF_PERIOD_STATUSES C1
WHERE Q.INVENTORY_ITEM_ID = C.INVENTORY_ITEM_ID
AND C.COST_TYPE_ID = 1001
AND C.ORGANIZATION_ID = 84
AND C.PERIOD_ID = C1.PERIOD_ID
AND (SYSDATE-3) BETWEEN C1.START_DATE AND C1.END_DATE
AND C1.CALENDAR_CODE = 'COST_CAL'
AND C.COST_ANALYSIS_CODE = 'VAL') COST
, SUM(Q.TRANSACTION_QUANTITY)*(SELECT NVL(SUM(C.CMPNT_COST),0) FROM CM_CMPT_DTL_VW C, GMF_PERIOD_STATUSES C1
WHERE Q.INVENTORY_ITEM_ID = C.INVENTORY_ITEM_ID
AND C.COST_TYPE_ID = 1001
AND C.ORGANIZATION_ID = 84
AND C.PERIOD_ID = C1.PERIOD_ID
AND (SYSDATE-3) BETWEEN C1.START_DATE AND C1.END_DATE
AND C1.CALENDAR_CODE = 'COST_CAL'
AND C.COST_ANALYSIS_CODE = 'VAL') AMOUNT
, M.ATTRIBUTE16 PO_VENDOR, PV.VENDOR_NAME VENDOR, POH.SEGMENT1, PLA.UNIT_PRICE
FROM MTL_ONHAND_QUANTITIES Q, MTL_SYSTEM_ITEMS_B M,MTL_ITEM_LOCATIONS_KFV L, MTL_PARAMETERS MP, PO_VENDORS PV, PO_LINES_ALL PLA, PO_HEADERS_ALL POH
WHERE 83 = M.ORGANIZATION_ID
AND poh.po_header_id = pla.po_header_id
AND pla.item_id = M.inventory_item_id
AND poh.vendor_id = pv.vendor_id
AND Q.INVENTORY_ITEM_ID = M.INVENTORY_ITEM_ID
AND Q.LOCATOR_ID = L.INVENTORY_LOCATION_ID(+)
AND Q.ORGANIZATION_ID != 86
AND MP.ORGANIZATION_ID = Q.ORGANIZATION_ID
GROUP BY MP.ORGANIZATION_CODE, M.ITEM_TYPE, M.SEGMENT1, M.DESCRIPTION, Q.SUBINVENTORY_CODE, L.CONCATENATED_SEGMENTS, Q.LOT_NUMBER,
M.PRIMARY_UOM_CODE, Q.SECONDARY_UOM_CODE, Q.INVENTORY_ITEM_ID, M.ATTRIBUTE16, PV.VENDOR_NAME, POH.SEGMENT1, PLA.UNIT_PRICE
ORDER BY 1,2,3 ;
Any help would be greatly appreciated.
Thanks!
Edited by: user8741170 on Aug 2, 2011 8:40 AMYou have posted a very long and hard to understand query. You haven't had teh good manners to format it using the forum's markup to make it easier to read.
You say you are getting "issues" without describing them in detail. With questions like this the details really matter. Please provide enough data for us to reproduce or at least understand the results you are getting. This means, sample data together with the expected and actual results.
Help us to help you.
Cheers, APC -
Extrenal Quantities conversion
Hi Experts,
i have a FlatFile extract that i have to load to PSA.
issue is the Quantity format in this File: we receive 1.000.000 which is in fact 1.000,000
BW is handling this as 1Million and not as 1000.
is there any possibility to convert that in correct format?
thanks,
regards,
YounesHello
The best thing to do is to modify your source file.
The proble is that in your source file you can not have the point (.) for separating thousands AND decimals.
Decimals must be with a point separator for loading to a KF number with decimals.
Adjust your file accordingly.
Rgds -
Please let me know if the code works.
When I do the conversion with the following data file,stag table the program doesn't populate the data in the mtl_transactions_interface table and the following error is thrown.
FDPSTP failed due to ORA-20100: File o0046035.tmp creation for FND_FILE failed.
Please help.
create or replace package XX_INV_ONHAND_QTY_PKG
-- CREATED BY :JHANSI
-- PURPOSE This Pl/sql package for Onhand Quantities Conversion
-- N : New Record
-- E : Errored Record
-- p : Processed Record
-- CHANGE HISTORY
-- Date Version CR# Change Author
-- 24-Nov-2007 1.00 suhasini
-- DYNAMIC SQL :NO
-- Note
as
procedure insert_data;
procedure validate;
procedure XX_INV_ONHAND_QTY_PROC(errbut OUT VARCHAR2,
retcode OUT NUMBER
end XX_INV_ONHAND_QTY_PKG;
CREATE OR REPLACE PACKAGE BODY XX_INV_ONHAND_QTY_PKG
-- CREATED BY :JHANSI
-- PURPOSE This Pl/sql package for Onhand Quantities Conversion
-- N : New Record
-- E : Errored Record
-- p : Processed Record
-- CHANGE HISTORY
-- Date Version CR# Change Author
-- 24-Nov-2007 1.00 suhasini
-- DYNAMIC SQL :NO
-- Note
IS
/*PROCEDURE LOG (p_msg VARCHAR2)
IS
BEGIN
IF (fnd_global.user_id = -1)
THEN
NULL;
DBMS_OUTPUT.put_line (p_msg);
ELSE
fnd_file.put_line (fnd_file.LOG, p_msg);
END IF;
END LOG;*/
PROCEDURE insert_data
IS
CURSOR cur_xx_inv_onhand_conv_stg
IS
SELECT ROWID, a.*
FROM xx_inv_onhand_conv_stg a
WHERE status_flag = 'V';
l_err_msg VARCHAR2 (1000);
l_source_line_id NUMBER := 1;
l_source_header_id NUMBER := 1;
l_process_flag NUMBER := 1;
l_transaction_mode NUMBER := 3;
l_transaction_header_id NUMBER := 1;
l_transaction_type_id NUMBER;
BEGIN
BEGIN
l_transaction_type_id := 0;
SELECT transaction_type_id
INTO l_transaction_type_id
FROM mtl_transaction_types
WHERE UPPER (transaction_type_name) =
UPPER ('Miscellaneous receipt');
EXCEPTION
WHEN OTHERS
THEN
fnd_file.put_line(fnd_file.log,' TRANSACTION_TYPE_NAME Miscellaneous receipt Is Not Defined In The System');
END;
FOR rec_xx_inv_onhand_conv_stg IN cur_xx_inv_onhand_conv_stg
LOOP
l_err_msg := NULL;
BEGIN
INSERT INTO mtl_transactions_interface
(source_code,
source_header_id, source_line_id,
process_flag, transaction_mode,
transaction_header_id,
transaction_quantity,
transaction_uom, transaction_type_id,
item_segment1, created_by,
creation_date, last_update_date, last_update_login,
last_updated_by,
organization_id, transaction_date,
subinventory_code, distribution_account_id,
inventory_item_id)
VALUES (rec_xx_inv_onhand_conv_stg.source_code,
l_source_header_id, l_source_line_id,
l_process_flag, l_transaction_mode,
l_transaction_header_id,
rec_xx_inv_onhand_conv_stg.onhand_qty,
rec_xx_inv_onhand_conv_stg.uom, l_transaction_type_id,
rec_xx_inv_onhand_conv_stg.item, fnd_global.user_id,
SYSDATE, SYSDATE, fnd_global.user_id,
fnd_global.user_id,
rec_xx_inv_onhand_conv_stg.organization_id, SYSDATE,
rec_xx_inv_onhand_conv_stg.subinventory_code, 13401,
rec_xx_inv_onhand_conv_stg.inventory_item_id);
UPDATE xx_inv_onhand_conv_stg
SET status_flag = 'P'
WHERE ROWID = rec_xx_inv_onhand_conv_stg.ROWID;
EXCEPTION
WHEN OTHERS
THEN
l_err_msg := ' Insert Error ' || SQLERRM;
UPDATE xx_inv_onhand_conv_stg
SET status_flag = 'E',
error_msg = l_err_msg
WHERE ROWID = rec_xx_inv_onhand_conv_stg.ROWID;
END;
END LOOP;
COMMIT;
END insert_data;
-- exec xxqc_inv_onhand_pck. xxqc_inv_onhand_proc('V1');
PROCEDURE VALIDATE
IS
l_account_alias_receipt mtl_transaction_types.transaction_type_id%TYPE
DEFAULT NULL;
l_acct_period_id org_acct_periods.acct_period_id%TYPE
DEFAULT NULL;
l_transaction_type_id mtl_transaction_types.transaction_type_id%TYPE
DEFAULT NULL;
l_transaction_action_id mtl_transaction_types.transaction_action_id%TYPE
DEFAULT NULL;
l_transaction_source_id mtl_generic_dispositions.disposition_id%TYPE
DEFAULT NULL;
l_transaction_source_type_id mtl_txn_source_types.transaction_source_type_id%TYPE
DEFAULT NULL;
l_location_id mtl_item_locations_kfv.inventory_location_id%TYPE
DEFAULT NULL;
l_organization_id org_organization_definitions.organization_id%TYPE
DEFAULT NULL;
l_inventory_item_id mtl_system_items_b.inventory_item_id%TYPE
DEFAULT NULL;
l_secondary_inventory_name mtl_secondary_inventories.secondary_inventory_name%TYPE
DEFAULT NULL;
l_inventory_location_id mtl_item_locations.inventory_location_id%TYPE
DEFAULT NULL;
l_lot_control_code mtl_system_items_b.lot_control_code%TYPE
DEFAULT NULL;
l_serial_number_control_code mtl_system_items_b.serial_number_control_code%TYPE
DEFAULT NULL;
l_shippable_item_flag mtl_system_items_b.shippable_item_flag%TYPE
DEFAULT NULL;
l_trans_enb_flag mtl_system_items_b.mtl_transactions_enabled_flag%TYPE
DEFAULT NULL;
l_lot_count NUMBER DEFAULT NULL;
l_uom_count NUMBER DEFAULT NULL;
l_error_count NUMBER DEFAULT NULL;
l_lot NUMBER DEFAULT NULL;
l_serial_number NUMBER DEFAULT NULL;
l_code_combination_id gl_code_combinations.code_combination_id%TYPE
DEFAULT NULL;
l_reason_id mtl_transaction_reasons.reason_id%TYPE
DEFAULT NULL;
l_reason_name mtl_transaction_reasons.reason_name%TYPE
DEFAULT NULL;
l_process_flag NUMBER DEFAULT NULL;
l_user NUMBER DEFAULT NULL;
l_transaction_error_flag VARCHAR2 (4) DEFAULT NULL;
l_trans_date DATE;
l_tran_type VARCHAR2 (1000) := NULL;
l_locator_name VARCHAR2 (2000) := NULL;
l_new_uom VARCHAR2 (10) := NULL;
l_master_org mtl_parameters.organization_code%TYPE;
l_status VARCHAR2 (10);
l_valerr_count NUMBER;
l_val_count NUMBER;
l_err_msg VARCHAR2 (2000);
l_message VARCHAR2 (2000);
l_uom_code VARCHAR2 (10);
l_count NUMBER;
l_commit_count NUMBER := 0;
CURSOR cur_inv_onhand_stg
IS
SELECT a.*, ROWID
FROM xx_inv_onhand_conv_stg a
WHERE status_flag = 'N';
BEGIN
FOR rec_inv_onhand_stg IN cur_inv_onhand_stg
LOOP
l_err_msg := NULL;
l_organization_id := 0;
l_inventory_item_id := 0;
-- Start Of Validation Block For Organization Code
BEGIN
SELECT organization_id
INTO l_organization_id
FROM mtl_parameters
WHERE organization_code = rec_inv_onhand_stg.organization_code;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
l_message := ' Invalid Org Code '
|| rec_inv_onhand_stg.organization_code;
WHEN TOO_MANY_ROWS
THEN
l_message :=
' Org Code Error ... Too Many Rows Errors For Organization '
|| rec_inv_onhand_stg.organization_code;
WHEN OTHERS
THEN
l_message :=
' Org Code Error ... Un Handled Exception Error For Organization '
|| rec_inv_onhand_stg.organization_code
|| ' '
|| SQLERRM;
END;
-- Check Item Exists in Oracle
IF (l_organization_id <> 0)
THEN
-- Validation Block For Item And Bom Enabled Flag At Assembly Level
BEGIN
SELECT inventory_item_id
INTO l_inventory_item_id
FROM mtl_system_items_b
WHERE segment1 = rec_inv_onhand_stg.item
AND organization_id = l_organization_id;
IF (l_inventory_item_id <> 0)
THEN
BEGIN
SELECT COUNT (1)
INTO l_count
FROM mtl_system_items_b
WHERE inventory_item_id = l_inventory_item_id
AND organization_id = l_organization_id
AND mtl_transactions_enabled_flag = 'Y';
IF (l_count = 0)
THEN
l_message := ' Item '
|| rec_inv_onhand_stg.item
|| ' Is Not TRANSACTIONS ENABLED '
|| ' In Organization '
|| rec_inv_onhand_stg.organization_code;
END IF;
END;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
l_message := ' Invalid Item '
|| rec_inv_onhand_stg.item
|| ' In Organization '
|| rec_inv_onhand_stg.organization_code;
WHEN TOO_MANY_ROWS
THEN
l_message := ' Retrive Of Too Many Rows In Org '
|| rec_inv_onhand_stg.organization_code
|| ' For Item '
|| rec_inv_onhand_stg.item;
WHEN OTHERS
THEN
l_message := 'Un Handled Exception For Item '
|| rec_inv_onhand_stg.item
|| ' In Organization '
|| rec_inv_onhand_stg.organization_code;
END;
END IF;
-- Validation For UOM
BEGIN
SELECT unit_of_measure
INTO l_uom_code
FROM mtl_units_of_measure
WHERE UPPER (unit_of_measure) = UPPER (rec_inv_onhand_stg.uom);
EXCEPTION
WHEN NO_DATA_FOUND
THEN
l_message := l_message
|| 'Unit Of Measure is Not Defined '
|| rec_inv_onhand_stg.uom;
WHEN TOO_MANY_ROWS
THEN
l_message := l_message || SQLERRM || rec_inv_onhand_stg.uom;
WHEN OTHERS
THEN
l_message := l_message || SQLERRM || rec_inv_onhand_stg.uom;
END;
BEGIN
SELECT secondary_inventory_name
INTO l_secondary_inventory_name
FROM mtl_secondary_inventories
WHERE UPPER (secondary_inventory_name) =
UPPER (rec_inv_onhand_stg.subinventory_code)
AND organization_id = l_organization_id;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
l_message := l_message
|| ' Invalid Sub Inventory Code '
|| rec_inv_onhand_stg.subinventory_code
|| ' In Organization '
|| rec_inv_onhand_stg.organization_code;
WHEN TOO_MANY_ROWS
THEN
l_message := l_message
|| ' Retrive Of Too Many Rows In Org '
|| rec_inv_onhand_stg.organization_code
|| ' For Sub Inventory Code'
|| rec_inv_onhand_stg.subinventory_code;
WHEN OTHERS
THEN
l_message := l_message
|| 'Un Handled Exception For ISub Inventory Code'
|| rec_inv_onhand_stg.subinventory_code
|| ' In Organization '
|| rec_inv_onhand_stg.organization_code;
END;
-- Check On Hand QTY Should be Greater than Zero
BEGIN
IF (rec_inv_onhand_stg.onhand_qty <= 0)
THEN
l_message :=
l_message
|| 'ONHAND QUANTITY CANNOT BE LESS THEN OR EQUAL TO ZERO ';
END IF;
END;
IF l_message IS NOT NULL
THEN
UPDATE xx_inv_onhand_conv_stg
SET status_flag = 'E',
error_msg = l_message
WHERE ROWID = rec_inv_onhand_stg.ROWID;
l_error_count := l_error_count + 1;
ELSE
UPDATE xx_inv_onhand_conv_stg
SET status_flag = 'V',
organization_id = l_organization_id,
inventory_item_id = l_inventory_item_id
WHERE ROWID = rec_inv_onhand_stg.ROWID;
END IF;
l_commit_count := l_commit_count + 1;
IF MOD (l_commit_count, 100) = 0
THEN
COMMIT;
END IF;
END LOOP;
COMMIT;
SELECT COUNT (*)
INTO l_val_count
FROM xx_inv_onhand_conv_stg
WHERE status_flag = 'V';
SELECT COUNT (*)
INTO l_valerr_count
FROM xx_inv_onhand_conv_stg
WHERE status_flag = 'E';
fnd_file.put_line(fnd_file.log,'Total validated records ' || l_val_count);
fnd_file.put_line(fnd_file.log,'Total records in Error ' || l_valerr_count);
IF (l_val_count > 0)
THEN
--insert_onhand_qty;
NULL;
END IF;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
fnd_file.put_line(fnd_file.log,'Program Failed ' || SQLERRM);
END VALIDATE;
PROCEDURE XX_INV_ONHAND_QTY_PROC (errbut OUT VARCHAR2, retcode OUT NUMBER)
IS
l_count NUMBER := 0;
l_start_time VARCHAR2 (20);
l_end_time VARCHAR2 (20);
l_start_date DATE;
l_end_date DATE;
l_time_taken VARCHAR2 (250);
BEGIN
BEGIN
fnd_global.apps_initialize (
user_id => 1008604,
resp_id => 20566,
resp_appl_id => 702,
security_group_id => 0,
server_id => -1
EXCEPTION
WHEN OTHERS
THEN
fnd_file.put_line(fnd_file.log,' Error While Initializing Fnd Global Package');
fnd_file.put_line(fnd_file.log,' Sql Error Message is ' || SQLERRM);
END;
SELECT SYSDATE
INTO l_start_date
FROM DUAL;
SELECT TO_CHAR (SYSDATE, 'HH24:MI:SS')
INTO l_start_time
FROM DUAL;
fnd_file.put_line(fnd_file.log,CHR (10));
fnd_file.put_line(fnd_file.log,' Program Started On '
|| TO_CHAR (SYSDATE, 'DD-MON-RRRR')
|| ' At '
|| l_start_time
VALIDATE;
insert_data;
fnd_file.put_line(fnd_file.log,
SELECT SYSDATE
INTO l_end_date
FROM DUAL;
SELECT TO_CHAR (SYSDATE, 'HH24:MI:SS')
INTO l_end_time
FROM DUAL;
fnd_file.put_line(fnd_file.log,CHR(10)
|| ' Program Ended On '
|| TO_CHAR (SYSDATE, 'DD-MON-RRRR')
|| ' At '
|| l_end_time
SELECT FLOOR (((l_end_date - l_start_date) * 24 * 60 * 60) / 3600)
|| ' HOURS '
|| FLOOR (
( ((l_end_date - l_start_date) * 24 * 60 * 60)
- FLOOR (
((l_end_date - l_start_date) * 24 * 60 * 60)
/ 3600
* 3600
/ 60
|| ' MINUTES '
|| ROUND (
( ((l_end_date - l_start_date) * 24 * 60 * 60)
- FLOOR (
((l_end_date - l_start_date) * 24 * 60 * 60) / 3600
* 3600
- ( FLOOR (
( ((l_end_date - l_start_date) * 24 * 60 * 60)
- FLOOR (
( (l_end_date - l_start_date)
* 24
* 60
* 60
/ 3600
* 3600
/ 60
* 60
|| ' SECS '
INTO l_time_taken
FROM DUAL;
fnd_file.put_line(fnd_file.log,
CHR (10)
|| 'TIME TAKEN TO RUN On Hand Qty CONVERSION PROGRAM IS :: '
|| l_time_taken
|| CHR (10)
|| CHR (10)
fnd_file.put_line(fnd_file.log,' END OF QTM On Hand Qty Conversion Program ');
-- exec xxqc_inv_onhand_pck.xxqc_inv_onhand_proc(:a,:b)
END XX_INV_ONHAND_QTY_PROC;
END XX_INV_ONHAND_QTY_PKG;
create table xx_inv_onhand_conv_stg
SOURCE_CODE VARCHAR2(100),
ORGANIZATION_CODE VARCHAR2(10),
SUBINVENTORY_CODE VARCHAR2(10),
ITEM VARCHAR2(30),
UOM VARCHAR2(10),
ITEM_STATUS VARCHAR2(10),
ONHAND_QTY NUMBER,
SOURCE VARCHAR2(10),
CREATED_BY NUMBER,
LAST_UPDATE_LOGIN NUMBER,
LAST_UPDATED_BY NUMBER,
PROCESS_FLAG NUMBER,
ORGANIZATION_ID NUMBER,
STATUS_FLAG VARCHAR2(2),
INVENTORY_ITEM_ID VARCHAR2(100),
ERROR_MSG VARCHAR2(2)
INVENTORY,V1,Mobile B,Computer,Ea,Active,20,RENOVA,12345,12345,12345,1,204,N,12816
INVENTORY,V1,Stores,Computer,Ea,Active,20,RENOVA,12345,12345,12345,1,204,N,12816
INVENTORY,V1,Stores,Cabinet ATX,Ea,Active,15,RENOVA,12345,12345,12345,1,204,N,12817
INVENTORY,V1,Mobile B,Cabinet ATX,Ea,Active,15,RENOVA,12345,12345,12345,1,204,N,12817
INVENTORY,V1,Stores,Cabinet Multimedia,Ea,Active,35,RENOVA,12345,12345,12345,1,204,N,12818
INVENTORY,V1,Stores,Cabinet Multimedia,Ea,Active,35,RENOVA,12345,12345,12345,1,204,N,12818
INVENTORY,V1,Mobile B,Cabinet Zoom,Ea,Active,12,RENOVA,12345,12345,12345,1,204,N,12819
INVENTORY,V1,Stores,Processor Citrix,Ea,Active,40,RENOVA,12345,12345,12345,1,204,N,12820
INVENTORY,V1,Mobile B,Processor Dual Core,Ea,Active,15,RENOVA,12345,12345,12345,1,204,N,12821
INVENTORY,V1,Mobile B,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
INVENTORY,V1,Stores,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
INVENTORY,V1,Stores,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
INVENTORY,V1,Mobile B,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
INVENTORY,V1,Mobile B,Ram 1 GB,Ea,Active,75,RENOVA,12345,12345,12345,1,204,N,12822
INVENTORY,V1,Stores,Ram 2 GB,Ea,Active,17,RENOVA,12345,12345,12345,1,204,N,12823
INVENTORY,V1,Mobile B,Key Board TVS,Ea,Active,25,RENOVA,12345,12345,12345,1,204,N,12824
INVENTORY,V1,Mobile B,Key Board Multi Media,Ea,Active,35,RENOVA,12345,12345,12345,1,204,N,12825
INVENTORY,V1,Mobile B,Key Board Intel,Ea,Active,25,RENOVA,12345,12345,12345,1,204,N,12826
INVENTORY,V1,Stores,Key Board Dell,Ea,Active,60,RENOVA,12345,12345,12345,1,204,N,12827FDPSTP failed due to ORA-20100: File o0046035.tmp creation for FND_FILE failed.
Please help.Please verify the following:
1) Make sure that APPLPTMP is set to a valid directory as shown above (Verify from the OS by issuing "echo $APPLPTMP" as applmgr user)
2) Make sure that both the applmgr user and the database user "oracle" have read/write permissions on $APPLPTMP
3) Make sure that APPLPTMP is the first entry in utl_file_dir (utl_file_dir is set in the init<SID>.ora file). To verify to what "utl_file_dir" is set:
SQL> connect / as sysdba
SQL> show parameter UTL_FILE_DIR -
Onhand and available quantities for an item?
Hi ALL,
I have an item number with me..... how can I find available and onhand quantities for this item?
Can someone please share the queries if you have or guide me how to get available and onhand quantities?
and
Can anyone let me know how available and onhand quantities are populated in SubInventory Transfer form?Dear Friend
In OPM Inventory, go to Adjust immediate with this Item number, where you can see the available On hand quantity or You can use Item Inquiry form wherein you can also view the available on hand qty.
(N): OPM Inventory-->Adjust immediate
or
OPM Inventory--> Set up--> Item Inquiry
Regards
Raj
Sierra -
INV_Quantity_Tree_PUB.Query_Quantities API returns 0
Hi Experts,
I 'am using the INV_Quantity_Tree_PUB.Query_Quantities API to calculate the Reservable and on hand quantities. I 'am passing only the Item Id and Org Id. Remaining values are set to null. But this API always returns '0' for both reservable and onhand quantities. I can see valid quantities in the Inventory/ On Hand Quantity window. Can you please suggest whether I 'am missing something here.
Thanks,
GanapathiGanapati,
This code works with the same parameters you are passing. Can you please try? This is in R12.0.4 vision (inventory merger for OPM). In my case item was lot and serial controlled hence passed TRUE for both. You can change it if you need to.
DECLARE
x_return_status VARCHAR2 (1);
x_msg_data VARCHAR2 (4000);
x_msg_count NUMBER;
x_qoh NUMBER;
x_rqoh NUMBER;
x_qr NUMBER;
x_qs NUMBER;
x_att NUMBER;
x_atr NUMBER;
x_sqoh NUMBER;
x_srqoh NUMBER;
x_sqr NUMBER;
x_sqs NUMBER;
x_satt NUMBER;
x_sqtr NUMBER;
BEGIN
inv_globals.set_org_id (207);
inv_quantity_tree_pub.clear_quantity_cache;
inv_quantity_tree_pub.query_quantities (p_api_version_number => 1.0
, x_return_status => x_return_status
, x_msg_count => x_msg_count
, x_msg_data => x_msg_data
, p_organization_id => 207
, p_inventory_item_id => 167742
, p_tree_mode => 1
, p_is_revision_control => FALSE
, p_is_lot_control => TRUE
, p_is_serial_control => TRUE
, p_grade_code => NULL
, p_revision => NULL
, p_lot_number => NULL
, p_subinventory_code => NULL
, p_locator_id => NULL
, x_qoh => x_qoh
, x_rqoh => x_rqoh
, x_qr => x_qr
, x_qs => x_qs
, x_att => x_att
, x_atr => x_atr
, x_sqoh => x_sqoh
, x_srqoh => x_srqoh
, x_sqr => x_sqr
, x_sqs => x_sqs
, x_satt => x_satt
, x_satr => x_sqtr
DBMS_OUTPUT.put_line (x_return_status);
DBMS_OUTPUT.put_line (x_msg_count);
DBMS_OUTPUT.put_line (x_qr);
DBMS_OUTPUT.put_line (x_qoh);
DBMS_OUTPUT.put_line (x_rqoh);
END;
Thanks
Nagamohan -
Customer Bank Accounts Interface/API
Hello guys
I wonder if you can help me please. I've defined a new bank account in AR and I want to load customers under my new bank account. Is there an Interface or API to programmatically do this? If so, please tell me what interface table or API to use. I'm on Oracle Apps R11.5.10
Thanks for all you help.Hi,
Review the following links:
Customer Conversion
Customer Conversion
API for loading Bank account details for the Customer
API for loading Bank account details for the Customer
Note: 296593.1 - How To Load Banks Into AP Using Ar_bank_directory Table?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=296593.1
Oracle Integration Repository
http://irep.oracle.com
Regards,
Hussein -
ONHAND QUANTITY SETUP을 확인하는 방법
제품: Applications
작성날짜 : 2006-05-30
ONHAND QUANTITY SETUP을 확인하는 방법
==============================
PURPOSE
Onhand quantity setup을 확인하는 방법
Explanation
script을 통해, 여러 setup사항들 및 onhand수량을 check할 수 있다.
1. Check Organization controls
2. Check Subinventory controls
3. Check item attributes and controls for lot, locator, serial and
revision.
4. Check onhand quantity stock records a) non lot control
b) lot controlled
5. Check that stock records agree with attribute settings including
the following:
- Check that stock has a lot number if under lot control.
- Check expiration date, lots which have expired still show in
transaction screen
- LPN containerized items
6. Show reservations for the item
7. Show overall quantities (from an internal routine called qtytree)
8. Check that cost groups are correct.
9. Check that quantities agree.
아래의 script을 onhand.sql로 생성하여 수행하시기 바랍니다.
$Header: onhand.sql 115.9 2005/05/25 $
FILE
onhand.sql
DESCRIPTION
Gives information regarding quantity values for an item within an organization,
subinventory, revision and lot to determine why the system does not find
available stock.
Quantity on hand
Reservable quantity on hand
Quantity reserved
Quantity suggested
Quantity available to transact
Quantity available to reserve
The retrieved information will be written to an O/S file called: onhand.lst
This script should be used for Release 11.5 only.
BASE
Bug 3089073, 4349223
ARGUMENTS
Organization_id
Inventory_item_id
lot_number => return over this if item is not lot controlled
revision => return over this if item is not revision controlled
subinventory_code
/*WHENEVER SQLERROR EXIT FAILURE;*/
spool onhand.lst
set linesize 125;
set pagesize 200;
set verify off;
set serveroutput on
PROMPT 1/ To check Organization controls
SELECT organization_id ORG_ID,
primary_cost_method CST_TYP,
cost_organization_id CST_ORG,
master_organization_id MAST_ORG,
default_cost_group_id DEF_CST_GRP,
project_reference_enabled PROJ_FLG,
wms_enabled_flag WMS
FROM mtl_parameters
WHERE organization_id = &&org_id;
PROMPT 2/ To check Subinventory controls
SELECT secondary_inventory_name, organization_id org_id, default_cost_group_id DEF_CST_GRP,
locator_type LOC, asset_inventory ASSET_INV
FROM mtl_secondary_inventories
where organization_id = &&org_id;
PROMPT 3/ To check item attributes
select LOT_CONTROL_CODE LOT, REVISION_QTY_CONTROL_CODE REV, LOCATION_CONTROL_CODE LOC,
SERIAL_NUMBER_CONTROL_CODE SER
from mtl_system_items_b
where organization_id= &&org_id
and inventory_item_id = &&item_id;
prompt control = 2 for on
prompt serial_number_control 1-No serial number, 2-Predefined serial number, 5-Dynamic entry at inventory receipt
prompt 6-Dynamic entry at sales order issue
PROMPT 4/ To check onhand quantity stock records a) non lot control b) lot controlled
select moqd.inventory_item_id ITEM_ID, moqd.organization_id ORG_ID,
moqd.primary_transaction_quantity PRIM_QTY, moqd.subinventory_code, moqd.revision REV,
moqd.locator_id, moqd.lot_number,
moqd.cost_group_id CST_GRP_ID, moqd.project_id, moqd.task_id, moqd.lpn_id,
moqd.CONTAINERIZED_FLAG CONT_FLG
from mtl_onhand_quantities_detail moqd
where moqd.organization_id = &&org_id
and moqd.inventory_item_id = &&item_id;
select moqd.inventory_item_id ITEM_ID, moqd.organization_id ORG_ID,
moqd.primary_transaction_quantity PRIM_QTY, moqd.subinventory_code,moqd.revision REV,
moqd.locator_id, moqd.lot_number, mln.expiration_date EXPIRE_DATE,
moqd.cost_group_id CST_GRP_ID, moqd.project_id, moqd.task_id, moqd.lpn_id,
moqd.CONTAINERIZED_FLAG CONT_FLG
from mtl_onhand_quantities_detail moqd, mtl_lot_numbers mln
where moqd.organization_id = &&org_id
and moqd.inventory_item_id = &&item_id
and moqd.inventory_item_id = mln.inventory_item_id
and moqd.organization_id = mln.organization_id
and moqd.lot_number = mln.lot_number;
PROMPT Check that stock records agree with attribute settings ie. stock has a lot
PROMPT number if under lot control. Also check expiration date, lots which have expired
PROMPT still show in transaction screen but cannot be reserved (bug 3818166) and for
PROMPT negative balances, if found apply patch 3747966.
PROMPT Also check for LPN containerised items will not show as available on forms need
PROMPT unpack the material and then try to issue out from desktop or Perform the Misc
PROMPT issue of the LPN from the Mobile (bug 4349223).
PROMPT
PROMPT 5/ Show reservations for item
select organization_id, inventory_item_id, demand_source_name, demand_source_header_id,
demand_source_line_id, primary_reservation_quantity, revision, subinventory_code,
locator_id, lot_number
from mtl_reservations
where organization_id = &&org_id
and inventory_item_id = &&item_id;
PROMPT 6/ Show overall quantities from qtytree
SELECT
x.organization_id organization_id
, x.inventory_item_id inventory_item_id
, x.revision revision
, x.lot_number lot_number
, To_date(NULL) lot_expiration_date
, x.subinventory_code subinventory_code
, sub.reservable_type reservable_type
, x.locator_id locator_id
, x.primary_quantity primary_quantity
, x.date_received date_received
, x.quantity_type quantity_type
, x.cost_group_id cost_group_id
, x.containerized containerized
FROM (
SELECT
x.organization_id organization_id
, x.inventory_item_id inventory_item_id
, NULL revision
, NULL lot_number
, x.subinventory_code subinventory_code
, x.locator_id locator_id
, SUM(x.primary_quantity) primary_quantity
, MIN(x.date_received) date_received
, x.quantity_type quantity_type
, x.cost_group_id cost_group_id
, x.containerized containerized
FROM (
-- reservations
SELECT
mr.organization_id organization_id
, mr.inventory_item_id inventory_item_id
, mr.revision revision
, mr.lot_number lot_number
, mr.subinventory_code subinventory_code
, mr.locator_id locator_id
, mr.primary_reservation_quantity
- Nvl(mr.detailed_quantity,0) primary_quantity
, To_date(NULL) date_received
, 3 quantity_type
, to_number(NULL) cost_group_id
, 0 containerized
FROM mtl_reservations mr
WHERE
Nvl(mr.supply_source_type_id, 13) = 13
AND mr.primary_reservation_quantity > Nvl(mr.detailed_quantity,0)
UNION ALL
-- onhand quantities
SELECT
moq.organization_id organization_id
, moq.inventory_item_id inventory_item_id
, moq.revision revision
, moq.lot_number lot_number
, moq.subinventory_code subinventory_code
, moq.locator_id locator_id
, decode(NULL, NULL, moq.transaction_quantity, nvl(pjm_ueff_onhand.onhand_quantity
(NULL,moq.inventory_item_id,moq.organization_id
,moq.revision,moq.subinventory_code,moq.locator_id,moq.lot_number)
,moq.transaction_quantity))
, nvl(moq.orig_date_received,
moq.date_received) date_received
, 1 quantity_type
, moq.cost_group_id cost_group_id
, decode(moq.containerized_flag,
1, 1, 0) containerized
FROM
mtl_onhand_quantities_detail moq
UNION ALL
-- pending transactions in mmtt
--changed by jcearley on 12/8/99
--added 1 to decode statement so that we make sure the
--issue qtys in mmtt are seen as negative.
--This problem arose because create_suggestions stores
--the suggested transactions in mmtt as a positive number.
-- added 5/23/00
-- if quantity is in an lpn, then it is containerized
SELECT
mmtt.organization_id organization_id
, mmtt.inventory_item_id inventory_item_id
, mmtt.revision revision
, NULL lot_number
, mmtt.subinventory_code subinventory_code
, mmtt.locator_id locator_id
, Decode(mmtt.transaction_status, 2, 1
, Decode(mmtt.transaction_action_id
, 1, -1, 2, -1, 28, -1, 3, -1, Sign(mmtt.primary_quantity))
* Abs( decode(NULL, NULL, mmtt.primary_quantity, Nvl(apps.pjm_ueff_onhand.txn_quantity(NULL,mmtt.transaction_temp_id,mmtt.lot_number,
'N',mmtt.inventory_item_id, mmtt.organization_id, mmtt.transaction_source_type_id,
mmtt.transaction_source_id, mmtt.rcv_transaction_id,
sign(mmtt.primary_quantity)
),mmtt.primary_quantity)) )
, Decode(mmtt.transaction_action_id
, 1, To_date(NULL)
, 2, To_date(NULL)
, 28, To_date(NULL)
, 3, To_date(NULL)
, Decode(Sign(mmtt.primary_quantity)
, -1, To_date(NULL)
, mmtt.transaction_date)) date_received
, Decode(mmtt.transaction_status, 2, 5, 1) quantity_type
, mmtt.cost_group_id cost_group_id
, decode(mmtt.lpn_id, NULL, 0, 1) containerized
FROM
mtl_material_transactions_temp mmtt
WHERE
mmtt.posting_flag = 'Y'
AND mmtt.subinventory_code IS NOT NULL
AND (Nvl(mmtt.transaction_status,0) <> 2 OR -- pending txns
-- only picking side of the suggested transactions are used
Nvl(mmtt.transaction_status,0) = 2 AND
mmtt.transaction_action_id IN (1,2,28,3,21,29,32,34)
-- dont look at scrap and costing txns
AND mmtt.transaction_action_id NOT IN (24,30)
UNION ALL
-- receiving side of transfers
-- added 5/23/00
-- if quantity is in an lpn, then it is containerized
SELECT
Decode(mmtt.transaction_action_id
, 3, mmtt.transfer_organization
, mmtt.organization_id) organization_id
, mmtt.inventory_item_id inventory_item_id
, mmtt.revision revision
, NULL lot_number
, mmtt.transfer_subinventory subinventory_code
, mmtt.transfer_to_location locator_id
, Abs( decode(NULL, NULL, mmtt.primary_quantity, Nvl(apps.pjm_ueff_onhand.txn_quantity(NULL,mmtt.transaction_temp_id,mmtt.lot_number,
'N',mmtt.inventory_item_id, mmtt.organization_id, mmtt.transaction_source_type_id,
mmtt.transaction_source_id, mmtt.rcv_transaction_id,
sign(mmtt.primary_quantity)
),mmtt.primary_quantity)) )
, mmtt.transaction_date date_received
, 1 quantity_type
, mmtt.transfer_cost_group_id cost_group_id
, decode(mmtt.transfer_lpn_id, NULL, 0, 1) containerized
FROM
mtl_material_transactions_temp mmtt
WHERE
mmtt.posting_flag = 'Y'
AND Nvl(mmtt.transaction_status,0) <> 2 -- pending txns only
AND mmtt.transaction_action_id IN (2,28,3)
) x
WHERE x.organization_id = &&org_id
AND x.inventory_item_id = &&item_id
GROUP BY
x.organization_id, x.inventory_item_id, x.revision
, x.subinventory_code, x.locator_id
, x.quantity_type, x.cost_group_id, x.containerized
) x
, mtl_secondary_inventories sub
WHERE
x.organization_id = sub.organization_id (+)
--AND Nvl(sub.availability_type, 1) = 1
AND x.subinventory_code = sub.secondary_inventory_name (+) ;
PROMPT Check that cost groups are correct see Bug 4222079
PROMPT 7/ To find stock values from system nb.<cr> over lot and revision if item
PROMPT is not under lot or revision control, <cr> over subinventory for all subinvs
DECLARE
L_api_return_status VARCHAR2(1);
l_qty_oh NUMBER;
l_qty_res_oh NUMBER;
l_qty_res NUMBER;
l_qty_sug NUMBER;
l_qty_att NUMBER;
l_qty_atr NUMBER;
l_msg_count NUMBER;
l_msg_data VARCHAR2(1000);
l_rev varchar2(100):=NULL;
l_lot VARCHAR2(100):=NULL;
l_loc VARCHAR2(100):=NULL;
l_lot_control BOOLEAN :=false;
l_revision_control BOOLEAN :=false;
l_lot_control_code NUMBER;
l_revision_qty_control_code NUMBER;
l_location_control_code NUMBER;
l_org_id NUMBER;
l_item_id NUMBER;
l_subinv VARCHAR2(10);
BEGIN
select LOT_CONTROL_CODE ,REVISION_QTY_CONTROL_CODE, LOCATION_CONTROL_CODE
into l_lot_control_code, l_revision_qty_control_code, l_location_control_code
from mtl_system_items_b
where organization_id= &&org_id
and inventory_item_id = &&item_id;
if l_lot_control_code = 2 then
l_lot_control :=true;
l_lot:='&lotnumber';
end if;
if l_revision_qty_control_code =2 then
l_revision_control:=true;
l_rev:='&revision';
end if;
inv_quantity_tree_grp.clear_quantity_cache;
dbms_output.put_line('Transaction Mode');
apps.INV_Quantity_Tree_PUB.Query_Quantities (
p_api_version_number => 1.0
, p_init_msg_lst => apps.fnd_api.g_false
, x_return_status => L_api_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
, p_organization_id => &&org_id
, p_inventory_item_id => &&item_id
, p_tree_mode => apps.INV_Quantity_Tree_PUB.g_transaction_mode
, p_onhand_source => NULL
, p_is_revision_control=> l_revision_control
, p_is_lot_control => l_lot_control
, p_is_serial_control => NULL
, p_revision => l_rev
, p_lot_number => l_lot
, p_subinventory_code => '&&subinv_code'
, p_locator_id => NULL
, x_qoh => l_qty_oh
, x_rqoh => l_qty_res_oh
, x_qr => l_qty_res
, x_qs => l_qty_sug
, x_att => l_qty_att
, x_atr => l_qty_atr );
dbms_output.put_line('Quantity on hand --> '||to_char(l_qty_oh));
dbms_output.put_line('Reservable quantity on hand --> '||to_char(l_qty_res_oh));
dbms_output.put_line('Quantity reserved --> '||to_char(l_qty_res));
dbms_output.put_line('Quantity suggested --> '||to_char(l_qty_sug));
dbms_output.put_line('Quantity available to transact --> '||to_char(l_qty_att));
dbms_output.put_line('Quantity available to reserve --> '||to_char(l_qty_atr));
end;
PROMPT Check that quantities agree with script 4 and 5.
Spool off;
PROMPT *** Print file onhand.lst created ***
exit
Reference Documents
Bug 4529874 -
Word document to pdf conversions
We have an application written in delphi. We need to develop an automated process to convert word documents to pdf format. I was wondering what was the best way to do this. Thanks.
The Acrobat SDK only offers that type of conversion API to plugins (written in C/C++).
-
Hi,
I believe this is possible but cannot determine what Toplink API to use from the documentation. I'd like to convert a simple Java Object (with just standard getter and setter methods) into an XML string IN MEMORY, then from that String, back to the original Java object. No databases involved, no mapping involved. Should be little more than 2 lines of code by my reckoning!
So does anyone know the API or point me to a code example?
Thanks
MikeHi Mike,
TopLink 10.1.3 introduces object-to-XML mapping support. Similar to relational TopLink, the Mapping Workbench is used to visually map your existing classes (these classes are NOT required to implement any special interfaces or follow any naming conventions) to an existing XML Schema.
The TopLink OX mappings are XPath based and make use of path and position mechanisms to eliminate the requirement of having a 1-to-1 correspondence between the object model and XML Schema. This limitation is common among code generated O-X tools.
TopLink OX provides a standard JAXB 1.0 implementation and the JAXB runtime APIs can be used to perform the conversion. TopLink also provides its own conversion APIs that provide additional functionality. In your example you would marshal your objects to a java.io.StringWriter, and unmarshal it from a java.io.StringReader.
TopLink's OX support does not involve a database, but you can combine it with TopLink's persistence layer to access data sources that accept XML records.
TopLink 10.1.3 Developer Preview release notes - Object-XML (OX) Support
http://www.oracle.com/technology/products/ias/toplink/preview/relnotes/tl_relnotes.htm#BABGEIID
Example Code - Using TopLink OX to implement a custom serializer/deserializer
http://www.oracle.com/technology/products/ias/toplink/preview/howto/websrv/index.htm
-Blaise -
Converting Coverage Start Date during OAB Conversion for current elections
We have a requirement to convert the coverage start date of current elections in the Legacy System to OAB.
We are using 'BEN_ELECTION_INFORMATION.ELECTION_INFORMATION_W' api to convert current enrollments and is passing the actual coverage start date of the current enrollments to the parameter 'p_enrt_cvg_strt_dt' in this API. We have an administrative Life Event configured in OAB for converting the current enrollments with Assigned Life Event date as '29-JUN-2010' . After the Conversion API is executed for all the Enrollment records the coverage Start Date is set to '29-JUN-2010', which is not the requirement.
We also tried using the APIs 'BEN_PRTT_ENRT_RESULT_API.UPDATE_ENROLLMENT' and 'BEN_PRTT_ENRT_RESULT_API.UPDATE_PRTT_ENRT_RESULT', but they behave the same manner as 'the Legacy System to OAB. We are using 'BEN_ELECTION_INFORMATION.ELECTION_INFORMATION_W'.
Please let us know which API would allow us to convert the current elections without changing the actual coverage start date from the Legacy System.I did run the default enrollment process, but nothing happens. I tried this with the Assign on Default check box checked and unchecked. Here is what I have setup for the enrollment details on this plan:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Program Enrollment Requirements > General > Plan
Method: Automatic
Enrollment: Current, Keep Only; New, Can Choose
Default Enrollment:
- Code: Rule
- Rule: DEV_X
- Assign on Default: Checked
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I removed the eligibility profile from the plan and it will default when running the participation process, however that does not solve the problem. I even rewrote the rule to include plan id, but that did not work either. The employee needs to be enrolled automatically when they select a given plan. Because the person is not eligible for the plan until after they select it, OAB will not know that the person is eligible until the participation process is run.
The only thing I can think is to have a separate life event that triggers at the end of the enrollment period, but I haven't figured how to do that yet. And it still doesn't quite solve the problem completely, as will be the case when enrollments are made after the enrollment period, i.e. corrections.
Maybe you are looking for
-
Change TOC button on play-bar to read "MENU" instead of "TOC"
Hello! How can I change the TOC button on the play-bar to read "MENU" instead of "TOC"? Any help is very much appreciated! -Chris
-
Hi HP. I have an HP Omni 27 1057c, running Windows 7 x64. Bios AMI 7.09 (11/23/2012) Bios available 2013-01-07 , Version7.09 Rev. A, 4.21M I flash it, says successful, then I restart, and the Bios did not change. I also unplugged all usb's, turned o
-
Hi guys, I am trying to setup more complex variable. Not sure how to do this Here is what I am trying to do, I would like to do some math calculation. For example: 10/5 = 2 In captivate 5, you can go to "Variables" and create variables. Say var1 = 10
-
Live auction with differnt currencies
Hi, Can we have live auction with differnt currencies. For example i want to carry a Live auction for 3 differnt vendors Vendor1 INR vendor2 USD vendor3 AUD Kindly suggest Regards Sunil
-
8i: PRO*C Sample Compile Problems
I'm fairly new to Linux but not to Oracle. I am trying to compile the sample PRO*C programs and running into difficulty. The first problem I had was that $ORACLE_HOME/bin/proc was not installed with execute permissions (strange that the OUI didn't se