Application Development and Automation 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: 
Read only

MB_DOCUMENT_POST

Former Member
0 Likes
805

Hi,

Here is my issue: I am using tcode MB31 to Good Receipt my Production Order.

By implementing MB_DOCUMENT_POST, method MB_DOCUMENT_UPDATE, to post FI Excise Duty document with BAPI_ACC_GL_POSTING_POST.

My problem is no document are created, any one can explain why?

Robert

4 REPLIES 4
Read only

Former Member
0 Likes
719

Are you able to create the material document and not the accouting document?

MB_DOCUMENT_POST, I think is called in update task and within that you are calling the BAPI which may require and additional commit. But since you are in update task, issuing additional commit will result in update termination.

Check if you can use another exit to do that.

Read only

0 Likes
719

Sorry, your'r right.

I cannot create accounting document.

I am calling my BAPI with this param:

'in background task as separate unit'

I'II look if another BADI or user Exit exist.

Robert

Message was edited by: Robert Bouchard

Read only

Former Member
0 Likes
719

Hi,

l'v tryed to find the Exit or BADI to use with tcode MB31, to post Excise document ti FI, with no result...

Any one can help?

Robert

Read only

0 Likes
719

These are the user exits available for MB31, Try if something helps -

Exit Name Description

MBCF0002 Customer function exit: Segment text in material doc. item

MBCF0005 Material document item for goods receipt/issue slip

MBCF0006 Customer function for WBS element

MBCF0007 Customer function exit: Updating a reservation

MBCF0009 Filling the storage location field

MBCFC003 Maintenance of batch master data for goods movements

MBCFC004 Maintenance of batch specifications for goods movements

MBCF0011 Reading of RESB and RKPF for print list in MB26