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

initial, empty #-value in fields in the new abap debugger

Former Member
0 Likes
800

Hi,

after using the logical database with the get statement, I have a value in a field which is shown in the new debugger for the field ldb_structure-bukrs like this: '####'.

If I use the if-clause like:

IF ldb_structure-bukrs IS INITIAL.

<do-something>

ENDIF.

<do_something-else>

The <do-something>-part is left out in this case, because there are #-values in the empty field.

Where does this behavior come from? Just because there was a select and the field could not be filled? Why isn't it just empty?

Kind greetings,

Mario

Message was edited by: Mario Schmidt

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

Perhaps it would be

IF ldb_structure-BUKRS IS INITIAL.

<do-something>

ENDIF.

<do_something-else>

Normally it is visualization subject, if you click in structure, in debugging you would be able to see the value of the fields of structure.

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
574

Perhaps it would be

IF ldb_structure-BUKRS IS INITIAL.

<do-something>

ENDIF.

<do_something-else>

Normally it is visualization subject, if you click in structure, in debugging you would be able to see the value of the fields of structure.

Regards

Read only

Former Member
0 Likes
573

Hi,

use below logic

if ldb-bukrs is initial.

write:/'test'.

else.

endif.

Regards,

Amole

Read only

Former Member
0 Likes
573

No, I'm sorry.

I'm using already ldb_strukture-bukrs is initial in the if statement. It was an error in the posting above.