on 11-20-2014 1:46 PM
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.
Hi Madhur,
There is a fix for this. See SAP note 2163538.
Regards,
Leonardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it has something todo with an authomatic conversion from minutes to hours.
Regards,
P. Willems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.