10-03-2008 8:09 AM
Hi!
We need to obtain the number of document (BELNR) after executing the function module PRELIMINARY_POSTING_FB01 without using sy-msgv1... Do you have any solution?
Thanks.
10-03-2008 8:32 AM
10-03-2008 8:32 AM
10-03-2008 8:39 AM
Thanks a lot!!!!!!!!
This is the solution. The parameter is BLP because this FM creates a preliminary document.
Thanks a lot!
10-03-2008 8:37 AM
When a document is created and saved to the database, the document number is stored in the SAP memory. You can access this number from the memory using the Parameter ID that identifies the particular document number.
Try using Get parameter Id for extracting the value from SAP memory.
DATA: w_belnr TYPE bkpf-belnr.
GET PARAMETER ID 'BLN' field w_belnr.