cancel
Showing results for 
Search instead for 
Did you mean: 

How to get DocEntry of AR Invoice in ADD via UI API

Former Member
0 Kudos

My sap b1 version  9.0 PL 07

After I added AR invoice , i need to get DocEntry of just added AR Invoince .

Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please repost above query at SDK forum.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

Hi,

maybe this may help you

regards alessandro

Former Member
0 Kudos

Hi

Am newer to sap b1 sdk.

Please send that in vb.net

Former Member
0 Kudos

Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent

     

   If BusinessObjectInfo.FormTypeEx = "FormUid" Then

       If BusinessObjectInfo.BeforeAction = False Then

         Select Case BusinessObjectInfo.EventType

            Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD

                        If BusinessObjectInfo.ActionSuccess Then

                            oform = SBO_Application.Forms.Item(BusinessObjectInfo.FormUID)

                             Dim odbds As SAPbouiCOM.DBDataSource = CType(oform.DataSources.DBDataSources.Item("iddbdatasource"), SAPbouiCOM.DBDataSource)

                             Dim DocEntry As integer = odbds.GetValue("DocEntry", odbds.Offset)

                         end if

              end case

           end if

     end if

End Sub

Regards alessandro

Former Member
0 Kudos

Collection - Out of boundaries  [66000-34]

showing this error

Former Member
0 Kudos

try to change


this


Dim odbds As SAPbouiCOM.DBDataSource = CType(oform.DataSources.DBDataSources.Item("iddbdatasource"), SAPbouiCOM.DBDataSource)


with this


Dim odbds As SAPbouiCOM.DBDataSource = CType(oform.DataSources.DBDataSources.Item(0), SAPbouiCOM.DBDataSource)

Former Member
0 Kudos

Dear Alessandro Petrone,

Thank you i got the docentry value

Former Member
0 Kudos

Hi Nandappa,

your welcome...If your question is solved, can you close the post marking the correct answer

Regards Alessandro.

Former Member
0 Kudos

Yes

Former Member
0 Kudos

hi, you haven't close tred.