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

# values problem unable to check it using IF statement

former_member242512
Participant
0 Likes
388

Hi ,

I have a statement

var_val  = node->get_value( ).

if my var_val is equal to '#' or '##' .

the statements

do.
                          -------- .
                      enddo .

should not get excuted . i have tried all NA EQ all string operations and If finding it difficuilt to get check it with '#' character . Please help im not getting what's going wrong . .

Regards .

2 REPLIES 2
Read only

guilherme_frisoni
Contributor
0 Likes
363

Are you sure this '#' is really a '#'.

In debug, when you have tab, cr, lf, etc, it's represented by '#'.

Where are you getting this values?

Try to replace all occurences os TAB en CR_LF by '#', and then proceed with your code.

You can use CL_ABAP_CHAR_UTILITIES class.

Frisoni

Read only

Former Member
0 Likes
363

Moderator message - Duplicate post locked

Rob