on 12-14-2011 1:03 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.