Tuesday 11 April 2017

Oracle Apps + Get On Hand Quantities through API

DECLARE

v_api_return_status                     VARCHAR2 (1);
v_qty_oh                                      NUMBER;
v_qty_res_oh                               NUMBER;
v_qty_res                                     NUMBER;
v_qty_sug                                    NUMBER;
v_qty_att                                      NUMBER;
v_qty_atr                                      NUMBER;
v_msg_count                                NUMBER;
v_msg_data                                  VARCHAR2(1000);
v_inventory_item_id                    VARCHAR2(250) := '376676';
v_organization_id                        VARCHAR2(10)  := '93';

BEGIN

inv_quantity_tree_grp.clear_quantity_cache;

DBMS_OUTPUT.put_line ('Transaction Mode');
DBMS_OUTPUT.put_line ('Onhand For the Item :'|| v_inventory_item_id );
DBMS_OUTPUT.put_line ('Organization        :'|| v_organization_id);

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              =>     v_api_return_status,
 x_msg_count                 =>     v_msg_count,
 x_msg_data                   =>      v_msg_data,
 p_organization_id         =>      v_organization_id,
 p_inventory_item_id    =>      v_inventory_item_id,
 p_tree_mode                 =>      apps.inv_quantity_tree_pub.g_transaction_mode,
 p_onhand_source         =>      3,
 p_is_revision_control  =>      FALSE,
 p_is_lot_control           =>     FALSE,
 p_is_serial_control      =>     FALSE,
 p_revision                    =>     NULL,
 p_lot_number              =>     NULL,
 p_subinventory_code  =>     NULL,
 p_locator_id                =>     NULL,
 x_qoh                          =>     v_qty_oh,
 x_rqoh                         =>     v_qty_res_oh,
 x_qr                             =>     v_qty_res,
 x_qs                             =>     v_qty_sug,
 x_att                             =>     v_qty_att,
 x_atr                            =>      v_qty_atr);

DBMS_OUTPUT.put_line ('on hand Quantity                :'|| v_qty_oh);
DBMS_OUTPUT.put_line ('Reservable quantity on hand     :'|| v_qty_res_oh);
DBMS_OUTPUT.put_line ('Quantity reserved               :'|| v_qty_res);
DBMS_OUTPUT.put_line ('Quantity suggested              :'|| v_qty_sug);
DBMS_OUTPUT.put_line ('Quantity Available To Transact  :'|| v_qty_att);
DBMS_OUTPUT.put_line ('Quantity Available To Reserve   :'|| v_qty_atr);

EXCEPTION
   WHEN OTHERS
   THEN
      DBMS_OUTPUT.put_line ('ERROR: ' || SQLERRM);

END;

Thanks
Amar Alam

15 comments:

oracle fusion said...

lately i came to this place but its right place to learn oracle thank u
oracle fusion procurement training

Unknown said...
This comment has been removed by the author.
Hema said...

you are posting such a new idea is very interesting and give updates.
msbi training in chennai

Unknown said...

Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at sridevikoduru@oracleappstechnical.com | +91 - 9581017828.

vinothika said...

Your way of presentation is good.I am eagerely wating for your further post.

Selenium Training in Chennai

Nikisha said...

These are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
SEO Company in India

Anonymous said...

Thanks for your great and helpful presentation I like your good service.I always appreciate your post.That is very interesting I love reading and I am always searching for informative information like this.Well written article Thank You for Sharing with Us pmp training Chennai | pmp training centers in Chennai | pmp training institutes in Chennai | pmp training and certification in Chennai | | pmp training in velachery

rohini said...

The learning approach is usually organized through blog studies. This gives you the opportunity to have a more practical approach and to be in contact with many different opinions.
Tablet Service center in chennai | tab service center in chennai | 100% genuine tablet parts | Tablet display replacement | Tablet Water damage service | Tablet glass replacement | 100% genuine tablet parts | Tablet Service center in chennai | Tablet unlocking service | 100% genuine laptop parts

Mohan Prasanth said...

Great post with unique information.This blog will really helpful for me to develop my skills in a right way.Thanks for sharing,keep update with your blogs.

Website Design Company in Bangalore | Mobile App Development Companies in
Bangalore
| Website Development Company in Bangalore

Austin said...

Such an excellent and interesting blog, do post like this more with more information, this was very useful. Salesforce Training India  

Sharath said...

You post is very informative and contents are outstanding. Thanks for sharing such useful info.

Zikia | OJOPLUS | Best Immune Booster Tablets in India

Oracle Applications Technical World said...

Thank you so much dear, this is a great places I have found to learn things quickly.

Realtime Experts said...

This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information.
Oracle apps Training in Bangalore

Realtime Experts said...

Its really helpful for the users of this site. I am also searching about these type of sites now a days.
Oracle apps Training in Bangalore

Nftwiiz said...

I recently stumbled upon this blog post while looking for information on NFT marketplace development services, and I was impressed by the insights shared here. I particularly appreciate the emphasis on finding a reliable and experienced NFT development service provider to ensure a secure and successful platform.

Speaking of which, I also checked out the link to NFTWIIZ's marketplace development services, and I must say I'm intrigued. Their website boasts an impressive portfolio of NFT projects across various industries, and their team seems to have the technical expertise and creativity to bring any NFT concept to life. I'm also glad to see that they prioritize security and scalability in their development process, which are crucial for any NFT marketplace.

Overall, I think NFTWIIZ could be a great option for anyone looking to create their own NFT marketplace or enhance an existing one. I'd love to hear from anyone who has worked with them and hear more about their experience. Thanks for sharing this valuable information!

NFT Marketplace Development service

Post a Comment