Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

VA01 Help required

Former Member
0 Kudos

Hi all,

I have attached a SMARTFORM in V/30. It will automatically print out the Order automatically when new order is made.

Now the thing is that i dont know what the number system has generated and how to fetch it automatically and get data from VBAK and VBAP according to that vbeln.

Is there any function module to fetch the last order number generated? or is there any other way i should do it?

thanks.

1 REPLY 1

Former Member
0 Kudos

Hi!

Try using GET PARAMETER ID 'AUN' FIELD my_last_vbeln.

AUN is the parameter ID, which contains the last used customer order number.

Regards

Tamá