2022 Jul 11 11:38 AM
can someone explain me about IS INITIAL and IS NOT INITIAL comparison operators.
a help would be appreciated 🙂
2022 Jul 11 11:56 AM
Hi,
Example:
SELECT TKNUM
INTO TABLE @DATA(LT_VTTK)
FROM VTTK WHERE TDLNR IN S_TDLNR .
IF LT_VTTK IS NOT INITIAL. "If record/s found from above table then
WRITE : 'Shipment Number Found'.
ELSE. "If Not Found
WRITE : 'No Data Found'.
ENDIF.
*******************OR*******************
IF LT_VTTK IS INITIAL. "If NO record/s found from above table then
WRITE : 'No Data Found'.
ELSE. "If any record/s Found
WRITE : 'Shipment Number Found'.
ENDIF.
2022 Jul 11 12:42 PM
IS INITIAL : is equal to its "initial value" (depends on type)
IS NOT INITIAL : is not equal to its "initial value" (depends on type)
Help of "initial value": https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abeninitial_value_glo...