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: 

ddic

Former Member
0 Kudos

hi,

How to write internal table as a sorted table?

4 REPLIES 4

paruchuri_nagesh
Active Contributor
0 Kudos

hi

types : begin of itab.

lifnr like lfa1-lifnr,

name1 like lfa1-name1,

end of itab.

data : wa_itab type itab,

it_itab type sorted table of itab.

now it_itab is a sorted internal table

regards

Nagesh.Paruchuri

Former Member
0 Kudos

Hi,

while u r defining internal table

generally u write standard table of . instead of that one u put

ex:- itab type sorted table of (structure).

Assign points if useful.

former_member188827
Active Contributor
0 Kudos

data <internal_table_name> type sorted table of <structure_name> with key_Def.

e.g

data itab type sorted TABLE OF vbak with UNIQUE key vbeln.

Former Member
0 Kudos

hi,

use SORTED TABLE OF keyword as

tables:mara.

data: itab like SORTED TABLE OF MARA with header line.

if helpful reward some points.

with regards,

Suresh Aluri.