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

regarding field string

Former Member
0 Likes
458

hi experts,

plz explain me what is field string with your own eg.........

thnx in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
431

Hi

Field string is nothing but the group of fields

You can call it as Structure also

example:

types: begin of x_str

kunnr type kunnr,

lifnr type lifnr,

name1 type name1,

land1 type land1,

end of x_str.

this stores one record at run time.

Regards

Anji

Read only

Former Member
0 Likes
431

hi!

did u mean datatype SRING.

if so

data : str type string.

SSTRING 1-255 Character string string

STRING 256-... Character string string

The type SSTRING is available as of release 6.10 and it has a variable length. Its maximum length must be specified and is limited to 255. The advantage of this type compared with CHAR, is that it is assigned to the ABAP type string.

Regards,

Nagulan

Read only

Former Member
0 Likes
431

Hi,

Field string is like a structure but it used for only one program or report. It can be used many time with different name in a same program.

For ex.

Data:Begin of salary,

Basic type n,

da type i,

hra type i,

end of salary.