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: 

MB1B - User Exit on Save - Does not give me generated Doc no

venkateswaran_k
Active Contributor
0 Kudos

Hi,

My requrement is to send an email once the document is saved thrugh MB1B.

I used following exit -MBCF0002

     In the include - ZXMBCU02    I set a  break point.

The exit is triggered on save.  However, the newly generate ddocument number is not available.

( at this exit, I did not get the MBLNR generated number. )

Is there any othe exit, that gives me the MBLNR...

Kindly help me..

regards,

Venkat

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Using parameter id of MBLNR (MBN) you will get the document number.

try this code in that exit..

data: lv_mblnr type mblnr.


GET PARAMETER ID 'MBN' FIELD lv_mblnr.

3 REPLIES 3

Former Member
0 Kudos

Using parameter id of MBLNR (MBN) you will get the document number.

try this code in that exit..

data: lv_mblnr type mblnr.


GET PARAMETER ID 'MBN' FIELD lv_mblnr.

0 Kudos

Hi Vamsi,

Thanyou for the reply,

However, the data is not yet saved in database it seems....

I was trying to send the email upon SAVE...

At this moment, the mkpf and mseg tables are not updated...

I want the exit, just after the document is posted..

Can you please update me

REgards,

Venkat

0 Kudos

Hi,

Check this enhancement MB_CF001 once.