Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on 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.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 "-".


    Sales Order formtype = 139

    Sales Order UDF (form) formtype = -139

    This is a SBO system standard

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.