Skip to Content
avatar image
Former Member

String , String_table ?

hi,

I have seen the following code but not able to understand what is string_table and below two declaration.

In the first one a standard table of String is made.

i_data type STANDARD TABLE OF string

Is String a Standard Table ? If so , when do we use this ?

What about this String_table ? Its use ?

ls_tab type string_table

What is the difference between the below mentioned two declaration ?

here it_table is a internal table.

new type it_table.

final type STANDARD TABLE OF it_table.

What about this new and final ? their use ?

Any inputs ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 19, 2009 at 02:25 PM

    Hi,

    In the first one a standard table of String is made.

    i_data type STANDARD TABLE OF string

    Is String a Standard Table ? If so , when do we use this ?

    String is not a standard table. Probably, it's declared in any part of the code.

    What about this String_table ? Its use ?

    ls_tab type string_table

    The same I mentioned above.

    What is the difference between the below mentioned two declaration ?

    here it_table is a internal table.

    new type it_table.

    final type STANDARD TABLE OF it_table.

    In this case: 1) new is a structure or work area; 2) final is a table

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Sorry, I didn't understand your question very well so in your case both *i_data and *ls_tab are tables with a field with variable length.

      You can see in tcode se11>select Data Type>prees F4>Search for Table Types>Information System and in field Table Type do the search by string* and you could get the table type String_Table.

      Regards,

      Edited by: Enrique Carrero on Feb 19, 2009 2:56 PM

  • avatar image
    Former Member
    Feb 20, 2009 at 04:12 AM

    i_data type STANDARD TABLE OF string -- Creates a table with one field of type string.

    fields type string_table -- Here string_table is table type defined in se11.

    It creates a table of Strings.

    final_table type STANDARD TABLE OF it_table -- Creates another internal table final_table like it_table.

    new_table type it_table -- here new_table is a work area.

    Add comment
    10|10000 characters needed characters exceeded

  • May 21, 2014 at 09:22 AM

    There is no difference,

    sometimes, you need it in method, function,. Webdynpro ( GUI interface Parameters with method )

    you can not in GUI select table of string,


    so you can alos do string_table,

    and in your program, you can do what you want,

    data str type STANDARD TABLE OF string

    or you can dp


    data str type string_table


    both the same,

    as I said, in GUI parameters, you can not do type STANDARD TABLE OF string, you can do string_table


    look to this Photo





    I hope you got it,


    Best Regards


    Ibrahim



    1.JPG (60.1 kB)
    Add comment
    10|10000 characters needed characters exceeded