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: 

Rescue BELNR in FM

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can probably use

get parameter id 'BLN'

Darren

3 REPLIES 3

Former Member
0 Kudos

Hi,

You can probably use

get parameter id 'BLN'

Darren

0 Kudos

Thanks a lot!!!!!!!!

This is the solution. The parameter is BLP because this FM creates a preliminary document.

Thanks a lot!

Former Member
0 Kudos

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.