Hi all,
in my SAP Script form two IF statments are evaluated in different ways. Please see the image below.
Both LV_PSP_LEN and LV_HLTST_LEN are calculated in one ABAP subroutine via PERFORM ... ENDPERFORM call.
Seems like the second comparison uses only the first digit of LV_HLTST_LEN.
I tried this values:
LV_HLTST_LEN = 3 => processor evaluates IF &LV_HLTST_LEN& LE '3' to true
LV_HLTST_LEN = 9 => processor evaluates ELSEIF &LV_HLTST_LEN& LE '9' to true
LV_HLTST_LEN = 16 => processor evaluates IF &LV_HLTST_LEN& LE '3' to true
LV_HLTST_LEN = 44 => processor evaluates ELSEIF &LV_HLTST_LEN& LE '9' to true
Please give me some hints to solve my problem.
Regards,
Hubert