cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the context of a webdynpro that calls a class method?

former_member384574
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member182372
Active Contributor
0 Kudos

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

former_member222068
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

gill367
Active Contributor
0 Kudos

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