LS_BAPIMATHEAD-MATERIAL = IS_PARTINFO-PARTNO.
LS_BAPIMATHEAD-IND_SECTOR = 'M'. "
LS_BAPIMATHEAD-MATL_TYPE = 'AEM'. "
LS_BAPIMATHEAD-BASIC_VIEW = 'X'.
LS_BAPIMATHEAD-COST_VIEW = 'X'.
LS_BAPI_MARA-NET_WEIGHT = IS_PARTINFO-NTGEW.
LS_BAPI_MARA-UNIT_OF_WT = IS_PARTINFO-GEWEI.
LS_BAPI_MARA-BASE_UOM = IS_PARTINFO-MEINS.
LS_BAPI_MARA-PUR_STATUS = IS_PARTINFO-MSTAE.
LS_BAPI_MARA-PROD_MEMO = IS_PARTINFO-PI.
LS_BAPI_MARAX-NET_WEIGHT = 'X'.
LS_BAPI_MARAX-UNIT_OF_WT = 'X'.
LS_BAPI_MARAX-BASE_UOM = 'X'.
LS_BAPI_MARAX-PUR_STATUS = 'X'.
LS_BAPI_MARAX-PROD_MEMO = 'X'.
LS_BAPI_MBEW-VAL_AREA = '1000'. "
LS_BAPI_MBEW-PLNDPRICE1 = IS_PARTINFO-ZPLP1.
LS_BAPI_MBEW-PLNDPRICE2 = IS_PARTINFO-ZPLP2.
LS_BAPI_MBEW-PLNDPRDATE1 = SY-DATUM.
LS_BAPI_MBEW-PLNDPRDATE2 = SY-DATUM.
LS_BAPI_MBEWX-PLNDPRICE1 = 'X'.
LS_BAPI_MBEWX-PLNDPRICE2 = 'X'.
LS_BAPI_MBEWX-PLNDPRDATE1 = 'X'.
LS_BAPI_MBEWX-PLNDPRDATE2 = 'X'.
LS_BAPI_MBEWX-VAL_AREA = '1000'. "
LT_BAPI_MARM-ALT_UNIT = IS_PARTINFO-MEINS.
LT_BAPI_MARM-GROSS_WT = IS_PARTINFO-BRGEW.
LT_BAPI_MARM-UNIT_OF_WT = IS_PARTINFO-GEWEI.
LT_BAPI_MARMX-ALT_UNIT = IS_PARTINFO-MEINS.
LT_BAPI_MARMX-GROSS_WT = 'X'.
LT_BAPI_MARMX-UNIT_OF_WT = 'X'.
APPEND : LT_BAPI_MARM, LT_BAPI_MARMX.
IT_MATERIALDESC-LANGU = SY-LANGU.
IT_MATERIALDESC-MATL_DESC = IS_PARTINFO-PARTNAME.
APPEND IT_MATERIALDESC.
*
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = LS_BAPIMATHEAD
CLIENTDATA = LS_BAPI_MARA
CLIENTDATAX = LS_BAPI_MARAX
VALUATIONDATA = LS_BAPI_MBEW
VALUATIONDATAX = LS_BAPI_MBEWX
IMPORTING
RETURN = IT_RETURN
TABLES
MATERIALDESCRIPTION = IT_MATERIALDESC
UNITSOFMEASURE = LT_BAPI_MARM[]
UNITSOFMEASUREX = LT_BAPI_MARMX[].
위에 펑션을 사용해서 자재를 생성했더니..다른건 다 잘들어오는데
LS_BAPI_MARA-PROD_MEMO 에 데이터도 안들어오고
basic2 data에서 Prod./insp. memo
Page format 필드가 안보이는 이유는 뭘까요?
configraution 확인 해 보셨나요.
Logistics - General -> Material Master -> Field Selection -> Assign Fields to Field Selection Groups ,
MARA-FERTH Production/inspection memo 15 field 의 속성 확인해 보시기 바랍니다.