I have not used that particular BAPI myself, but just looking at its interface in SE37, it seems that export parameter DOCUMENTNUMBER will contain the number.
Dig Deeper on SAP Java and J2EE
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.