2013 Jul 13 7:45 PM
Hello,
I have developed program to upload service material through AC01 and i have used Bapi BAPI_SERVICE_CREATE to create new service material and
BAPI_SERVICE_CHANGE to change service material, everything is working fine.
when service material is already in use so we can not change base UOM(unit of measure) but we can change other field manually, issue is when program try to change any other field I am getting error message say "Unit of measure cannot be changed( contract contain service) and even I am not passing UOM to BAPI.
Could any body tell me why this is happing?
Regards,
Nee
Hello,
I have developed program to upload service material through AC01 and i have used Bapi BAPI_SERVICE_CREATE to create new service material and
BAPI_SERVICE_CHANGE to change service material, everything is working fine.
when service material is already in use so we can not change base UOM(unit of measure) but we can change other field manually, issue is when program try to change any other field I am getting error message say "Unit of measure cannot be changed( contract contain service) and even I am not passing UOM to BAPI.
Could any body tell me why this is happing?
Regards,
Nee
2013 Jul 31 9:03 PM
2013 Aug 01 12:10 PM
ever thought about if it is because you are not passing the unit of measure?
furhter you usually need to supply the ISO code for the unit of measure in a BAPI instead of the unit of measure itself.
e.g. instead of KG you would need to have KGM in that unit field, because KGM is the ISO code for KG.
2013 Aug 01 12:22 PM
Hi,
Check whether in structure IM_SERVICE_DATAX, the UOM flag is set to 'X'. It it is set to X and you dint pass any value for UOM, then the service will try changing the UOM to null value. So please remove the 'X' if given.
The FM will try changing the value of the fields which are set to X in IM_SERVICE_DATAX .
Please check and revert back.
Thanks,
Viji
2013 Aug 01 2:20 PM
Even I have tried the same thing, not passing any value in IM_SERVICE_DATAX-UOM, but still getting the same error.
2013 Aug 01 3:53 PM
SAP is checking:
IF ASMD-MEINS <> *ASMD-MEINS.
in program LBAS0I0G
maybe you should debug what you see there
2013 Aug 01 1:10 PM
I tried both possibilities and continue with the same problem. Thanks anyway!
2013 Aug 01 1:25 PM
please check below link as our internal and iso format for uom is different.
2013 Aug 01 2:22 PM
Thanks, but it is this message!
"Unit of measure cannot be changed (contract contains service)" (Class 30, message 068)
2013 Aug 01 4:21 PM
Yes I am getting error message says ""Unit of measure cannot be changed (contract contains service)" (Class 30, message 068)
2013 Aug 06 7:12 PM
Please implement note 1246559 and retest.
Solved my problem!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |