how to change query in sap?
Click on Settings-->Settings in the menu bar as below and uncheck the Graphical Query Painter checkbox. Now you can see the List Layout in the below format and you can change the order of the fields that appear in the output by changing the Sequence numbers accordingly.