Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert for selections

Former Member
0 Likes
457

hi all

i have a method that fills selections.


    methods fill_params
      importing
        if_selname type rsscr_name
        if_sign    type tvarv_sign
        if_opti    type tvarv_opti
        if_low     type tvarv_val
        if_high    type tvarv_val optional
      changing
        ct_params  type /spmeat/t_params.		

when i fill method with the values, example


        me->fill_params(
          exporting
            if_selname = text-004
            if_sign    = 'I'
            if_opti    = 'EQ'
            if_low     = <ls_levp>-kunnr
          changing
            ct_params  = lt_kunnr
            ).
        append lines of lt_kunnr to ls_slp_selstruc-kunnr.

the type if_low is not compatible.....

how i can kunnr datatype convert to tvarv_val?

Thx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
422

hi,

try with TYPE ANY / TYPE CASTING statement.

Regards,

Shankar.

2 REPLIES 2
Read only

Former Member
0 Likes
423

hi,

try with TYPE ANY / TYPE CASTING statement.

Regards,

Shankar.

Read only

0 Likes
422

Hi

change the field symbol data type <ls_levp> type any or same as when u declared for low