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

Internal table data sorting problem

Former Member
0 Likes
295

Hi all,

i did a simple select statement into internal table with 2 different sample data.

sample A: data 100 - 102. sample B: data 100-102

after i go throw the select statement with sample A and sample B and the internal table data like bellow :

sample A

100|M48 | 1.00 |

100|M48 | 50000.00 |

101|M48 | 1.00 |

101|M48 | 50000.00 |

Sample B

100|M48 | 50000.00 |

100|M48 | 1.00 |

101|M48 | 50000.00 |

101|M48 | 1.00 |

102|M48 | 40000.00 |

102|M48 | 1.00 |

    • Problem is why the data squence for sample A and sample B is different? sample A amount 1 come first but sample B amount 50000.00 come 1st. Any ideas ?

THanks

1 REPLY 1
Read only

deepak_dhamat
Active Contributor
0 Likes
271

hi ,

Use sorting method after selecting data in internal table .

SORT INTERNAL TABLE BY 1,2,3 COLUMN

if you still didn't get the solution read about the table types and its properties .

REGARDS

DEEPAK.