Showing results for 
Search instead for 
Did you mean: 

Get SAP Form's Corresponding UDF Form

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

To check if the form is open, check if the menu item "6913" (view debug info) is enabled and check, if not check the item and the form opens.



Answers (1)

Answers (1)

Active Contributor
0 Kudos

Hi SC,

The UDF form of a SAP system form has the same formtype (number) except that it is prefixed with a "-".


Sales Order formtype = 139

Sales Order UDF (form) formtype = -139

This is a SBO system standard