BAPI导入物料主数据
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
BAPI导入物料主数据
REPORT ZMMMDE001 NO STANDARD PAGE HEADING LINE-SIZE 170 MESSAGE-ID MG.
*----------------------------------------------------------------------* * Program : ZMMMDE001 * * Author : Patrick,Song * * Date : Sep 10, 2008 * * Code type : conversion * * Version : new creation * * (interface/conversion/on-line transaction/report) * * * *----------------------------------------------------------------------* * Error handling : * *----------------------------------------------------------------------* * 1. * * * *----------------------------------------------------------------------* * Change log : * *----------------------------------------------------------------------* * CR# : * * Corr. no. : * * Date : * * Author : * * Change : * * * *----------------------------------------------------------------------*
*----------------------------------------------------------------------* * include program & subrouting * *----------------------------------------------------------------------* INCLUDE : ZBCDWI000 .
TYPE-POOLS: KCDE.
TYPE-POOLS: SLIS.
*----------------------------------------------------------------------* * tables declaration * *----------------------------------------------------------------------* TABLES: AUSP, " Characteristic Values MARC, " Plant Data for Material
MARA, " General Material Data
MVKE, " Sales Data for Material
T001L, " Storage Locations
T006A, " Assign Internal to Language-Dependent Unit
T134. " Material Types
*----------------------------------------------------------------------*
* selection screen definition * *----------------------------------------------------------------------* * Input file information block B1 SELECTION-SCREEN BEGIN OF BLOCK A1 WITH FRAME TITLE TEXT-SC1 . PARAMETER: P_BASIC LIKE RLGRAP-FILENAME OBLIGATORY .
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME OBLIGATORY .
SELECTION-SCREEN END OF BLOCK A1.
PARAMETERS: P_MMAM AS CHECKBOX DEFAULT SPACE .
PARAMETERS: P_MARC AS CHECKBOX DEFAULT SPACE .
PARAMETERS: P_QMDATA AS CHECKBOX DEFAULT SPACE .
*PARAMETERS: P_CLASS AS CHECKBOX .
PARAMETERS: P_BKJOB AS CHECKBOX DEFAULT SPACE .
*----------------------------------------------------------------------* * Internal tables and field strings * *----------------------------------------------------------------------* *-* to store uploaded data * define table to store tempoary data => Material Views Selection DATA INT_TAB TYPE KCDE_INTERN_STRUC OCCURS 0 WITH HEADER LINE.
*----------------------------------------------------------------------* * Global program variables * *----------------------------------------------------------------------* * TO STORE MATERIAL MASTER DATA WHICH NEED TO BE UPLOADED
*** Generated data section with specific formatting - DO NOT CHANGE *** DATA: BEGIN OF ITAB OCCURS 0.
DATA: MATNR(018). "物料号 ****
DATA: BISMT(018). "旧物料号****
DATA: MAKTX(040). "物料描述****
DATA: MBRSH(001). "行业领域****
DATA: MTART(004). "物料类型****
DATA: WERKS(004). "工厂 ****
DATA: LGORT(004). "库存地点****
DATA: VKORG(004). "销售组织****
DATA: VTWEG(002). "分销渠道****
DATA: MEINS(003). "基本计量单位****
DATA: SPART(002). "产品组****
DATA: MSTAE(002). "跨工厂物料状态
DATA: MATKL(009). "物料组****
DATA: GEWEI(003). "重量单位****
DATA: BRGEW(017). "毛重***
DATA: NTGEW(017). "净重***
DATA: ZEINR(022). "产品图号***