on 01-15-2015 3:12 PM
Dear all,
I extended the Work Manager application to bring a cutom field at the operation level. For this I created the class ZWorkorderOperation that extends from WorkorderOperation. Then I created an implementation in the Badi on ECC to populate the custom field. At last, I changed the parameter on the config panel to point to my new class and added the custom field in Agentry. This works fine. The code of my new class is:
The issue I'm facing is when I want to update the value from Work Manager in ECC. I created new classes for the steplet, the stephandler and the BAPI class, and changed the config panel parameters accordingly.
I can see through debugging that the _wo object in the BAPI class has the operations collection of type ZWorkorderOperation, but it doesn't bring the value of my custom field. I don't know how to bring that value to populate the parameter of the BAPI.
Can anyone help me understand what I'm doing wrong?
Thank you!!
Leonardo.
Leonardo,
I see your change in the new Operation class to handle fetching the value down to the client, but have you also added code in that POJO to set the custom field from the transaction property being passed up from the client? Each Operation in _wo.Operations should have had a setProperties call that populates your custom field from "Transaction.workorder.x.operation.x.customfield".
Jason Latko - Senior Product Developer at SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Jason suggested, I implemented method setProperties(user, bapi, i) and could make the fields get the value from the transaction.
Thanks to all!
Leonardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Jason said , did you add your field in POJO class . can you debug end to end via external java debuger . Thanks & Regards, Kunal Varaiya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you also made the necessary enhancements on the Agentry frontend side, to make sure your fields are being transmitted as part of the transaction? I'd suggest debugging or adding a set of logging calls to your Java code to verify the transaction steps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.