Steve, What you want to do is call the OpenWindow() function of the SOP_Entry form. This function takes the SOP Number and SOP Type as parameters, and if those are not empty, it will open the window and display the sales document. In the VSTDGPProgrammersguide.pdf, it talks about how to call form level functions on page 65. You will want to take a look at that. You will be using the Invoke() method to call that function. The parameters for the function can be found in the GP 9.0 SDK. In the Content>8.0to9.0 directory, there is a CoreParams_900.txt. They are as follows:
function returns integer OpenWindow;
in 'SOP Number' sSOPNumber;
in 'SOP Type' nSOPType;
optional in boolean fGiveWarningForTypeChg;
optional in 'Customer Number' CustID;
optional in 'Caller ID' nCallerID;
So you would want to pass in the sop number, sop type, false for the third parameter, empty string for the fourth parameter and 1 for the fifth paramter.
That should open the window and display a SOP Document.
Dave
MBS Dev Support