DATA: text TYPE string VALUE 'TEST-*-SAP*-NEW*'.
IF text IS NOT INITIAL AND text CS '*'.
REPLACE ALL OCCURRENCE OF '*' IN text WITH '^' .
WRITE : / text.
ENDIF.
A. TEST-*-SAP*-NEW*
B. TEST-^-SAP^-NEW^
C. TEST-^-SAP^-NEW
D. Syntax Error
IF text IS NOT INITIAL AND text CS '*'.
REPLACE ALL OCCURRENCE OF '*' IN text WITH '^' .
WRITE : / text.
ENDIF.
A. TEST-*-SAP*-NEW*
B. TEST-^-SAP^-NEW^
C. TEST-^-SAP^-NEW
D. Syntax Error
No comments:
Post a Comment