Skip to Content
-2
Jul 09 at 10:25 AM

IF statement where String "starts with"

106 Views

In the below, code the codintion is, if POSID starts with 'G' the it will be No else Yes. I tried the code with "=" in place of EQ, but it's still not working. Please help

IF lw_prps-posid EQ 'G%'.

gw_list-w_chargeback = co_no. "NO
ELSE.
gw_list-w_chargeback = co_yes. "Yes
ENDIF.