zoukankan      html  css  js  c++  java
  • Oracle EBS INV 获取现有量等值

    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);
    
    BEGIN
    apps.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 => 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 => '&Subinventory'
    , 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('Quantity res oh :'||to_char(l_qty_res_oh));
    dbms_output.put_line('Quantity res :'||to_char(l_qty_res));
    dbms_output.put_line('Quantity sug :'||to_char(l_qty_sug));
    dbms_output.put_line('Quantity ATT :'||to_char(l_qty_att));
    dbms_output.put_line('Quantity ATR :'||to_char(l_qty_atr));
    
    end;
    

      

    土豆君
  • 相关阅读:
    接口的使用
    web service 实现无刷新返回一个表
    webservice 实现动态刷新
    js 实现子树选中时父目录全被选中
    相册的简单实现
    基于角色的身份验证3
    一个购物车的简单实现(多层开发)
    asp2.0 中实现 msdn 左边导航栏
    xsl 中 xsl:copy 的使用
    企业库中使用transaction(企业库中的列子)
  • 原文地址:https://www.cnblogs.com/jenrry/p/10020823.html
Copyright © 2011-2022 走看看