on 06-29-2016 10:32 PM
Hello,
In SAP Workmanager 6.3 with metermanagement, I try add dueTime in workOrder tilelist but the value is initial.
This field exist in SAP. in et_workorder_header in /SMISU/CL_BTX_WORKORDER_DO
In debug, I can see value in this field
The field GSUZS is active in result field in ZSMM21_ISU_WORKORDER_GENERIC MBO
I create a new SAP Project ZWorkManager with package package com.syclo.sap.component.custom.workorder.object and class ZMeterWorkOrder.java
This is indicate in parameter Workorder SAPOBject
and java code:
The project is exported in .jar in Java folder of application and add in classpath in agentry.ini
The dueTimetit is added like a new properties in WOrkOrder object
new field is added in tilelistRow in WorkOrderTileListRow_Detail_iPhone screen
I restart server, application, reset agentry client ....
But the result in application is initial
I can't debug java code because of our architecture I can't have a SMP server local.
If you have some idea of what is wrong in my configuration, it could be very helpfull
thank's a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I don't understand what do you mean with "copy the required method and change whatever you want".
Without source I just see the defintion of method but not the content. So what I need copy?
So I extend the class GetWorkOrdersStepHandler
package com.syclo.sap.component.custom.workorder.stephandler;
import java.util.ArrayList;
import com.syclo.sap.User;
import com.syclo.sap.component.metermanagement.workorder.stephandler.GetWorkOrdersStepHandler;
import com.syclo.sap.SAPObject;
public class Z_GetWorkOrdersStepHandler extends GetWorkOrdersStepHandler {
public Z_GetWorkOrdersStepHandler(User user)
throws Exception
{
super(user);
// TODO Auto-generated constructor stub
}
public Workorder[] run(SAPObject Objects)
throws Exception
{
com.syclo.sap.component.metermanagement.workorder.stephandler.GetWorkOrdersStepHandler.run(Objects);
}
But I don't see what I need do/write in this new class. If I call just the superclass, I will have the same result. Could you help me to understand the differents steps I need to do to success?
Thank's a lot
Carole
To see super class you need java source file. you can request to SAP for Java source file through your company account executive.
or you can decompile the Java class file to see super class methods by using java decompiler.
so, here copy the required method means go to super class and copy the Run() method and paste it on your sub class and change the instantion of hardcode MeterWorkorder to ZMeterWorkorder.
Hope this makes you clear
Thanks
Ajitesh
1) Can you confirm the that you Java Code is being triggered (have you debugged it)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.