cancel
Showing results for 
Search instead for 
Did you mean: 

Service Master Upload - BAPI_SERVICE_CREATE

0 Kudos

Hy Gurus,  i would like to use the BAPI 'BAPI_SERVICE_CREATE' in ABAP program for Migration of Service Master Records. Therefore i am testing the BAPI via SE37 in -  Looks simple but i am facing always a strange error message:

"Unit of measure cannot be changed due to existence of conditions" (Class 30, message 065)

Looks like that SAP tries to change an existing record (Service conditions do not exist..) but i would like to create new service master record. Also i am not passing any service number..

Internal number Range is set in Customizing.

All i need is to pass:

  • Short Text
  • Service Category
  • UoM
  • Material Group

which is working in dialogue mode.

This is what i set in BAPI Structures:

IM_SERVICE_DATA

     MATL_GROUP                     I_40305

     BASE_UOM                          M

     SERV_CAT                           ENGR

     MASTER_LANGU                 EN

IM_SERVICE_DATAX

     MATL_GROUP                     X

     BASE_UOM                          X

     SERV_CAT                           X

     MASTER_LANGU                 X

SERVICE_DESCRIPTION

     LANGUAGE                       EN

     SHORT_TEXT                    MOTOR-ROTOR REPAIR-2,2KW-3HP,TEST

Any ideas?

Thanks!

Gregor

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

Unit of measure cannot be changed due to existence of conditions" (Class 30, message 065)

this message sounds like: you are not creating a service master, you are changing an existing service master

you submit unit M, but the existing service master has a different unit of measure.

M is internal and external unit for meter, but in BAPIs and IDOCs you usually have to use the ISO code for a unit, which is in my system MTR

former_member186100
Active Contributor
0 Kudos

JL he is not mentioning service master code , so i don't think its case of changing existent service master. M works fine for BASE_UOM .

0 Kudos

Exactly, the UoM M is fine in that case.

Also my idea why it is not working is same as Jürgen´s. But i have no idea whythe BAPI is trying to update existing service master, as this BAPI does not provide this functionality

Also i tried again the BAPI in SE37 with Data Avinash mentioned in his last reply - again same error message.

If i use this in IDES System, it works fine..

anyway, i am afraid there is no solution i can do on my side - i will try debugging and if not helpful then i will create SAP Customer Notification.

Thanks to all!!!

Gregor

madhu_vadlamani
Active Contributor
0 Kudos

Hi Gregor,

Check there are sap notes availability for this,if not found raise an error message.

Regards,

Madhu.

former_member186100
Active Contributor
0 Kudos

yape , that seems only logical line of action , you could also check if you have implemented some custom validation for checking unit of measurement. As error message here is not pointing in any helpful direction.

0 Kudos

yep, that´s what i hopefully find in debugger, if not -> SAP Customer notification.

Thanks!

Thread closed.

Gregor

Answers (3)

Answers (3)

sayyedsalman74
Explorer
0 Kudos

Hi

I am also getting same issue, any solution... ?

Former Member
0 Kudos

Hi,

There exists a pilot note 1246559.You may have to raise a OSS message with SAP for this.

Regards,

Ashwini.

Former Member
0 Kudos

This message was moderated.

former_member186100
Active Contributor
0 Kudos

Hi Gregor,

remove master language part it will work fine

0 Kudos

Hy Avinash,

Thanks for input!

i deleted content in Field MASTER_LANGU in Structures

IM_SERVICE_DATA and  IM_SERVICE_DATAX -> but still same error message?

(In structure SERVICE_DESCRIPTION the LANGUAGE is needed,  i receive error message "enter language" if field is blank)

Gregor

madhu_vadlamani
Active Contributor
0 Kudos

Hi Gregor,

Did you check the documentation of the bapi.

Regards,

madhu.

former_member186100
Active Contributor
0 Kudos

hi  Gregor ,

i used following inputs

IM_SERVICE_DATA

MATL_GROUP                     S01

BASE_UOM                       M

SERV_CAT                       ALL

IM_SERVICE_DATAX

MATL_GROUP                     X

BASE_UOM                       X

SERV_CAT                       X

SERVICE_DESCRIPTION

LANGUAGE                       EN

LANGUAGE_ISO                   EN

SHORT_TEXT                     TESTING

this is message i get

S BAPI                 000 Service 3000143 has been created. External reference:

so i am not sure , may issue is system specific