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,
Ganapathi
Ganapati,
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
Similar Messages
-
INV API inv_quantity_tree_pub.query_quantities in R12
Hi,
is there any difference in the inv_quantity_tree_pub.query_quantities APi b/w 11i and R12.
Thanks.Ganapati,
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 -
Sharepoint Export API - Returning rows with a starting row beyond 5000
Until this last week I have been using looping REST connector logic to extract all of our customers Sharepoint data through the Export API. I was doing this by incrementing the starting row for each call by 500 with a row limit of 500 for each call. I kept
doing this until the greatest returned row was equal to the total rows with duplicates. This ran in a deployed/automated fashion for the last two weeks. At the start of this week our customer noticed that we were only receiving roughly the number of unique
customers (~4.9k) rather than the entire dataset (~27k). When I attempt to manually pull data from any point beyond a row count of 5000 I receive zero rows back.
Has something changed with the API recently that would cause this to happen? If not with the API, could a change in permission levels/setting cause this?
Thank you for your time,
BryanHi Martin,
Sorry for the late...very late reply, no I didn´t solved it and now we really need to get this issue sorted out. Since last time I have installed a new DPM 2012 R2 server for the customer, and the exact same error still occurs :(
So my question in return, have you solved it yet ?
If so, it would be great if you can reply with the solution.
If not, MS please advise A.S.A.P
Thx /Tony -
ITunes Search API Returns Incorrect Type
Hello,
I am trying to make the following call to the iTunes Search API:
http://itunes.apple.com/search?term=lmfao+party+rock&media=music&entity=musicTra ck
(don't mind the content)
The issue here is that at times, results of kind:music-video are returned. I believe since I specified entity to be musicTrack, only results of kind:song should be returned as per the API documentation.
The type of results you want returned, relative to the specified media type. For example: movieArtist for a movie media type search.
The default is the track entity associated with the specified media type.
This issue has had me stumped for quite some time since upon refreshing the page (of the above search), results of kind:song will appear, but after another refresh, results of kind:music-video continue to show up.
Am I forming my search URL incorrectly? Help would be greatly appreciated.
Thanks,
~danI'm having exactly the same problem!
Really frustrating. I hope someone here can shine some light on this as it seems too fundamental to be a bug:
loads of people must share this requirement for a list of only audio tracks...
**EDIT**
Seems like we've been wasting our time on out of date documentation
If you check this out - http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web- service-search-api.html
Seems like you need to use &entity=song instead of &entity=musicTrack
It states: Please note that "musicTrack" can include both songs and music videos in the results -
ITunes API returning incorrect price
Hello,
I've discovered some inconsistencies when it comes to collection pricing being returned by the iTunes Search API.
As an example, I'm searching for The Blacklist using the iTunes API in the AU store with the following parameters: http://itunes.apple.com/search?term=the%20blacklist&country=AU The results being returned are:
"collectionPrice":71.76, "trackPrice":2.99, "collectionHdPrice":83.76000, "trackHdPrice":3.49000
Note that the price being returned for the whole season is AU$71.76
But when I access the actual iTunes website though the link provided in the search result (https://itunes.apple.com/au/tv-season/pilot/id686768825?i=710673278&ign-mpt=uo%3 D4), the price being shown for the whole season is AU$44.99. http://puu.sh/bpjjY/4db69f3a13.png
Those prices are a pretty different! Am I missing something here? Maybe collection price isn't the same as the season price? Help would be appreciated!
Thanks,
- KenI'm having exactly the same problem!
Really frustrating. I hope someone here can shine some light on this as it seems too fundamental to be a bug:
loads of people must share this requirement for a list of only audio tracks...
**EDIT**
Seems like we've been wasting our time on out of date documentation
If you check this out - http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web- service-search-api.html
Seems like you need to use &entity=song instead of &entity=musicTrack
It states: Please note that "musicTrack" can include both songs and music videos in the results -
DATA PUMP API returning ORA-31655
Hello Gurus,
I am using below code to import a table(EMP) from one Database to Another using Network.
set serveroutput on;
DECLARE
ind NUMBER; -- Loop index
spos NUMBER; -- String starting position
slen NUMBER; -- String length for output
h1 NUMBER; -- Data Pump job handle
percent_done NUMBER; -- Percentage of job complete
job_state VARCHAR2(30); -- To keep track of job state
le ku$_LogEntry; -- For WIP and error messages
js ku$_JobStatus; -- The job status from get_status
jd ku$_JobDesc; -- The job description from get_status
sts ku$_Status; -- The status object returned by get_status
BEGIN
h1 := DBMS_DATAPUMP.OPEN('IMPORT','TABLE','DBLINK',NULL,'LATEST');
DBMS_DATAPUMP.METADATA_FILTER(h1,'NAME_EXPR','IN (''SCOTT.EMP'')','TABLE');
DBMS_DATAPUMP.SET_PARAMETER(h1,'TABLE_EXISTS_ACTION','REPLACE');
DBMS_DATAPUMP.METADATA_REMAP(h1,'REMAP_SCHEMA','SCOTT','SCOTT');
--DBMS_DATAPUMP.METADATA_FILTER(h1,'INCLUDE_PATH_LIST','like''TABLE''');
DBMS_DATAPUMP.METADATA_REMAP(h1,'REMAP_TABLESPACE','USERS','USERS');
DBMS_DATAPUMP.SET_PARALLEL(h1,8);
begin
dbms_datapump.start_job(h1);
dbms_output.put_line('Data Pump job started successfully');
exception
when others then
if sqlcode = dbms_datapump.success_with_info_num
then
dbms_output.put_line('Data Pump job started with info available:');
dbms_datapump.get_status(h1,
dbms_datapump.ku$_status_job_error,0,
job_state,sts);
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
dbms_output.put_line(le(ind).LogText);
ind := le.NEXT(ind);
end loop;
end if;
end if;
else
raise;
end if;
end;
-- The export job should now be running. In the following loop, we will monitor
-- the job until it completes. In the meantime, progress information is
-- displayed.
percent_done := 0;
job_state := 'UNDEFINED';
while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
dbms_datapump.get_status(h1,
dbms_datapump.ku$_status_job_error +
dbms_datapump.ku$_status_job_status +
dbms_datapump.ku$_status_wip,-1,job_state,sts);
js := sts.job_status;
-- If the percentage done changed, display the new value.
if js.percent_done != percent_done
then
dbms_output.put_line('*** Job percent done = ' ||
to_char(js.percent_done));
percent_done := js.percent_done;
end if;
-- Display any work-in-progress (WIP) or error messages that were received for
-- the job.
if (bitand(sts.mask,dbms_datapump.ku$_status_wip) != 0)
then
le := sts.wip;
else
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
else
le := null;
end if;
end if;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
dbms_output.put_line(le(ind).LogText);
ind := le.NEXT(ind);
end loop;
end if;
end loop;
-- Indicate that the job finished and detach from it.
dbms_output.put_line('Job has completed');
dbms_output.put_line('Final job state = ' || job_state);
dbms_datapump.detach(h1);
-- Any exceptions that propagated to this point will be captured. The
-- details will be retrieved from get_status and displayed.
exception
when others then
dbms_output.put_line('Exception in Data Pump job');
dbms_datapump.get_status(h1,dbms_datapump.ku$_status_job_error,0,
job_state,sts);
if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
then
le := sts.error;
if le is not null
then
ind := le.FIRST;
while ind is not null loop
spos := 1;
slen := length(le(ind).LogText);
if slen > 255
then
slen := 255;
end if;
while slen > 0 loop
dbms_output.put_line(substr(le(ind).LogText,spos,slen));
spos := spos + 255;
slen := length(le(ind).LogText) + 1 - spos;
end loop;
ind := le.NEXT(ind);
end loop;
end if;
end if;
END;
when i run the same code and change the mode for SCHEMA LEVEL import it is working fine.
But when i want to import a single table it is giving below error
Data Pump job started successfully
Starting "SCOTT"."SYS_IMPORT_TABLE_06":
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
ORA-31655: no data or metadata objects selected for job
*** Job percent done = 100
Job "SCOTT"."SYS_IMPORT_TABLE_06" completed with 1 error(s) at 20:56:23
Job has completed
Final job state = COMPLETED
can you give any suggestions on this error.
Thanks in advanceDid you check this link?
http://arjudba.blogspot.com/2009/01/ora-31655-no-data-or-metadata-objects.html
Does it provide any help?
Regards.
Satyaki De. -
LDQ read using LDQ APIs returning junk characters in an xml string
Hi Everyone,
We are facing a strange problem while using LDQ APIs to read the stored data in LDQ.
We use the following API
l_content_tab = unit_reader->get_next_contents( q_count ).
loop at l_content_tab assigning <l_content_wa>.
msg_contents = <l_content_wa>->get_cdata( )
endloop.
The message contents is a string in XML form.
While reading from LDQ, though the string is well formed , it replaces the very last closing tag '>' with a junk character.
It works perfect 99% of the time, but some systems we see this strange behavior and up-on re-reading it, it gives the right string.
Has any one faced such an issue before?
Regards,
LijiHi Everyone,
We are facing a strange problem while using LDQ APIs to read the stored data in LDQ.
We use the following API
l_content_tab = unit_reader->get_next_contents( q_count ).
loop at l_content_tab assigning <l_content_wa>.
msg_contents = <l_content_wa>->get_cdata( )
endloop.
The message contents is a string in XML form.
While reading from LDQ, though the string is well formed , it replaces the very last closing tag '>' with a junk character.
It works perfect 99% of the time, but some systems we see this strange behavior and up-on re-reading it, it gives the right string.
Has any one faced such an issue before?
Regards,
Liji -
ITunes Search API returns Different Rating Count
Hi everyone,
When I view this item (iBooks) from iTunes:
https://itunes.apple.com/ca/app/ibooks/id364709193?mt=8
I got the rating like this:
Stars 3.5 | 79 ratings (Average Rating For Current Version)
Stars 3.5 | 9264 ratings (Average Rating For All the Versions)
But when using the the Search API https://itunes.apple.com/lookup?id=364709193, I got:
"averageUserRatingForCurrentVersion":3.5, "userRatingCountForCurrentVersion":608,
"averageUserRating":3.5, "userRatingCount":83819
The User Rating Cont numbers don't match: 79 vs 608 and 9264 vs 83819.
Can anyone explain the differences?
Thanks in advance,
RobinHey Robin - just saw this and I've been digging through this stuff the last few days. I think I know the answer to your question.. its that you have the canada store in the web page reference and in the search API you arent limiting it to just Canada..
So esentially you're seeing the difference between this:
https://itunes.apple.com/ca/app/ibooks/id364709193?mt=8
and this:
https://itunes.apple.com/app/ibooks/id364709193?mt=8
Drew -
Ooyala v2 API returning "garbled" response in FlashBuilder (4.6)
I'm attempting to parse the response from a Ooyala REST call using the HTTPSERVICE.
I've confirmed that the call returns a valid respose with the following attributes (in the browser):
Type: application/json
Render Mode: Quirks mode
Encoding: ISO-8859-1
The content (again, in the browser) looks like:
{"original_file_name":"Dell-XPS-14-Laptop-Video-PT-BR.mov","source_file_url":"http://cms.ooyala.com/ZwMjhjNTrhxySuUrqrpyz9Z88b4d8U4-%2F0000000000000-0000057152719?Signa ture=%2F9UGY9EGrDzKU0ixD9ZDl%2BT2fYM%3D&AWSAccessKeyId=AKIAJUAIW2RNELHXXF2Q&Expires=134213 1393&","file_size":57152720}
The httpservice object has the following attributes:
querySource.headers = { Accept: "application/json" };
querySource.contentType = "application/json";
querySource.resultFormat = "text";
The response completely garbles the response. Here's a snippet:
CWS
Tf
It also creates a large number of other properties, also seemingly encoded...
If anyone has any ideas, please let know. Ooyala support believes that the result is being corrupted in Flex.
Cheers!Originally Posted by gabrielf60
Thanks for your answer.
I'm lost, because this server remains untouched from more then three years now, and never, NEVER, had an abend.
The only thing to note is that, three days before, a mirrored disk failed and was replaced by a new one. The sync
completed without error. Could this be the cause?
Thanks again.
Oh, so nothing happened except .... a hardware failure?
Of course it could. I'm sure since the server has not been touch in 3 years, neither have the BIOS, disk controller firmware, drivers, or the other bits that might be involved.
-- Bob -
Onhand report showing available and reserved quantities
Hi,
we are inventory organization using Oracle Apps R12.1
Is there any reports showing onhand with Availability Details ? I mean showing free & reserved stock quantities .
If no , can any one provide sql statement or any suggestion can help ?
Thanks in advance.Some of the seeded reports are described here
http://download.oracle.com/docs/cd/E18727_01/doc.121/e13450/T291651T292014.htm#T292044
You can get the reserved quantity from mtl_reservations and total onhand from mtl_onhand_quantities. You can get allocated quantities from mtl_material_transactions_temp.
A better way is to use inv_quantity_tree_pvt.create_tree api. You can check INV_Quantity_Tree_PUB.Query_Quantities API returns 0 for sample code.
Hope this helps,
Sandeep Gandhi -
Forms Personalization using DB function
Hi,
In Shipping transaction form If the shipping quantity is more than ATR quantity then I have to show a message box.
I created a DB function using inv_quantity_tree_pub.query_quantities API to get ATR quantity. for this function item number and organization code is the two in parameters and it returns ATR quantity.
I used this function in forms personalization.
Trigger Event - WHEN-VALIDATE-RECORD
Trigger Object - DVLB
Condition - :DLVB.SHIPPED_QUANTITY<= ATR_QTY(:DLVB.ITEM_NAME,:DLVB.ORGANIZATION_CODE)
Processing Mode - Both
Level - Responsibility
Message - Shipping quantity is more than ATR quantity.
I created the above but it is not showing any message or error. I don't know what I missed.
Thanks in advace for your help.922627 wrote:
Hi,
In Shipping transaction form If the shipping quantity is more than ATR quantity then I have to show a message box.
I created a DB function using inv_quantity_tree_pub.query_quantities API to get ATR quantity. for this function item number and organization code is the two in parameters and it returns ATR quantity.
I used this function in forms personalization.
Trigger Event - WHEN-VALIDATE-RECORD
Trigger Object - DVLB
Condition - :DLVB.SHIPPED_QUANTITY<= ATR_QTY(:DLVB.ITEM_NAME,:DLVB.ORGANIZATION_CODE)
Processing Mode - Both
Level - Responsibility
Message - Shipping quantity is more than ATR quantity.
I created the above but it is not showing any message or error. I don't know what I missed.
Thanks in advace for your help.Please see if these docs help.
How To Use Custom PL/SQL API In Forms Personalization? [ID 456407.1]
OM: Sample Codes For Form Personalization In Order Management [ID 1266606.1]
Thanks,
Hussein -
Hi Gurus,
I was looking at onhand availability screen for one item and it shows data like below:
On-Hand Quantity: 1
Available to reserve: 0
Available to Transact: 0
Then I tried to pull this information using "inv_quantity_tree_pub.query_quantities" api.
The result set says "Suggested Quantity" as 1.
Can anyone help me in understanding what is suggested quantity?
Thanks in advance.
Edited by: 987644 on Feb 12, 2013 10:31 AMSuggested quantity is the on-hand quantity itself.
The reason it is showing 0 for both " Available to reserve" and "Available to Transact" is, there must be some record stuck in the temp table for the related item.
SELECT *
FROM
MTL_MATERIAL_TRANSACTIONS_TEMP
WHERE inventory_item_id = <your item id>
If it returns any row, you need to delete the same to get the on-hand data corrected.
Thanks,
PS. -
R12 12.0.4 Onhand Quantity SQL required
Hi guys
We are a huge retailing company and currently in the process of implementing a custom made application for POS. One of our requirements is to reserve a given quantity against a particular item and once the PO received from the customer, raise a Credit invoice against customer account. Throughout last couple of years after the R12 implementation we kept on adding in-house built modules, mostly for tracking the on-hand quantities. We never used the material reservation until the custom application integration.
As we are planning to go live with the custom built application, we are in a requirement to alter our on-hand quantity scripts throughout the custom modules and reports. Right now we are using the following query to fetch the on-hand quantities:
Select onhand_quantity from
Select sum(onhand_qty) onhand_quantity, inventory_item_id, organization_id, subinventory_code from
Select sum(transaction_quantity) onhand_qty,inventory_item_id, organization_id, subinventory_code from mtl_onhand_quantities
group by organization_id, subinventory_code, inventory_item_id
union all
Select sum(reservation_quantity)*-1 onhand_qty,inventory_item_id, organization_id, subinventory_code from mtl_reservations
group by organization_id, subinventory_code, inventory_item_id
group by inventory_item_id, organization_id, subinventory_code
where inventory_item_id = :item_id and
organization_id = :org_id and
subinventory_code = :subinv_code
Should we consider anything else? We tried to use "apps.INV_QUANTITY_TREE_PUB.QUERY_QUANTITIES" API, unfortunately while compiling we got compilation errors. Please forward your suggestions
regards,Thanks Sandeep
Unfortunately, we do use move orders quite frequent (OM team just confirmed) and there are just few entries in MTL_MATERIAL_TRANSACTION_TEMP table. A total of 6 records dating back to 2010.
Anyway we are going ahead with the current setup and will include this table if differences are found at later stages. Thank you very much for your replies.
Regards, -
HI All,
I have a query regarding Rest API.
I am getting time of item created and modified using _api/web/lists/byname("name")/items(id=1).
It is returning always UTC time zone.
Is there any relavent article saying that this is default for all sharepoint (Because I have observed the same in all of my virtual meachines sharepoint servers).
Is there any java script to convert to Site regional settings(In day light savings also).
Mainly I need any article related to waht API return time will be ?
Thanks
KotiHi Koti,
SharePoint stores all date field in UTC. That is, if you are saving a date time field in a list, SharePoint actually converts the time that you selected into UTC, and converts it back to whatever time zone the person is in when retrieving.
When using any API SharePoint will always return the UTC time and leave it up to you to make the conversion in your interface or application.
You could read the time from database and convert the time to your local time.
You could refer to the JavaScript code example below to convert the time zone.
self.toUtc = function (inputDate) {
var localTime = inputDate.getTime();
var localOffset=inputDate.getTimezoneOffset() * 60000;
var utc = localTime + localOffset;
var retval = new Date(utc);
debugger;
return retval;
The article below is about time zone Issues when working with dates in SharePoint’s REST services.
https://yetanothersharepointblog.wordpress.com/2013/07/14/timezone-issues-when-working-with-dates-in-sharepoints-rest-services/
The article is about SharePoint Time Zone confusion in SharePoint 2010, it also can work in SharePoint 2013.
http://www.techgrowingpains.com/2012/05/sharepoint-time-zone-confusion-2/
The article below is about JavaScript Date Reference.
http://www.w3schools.com/jsref/jsref_obj_date.asp
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Hi All,
I am using the On Hand Query API inv_quantity_tree_pub.query_quantities in our custom code, to get the ATR (Available to Reserve) Quantities. It is working fine to get the ATR Quantities specific to Item, Lot, Sub Inventory, Locator.
But If I go one level below to LPN, it is not returning the ATR specific to the LPN (eventhough I pass P_LPN_ID). Suppose if there are 3 LPNs for 1 Lot, if I call the API by giving all the details including the LPN (IN parameter P_LPN_ID), it is returning the ATR (OUT parameter X_ATR) for the whole Lot (i.e same value for all the 3 LPNs), not specific to the LPN. Below is the API call, I am using in our code.
I am expecting the same ATR value, as I could see in the On Hand Availability Form. Please let me know, if I am missing any thing on this.
inv_quantity_tree_grp.clear_quantity_cache;
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_ret_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
,p_organization_id => p_organization_id
,p_inventory_item_id => p_inventory_item_id
,p_tree_mode => 2--inv_quantity_tree_pub.g_transaction_mode
,p_onhand_source => 3--inv_quantity_tree_pvt.g_all_subs
,p_is_revision_control => FALSE
,p_is_lot_control => TRUE
,p_is_serial_control => FALSE
,p_revision => NULL
,p_lot_number => p_lot_number
,p_lot_expiration_date => SYSDATE
,p_lpn_id => p_lpn_id
,p_subinventory_code => p_subinventory
,p_locator_id => p_locator_id
,p_grade_code => 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
,x_sqoh => l_sqty_oh
,x_srqoh => l_sqty_res_oh
,x_sqr => l_sqty_res
,x_sqs => l_sqty_sug
,x_satt => l_sqty_att
,x_satr => l_sqty_atr
Appreciate your help on this.
Thanks,
Gowri.Hi
you cannot associate a lot number to an LPN unless this LPN is a Container Item.
You can generate the using GENERATE_LPN API, this will populate WMS_LICENSE_PLATE_NUMBERS. then you will have to insert a record with Item and Lot to WMS_LPN_CONTENTS
with reference WMS_LPN_CONTENTS.PARENT_LPN_ID to WMS_LICENSE_PLATE_NUMBERS.LPN_ID
Hareesh
Maybe you are looking for
-
My win 8.1 laptop does not do system restores, never has.
Have had my HP 15 Touchsmart laptop for almost a year and it has never performed a system restore when requested. After going through the motions, the message on the desktop says the action was not completed and to try it once again. How much disk
-
Time Machine - suddenly back up's fail...
Hello, I have been using an external hard drive as my time machine for years, then suddenly the back ups started to fail. So I went in to Time Machine settings and found that the reported size of the next back up was greater than space that existed o
-
BLOB access using PL/SQL or SQL
I have the following script which creates a table and populates it including an employee picture in a BLOB column. -- * cr_lob.sql * -- * created by Lloyd R. Weaver * -- * February 24, 2003 * Connect SYSTEM/MANAGER -- * Initial cleanup * DROP USER OR
-
What are the benefits of single JAVA stack?
Dear all, what are the benefits of a single stack SAP BI/BW (JAVA) - which functionality is inside a JAVA Single Stack that is not in a Double Stack inside?
-
Means Of Transport Combination in TP/VS
Hi, I created a means of transport combination which consists of one active unit and a trailer. I can load it by running the opt. profile succesfully. The problem is, the active means of transport can not be used without the trailer anymore. I can lo