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

ddic

Former Member
0 Likes
555

hi,

How to write internal table as a sorted table?

4 REPLIES 4
Read only

paruchuri_nagesh
Active Contributor
0 Likes
531

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

Read only

Former Member
0 Likes
531

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.

Read only

former_member188827
Active Contributor
0 Likes
531

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.

Read only

Former Member
0 Likes
531

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.