Move fields in Page via AL Extension:
Case I- Move Before:
(1) Syntax : “movebefore(Anchor; Target1, Target2)”. Lets take an example, move field “Unit Price” before “HSN/SAC code”.
- Anchor: controls, actions, and groups.
- Target: list of actions or list of controls.
(2) Source Code:
pageextension 50001 SalesOrderSubFormExt extends “Sales Order Subform” { layout { movebefore(“GST Group Code”; “Unit Price”) } } |

(3) Publish the extension and see the effect in below image-

Case II- Move After:
(1) Syntax : “moveafter(Anchor; Target1, Target2)”. Lets take an example, move field “Unit Price” after “HSN/SAC code”.
- Anchor: controls, actions, and groups.
- Target: list of actions or list of controls.
(2) Source Code:
pageextension 50001 SalesOrderSubFormExt extends “Sales Order Subform” { layout { moveafter(“GST Group Code”; “Unit Price”) } } |

(3) Publish the extension and see the effect in below image-
