Lesson 12 – Initial ABAP Programs

First Integer Program:-

 

Data : v_ int type i.
v_int=2.
Write : / ‘the value of v_int is ‘, v_int.

 

Output:- the value of v_int is 2.

 

Data : v_ int type I,
v_temp type I,
v_ calc type i.
v_int= 2.
v_ temp= 4.
v_calc= v_int +v_temp.
Write: / ‘ the value of v_ calc is ‘, v_ calc.

 

Output:- the value of v_calc is 6.

 

First Character Program :-

 

Data: v_ name(10) type c.
v_name= ‘KING‘.
Write: / ‘the value of v_name ‘, v_name.

 

See things in action in the below video :-

 

 

Add a Comment

Your email address will not be published. Required fields are marked *