SD 交货单过账

5 篇文章 1 订阅

DATA: lw_header TYPE bapiobdlvhdrcon,
lw_header_control TYPE bapiobdlvhdrctrlcon,
lw_delivery TYPE bapiobdlvhdrcon-deliv_numb,
lw_header_deadlines TYPE bapidlvdeadln,
lt_header_deadlines TYPE TABLE OF bapidlvdeadln,
lw_return TYPE bapiret2,
lt_return TYPE TABLE OF bapiret2.

*根据销售单查找
SELECT SINGLE a~vbeln
FROM likp AS a INNER JOIN lips AS b ON a~ vbeln = b~ vbeln
INTO lw_delivery
WHERE b~vgbel =l_vbeln.

    lw_header-deliv_numb            = lw_delivery.
    lw_header_control-deliv_numb    = lw_delivery.
    lw_header_control-post_gi_flg   = 'X'.
    lw_header_control-gdsi_date_flg = 'X'.

*过账
CALL FUNCTION ‘BAPI_OUTB_DELIVERY_CONFIRM_DEC’
EXPORTING
header_data = lw_header
header_control = lw_header_control
delivery = lw_delivery
TABLES
return = lt_return.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值