cancel
Showing results for 
Search instead for 
Did you mean: 

How assig value of TYPE DATA??

0 Kudos

Hi experts,

I have a table the following structure(SALV_WD_S_TABLE_CELL):

Comp Type Comp. Type Data Length

Index Int4 10

Attribute String 0

R_Value Data 0

R_Old_Value Data 0

And want assign the local value (lv_value) to content the variable R_Value, but show the next messagge: The type of "LV_VALUE" can't be converted to the type of "WA_MODIFY-R_VALUE".

DATA: lv_value TYPE IMRC_POINT.

lv_value = wa_modify-r_value.

Regards,

Matías.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Try this:


lv_value = wa_modify-r_value->*.

Regards.

0 Kudos

No, not it can of that form.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Matias,

The lv_value variable has a type that is not compatible with the value in the cell.

try this:

field-symbols: <value> type any.

data: lv_str_value type string, lv_value TYPE IMRC_POINT.

assign wa_modify-r_value->* to <value>.

check sy-subrc = 0. "in case the reference is initial

lv_str_value = <value>. " display <value> it in debug mode to see the type

lv_value = lv_str_value.

regards... Lucio