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: 

Hi

Former Member
0 Kudos

Hi,

I am new to ABAP. Plz tell me the steps for how to create a field string and Internal table

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

CREATE STRING:

Data Name type string.

CREATE INTERNAL TABLE.

Data: Begin of itab occurs 0,

matnr like mara-matnr,

end of itab.

(OR)

DATA: ITAB like MARA occurs 0 with header line.

IF USEFULL REWARD

6 REPLIES 6

Former Member
0 Kudos

hi keyur,

for creating internal tables go to this link.

http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm

for field string go to this link.

http://help.sap.com/saphelp_47x200/helpdata/en/79/c5545eb3dc11d5993800508b6b8b11/frameset.htm

There are lot of links there regarding internal table and field string. so u can search in the sdn also.

Regards...

Arun.

Former Member
0 Kudos

Hi

Refer this for better understanding...

Regards

Raj

Former Member
0 Kudos

Hi Keyur,

See you can seclare string as,

data: str type string

and Itnernal table as

data: it_table type table of str.

There are various ways to declare internal table,

Refer this,

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm

Reward if useful!

Former Member
0 Kudos

Hi,

declaration

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.

You can create internal table with structure.

1.DATA: <INTERNAL TABLE > LIKE <ORGINAL TABLE> occure 0 with header line.

2.DATA: Begin of <INTERNAL TABLE> OCCURS 0.

include structure mystructure.

DATA: END OF ITAB.

Reward points if it helps..

Regards,

Omkar.

Message was edited by:

Omkaram Yanamala

Former Member
0 Kudos

Hi,

Internal tables are a standard data type object which exists only during the runtime of the program. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need.

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm

Regards,

Padmam.

Former Member
0 Kudos

Hi,

CREATE STRING:

Data Name type string.

CREATE INTERNAL TABLE.

Data: Begin of itab occurs 0,

matnr like mara-matnr,

end of itab.

(OR)

DATA: ITAB like MARA occurs 0 with header line.

IF USEFULL REWARD