cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving created sales order docnum and print it using Crystal report

Former Member
0 Kudos
61

Hi all

I'm writing an application to deal with my SAP Business One ( version 2007A SP1 Pl 09 ) using DI-API

I managed to create sales orders from an excel file using this

oSalesOrder.Lines.Add ( for each lines i need )

oSalesOrder.Add ( to create the sales order )

I need to do something more and so i'm asking some suggestion from you

1) I need to know the docnumber as soon i execute the oSalesOrder.Add and write it down on my execl application

2) I need to print automatically the order as soon i have created it using Crystal report

Some suggestions ??

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member689126
Active Contributor
0 Kudos

Hi

To get the docnumber use

Dim strDocNum As String = ""
diCompany.GetNewObjectCode(strDocNum )

Regards

Arun