1.Using script to submit INV Manager to process MMTT
/*
* When prompted for user_id, resp_id and resp_appl_id, ask ct enter the correct values for
* these variables. The values can be obtained by logging into Inventory
* reponsibility and from menu Help->Diagnostics->Examine, select block as
* $PROFILES and field as the 3 variables and note down the values of each.
*/
SET SEVEROUTPUT ON
declare
l_header_id number;
p_userid NUMBER := &user_id;
p_respid NUMBER := &resp_id;
p_applid NUMBER := &resp_appl_id;
retmsg varchar2(240);
retval number;
prnmsg varchar2(256);
begin
select mtl_material_transactions_s.nextval
into l_header_id from dual;
update mtl_material_transactions_temp
set process_flag = 'Y', lock_flag = NULL, transaction_mode = 3,
error_code = NULL, error_explanation = NULL,
transaction_header_id = l_header_id
where nvl(transaction_status, -999) <> 2
and transaction_action_id = 8 and physical_adjustment_id is not null
and transaction_source_id in (3694,3674);
fnd_global.apps_initialize(p_userid, p_respid, p_applid);
--Call Online TM
retval := INV_LPN_TRX_PUB.PROCESS_LPN_TRX(p_trx_hdr_id => l_header_id,
x_proc_msg => retmsg,
p_proc_mode => 1);
if (length(retmsg) > 200) then
prnmsg := substr(retmsg, 1, 200);
else
prnmsg := retmsg;
end if;
if (retval = 0) then
dbms_output.put_line(' All OK . msg:'||prnmsg);
commit; --TM success so commit.
else
dbms_output.put_line(' Error . msg:'||prnmsg);
rollback; --TM failed so rollback insert and update.
end if;
end;
/
2.Using script to submit INV Manager to process MTI
DECLARE
l_ret_val NUMBER ;
l_return_status VARCHAR2(1);
l_msg_data VARCHAR2(2000);
l_trans_count NUMBER ;
l_msg_count NUMBER ;
l_error_code VARCHAR2(100);
l_error_explanation VARCHAR2(2000);
BEGIN
fnd_profile.put('INV_DEBUG_TRACE', '1');
fnd_profile.put('INV_DEBUG_FILE', '/sqlcom/log/mz121dv3/utl/tm28.log');
fnd_profile.put('INV_DEBUG_LEVEL', 11);
fnd_profile.put('USER_ID', '1068');
-- fnd_profile.put('SECURITY_GROUP_ID', '0');
dbms_output.put_line('Calling TM');
l_ret_val := INV_TXN_MANAGER_PUB.process_Transactions(
p_api_version => 1.0
, p_init_msg_list => fnd_api.g_false
, p_commit => fnd_api.g_false
, p_validation_level => fnd_api.g_valid_level_full
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
, x_trans_count => l_trans_count
, p_table => 1
, p_header_id => 22183447 );
dbms_output.put_line('process_lot_txns: fn ret : ' || l_ret_val);
dbms_output.put_line('process_lot_txns: ret value from TM: ' || l_return_status);
dbms_output.put_line('process_lot_txns: processed count: ' || l_trans_count);
IF l_return_status <> 'S' THEN
BEGIN
SELECT error_code
, error_explanation
INTO l_error_code
, l_error_explanation
FROM mtl_transactions_interface
WHERE transaction_header_id = 22183219
AND ROWNUM = 1;
dbms_output.put_line('err code: ' || l_error_code);
dbms_output.put_line('err expl: ' || l_error_explanation);
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
END IF; --END IF ret sts <> 'S'
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('process_lot_txns: Exception raised');
ROLLBACK;
END ;
转载请注明出处:
http://blog.csdn.net/pan_tian/article/details/7711155
======EOF======
分享到:
相关推荐
该程序完成8个脉冲信号的脉压、MTI/MTD的Matlab程序
该程序完成16个脉冲信号的【脉压、动目标显示/动目标检测(MTI/MTD)】
主要是关于MTI和MTD的原理与应用的介绍,比较系统。
%================================================================%% 雷达参数 %%================================================================%C=3.0e8; %光速(m/s)RF=3.140e9/2; %雷达射频 1.57GHzLambda...
Matalb联合DSP实现三个动目标距离分辨。包含Matlab仿真源码与图示,以及VisualDSP++ C 和汇编源码附有简单的MTI/MTD理论说明。
该程序完成16个脉冲信号的脉压、动目标显示/动目标检测(MTI/MTD)
StaMPS/MTI Manual Version 3.3b1 基于StaMPS的PS时序分析 、SBAS时序分析
该程序完成16个脉冲信号的【脉压、动目标显示/动目标检测(MTI/MTD)】
该程序完成16个脉冲信号的脉压、MTI/MTD ===========% % 程序中根据每个学生学号的末尾三位(依次为X=1 Y=6 Z=4)来决定仿真参数, 示例:学号后三位为210 X=2 Y=1 Z=0 % 目标距离为[2800 8025 8025 9000+(Y*10+Z...
雷达系统仿真,该程序完成16个脉冲信号的【脉压、动目标显示/动目标检测(MTI/MTD)
适用于雷达动目标检测的仿真代码,适合雷达信号处理的同学学习使用,亲测有效。
mti的matlab程序 ,已经仿真通过
惯性元件资料,MTI系列资料,选型使用。Xsens 的 MTi 产品目前有 7 名家庭成员,功能范围从惯性测量单元(IMU)到 一个完全集成 GPS / INS 的完整的解决方案。所有的产品都包含 3D 惯性传感器 (ISA:陀螺仪和加速度计)...
雷达系统仿真,从生成回波到CFAR,包括PC,MTI,MTD等处理
重频参差可以推远盲速,这时的最优MTI滤波器设计
对雷达MTI的matlam仿真,包括消除盲速,不同参差比下的MTI等
xsens 公司IMU上位机 MT_Manager_User_Manual,MTI使用手册,
使用用于形状分类的 FD 傅立叶系数进行形状描述。 步骤 : 1 . 查找边缘图像的索引边界(输入二进制边缘图像,请参见测试) 2... http://www.tsi.enst.fr/tsi/enseignement/ressources/mti/descript_fourier/Part2.html
该程序完成16个脉冲信号的脉压、MTI/MTD
MTI and pulsed Doppler radar with MATLAB的matlab源代码