我是靠谱客的博主 俊秀身影,最近开发中收集的这篇文章主要介绍创建货位API:Create Stock Locator By Using API(EBS R12),觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

项目上对一期的采购接受接口导入程序进行更改,增加货位信息,要求:货位 = 子库存 + 项目 + 任务。由于子库启用了动态货位控制,所以需要在程序中动态创建货位,所以周折了一番。

    1. 接口表: rcv_transactions_interface

       字段: locator_id

       API:    inv_loc_wms_pub.create_locator


    2. 注意点: 动态创建货位时,首先会创建货位弹性域。而创建货位弹性域时,对子库存会进行值集的验证(INV_SRS_SUBINV),值集INV_SRS_SUBINV中,WHERE里对PROFILE.MFG_ORGANIZATION_ID做了限制,所以,在并发请求中,需要进行fnd_profile.put('MFG_ORGANIZATION_ID',111)的处理。否则会报值集验证不通过。  


  3. 范例脚本

DECLARE
x_return_status         VARCHAR2(1000);
x_msg_count             NUMBER;
x_msg_data              VARCHAR2(1000);
x_inventory_location_id NUMBER;
x_locator_exists        VARCHAR2(100);
BEGIN
BEGIN
    fnd_global.apps_initialize(user_id      => 1192,
                               resp_id      => 51519,
                               resp_appl_id => 211);
    fnd_profile.put('MFG_ORGANIZATION_ID',111);
END;
inv_loc_wms_pub.create_locator(x_return_status            => x_return_status,
                                 x_msg_count                => x_msg_count,
                                 x_msg_data                 => x_msg_data,
                                 x_inventory_location_id    => x_inventory_location_id,
                                 x_locator_exists           => x_locator_exists,
                                 p_organization_id          => 111,
                                 p_organization_code        => 'T01',
                                 p_concatenated_segments    => '.1995.PJ_TEST_01.1..',
                                 p_description              => NULL,
                                 p_inventory_location_type => 3,
                                 p_picking_order            => NULL,
                                 p_location_maximum_units   => NULL,
                                 p_subinventory_code        => '1115',
                                 p_location_weight_uom_code => NULL,
                                 p_max_weight               => NULL,
                                 p_volume_uom_code          => NULL,
                                 p_max_cubic_area           => NULL,
                                 p_x_coordinate             => NULL,
                                 p_y_coordinate             => NULL,
                                 p_z_coordinate             => NULL,
                                 p_physical_location_id     => NULL,
                                 p_pick_uom_code            => NULL,
                                 p_dimension_uom_code       => NULL,
                                 p_length                   => NULL,
                                 p_width                    => NULL,
                                 p_height                   => NULL,
                                 p_status_id                => 1,
                                 p_dropping_order           => NULL);

COMMIT;
END;

 

最后

以上就是俊秀身影为你收集整理的创建货位API:Create Stock Locator By Using API(EBS R12)的全部内容,希望文章能够帮你解决创建货位API:Create Stock Locator By Using API(EBS R12)所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(39)

评论列表共有 0 条评论

立即
投稿
返回
顶部