cancel
Showing results for 
Search instead for 
Did you mean: 

Get new service call saved

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Where to get this id I know. But maybe in time to save, someone else has already saved a record with the same id. In this case the SAP assigns that call for a different id than this screen. This is exactly why I wanted a solution.

Former Member
0 Kudos

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

Answers (0)