Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Quotation Adjustments

Hi Guys, hope u have some idea to stop this,

I'm making a Sales Quotation, i want to catch when the Sales Quotation is created i could leave the user his last document made.

I'm catching in the FORM_DATA_ADD of the form "149" in actionsuccess=true this, then i put the form mode in search mode, put the docnum created and make a click to the button "1" to search the document, this is working fine until Business One shots an event that clears the document again.

this is my function

Dim oDocXml As New Xml.XmlDocument

oDocXml.LoadXml(Evento.ObjectKey)

Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations)

Dim DocNum As Long = oDocXml.InnerText

Dim oFormC As SAPbouiCOM.Form = Pappl.Forms.Item(Evento.FormUID)

oFormC.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE

oFormC.Items.Item("8").Specific.string = DocNum.ToString

oFormC.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular)

Once i do this click event B1 shots a FORM_DATA_LOAD and loads my document, I tried to let a bubbleevent=false after my function but still in some place B1 shots the clear event, can u help me how to stop this? if anyone knows..

Thanks in advance

NOTE: SB1 2005A PL36

Gabriel

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question