zoukankan      html  css  js  c++  java
  • BAPI_PO_CREATE1 创建采购订单时价格的处理函数

    When you create a purchase order, values I, U and D refer to the conditionsthat were derived automatically, that is, you can also use U and D already during the creation. When you change a purchase order, they also refer to existing conditions.

     

     

    Prerequisite

     

    You must implement Note 494759 in your system to use these functions.

     

     

    Example A: CHANGE_ID = 'I'

     

    You create a purchase order with BAPI_PO_CREATE1. The system shoulddetermine the conditions for item 10 automatically. In addition, however, you want to calculate 3 % freight costs. You use condition type FRA1 for the freight costs. Then tables POCOND and POCONDX must be filled with the following values:

     

     

               POCOND-ITM_NUMBER = 10 (item number)

     

               POCOND-COND_TYPE = FRA1 (condition type)

     

               POCOND-COND_VALUE = 3.0 (condition value)

     

               POCOND-CURRENCY = %

     

               POCOND-CHANGE_ID = I

     

     

               POCONDX-ITM_NUMBER = 10

     

               POCONDX-ITM_NUMBERX = X

     

               POCONDX-COND_TYPE = X

     

               POCONDX-COND_VALUE = X

     

               POCONDX-CURRENCY = X

     

               POCONDX-CHANGE_ID = X

     

     

    Example B: CHANGE_ID = 'U'

     

    You create a purchase order with BAPI_PO_CREATE1. The system determines a price (condition type PB00) of 90 EUR for item 10. You want to change the 90 EUR to 100 EUR. To do this, fill tables POCOND and POCONDX with the following values:

     

     

               POCOND-ITM_NUMBER = 10

     

               POCOND-COND_TYPE = PB00

     

               POCOND-COND_VALUE = 100

     

               POCOND-CURRENCY = EUR

     

               POCOND-CHANGE_ID = U

     

     

               POCONDX-ITM_NUMBER = 10

     

               POCONDX-ITM_NUMBERX = X

     

               POCONDX-COND_TYPE = X

     

               POCONDX-COND_VALUE = X

     

               POCONDX-CURRENCY = X

     

               POCONDX-CHANGE_ID = X

     

     

    Example C: CHANGE_ID = 'D'

     

    Now you want to use BAPI_PO_CHANGE to delete the freight costs added in example A again. To do this, fill tables POCOND and POCONDX with the following values:

     

     

               POCOND-ITM_NUMBER = 10

     

               POCOND-COND_TYPE = FRA1

     

               POCOND-CHANGE_ID = D

     

     

               POCONDX-ITM_NUMBER = 10

     

               POCONDX-ITM_NUMBERX = X

     

               POCONDX-COND_TYPE = X

     

               POCONDX-CHANGE_ID = X

     

     

    It is not necessary to transfer additional item data. Theonlyinformation that must be transferred in addition to the condition tables is the purchase order number (PURCHASEORDER field).

     

     

    1. POCONDHEADER-CHANGE_ID

    The header conditionsaretransferred using the POCONDHEADER table. Here, the CHANGE_ID field has the same function as in the POCOND table (see above).

     

     

    Prerequisite

     

    You must implement Note 494759 in your system to use these functions.

     

     

    Example

     

    You create a purchase order with several items and want to distributethe amount 100 EUR to the items on a percentage basis. You defined condition type HB00 for this purpose. Then the POCONDHEADER and POCONDHEADERX tables must be filled as follows:

     

     

               POCONDHEADER-COND_TYPE = HB00

     

               POCONDHEADER-COND_VALUE = 100

     

               POCONDHEADER-CURRENCY = EUR

     

               POCONDHEADER-CHANGE_ID = I

     

     

               POCONDHEADERX-COND_TYPE = X

     

               POCONDHEADERX-COND_VALUE = X

     

               POCONDHEADERX-CURRENCY = X

     

               POCONDHEADERX-CHANGE_ID = X

  • 相关阅读:
    mysql-Invalid use of group function-聚合函数不能直接使用在where后面-使用exists,外查询与子查询应条件关联
    python-数据库之pymysql模块(连接对象-游标对象-执行-获取值或者提交事务)
    python作业-99乘法表作业,注意制表符合print结束符以及外层和里层怎么确定的,以及闰年
    python学习笔记-if_while_for_break_continue
    python-python中的Debug大法
    python-常用的几种格式化方法
    python学习一周总结
    python学习笔记-列表,字典,以及函数返回值
    python-注释,变量命名和规范笔记
    OpenJudge 求重要逆序对数
  • 原文地址:https://www.cnblogs.com/elegantok/p/2548130.html
Copyright © 2011-2022 走看看