Skip to Content
avatar image
Former Member

Open B1 form with specific object

How do I open a known B1 object?

Example:

I have the key value for a purchase order. I know how to call the form ("142"), but how do I let it display the desired OPOR record?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 08, 2004 at 08:58 AM

    There are several ways you could do it, one possible option is listed below:-

    -Use ActivateMenuItem to display the form

    -Change the form mode to Find mode

    -Use the items collection to put the key value into the appropriate edit field

    -Use sendkeys to send a CrLf

    Regards,

    John.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2004 at 10:23 AM

    Hi,

    One more option is to:

    1. Create a hidden user form (Viable = False) with editText that contains the correct purchase order Key.

    2. To that editText add a LinkedButton with the right parameters

    3. Simulate a click on that button.

    This solution is better since you do not relay on system GUI items like menu or purchase order form UID

    Best regards

    Yaniv G.

    SDK Support

    SAP Manage Israel.

    Add comment
    10|10000 characters needed characters exceeded