cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Work Manager 6.1 - Labor Time Confirmation

Former Member
0 Kudos

Hello Experts,

I am getting below error when my Actual work field is having time less than 10 Min. It is throwing JCO_ERROR_CONVERSION error.

I am not able to post time confirmations.

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread###setImportParameters::COM.SAP.CONN.JCO.CONVERSIONEXCEPTION: (122) JCO_ERROR_CONVERSION: NUMBER 1.75 CANNOT BE ENCODED AS A BCD OF LENGTH 7 WITH 1 DECIMAL PLACES AT FIELD ACT_WORK |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SAP.CONN.JCO.RT.ABSTRACTRECORD.ENCODEBCD(ABSTRACTRECORD.JAVA:4572) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SAP.CONN.JCO.RT.ABSTRACTRECORD.SETVALUE(ABSTRACTRECORD.JAVA:2731) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SAP.CONN.JCO.RT.ABSTRACTRECORD.SETVALUE(ABSTRACTRECORD.JAVA:3933) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.JCO.JCO3$RECORD.SETVALUE(JCO3.JAVA:207) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.JCO.JCO3$TABLE.SETVALUE(JCO3.JAVA:216) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.JCO.JCO.SETVALUENOLOG(JCO.JAVA:640) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.JCO.JCO.SETVALUE(JCO.JAVA:606) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.SETVALUE(BAPI.JAVA:461) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.WORKMANAGER.BAPI.TIMEENTRYCREATEBAPI.SETPARAMETERS(TIMEENTRYCREATEBAPI.JAVA:86) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.CREATE(BAPI.JAVA:286) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.RUN(BAPI.JAVA:251) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.WORKMANAGER.STEPHANDLER.LABORADDSTEPHANDLER.RUN(LABORADDSTEPHANDLER.JAVA:47) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.WORKMANAGER.STEPLET.LABORADDSTEPLET.EXECUTE(LABORADDSTEPLET.JAVA:88) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.STEPLET.DOSTEPLET(STEPLET.JAVA:172) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread###User::rethrowException::begin |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread###User::rethrowException::Exception caught: Problem in BAPI Create (/SMERP/PM_DOWORKORDERCONF_CRT): Number 1.75 cannot be encoded as a BCD of length 7 with 1 decimal places at field ACT_WORK |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread###User::rethrowException::JAVA.LANG.EXCEPTION: PROBLEM IN BAPI CREATE (/SMERP/PM_DOWORKORDERCONF_CRT): NUMBER 1.75 CANNOT BE ENCODED AS A BCD OF LENGTH 7 WITH 1 DECIMAL PLACES AT FIELD ACT_WORK |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.CREATE(BAPI.JAVA:290) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.RUN(BAPI.JAVA:251) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.WORKMANAGER.STEPHANDLER.LABORADDSTEPHANDLER.RUN(LABORADDSTEPHANDLER.JAVA:47) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.WORKMANAGER.STEPLET.LABORADDSTEPLET.EXECUTE(LABORADDSTEPLET.JAVA:88) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.STEPLET.DOSTEPLET(STEPLET.JAVA:172) |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread### |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread###throwExceptionToClient::begin |

2014 11 20 16:23:28#+0530#INFO#System.out##anonymous#Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.workmanager.steplet.LaborAddSteplet::throwExceptionToClient::9037::LaborAddSteplet - Problem in BAPI Create (/SMERP/PM_DOWORKORDERCONF_CRT): Number 1.75 cannot be encoded as a BCD of length 7 with 1 decimal places at field ACT_WORK |

2014 11 20 16:23:28#+0530#ERROR#System.err##anonymous#Agentry Runtime Worker Thread###com.syclo.agentry.BusinessLogicException: Problem in BAPI Create (/SMERP/PM_DOWORKORDERCONF_CRT): Number 1.75 cannot be encoded as a BCD of length 7 with 1 decimal places at field ACT_WORK |

2014 11 20 16:23:28#+0530#ERROR#System.err##anonymous#Agentry Runtime Worker Thread### at com.syclo.sap.User.rethrowException(User.java:1096) |

2014 11 20 16:23:28#+0530#ERROR#System.err##anonymous#Agentry Runtime Worker Thread### at com.syclo.sap.workmanager.stephandler.LaborAddStepHandler.run(LaborAddStepHandler.java:50) |


Request you to kindly let me know if i am missing any configuration.


Attached Screen shots of error.

Accepted Solutions (0)

Answers (3)

Answers (3)

LeonardoGomez
Advisor
Advisor
0 Kudos

Hi Madhur,

There is a fix for this. See SAP note 2163538.

Regards,

Leonardo.

p_willems
Explorer
0 Kudos

I think it has something todo with an authomatic conversion from minutes to hours.

Regards,

P. Willems

Former Member
0 Kudos

Hi Madhur,

the Error Message is obvious:

JCO_ERROR_CONVERSION: NUMBER 1.75 CANNOT BE ENCODED AS A BCD OF LENGTH 7 WITH 1 DECIMAL PLACES AT FIELD ACT_WORK

The receiving datatype is limited to 1 decimal. You are trying to send a record with 2 decimals back (1,75). Now you have wether to adjust the interface or round the number you are sending back, to e.g. 1,8. No you are not missing any configuration.

Kind regards,

Mike

Former Member
0 Kudos

Hi Michael,

Thanks for the quick response.

This is the Standard Interface and we have not than any modification or customization to this screen.

Is it a bug in standard application that its not rounding when we give the value which is less than 10 Min.

Kindly let us know.

Thanks,

Madhur

Former Member
0 Kudos

Hi Madhur,

please I cannot confirm if it is a bug or not. I just replied to the error message and this is obvious.

I would suggest to search for a note, and if there is no success I would create a ticket.

Honestly it is also depending to the customer how the process looks like and how they confirm their time. I adjusted this sometimes. E.g. I used blocks like 5,10,15,etc. minutes that means the lowest value are 5 min., in fact a similar approach as for the CATS time confirmation.

Kind regards,

Mike

mark_pe
Active Contributor
0 Kudos

Madhur,

If you want to debug this (i.e. se37) look at this line in the log:

/SMERP/PM_DOWORKORDERCONF_CRT): NUMBER 1.75 CANNOT BE ENCODED AS A BCD OF LENGTH 7 WITH 1 DECIMAL PLACES AT FIELD ACT_WORK |


When the /SMERP/PM_DOWORKORDERCONF_CRT (Create function runs - one of the parameter - your time used the actual number 1.75 - I think this may be inside the code during conversion). The ACT_WORK is your field. BCD is a decimal number data type. According to the error above, the backend rejected it. 


Just try to find this ACT_WORK in the SAP table as reference by /SMER/PM_DOWORKORDERCONF_CRT and see if you can increase decimal places to 2 and see if this works for you.


Regards,

Mark

Former Member
0 Kudos

Hello Mark,

Thanks for the response.

This is the Standard Interface and we have not than any modification or customization to this screen.

It look like a bug in standard application  which is not rounding the value when given less than 10 min.

Thanks,

Madhur