I have used a following code for navigation of records in sales order.
if (pVal.MenuUID == "1291") //Last Data Record
{
Application.SBO_Applicatio