Application Development 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: 

SPACE ; DATA di

Former Member
0 Kudos

How does these “2” statements differ :-

1) SPACE

2) DATA di .

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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