2017-03-25
MD 主数据
1.创建物料主数据 CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' 2.创建供应商 CALL METHOD VMD_EI_API=>MAINTAIN_BAPI 3.创建客户 CALL METHOD CMD_EI_API=>MAINTAIN_BAPI 4.创建信息记录 CALL FUNCTION 'ME_INITIALIZE_INFORECORD'. CALL FUNCTION 'ME_DIRECT_INPUT_INFORECORD' 5.创建货源清单 CALL FUNCTION 'ME_DIRECT_INPUT_SOURCE_LIST' 6.创建商品进价 CALL FUNCTION 'BAPI_PRICES_CONDITIONS' EXPORTING PI_PHYSICAL_DELETION = 'X' TABLES TI_BAPICONDCT = LT_CONDCT TI_BAPICONDHD = LT_CONDHD TI_BAPICONDIT = LT_CONDIT TI_BAPICONDQS = LT_CONDQS TI_BAPICONDVS = LT_CONDVS TO_BAPIRET2 = LT_RET_MES TO_BAPIKNUMHS = LT_KNUMHS TO_MEM_INITIAL = LT_MEM_INITIAL EXCEPTIONS UPDATE_ERROR = 1 OTHERS = 2. 7.创建商品售价 IF RB_CS EQ 'X'. PERFORM FRM_CS_DATA. ELSEIF RB_DQ EQ 'X'. PERFORM FRM_DQ_DATA. ELSEIF RB_BH EQ 'X'. PERFORM FRM_BH_DATA. ENDIF. CALL FUNCTION 'BAPI_PRICES_CONDITIONS' EXPORTING PI_PHYSICAL_DELETION = 'X' TABLES TI_BAPICONDCT = GT_CONDCT TI_BAPICONDHD = GT_CONDHD TI_BAPICONDIT = GT_CONDIT TI_BAPICONDQS = GT_CONDQS TI_BAPICONDVS = GT_CONDVS TO_BAPIRET2 = GT_RET_MES TO_BAPIKNUMHS = GT_KNUMHS TO_MEM_INITIAL = GT_MEM_INITIAL EXCEPTIONS UPDATE_ERROR = 1 OTHERS = 2.
MM 物料管理
SD 销售分销
PP 生产计划
FI 财务会计
CO 管理会计
QM 质量管理
WM 仓库管理
CRM 客户管理