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: 

User exit Mat doc number in BSEG-SGTXT

rey_miranda
Explorer
0 Kudos

Hi, guys.

Are there any user exits to capture the material doc number and transfer to BSEG-SGTXT?

I checked user exit MBCF0002 does it on FI side. But I am having a hard time capturing MBLNR. Found Badi MB_DOCUMENT_BEFORE_UPDATE, but this is called after exit MBCF0002.

I tried BTE's in FIBF t-code, but I need the exit to export MBLNR to memory for later usage in FI interface.

I tried substitution, GGB1, but it doesn't work. Since AWKEY contains mat doc + year, but I think BKPF-AWKEY has no value yet at some point until the FI doc is saved.

I hope you guys can help.

Thanks.

Regards,

Rey

2 REPLIES 2

former_member306787
Active Participant
0 Kudos

Hi,

Isn't it possible to do substitution with some ABAP programming?

Ask your programmer to have a look. Even if the BKPF-AWKEY is empty at that moment, he/she might be able to retrieve it from somewhere.

Best regards,

Zhou

0 Kudos

Yes, it is possible to do substitution with programming, Zhou.

I am currently searching the enhancement spot where I can import the MBLNR to memory, before the substitution is triggered.