Skip to Content
Former Member
May 07, 2010 at 01:50 PM

empty field is not being read as "INITIAL"


I am debugging my code and for some reason, when a field is blank/empty/devoid of any characters what so ever

hexadecimal value is: 20002000200020002000200020002000 it is still not dropping into the code...

IF NOT it_actual[] IS INITIAL.
 LOOP AT it_actual INTO lw_actual.

 IF lw_actual-strdt IS INITIAL.                                  *this does not work on empty field! *

        READ TABLE it_actual INTO ls_actual INDEX 1.
        lw_actual-strdt = ls_actual-strdt.
        lw_actual-enddt = ls_actual-enddt.
        MODIFY it_actual FROM lw_actual TRANSPORTING strdt enddt.

The first loop round is okayu2026 as the field is populatedu2026

But on the second loop, the field is empty, but it does not drop into the codeu2026. 

I am just trying to copy the header dates into the line item dates before I call the proxyu2026.

Any ideas? it is probably something obvious...