on 11-12-2013 11:59 AM
Hello experts,
From the webdynpro FITE_VC_REVIEW is called the method SAVE_EXPENSE_REPORT from the class CL_FITE_ASSISTANCE, is there any way of reading the context of the webdynpro inside this class method? I'm not sure how to access or how I can know which webynpro component is calling that method class.
We have a workflow that is launched from this method and, depending on the configuration of the webdynpro, we should launched it or not.
Do you have any idea of how we can solve this?
thanks in advance for your help.
Regards.
Rebeca
Well, Sarbjeet is right, to get something you need to pass something. If you can't change signature of SAVE_EXPENSE_REPORT method you cn try to save data in memory id before calling the mathod and then read it inside the class's method
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Rebeca,
1. If you want to know, which webynpro component is calling this method of a class, you can check where used list. For your info details are here
2. Select on Where used list icon
3. Check the check boxes, to the methods where and all used
click on execute button
4. These are the places where this method is used.
5. To call the method of the assistance class
wd_assist-><Name of the method>
Note: pass the importing parameters if req and data will be read through exporting parameters of the method.
Thanks & Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
References to webdynpro context nodes and elements may be imported and used in the assistance class methods. But pass the references into the methods rather than storing them in the class - the context could change.
Please refer to the below link for accessing context node of wedynpro from assistance class methods.
http://scn.sap.com/thread/3269309
Best Regards,
Abirami
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the method you wont be able to read the context of web dynpro component directly.
You need to pass the context value as parameter to the method and then use it in the method to decide the workflow trigger condition.
Regards,
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
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.