Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Compare strings with spaces in between

$
0
0

Hi all,

 

I used this following select stament:

 

      wa_t001l_lgobe-sign = 'I'.
      wa_t001l_lgobe-option = 'CP'.
*      wa_t001l_lgobe-low = lv_ps
      CONCATENATE '*' lv_psloc '*' INTO wa_t001l_lgobe-low.
      APPEND wa_t001l_lgobe TO r_t001l_lgobe.

 

   SELECT SINGLE lgort
        FROM t001l
        INTO lv_lgort
        WHERE werks = p_werks
        AND   lgobe IN r_t001l_lgobe.

      IF sy-subrc = 0.
      ENDIF.

 

 

r_t001l_lgobe = *AA-  123*

 

The sy-subrc returns 4. The select stament cannot seems to find strings with spaces in between. Anyone knows what is wrong here?

 

 


Viewing all articles
Browse latest Browse all 8332

Trending Articles