货物移动,MB31,MB1A等
来源:互联网 发布:js访问style标签样式 编辑:程序博客网 时间:2024/06/10 05:06
* GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
* 02 - MB31 - Goods Receipts for Prod Order
* 03 - MB1A - Goods Issue
* 04 - MB1B - Transfer Posting
* 05 - MB1C - Enter Other Goods Receipt
* 06 - MB11
* 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
*
REPORT zbapi_goodsmovement.
DATA: BEGIN OF gmhead.
INCLUDE STRUCTURE bapi2017_gm_head_01.
DATA: END OF gmhead.
DATA: BEGIN OF gmcode.
INCLUDE STRUCTURE bapi2017_gm_code.
DATA: END OF gmcode.
DATA: BEGIN OF mthead.
INCLUDE STRUCTURE bapi2017_gm_head_ret.
DATA: END OF mthead.
DATA: BEGIN OF itab OCCURS 100.
INCLUDE STRUCTURE bapi2017_gm_item_create.
DATA: END OF itab.
DATA: BEGIN OF errmsg OCCURS 10.
INCLUDE STRUCTURE bapiret2.
DATA: END OF errmsg.
DATA: wmenge LIKE iseg-menge,
documnet_num LIKE mseg-mblnr.
START-OF-SELECTION.
gmhead-pstng_date = sy-datum.
gmcode-gm_code = '02'.
itab-move_type = '101'.
itab-mvt_ind = 'F'.
itab-plant = '1000'.
itab-material = '5010-04577'.
itab-entry_qnt = 2.
itab-orderid = '000038340902'.
itab-stge_loc = 'K100'.
APPEND itab.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gmhead
goodsmvt_code = gmcode
goodsmvt_headret = mthead
IMPORTING
materialdocument = documnet_num
TABLES
goodsmvt_item = itab
return = errmsg.
LOOP AT errmsg WHERE type = 'E' OR
type = 'A'.
WRITE:/ errmsg-message.
ENDLOOP.
IF sy-subrc <> 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
WRITE: documnet_num.
ENDIF.
- 货物移动,MB31,MB1A等
- sap货物移动相关的bapi(MIGO/MB1A)
- BAPI调用 - SAP 货物移动相关Bapi(MIGO/MB1A)
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- 收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- SAP ABAP收货或者货物移动(MIGO,MB11,MB1A)在保存时候的增强点
- MM发货移动收货MB01/MB1A/MB1C/MB21/MIGO/等用到的user-exitMBCF0002
- BAPI_GOODSMVT_CREATE-(MB1A等收貨)
- BAPI货物移动时报错
- BAPI:BAPI_GOODSMVT_CREATE货物移动例子
- 【问题】在对生产订单投料、收货等操作完成后在“记入文档的货物移动”无记录
- 货物移动_免费收货(MvT511)
- 货物移动_免费收货(MvT511)
- docstrings
- 程序员的十层楼
- 第一个Python程序
- Hadoop and Linux kernel 2.6.27 - epoll limits (java.io.IOException:Too many open files)
- Python应用第一波:文件打包备份
- 货物移动,MB31,MB1A等
- Windows2003下安装MySQL时出现的鉴权错误
- 订单确认bapi co15
- Using PERL,VB.NET,JAVASCRIPT to Resize pictures
- sscanf() - 从一个字符串中读进与指定格式相符的数据.
- DB2 账户及用户标识
- EXCEL中从单元格中取日期截止到月份的公式及示例
- 利用存储过程实现交叉表格式数据查询的一种通用方法
- struts使用总结一:慎用actionServlet成员变量,actionServlet生命周期,actionForm生命周期,struts上传注意事项