2007 Jul 03 7:58 AM
Hi,
I am new to ABAP. Plz tell me the steps for how to create a field string and Internal table
2007 Jul 03 10:04 AM
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
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
2007 Jul 03 8:05 AM
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.
2007 Jul 03 8:05 AM
2007 Jul 03 8:05 AM
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!
2007 Jul 03 8:10 AM
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
2007 Jul 03 9:24 AM
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.
2007 Jul 03 10:04 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |