Skip to Content
author's profile photo Former Member
Former Member

SPACE ; DATA di

How does these “2” statements differ :-

1) SPACE

2) DATA di .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:59 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 06:08 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 06:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.