Skip to Content
author's profile photo Former Member
Former Member

Setting the value of some editText


I have created a Customer, Contract, CustomerEquipmentCard and whatever is needed to create a service call (all through a custom form using the DI).

Now, through that custom form I want to change the internal serial number on the already open Service Call form so it'll open up the data automatically (when I do it manually it works)

However when I do it manually it pops up the lookup (ChooseFromList) window which I prefer the user wouldn't see.... is there any way to set that internal number from an external form without that lookup window popping up?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 24, 2006 at 10:48 AM


    This is how the story could go in a simple case.

    Please note that this is just a sample - no warranties!


    '* Please note: you can get all IDs when you activate   *
    '* "System information" in the "View" menu + hover over *
    '* e.g. an item with the mouse cursor                   *
    '*                                                      *
    '* Assumption: Service Call form not yet open...        *
    Private Sub GoToServiceCall()
      ' Launch Service Call form...
      ' switch to "Find" mode...
      Dim oForm As SAPbouiCOM.Form
      Dim oEditText As SAPbouiCOM.EditText
      ' Access the form...
      oForm = SBO_Application.Forms.ActiveForm() 
      'evtl. GetForm("60110", (e.g.)1) when already open
      ' Access callID edittext...
      oEditText = oForm.Items.Item("12").Specific
      ' Fill in service call number...
      oEditText.String = "14" ' replace with your number
      ' XX-strange! I think this button should have ID "1" - as usual!
      'or SBO_Application.SendKeys("{ENTER}")
      ' That's it (hopefully ;-))
    End Sub

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yeah I managed that much...

      The problem was that whenever the edittext ( oForm.Items.Item("12") ) was unfocused, the choose from list window popped up (even if it was an exact match). That's exactly what I am trying to avoid....


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.