on 03-12-2010 12:55 PM
Hello experts,
I've the follwoing problem:
I get a parameter where I set the focus on a cell in an alv table, but how can
I move the value to another paramerter ?
Example:
DATA: lv_cell TYPE REF TO data.
lv_cell = r_param->value.
' lv_cell has the value 1, now I should give this value to another field in order to execute a fm
move lv_cell to contact. => retunrs error
call fm.....
Any solutions ???
Thanks GD
You need to take that from a data reference to a normal variable before it will match the parameter of your FM call. You can de-reference in this way. Let's say you need to pass this to a field with the data type S_CARR_ID.
You can cast data references just like you would object references.
DATA: lv_cell TYPE REF TO S_CARR_ID.
DATA: lv_carrid TYPE S_CARR_ID.
lv_cell ?= r_param->value.
Then you can de-reference (that is the ->*) back into a normal variable.
move lv_cell->* to lv_carrid.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.