report zdemo_vl09.
parameters p_vbeln type vbeln_vl.
data:lt_likp type table of likp.
data:ls_likp like line of lt_likp.
data:lt_mesg like table of mesg.
data:ls_mesg like line of lt_mesg.
data:ls_emkpf type emkpf.
select single * from likp into ls_likp where vbeln = p_vbeln.
call function 'WS_REVERSE_GOODS_ISSUE'
exporting
i_vbeln = ls_likp-vbeln
i_budat = sy-datum
i_tcode = 'VL09'
i_vbtyp = ls_likp-vbtyp "SD 凭证类别
importing
es_emkpf = ls_emkpf
tables
t_mesg = lt_mesg
exceptions
error_reverse_goods_issue = 1
others = 2.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
write ls_emkpf-mblnr.
DEMO:冲销交货单过账凭证WS_REVERSE_GOODS_ISSUE
原创sapLiuMeng ©著作权
©著作权归作者所有:来自51CTO博客作者sapLiuMeng的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
交货单过账
转自:https://www.cnblogs.com/sapSB/p/5771585.html
交货单 公众号 html 二维码 新知识 -
冲销已过账外向交货单BAPI:WS_REVERSE_GOODS_ISSUE_SAP刘梦_新浪博客
前台操作:VL09填写装运点 和交货单点击定义日期,将输入的实际
python sql vue mysql 机器学习 -
DEMO:交货单过账WS_DELIVERY_UPDATE_SA
交货单过账BAPI_OUTB_DELIVERY_CONFIRM_DEC会有冲销不
python mysql jquery json postgres -
交货单过账报错
交货单过账报错
交货单 公众号 二维码 新知识