cancel
Showing results for 
Search instead for 
Did you mean: 

Get the Invoice no after posting through DI API

Former Member
0 Kudos

How we can get the AR Invoice DocEntry after adding invoice through DI API

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member458725
Active Participant
0 Kudos

Try below code

string objectKey = String.Empty;

Global.SapCompany.GetNewObjectCode(out objectKey);

if (oProc.GetByKey(int.Parse(objectKey)))   //retrieve code

{}

Former Member
0 Kudos

Use this method immaterially after Add() method:

Dim newKey as String = oCompany.GetNewObjectKey()

Beni.