cancel
Showing results for 
Search instead for 
Did you mean: 

program to arrange 4 strings in ascending order .

Former Member
0 Kudos

can any one gimme the code to arrage 4 strings in ascending order.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

create an internal table with a field of character type of sufficient length..

Now append the fields one after one.

Use sort Table option to get the Required result.

Code.

Report XYZ.

data : begin of t_table occurs 0 ,

field(255) type c,

end of t_table.

field = 'abc'.

append field.

field = 'adcg'.

append field.

field = 'afeter'.

append field.

field = 'afar'.

append field.

sort t_table .

Thanks and regards

sharma Nittala

Message was edited by:

nsk sharma

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

Yes, Sort the internal table with the field ..

Regards,

Santosh

former_member193831
Active Participant
0 Kudos

Sorting he internal table would help.

Regards,

Vivek