MM Module
1. Bapi_material_savedata Create material Master data
Note the use of parameter extensionin, you can create custom fields
For example wa_bapi_te_mara-material = Itab_up-matnr.
t_extensionin-structure = ' Bapi_te_mara '.
T_extensionin-valuepart1 = Wa_bapi_te_mara.
APPEND T_extensionin.
Wa_bapi_te_marax-material = Itab_up-matnr.
t_extensioninx-structure = ' Bapi_te_marax '.
T_extensioninx-valuepart1 = Wa_bapi_te_marax.
APPEND T_extensioninx.
2. Creation of bapi_objcl_create Category View
3, bapi_objcl_getclasses Category view to get more information
4, Bapi_material_savereplica the expansion of the material view
5, bapi_goodsmvt_create Create material voucher Note Table t158g can decide Goodsmvt_code
Goodsmvt_code parameter corresponding value MB01 101 161
MB31
Mb1a Z05 Z06 Z09 Z10 551 261 262 Z25 Z26
701 702 251 252
Mb1b Z39 Z40 Z81
mb1c Z03 Z04 z35 Z36 Z38 Z11 Z12 Z17 Z18 Z49 Z50 Z47 Z48
MB11 Z38 Z18 Z17
MB04
6. Bapi_goodsmvt_cancel Reverse Material voucher
7, Bapi_pr_create Create PR
8. Bapi_po_create1 Create PO
9. Bapi_po_change Modify PO and delete PO
10, ws_reverse_goods_issue reversal of delivery order posting issue
11. Bapi_reservation_create1 Create Reservation
12. Bapi_reservation_change Modify and delete reservations
MM module BAPI