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

Sort order in smartforms

0 Likes
1,181

Hi All,

I am printing a putaway label using a purchasing document. The label is being printed with the line items sorted by the PO line item number by default. I need to change this sort order as per the article number. I am unable to do so. Could you please suggest how to modify this default sort order?

Thanks,

Jean

2 REPLIES 2
Read only

SimoneMilesi
Active Contributor
999

If you are using a custom report to print, sort the internal table with the items by your material number

Read only

former_member495882
Participant
0 Likes
999

Hi Jean,

That really depends on the logic within the lable or your print report. If there is a sort logic in the form, the sorting of the data would have no effect, if you do it in the print report.

So you have to analyze first the print report and make sure which internal table is handed over to the smartform. And if there is any sort logic before.

Than you have to look into the smartform and analyze the nodes around the items. Perhaps you can do the sorting in the loop node. Or otherwhise in a coding routine that could be found in the formroutines of the smartform.

I hope that answer could help to solve your issue.

Kind regards

Silvio