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

purpose of using string field

how to use string field and its purpose...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Dec 07, 2013 at 03:43 PM

    I'm not sure where you want to go to..

    A string is an awesome tool to handle data. It is always in the length you need, you can get a lot of thing in it, not only words, binar data and stuff like that. Just image you need to put a PDF attached to a mail. Where do you save the pdf... yes, it's an XSTRING.

    Another thing is, you want to give a clue where tax is lower than other positions. There might be orders with mor than 100 positions in. So a Char255 won't help you out easily...

    Regards

    Florian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2013 at 03:37 AM

    Use string when you don't know the length, when you need to CONCATENATE ... INTO string .. and for variables that hold text messages..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2013 at 04:21 AM

    Hi,

    Click here to read documentation on string.

    It will be very useful to you pls check.

    Regards,

    Alenlee MJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2013 at 10:03 AM

    STRING: Character string with variable length This data type can be used only in types (data elements, structures, table types) and domains. In the dictionary a length can be specified for this type (at least 256 characters). It can be used in database tables only with restrictions. For a description of them, refer to the documentation of the ABAP statement 'STRING'. In ABAP, this type is implemented as a reference to a storage area of variable size. The system proposes 132 characters as default for the output length. You cannot attach search helps to components of this type.

    SSTRING: Short character string with variable length. In the Dictionary the number of characters can be specified for this type (from 1 to 1333). This data type can be used only in types (data elements, structures, table types) and domains. It can be used in database tables. To do so, refer to the documentation of the ABAP statement 'STRING'. In ABAP, this type is implemented as a reference to a storage area of variable size. String fields of this type can be used in indexes and in the WHERE condition of a SELECT statement. You cannot use them in table keys

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2013 at 10:25 AM

    Hi Vasan,

    If you defined a variable as a string variable means it can hold values of any type like char,Decimals,Special characters,numeric.

    Suppose you can take websites address that will be string it.

    hope you got it.

    Regards,

    Hiriyappa.

    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.