Skip to Content
Former Member
Oct 07, 2005 at 08:33 AM

Get SAP Form's Corresponding UDF Form


Hi All,

I have a problem accessing the sales order's corresponding UDF form. If I have multiple sales order forms open concurrently, and some of the UDF forms are not open, the UDF's FormTypeCount does not seem to be in sync with the sales order form. For example:

Sales Order 1(FormTypeCount=1) - UDF Form(FormTypeCount=1)

Sales Order 2(FormTypeCount=2) - UDF Form is closed

Sales Order 3(FormTypeCount=3) - UDF Form(FormTypeCount=2)

I am using the following code to get a reference to the sales order and UDF form:

Set oSOForm = SBO_Application.Forms.GetFormByTypeAndCount(139, vSOFormCount)

Set oUDFForm = SBO_Application.Forms.GetFormByTypeAndCount(-139, vSOFormCount)

Is there any way for me to get the correct UDF form and also to check if the UDF Form is open?