API to update onhand quantity
Hi All,
Is there any API that I can use to update the onhand quantity of Inventory Item.
Thanks,
Priya.
Priya,
We do (or I should say "Shoud") not update the onhand quantity after you book the order. You can create reservations though (standard functionality available). This way others will not be able to take the quantity that is reserved against this order. Onhand quantity is table is exclusively used by transaction manager to move the qty in and out.
If you tell us the functional requirements as why you are trying to do this, we can offer better advice.
Thanks
Nagamohan
Similar Messages
-
Updating confirmed quantity in sales order
Hello Experts,
I have a question regarding ATP functionality. Suppose I have a stock of 50 units in my plant. If I create a sales order of 100 units then 50 units is confirmed and remaining 50 units is open. Now if I put additional stock of 50 units in plant then I want the open quantity of 50 in sales order to be automatically confirmed. But right now it's not happening like that and I have to manually go to the sales order and do ATP check to update confirmed quantity. Am I missing any configuration to update the schedule lines automatically in sales order?
Thanks,
KaranI want the open quantity of 50 in sales order to be automatically confirmed
No automatic allocation will not happen in the above case. Either you have to do availability check for that sale order or have to run V_V2.
Am I missing any configuration to update the schedule lines automatically in sales order?
No configuration is available such that system to allocate stocks automatically as and when the stock is made available.
G. Lakshmipathi -
API for updating pay_people_groups table..
Hi,
Is there any API for updating pay_people_groups table. I know we can do it using hr_assignment_api.update_emp_asg_criteria but this API updates the assignement with the new pay_group_id. I want to know is there is any API which can only update the pay_people_groups and not the assignment.
Regards,
Shabana.Hi,
Technically you want update values for people group. If you remember At the time of definition of people group you created value set and attached people group flex field.
People group are created on the basis of combination of segments. So you have to update only values not people group.
I doubt oracle provides API to update key flex field.
You may get API to update values try out that option.
Hope this helps.
Sathish -
API to update ap_invoices_all table
Hello all,
is there any API to update ap_invoices_all table? Please let me know.
thanks,Oracle uses AP_INVOICES_PKG API (Update_Row procedure) internally, but I believe you cannot use this API directly -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=AP_INVOICES_PKG&c_owner=APPS&c_type=PACKAGE
Please log a SR to confirm this with Oracle Support.
Thanks,
Hussein -
Hi,
I have a requirement to put the Sales Commission Lines (Oracle Incentive Compensation module) on hold for a particular Salesperson if the corresponding invoice line has an amount due not equal to zero.
Now to put the commission lines on hold I need to update the hold_flag of the cn_payment_transactions_all table.
I need help to find the API which I can use to update the hold_flag.I searched metalink on the same but did not find anything suitable.
Please advice which API I should use or any reference where I can find any suitable documents on that.Can i update the hold_flag directly in case i do not find any API to update this flag.
Thanks in advance......
Regards
Subhabrata
Edited by: user10816003 on Dec 28, 2009 6:05 AMHi Subhabrata,
I am not sure if there is any standard API to do this update.
Looks like you have requirement to pay the commission only when the invoice is fully paid.
Customizing like this is not the best option. There are outbox ways to design the collection/plan so that you pay commission when the invoice is paid.
Thanks
Srini Parimi
Edited by: user12263675 on Dec 29, 2009 10:40 AM -
After releasing the order same screen user updating the quantity in process order in sap pp
Hi experts,
After releasing the order in the same screen user updating the quantity in process order in sap pp.
How to control it.
can any help in this regards
Thanking you,
Rishit.Hi Rishit,
You can control it by BAdi WORKORDER_UPDATE method AT_SAVE make error message if there is any change in quantity.
Or you can create Transaction Variant through SHD0 for CO02 and make field Total Qty (CAUFVD-GAMNG) as output only.
Regards,
R.Brahmankar -
Use of APIs to update Absence info in Oracle HR/SSHR 11i
Dear all,
Use of APIs and Absences
1. Can you please let me know which are the relevant APIs to update Absences Information into Oracle Human Resources Application?
2. Where can I find relevant documentation on how to deploy these APIs?
Thanking you in advance for your feedback
Best regards
ElenaHi Elena,
You may find a list of the APIs in HRMS on Metalink. Just query for "APIs in HRMS". For absences you may use the following APIs: hr_absence_type_api, hr_person_absence_api
You may create a PL/SQL program to use these APIs or alternatively use web ADI to create upload integrators. You may have to write a custom wrapper before calling these APIs if required.
- Vikram -
API for Updating Attribute in CZ
Hi All,
Could you please suggest me any Standard API to update the Attribute Value in cz_config_ext_attributes.
Thank you,
AushCould you please suggest me any Standard API to update the Attribute Value in cz_config_ext_attributes.I do not see any reference on MOS that shows what API can be used to update this table.
Have you reviewed the documentation? -- http://www.oracle.com/technetwork/documentation/applications-167706.html
You may also review iREP and eTRM websites.
http://irep.oracle.com/index.html
http://etrm.oracle.com/
Thanks,
Hussein -
Hi All,
could you please provide me the API to update the PARTY Information in R12.
Thank you,
AushTry:
HZ_PARTY_V2PUB.update_person
HZ_PARTY_V2PUB.update_group
HZ_PARTY_V2PUB.update_organization
Hope it helps. -
API to update MTL_UOM_CLASS_CONVERSIONS
Hi All,
Please let me know the API to update MTL_UOM_CLASS_CONVERSIONS?
Thanks...Hi All,
Some time back I had posted the question on how I can update the mtl_item_sub_inventories table.
Now, I have a requirement that based on certain criteria, I have to update the min max quantities and lead time at subinventory or org level respectively.
For the updation at subinventory, i can use csp_item_sub_inventories_pkg, but how to do the same at org level.
Regards,
Shruti -
API to update/ create Organization EIT
Hi All,
I 'am trying to find the API to update/ create EITs for HR Organizations. While I can find the API to update person and assignments hr_assignment_extra_info_api/ hr_person_extra_info_api, I 'am not able to find out the API/ package for Organization EITs.
Can you please let me know the API that I need to use to create/ update HR Organizations EITs (HR_ORGANIZATION_INFORMATION_V table). Any inputs on this will be immensely helpful.
Thanks,
GanapathiYou can APIs
hr_organization_api.create_org_information or
hr_organization_api.update_org_information to create / update Organization Information Types. -
API to update Trx_date and Acct_date for AR invoices.
Hi,
Some AR invoices are created with trx_date as future dates ex: 01-FEB-2011, but they should be having the trx_date as todays date.
For these invoices, acct_date also created with 01-FEB-2011.
I have to update these records for trx_date and acct_date fields to todays date.
Can you provide me an API to update this.
Thanks in advance.
Best Regards,
Mani,Oracle hasn't yet provided the UPDATE API for AR Invoices. You cna only update the transaction from application. If the invoices are not accounted yet, then
1. Incomplete the transaction
2. change the TRX_DATE and GL DATE
3. complete the transaction.
- Kiran -
API to update mtl_item_sub_inventories table.
Hi All,
Can anyone please let me know if there is any API to update mtl_item_sub_inventories table.
Regards,
ShrutiHi All,
Some time back I had posted the question on how I can update the mtl_item_sub_inventories table.
Now, I have a requirement that based on certain criteria, I have to update the min max quantities and lead time at subinventory or org level respectively.
For the updation at subinventory, i can use csp_item_sub_inventories_pkg, but how to do the same at org level.
Regards,
Shruti -
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 -
Quantity Updation on quantity contract
hi friends,
I want to know the settings required for updating the quantity after release order in quantity contract. This is apart from seeing in the details in status overview screen.
Regards
Sumanupdating the quantity ?...couldnt get exactly what is required...but from contract to sales order with quantity point of view..check following setting
1. in VTAA copy control...
field Pos./neg. quantity as + => if ur contract qty is 10 and u copy contract to sales order with qty 8 then ur contract will show 2 qty as open
field Copy quantity as blank=>Automatic quantity determination while copying
field Update document flow as checked
2. in VOV7 , ur contract item category...see that ur field completion rule is having option C meaning Item is completed after the target qty is fully referenced
Regards
Jagdish
Maybe you are looking for
-
Printer's wireless stopped working after installing a wired printer.
I recently installed a new Epson printer to my computer with a wired connection. That works fine as far as I know, but when I got home, I found that my wireless HP printer no longer worked through the wireless connection, though the wired connection
-
Data Concatenation - Looking to have result in the Group header
Dear all, Few months ago, I try to concatenate cells under a Group, I succeed using the formula gave by Raghavendra Initialize: whileprintingrecords; stringvar i:=""; Place the above formula in group header and suppress group header section. evaluat
-
Hi Frnds I am very much new to Oracle ADF and Jdeveloper. My requirement is , there are 3 input text field and a button. When I enter number values in text field 1 and 2 and press the button ,then the sum should be display in the 3rd text field. Like
-
I forgot the answer to the secret question
I forgot the answer to the secret question
-
Hello, I'm trying to upload a journal voucher with multiple transaction without success. Wich field is used to define the OBTF.transID in JournalEntries.csv and JournalEntries_Lines.csv. Thanks