2016 Jul 12 8:02 AM
I want to create materail with the help of BAPI_MATERIAL_SAVEDATA . But ti have field AUSUZ [Numerator for converting from unit to base unit (BTCI) ] and AUSUN [Denominator for conversion from unit to base unit (BTCI)] and STLAN [BOM Usage] in material master template but these field not include in any of BAPI structure of BAPI_MATERIAL_SAVEDATA 'S import. So please suggest how can i update these fileds with the help of BAPI_MATERIAL_SAVEDATA at the time of material creation.
2016 Jul 12 8:13 AM
You can check in the TABLES parameter UNITSOFMEASURE
in that 2 fields are there
| NUMERATOR | UMREZ | DEC | 5 | 0 | Numerator for Conversion to Base Units of Measure |
| DENOMINATR | UMREN | DEC | 5 | 0 | Denominator for conversion to base units of measure |
and in IMPORT parameter in the PLANTDATA there is field called..
| BOM_USAGE | STLAN | CHAR | 1 | 0 | BOM Usage |
Regards
Raj
2016 Jul 12 8:22 AM
Hello,
There has to be extenstion in BAPI. Please try using that.
Regards,
Kulprakash
2016 Sep 14 11:43 AM
I am getting following error that
Field VKORG has been transferred inconsistently or is blank.
As per our Scenario for Semi finished Material VKORG ALWAYS BLANK.
What is the difference between
BAPI_MARD and BAPI_MARDX
2016 Sep 14 12:06 PM
Hi Deepak,
What ever the values you pass to the structure BAPI_MARD ..then you should pass the corresponding field value in BAPI_MARDX with value 'X' inorder to be updated in Database table..
Regards,
Rohan
2016 Oct 04 8:22 AM
I am getting below error during debugging.
| TYPE | E | ||
| ID | MM | ||
| NUMBER | 360 | ||
| MESSAGE | Key fields for use data PLANTDATA and checkbox structure PLANTDATAX are different | ||
| LOG_NO | |||
| LOG_MSG_NO | 000000 | ||
| MESSAGE_V1 | PLANTDATA | ||
| MESSAGE_V2 | PLANTDATAX |
2016 Oct 05 6:29 AM
Are you using the same plant in both the structures...
for example..
plantdata-plant = 'AXXX'
plantdatax-plant = 'AXXX
below is sample code
* Set data to change
LS_HEAD-MATERIAL = <GS_STR>-MATNR.
LS_PLANT-PLANT = <GS_STR>-WERKS.
LS_PLANT-PROC_TYPE = 'X'.
LS_PLANT-SPPROCTYPE = ' '.
LS_PLANT-QUOTAUSAGE = '4'.
LS_PLANTX-PLANT = <GS_STR>-WERKS.
LS_PLANTX-PROC_TYPE = 'X'.
LS_PLANTX-SPPROCTYPE = 'X'.
LS_PLANTX-QUOTAUSAGE = 'X'.
* Change material master data
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = LS_HEAD
PLANTDATA = LS_PLANT
PLANTDATAX = LS_PLANTX
IMPORTING
RETURN = LS_RETURN.
'.
Regards
Raj