1.商品主数据
(1)一般用BAPI,
*&St2.通过商品类型获得物料号
CALL FUNCTION ‘BAPI_MATERIAL_GETINTNUMBER‘
EXPORTING
MATERIAL_TYPE = IN_DATA-MTART
INDUSTRY_SECTOR = ‘ ‘
REQUIRED_NUMBERS = 1
*&零售BAPI
CALL FUNCTION ‘BAPI_MATERIAL_MAINTAINDATA_RT‘
EXPORTING
HEADDATA = LS_HEAD
IMPORTING
RETURN = LS_RETURN
TABLES
VARIANTSKEYS = LT_VAR
CHARACTERISTICVALUE = LT_AUSP
CHARACTERISTICVALUEX = LT_AUSPX
CLIENTEXT = LT_CLIENTEXT
CLIENTEXTX = LT_CLIENTEXTX
CLIENTDATA = LT_CLIENTDATA
CLIENTDATAX = LT_CLIENTDATAX
ADDNLCLIENTDATA = LT_ADDNLCLIENTDATA
ADDNLCLIENTDATAX = LT_ADDNLCLIENTDATAX
MATERIALDESCRIPTION = LT_MATERIALDESCRIPTION
UNITSOFMEASURE = LT_MARM
UNITSOFMEASUREX = LT_MARMX.
(1)BDC
2.供应商主数据
(1)推荐
CALL METHOD VMD_EI_API=>INITIALIZE.
*&L7.Create vendor
CALL METHOD VMD_EI_API=>MAINTAIN_BAPI
(2) Function ‘VENDOR_INSERT‘
(3)BDC 有遇到联系人写不进去情况,公司代码和采购组数据有多条得多次
(4)听人说用IDOC做批量创建
3.客户主数据
(1)推荐
CALL METHOD VMD_EI_API=>INITIALIZE.
*&S3.Create custmer
CALL METHOD CMD_EI_API=>MAINTAIN_BAPI
(2) Function ‘SD_CUSTOMER_MAINTAIN_ALL‘
(3)BDC