cancel
Showing results for 
Search instead for 
Did you mean: 

converting r_param->value to char in webdynpro alv

Former Member
0 Kudos

Hi Experts,

     In webdynpro alv user is performing link2url action on alv cell am getting this

cell value(here the cell is kblnr field in kblp) in r_param->value.I need to concatenate this

r_param-> value to"Sanction order no.is...".Here the concatenation is not allowing with

this concatenate r_param->value "Sanction order no.is..." to lv_string.

           So please anyone could u suggest how to convert r_param->value to char..thanks

in advance.

regards,

kranthi

Accepted Solutions (0)

Answers (3)

Answers (3)

ramakrishnappa
Active Contributor
0 Kudos

Hi Kranthi,

The field R_PARAM->VALUE is the reference to data. Hence you can not directly convert it into string.

Please follow the below steps to covert it into text.


          field-symbols: <fs_value> type any.

          data lv_value type string.

    assisgn r_param->value->* to <fs_value>.

         

          clear lv_value.

          if     <fs_value> is assigned.

               lv_value = <fs_value>.

          endif.

Now you can concatenate the lv_value as per your requirement

          concatenate "Sanction order no.is..." lv_value  into lv_value.

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Kranthi,

data lv_string type string.

data lv_value type string.

lv_value = r_param->value.

lv_string = lv_value && lv_sanction_order_number.

Regards,
Ravikiran.k

former_member184578
Active Contributor
0 Kudos

Hi,

You can concatenate only string/ char values. So before that convert r_param->value to char/string.

Data lv_value type string.

lv_value = r_param->value.

Now concatenate lv_value 'XXXX' to lv_string.

Regards,

Kiran

NTahaE
Explorer
0 Kudos

You can't assign r_param->value to a string type in the first place.