08-16-2007 11:26 AM
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.
08-16-2007 11:28 AM
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á