06-05-2013 11:55 AM
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
06-05-2013 12:10 PM
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.
06-05-2013 12:10 PM
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.
06-05-2013 1:24 PM
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
06-05-2013 1:40 PM