zoukankan      html  css  js  c++  java
  • [BAPI]取得生产订单详细信息[BAPI_PRODORD_GET_DETAIL]

    介绍一个PP模块的BAPI, “BAPI_PRODORD_GET_DETAIL”,通过这个BAPI能取得PP订单的详细信息.

    具体能读取的详细信息包括:

    • 抬头(Header)
    • 行项目(Item)
    • 工序中的Sequence
    • 工序(Operation)
    • 子工序(Suboperation or secondary resource)
    • 触发点(Trigger point)
    • 组件(Component)
    • Production resource/tool

    可以通过输入参数ORDER_OBJECTS指定:

    其他:执行这个BAPI需要权限对象 C_AFKO_AWK有03 (display activity).

    一段简单的例子代码:取得PP订单组件(Components)和工序(operations)

      DATA: lwa_object              TYPE bapi_pp_order_objects, "objects
            lit_components          TYPE TABLE OF bapi_order_component, "components.
            lit_operations          TYPE TABLE OF bapi_order_operation1. "operations  
       
       lwa_object-components = abap_true.
       lwa_object-operations = abap_true.
       CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
          EXPORTING
             number        = <lfs_afpo>-aufnr
             order_objects = lwa_object
          TABLES
             component     = lit_components
             operation     = lit_operations.

    生产订单可以在前台通过tcode CO03查看。

    以上。

  • 相关阅读:
    SQL注入的一般步骤及防范方法
    防止SQL注入的五种方法
    document.getElementById("orderform").submit() 提交给了谁?
    页面调试-F12
    rs.last()续
    rs.last()
    14课后习题
    HashMap
    链表
    习题
  • 原文地址:https://www.cnblogs.com/datie/p/11434472.html
Copyright © 2011-2022 走看看