代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
OracleEBS
】
Oracle INV现用量,可保留量,可处理量
作者:
Dezai.CN
/ 发布于
2013/2/12
/
1401
CREATE OR REPLACE PROCEDURE get_inv_quantity(p_organization_id IN NUMBER , p_inventory_item_id IN NUMBER , p_lot_number IN VARCHAR2 , p_subinventory_code IN VARCHAR2 , p_locator_id IN NUMBER , x_onhand_qty OUT NUMBER , x_reservable_qty OUT NUMBER , x_transactable_qty OUT NUMBER) IS l_return_status VARCHAR2(1) ; l_msg_count NUMBER; l_msg_data VARCHAR2(2000); l_is_revision_control BOOLEAN := TRUE ; l_is_lot_control BOOLEAN := TRUE ; l_is_serial_control BOOLEAN := FALSE ; p_revision VARCHAR2(100); l_qoh NUMBER; l_rqoh NUMBER; l_qr NUMBER; l_qs NUMBER; l_att NUMBER; l_atr NUMBER; p_lpn_id NUMBER; BEGIN IF p_lot_number IS NULL THEN l_is_lot_control := FALSE ; END IF; IF p_locator_id IS NULL THEN l_is_lot_control := FALSE ; END IF; inv_quantity_tree_pub.query_quantities ( p_api_version_number => 1.0 , p_init_msg_lst => 'F' , x_return_status => l_return_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 => 1 , p_is_revision_control => FALSE -- No Revision Control , p_is_lot_control => l_is_lot_control , p_is_serial_control => l_is_serial_control , p_demand_source_type_id => 2 , p_revision => NULL , p_lot_number => p_lot_number , p_lot_expiration_date => sysdate , p_subinventory_code => p_subinventory_code , p_locator_id => p_locator_id , p_onhand_source => 3 , x_qoh => l_qoh , x_rqoh => l_rqoh , x_qr => l_qr , x_qs => l_qs , x_att => l_att , x_atr => l_atr , p_lpn_id => NULL); IF (l_return_status = 'S') THEN x_onhand_qty := l_qoh; x_reservable_qty := l_atr; ELSE l_return_status :='F'; RETURN ; END IF ; inv_quantity_tree_pub.query_quantities ( p_api_version_number => 1.0 , p_init_msg_lst => 'F' , x_return_status => l_return_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 , p_is_revision_control => FALSE -- No Revision Control , p_is_lot_control => l_is_lot_control , p_is_serial_control => l_is_serial_control , p_demand_source_type_id => 2 , p_revision => NULL , p_lot_number => p_lot_number , p_lot_expiration_date => sysdate , p_subinventory_code => p_subinventory_code , p_locator_id => p_locator_id , p_onhand_source => 3 , x_qoh => l_qoh , x_rqoh => l_rqoh , x_qr => l_qr , x_qs => l_qs , x_att => l_att , x_atr => l_atr , p_lpn_id => NULL); IF (l_return_status = 'S') THEN x_onhand_qty := l_qoh; x_transactable_qty := l_att; ELSE l_return_status :='F'; RETURN; END IF ; END get_inv_quantity ; create or replace function get_reservable_qty(p_organization_id number,p_inventory_item_id number,p_sub varchar2) return number is l_onhand_qty number; l_reservable_qty number; l_transactable_qty number; begin --p_sub可以为空,为空时,所有库别的可保留数量 get_inv_quantity(p_organization_id => p_organization_id, p_inventory_item_id => p_inventory_item_id, p_lot_number => null, p_subinventory_code => p_sub, p_locator_id => null, x_onhand_qty => l_onhand_qty, x_reservable_qty => l_reservable_qty, x_transactable_qty => l_transactable_qty); return l_reservable_qty; end get_reservable_qty;
试试其它关键字
同语言下
.
设置窗体的位置
.
初始化操作
.
在FORMS调用WEB页面
.
判断数据块的项是否为空
.
EBS 循环处理块记录
.
Oracle Form中调用并发请求生成报表并输出为PDF的方法
.
添加并发程序到指定职责API
.
EBS请求查询输出
.
删除 AP 发票相关脚本
.
ebs安全性
可能有用的
.
设置窗体的位置
.
初始化操作
.
在FORMS调用WEB页面
.
判断数据块的项是否为空
.
EBS 循环处理块记录
.
Oracle Form中调用并发请求生成报表并输出为PDF的方法
.
添加并发程序到指定职责API
.
EBS请求查询输出
.
删除 AP 发票相关脚本
.
ebs安全性
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3