on 10-11-2010 11:47 AM
Hello
I implemented the IF_POWL_FEEDER to get a POWL application.
Within the feeder class in the method: handle_action I set the value of a private instance attribute ATTR1.
Then in the get_objects method I want to read the value of this attribute ATTR1.
The value is no more filled.
I don't understand why, because I think the POWL should work with one instance of the feeder class and therefore the attribute value should be kept over all methods,
Any ideas ?
Thanks and kind regards.
Carola
Okay, I did not really get the reason for the loss of the attribute value of the feederclass, but with the workaround, it's working.
Thanks for all comments.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I faced with the same problem and I found the class CL_POWL_RUNTIME_SERVICES (POWL runtime services) using the follow methods:
Example:
Data:
L_PARAMETER_VALUE TYPE STRING,
ST_ADDITIONAL_PARAMETER TYPE POWL_NAMEVALUE_STY.
CL_POWL_RUNTIME_SERVICES=>GET_CONTENT_VALUES(
EXPORTING
I_PARAMETER_KEY = 'ACTION_VIEW_ID'
IMPORTING
E_PARAMETER_VALUE = L_PARAMETER_VALUE ).
If not L_PARAMETER_VALUE is initial.
ME->GC_ACTION_REQUEST_VIEW_ID = L_PARAMETER_VALUE.
else.
ST_ADDITIONAL_PARAMETER-KEY = 'ACTION_VIEW_ID'.
ST_ADDITIONAL_PARAMETER-VALUE = GC_REQUEST_VIEW_ID_INBOX.
CL_POWL_RUNTIME_SERVICES=>SET_CONTENT_VALUES ( ST_ADDITIONAL_PARAMETER ).
ME->GC_ACTION_REQUEST_VIEW_ID = GC_REQUEST_VIEW_ID_INBOX.
endif.
Keep it in mind, if you have on or more POWL's queries, the parameter's value will be shared for all them.
Regards,
Hi Carola,
I tried debugging many POWL feeder class scenarios and the get_objects method was always called before the handle_action method.
This might have something to do with the cashed results for the user ID you are using. Try to run the report POWL_WLOAD via transaction SE38 to delete the cashed results for that user and then try to debug again. It should call the get_objects method first because the handle_action method is only supposed to be called upon a user action such as clicking on a button or selecting a row etc...
I hope this will help...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello.
You are right, the get_objects is called first time before the Handle_action. But in the Handle_action I can initiate a refresh, so that the get_objects is called again ,after for example a button has been pressed.
Finally I want to set a Attribute when a button is pressed (in Handle_action). This attribute value then should be read in the get_objects method to influence the refresh.
Kind regards and thanks for all comments.
Carola
hello,
I set the value in a method get_object and read in handle_action,
it works fine,
Please check that method get_object is called after handle_action.
Best regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.