Skip to Content

Get new service call saved

I have a form that when you click a button opens the screen to register a new service call. When you register this new call, when clicking the "Add" want to know the id of the call that was saved in the database and bring to my form.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 06:47 PM

    Hello

    Service call is a special form of SAP B1. It has a different habit than other forms.

    You can find the call id on the form, in the item UID 12.

    Regards,

    János

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Harley Magalhaes

      When a service call is recorded SBO_Application_FormDataEvent eventhandler is called.

      You must track the eventhandler and the new service all id can be readed from xml format

      like

      If BusinessObjectInfo.BeforeAction = False AndAlso BusinessObjectInfo.FormTypeEx = "60110" Then
                  If BusinessObjectInfo.EventType = BoEventTypes.et_FORM_DATA_ADD Then
                      Dim oXmlDoc As System.Xml.XmlDocument = New Xml.XmlDocument()
                      oXmlDoc.LoadXml(BusinessObjectInfo.ObjectKey)
                      Dim CallId As String = oXmlDoc.SelectSingleNode("/ServiceCallParams/ServiceCallID").InnerText
                      If (CallId <> "") Then
                          sbo_application.MessageBox(CallId)
                      End If
                  End If
              End If

      Regards

      János

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.