cancel
Showing results for 
Search instead for 
Did you mean: 

Add new field to EquipmentCreateBAPI in WM 6.2

tahir_z
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

tahir_z
Contributor
0 Kudos

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

neha_mahanty
Active Participant
0 Kudos

Hi Tahir,

In the SAP config panel , check the Data object in which you are adding this field. check in the ResultSet field selection whether this field is Active or not.

Regards

Neha

tahir_z
Contributor
0 Kudos

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