BAPI_PO_CHANGE 采购订单修改服务

修改服务页签里面的价格和数量,达到修改净价和条件里面金额的目的

数据可以通过采购订单查询ESLH和ESLL表获取

"-----------------------------------------@斌将军--------------------------------------------
POITEM-PO_ITEM = '00010'.
POITEM-NET_PRICE = Z_NETPR.
POITEM-PCKG_NO = '66628'.
APPEND POITEM .


POITEMX-PO_ITEM = '00010'.
POITEMX-PO_ITEMX = 'X'.
POITEMX-NET_PRICE = 'X'.
POITEMX-PCKG_NO = 'X'.
APPEND POITEMX.

CLEAR:POSERVICES.
POSERVICES-PCKG_NO = '66628'. "头包
POSERVICES-LINE_NO = 1 .
POSERVICES-EXT_LINE = '0000000000' .
POSERVICES-OUTL_LEVEL = '0'.
POSERVICES-OUTL_NO = ' '.
POSERVICES-OUTL_IND = 'X'.
POSERVICES-SUBPCKG_NO = '66629'.
POSERVICES-EDITION = '0000' .
APPEND POSERVICES.

CLEAR:POSERVICES.
POSERVICES-PCKG_NO = '66629'. "子包
POSERVICES-LINE_NO = 2.                  
POSERVICES-EXT_LINE = '10'.
POSERVICES-OUTL_LEVEL = '0'.
POSERVICES-EDITION = '0000' .
POSERVICES-BASE_UOM = 'LE' .
POSERVICES-QUANTITY = 1 .
POSERVICES-PRICE_UNIT = '1' .
POSERVICES-OVF_TOL = '0' .
POSERVICES-SHORT_TEXT = '测试'.
POSERVICES-GR_PRICE = Z_NETPR .
POSERVICES-MATL_GROUP = '&DB001'.
APPEND POSERVICES.

CLEAR:POSRVACCESSVALUES.
POSRVACCESSVALUES-PCKG_NO = '66629'.
POSRVACCESSVALUES-LINE_NO = '2'.
POSRVACCESSVALUES-QUANTITY = 1.
POSRVACCESSVALUES-NET_VALUE = Z_NETPR.
APPEND POSRVACCESSVALUES.

CALL FUNCTION 'BAPI_PO_CHANGE'
  EXPORTING
    PURCHASEORDER     = PURCHASEORDER
* IMPORTING
*    EXPHEADER         =
*      EXPPOEXPIMPHEADER =
  TABLES
       RETURN            = RETURN[]
       POITEM            = POITEM
       POITEMX           = POITEMX
       POCOND            = T_COND
       POCONDX           = T_CONDX
       POSERVICES        = POSERVICES
       POSRVACCESSVALUES = POSRVACCESSVALUES
"-----------------------------------------@斌将军--------------------------------------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值