Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SPACE ; DATA di

Former Member
0 Likes
872

How does these “2” statements differ :-

1) SPACE

2) DATA di .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
818

Hi

1) SPACE is ABAP key word which indicates space

2) DATA di. Means by default di consider as a character variable with default length 1.

Reward me if it is userful

4 REPLIES 4
Read only

Former Member
0 Likes
819

Hi

1) SPACE is ABAP key word which indicates space

2) DATA di. Means by default di consider as a character variable with default length 1.

Reward me if it is userful

Read only

Former Member
0 Likes
818

Hi,

SPACE: ABAP Keyword, which is equal to blank.

DATA di.: This specifies 'di' as a variable of character type with size 1 char.

this is similar to the following declaration:

DATA: di(1) type c.

Read only

Former Member
0 Likes
818

SPACE is ABAP Key word.

used to place space when ever required.

in case of concatenate two strings if we need space between then we can use separated by space.

DATA: v_var1.

dy default it will take v_var1 as character datatype with length 1 character.

Read only

Former Member
0 Likes
818

Hi,

SAPCE is a sap predefined keyword used to set blank line.

DATA DI. is used for data declaration.

it is one character in length by default.

suppose if you want to create any check box it contains only one character means if the check box selects it is true else false. in this cases we will go for data di for performance.

Regards,

swami