Skip to Content
author's profile photo
Former Member

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 07, 2005 at 08:44 AM

    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.

    Regards

    Ad

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 07, 2005 at 10:04 AM

    Hi SC,

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

    Example:

    Sales Order formtype = 139

    Sales Order UDF (form) formtype = -139

    This is a SBO system standard

    Add comment
    10|10000 characters needed characters exceeded