cancel
Showing results for 
Search instead for 
Did you mean: 

syntax query

Former Member
0 Kudos

hi all,

what is the difference between the followig declerations.

DATA: WA_KNA1 TYPE KNA1,

IT_ITAB TYPE TABLE OF ZCREDIT_PAYMENTS.

declaration wa_kna1 does not represent an internal table??

Thank You.

yateendra.

View Entire Topic
Former Member
0 Kudos

Hi,

DATA: WA_KNA1 TYPE KNA1,

It is a structure as the type (KNA1)y ou referred is a standard structure.

And second one is internal table As you mention the table type.

For Creating a internal table you have three different Parameters.

1. Table kind.

2. Line type,

3. Key fields.

In the First case you ahave mention only the line type as KNA1.

Thats why its merely a structure, not an internal table.

But in second case you you mentioned the 'Table type' and 'Line type' Both.

By default if you do not mention table ttype it takes 'Standard 'type. So its internal table.

For Details follow the link-

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

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

Regards,

Sujit

Edited by: Sujit Pal on Jul 10, 2008 1:40 PM