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

Sorting into groups......

Former Member
0 Likes
432

Hi all,

How to sort all the materials into two groups on the basis of MLGN-BSSKZ field where MLGN-MATNR = VBAP-MATNR.

Two groups -


(say) MLGN-BSSKZ = 'A'.

MLGN-BSSKZ = ' '

Regards,

Mainak.

2 REPLIES 2
Read only

Former Member
0 Likes
404

Hello,

Get all the material into one itab and use

<b>SORT ITAB BY BSSKZ DECSENDING</b>

Thanks !!!

Vasanth

Read only

Former Member
0 Likes
404

sort itab by matnr bsskz [descending].

here it will sort first matnr and according bsskz.

suppose

matnr bsskz

a a

a b

b a

c a

b c

b a

it will give

a a

a b

b a

b b

b c

c a

regards

shiba dutta