BAPI_GOODSMVT_CREATE物料凭证创建与部分冲销
作者:互联网
'BAPI_GOODSMVT_CREATE可以实现物料凭证创建和部分冲销
全部冲销可以使用BAPI_GOODSMVT_CANCEL
抬头部分给值:
行项目部分给值(根据移动类型有差异):
冲销时与正常创建凭证一样,只是BAPI2017_GM_ITEM_CREATE-XSTOB = 'X'. "冲销标志 移动类型为正向,比如261发料,做262的冲销,移动类型仍给261,不需要修改,此处打叉即可
MBST冲销整个凭证:
bapi_goodsmvt_create中goodsmvt_code对应值(T158G)
01 MB01
02 MB31
03 MB1A
04 MB1B
05 MB1C
06 MB11
07 MB04
BAPI2017_GM_ITEM_CREATE-mvt_ind(Domain:KZBEW) - Movement Indicator
* Goods movement w/o reference
* B - Goods movement for purchase order
* F - Goods movement for production order
* L - Goods movement for delivery note
* K - Goods movement for kanban requirement (WM - internal only)
* O - Subsequent adjustment of "material-provided" consumption
* W - Subsequent adjustment of proportion/product unit material
一个部分冲销的例子;
标签:BAPI,Goods,CREATE,冲销,GOODSMVT,movement 来源: https://blog.51cto.com/15057820/2628614