on 10-03-2008 5:35 AM
Reference :SBO2007
I using BusinessObjectInfo.ObjectKey the DocEntry for new added sales order document
The Code works fine except for the following situations
1) if sales order is being added is based off sales quote
or
2) if sales order is being added based on duplicate
Here is my code
Private Sub dataAdd(ByRef oBusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles oCDIForm.dataAdd
If oBusinessObjectInfo.BeforeAction = False Then
dim strDocEntry as string
Dim sXmlDoc As New Xml.XmlDocument
if oBusinessObjectInfo.ActionSuccess = True Then
sXmlDoc.LoadXml(oBusinessObjectInfo.ObjectKey)
strDocEntry = sXmlDoc.SelectSingleNode("DocumentParams/DocEntry").InnerText
End If
end if
Any hint , on why the BusinessObjectInfo return the wrong docentry during the adding of document if based on duplicate or off sales quote
Sincerel yours
Riade Asleh
Hi,
i know iam a bit late ... but maybe you read this anytime .......
try once to read the value from the DataSource
if (BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD &&
BusinessObjectInfo.BeforeAction == false && BusinessObjectInfo.ActionSuccess == true &&
BusinessObjectInfo.FormTypeEx == "141")
{
oForm = globals.SBO_Application.Forms.ActiveForm;
Console.WriteLine(oForm.DataSources.DBDataSources.Item(0).GetValue("DocEntry", 0));
}
its working for me also when i duplicate...
lg David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks
So you are reading it from the grid
Sincerely yours
Riade Asleh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
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.