on 04-20-2010 2:31 PM
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.
Thanks.
Hi,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Thanks...The code I am adding is in a user exit so I don't have access to WDEVENT. Is there a way to just pull it out of the field
> 2020*\CLASS=CL_WD_CUSTOM_EVENT}-PARAMETERS[1]-VALUE ?
>
> Jim
I'm confused by your response. In one sentecne you say you don't have access to WDEVENT, but in the next you state you have a debugger variable of type CL_WD_CUSTOM_EVENT - which is WDEVENT. It might be named the same becuase it is a parameter passed into the exit, but that is WDEVENT.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.