Skip to Content
avatar image
Former Member

Get Text value of ON_ACTION item Clicked

How would I get the text Value of the onaction item that the User has selected ? For example I can see in the webdynpro program that CLASS=CL_WD_CUSTOM_EVENT}-PARAMETERS[1]-VALUE contains the Value COST_ASSIGNMENT . In a user exit I need to add additional checks depending on this value, how can I reference this is the code to check this particular value.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 20, 2010 at 01:41 PM


    you can read parameters from wdevent by this:

    DATA ls_parameters TYPE wdr_event_parameter.
    FIELD-SYMBOLS <lv_id> TYPE string.
    READ TABLE wdevent->parameters into ls_parameters with KEY name = 'ID'.
    ASSIGN ls_parameters-value->* TO <lv_id> CASTING.

    Maybe you have to change name = 'ID' to name = 'somethingelse'

    Best regards Jiri

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Thomas Jung

      Now I understand what you are saying; I not too familiar with Class coding so I not sure how to write the code that would pull the value off that field into another..Thanks for the help.