Skip to Content

POWL attribute of feeder class

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 12:47 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2010 at 12:32 PM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      In Handle action method you have C_RESULT_TAB supplies the current query results table (including all changes done by the user if the results table is editable) to the Feeder,current result table (adhering to GET_OBJECT_DEFINITION).

      Regards,

      Amit

  • Posted on Oct 21, 2010 at 10:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I faced with the same problem and I found the class CL_POWL_RUNTIME_SERVICES (POWL runtime services) using the follow methods:

      • GET_CONTENT_VALUES
      • SET_CONTENT_VALUES

      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,

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.