F How to SPLIT a string in SAP ABAP program | CodeTheta

How to SPLIT a string in SAP ABAP program


Code :
REPORT ZVP_STRING_SPLIT.

DATA: LV_STRING TYPE CHAR50 VALUE 'CODETHETA.COM',
      LV1 TYPE CHAR20,
      LV2 TYPE CHAR20.

SPLIT LV_STRING AT '.' INTO LV1 LV2.
WRITE:/ 'FIRST STRING :', LV1.
WRITE:/ 'SECOND STRING :',LV2.

Output :

IDE Used To Test This Code : ABAP Editor.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment