cancel
Showing results for 
Search instead for 
Did you mean: 

Get the serial number when saving a Sales Order

andrea_brusarestelletti
Active Contributor
0 Kudos

Hello,

  I'm creating a Sales Order with transaction VA01, then from the menù "Extras --> Technical objects" I enter a serial number. When saving the Sales Order or before saving the Sales Order, I would like to carry out some checks on the serial number entered: is there any internal table or structure that can be read from USEREXIT_SAVE_DOCUMENT_PREPARE where I can get the serial number previously entered?

Thanks in advance.

Best regards,

Andrea

Accepted Solutions (0)

Answers (1)

Answers (1)

andrea_brusarestelletti
Active Contributor

Hello,

just to give you un update and not to leave the question open, I found out the solution with the help of a great ABAPER : when processing the assignment of the equipment on the Sales Order, program SAPLIWOL is called. When you revert back to the Sales Order (e.g. the EXIT_SAVE_DOCUMEN_PREPARE) you don't have on-line the same tables and structure of program SAPLIWOL, but, as a matter of fact, you have them on-line, just recalling them this way, with the name of the program at the beginning:


(SAPLIWOL)ISER02

(SAPLIWOL)RIWOL


So for example field (SAPLIWOL)RIWOL-O_OBJNR contains the number of equipment entered before saving the document.


Best regards,

Andrea