F Difference between TYPE and TYPES in SAP ABAP | CodeTheta

Difference between TYPE and TYPES in SAP ABAP


TYPE - This statement is used to define variable in SAP.
Example :
DATA : LV_VAL TYPE CHAR10.


TYPES - this statement is used to define structure in SAP.
Example :
TYPES: BEGIN OF TY_MARA,
         MATNR TYPE MATNR,
         ERSDA TYPE ERSDA,
         ERNAM TYPE ERNAM,
       END OF TY_MARA.

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