on 07-09-2015 11:56 PM
Hi,
I'm trying to add a new field to the EquipmentCreateBAPI in WorkManager 6.2 runs on SMP 3.0 version.
So far i did the following steps but while debug the i get the following exception in StepletHandler class;
"java.lang.Exception: Problem in BAPI Create (/SMERP/PM_DOEQUIPMENT_CRT): while trying to invoke the method com.syclo.sap.component.equipment.object.Equipment.setProperties(com.syclo.sap.User, com.syclo.sap.component.equipment.bapi.EquipmentCreateBAPI) of a null object loaded from field com.syclo.sap.component.equipment.bapi.EquipmentCreateBAPI._equipment of an object loaded from local variable 'this'"
Please correct me in steps if i am wrong.
1- Extended EquipmentCreateSteplet
2- Extended EquipmentCreateStephandler
3- Extended EquipmentCreateBAPI
4- Extended Equipment object and added new field called ZZEDURUM
5- In Syclo configuration Admin panel all Standart classed pointed to the custom classes
BAPI_WRAPPER, SAPOBJECT, BAPI_CLASS, STEPLETHANDLER
6- Added new field to the Equipment transection and when i run on ATE i can see my new field gets the value that i provide.
7- When i debug the custom BAPI class i see the custom Equipment Object attributes get all values except my custom value. It gets null.
In Steplethandler class i get exception.
Which step i missed i couldn't figure out.
I appreciate your help
Regards,
Tahir
Hi,
Michael Appleby Steve Streeter Manju Venkatesha Jason Latko Neha Mahanty Bill Froelich
Could you please have look my requirement. I still have problem on the issue.
Regards,
Tahir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neha,
I already added field to PM_DOEQUIPMENT_CRT bapi.
So far i came a point. The error changed now its ;
java.lang.NullPointerException: while trying to invoke the method com.syclo.sap.component.equipment.object.Equipment.getReferenceEquipment() of a null object loaded from field com.syclo.sap.component.equipment.bapi.EquipmentCreateBAPI._equipment of an object loaded from local variable 'this'
In the EquipmentCREATEBapi at super.setParameter(obj) method throws exception. I check the obj parameter and its null completely. Why this can be null ?
Even though i changed the SAPOBJECT parameter to point my custom object as com.syclo.sap.custom.equipment.object.ZEquipment the error shows the standart object package as com.syclo.sap.component.equipment.object.Equipment.getReferenceEquipment(). Is this normal ?
I added my custom java class to the classpath as ;
./ini4j.jar;./sapjco3.jar;./Java/ZSAPWM.jar;./Java;./SAPWM-3473.jar;./Java/SAPWM-6.2.0.0.jar;./Java;./Java/SAPCommon-133461.jar;
PS : in error it says getReferenceEquipment() is null. Even i provide the value but it's same. When running in default syclo classes even if this field is empty that doesn't cause any problem it creates Equipment.
Regards,
-Tahir
Message was edited by: Tahir Öz
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.