on 11-19-2015 8:47 AM
Hi;
Environment: SMP 3.0 SP09
I am working on SAP Work Manager 6.2, specifically the Notifications portion, I am working on bringing/fetching in 2 additional fields from the backend.
I came across the below post and have tried implementing this with no success :
http://scn.sap.com/thread/3622119
Does the solution provided on this post apply as well for WM6.2, I have tried this solution with no success. So, does this mean that for WM6.2, when fetching new additional fields you have to extend the object, bapi, stephandler and steplet class? In my implementation, when I debug, it only breaks within the Notification extension class default constructor and then that's it, all the other methods that I am overriding do not seem to be getting called. Am I perhaps missing something here?
Thanks and Regards;
Sizo Ndlovu
Hi;
Extending only the object class does not seem to do it. What I have done is, I have extended the steplet, stephandler, bapi and object class. I have gone on to change the Agentry fetch steplet class to my custom one. I can see the 2 custom fields on the device now.
Thanks and Regards;
Sizo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting.
can you please confirm here once in standard stephandler class what is the return type?
like
or
My assumption is your stephandler class will be like the 2nd screen shot. If its true than if you enhance only the array type with your custom class it will work. in that case you no need to enhance all the classes.
Thanks
Ajitesh
Sizolwenkosi,
Hi. We will try to ask SAP consultants to see if they can assist here based on their experience.
Best Regards,
SAP Mobile Support Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sizo,
In WM 6.2 it is not required to enhance your steplet, stephandler, bapi class for fetching two field from SAP.
what you have to do is just extend Notification object class and import all the super class constructors.
Than override setProperties and set your custom property.
Make sure that NotificationFetchBAPI is returning those fields.
In configpanel you have to set Standard Notification object = your custom Notification class(Fully qualified name).
Make sure you are not using LAM concept. If you are using LAM than your custom class will be extend from LAM Notification class.
Hope this helps you.
Ajitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajitesh;
Removed the parameters and am now calling super:
Yes, my ZNotification class does get called but the debug only runs into the default constructor and that's its, doesn't break anywhere else.
The custom jar file is sitting together with the other jar files in the Java folder (SMP deployment)
And I also have this in the cockpit classpath.
Thanks and Regards;
Sizo Ndlovu
you should request to SAP for java source code.
Temporary please use java decompiler plugin in your eclipse and try to debug the code.
Please install below plugin links to your eclipse and restart the eclipse.
Ajitesh
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.