Skip to Content
author's profile photo Former Member
Former Member

Create an additional FI document after initial MM/FI posting

Hello all,

What we are trying to do is post an MM document and then after the MM document and FI have posted, we want to post a subsequent document in FI to offset additional accounts. We don't want the across the board effects of a T030 determination change would have. Right now it was developed to at the MM posting save the document number, then after a minute or two read the document and make another FI posting. We would want this at run time.. basically create 1 MM doc and 2 FI documents in the same company code. Any help would be appreciated.

Ronnie

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2013 at 05:42 AM

    Hi Ronnie,

    I suppose you are talking of material document posting.

    You can use

    BAdI : MB_DOCUMENT_BADI

    Method : MB_DOCUMENT_UPDATE

    Note : The UPDATE method of MB_DOCUMENT_BADI has a COMMIT WORK in it. So if COMMIT WORK is called twice then the update process terminates.

    Call the BAPI as an RFC call with DESTINATION NONE and the commit also in similar fashion.

    OR

    Call it using IN BACKGROUND TASK

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes, when the material document is posted to MSEG, AFTER that and the matching FI document is posted, we need to post one additional FI document. The problem with the other BAdI/exit solutions I have looked at is that the commit hasn't happened yet so you can't commit the new document. I will look into this one.. thanks for the suggestion

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2013 at 07:15 PM

    I know that there is a better way than what I will propose. Maybe by proposing it however, it will get the others to respond.

    In the MM transaction, I would find the form or function where it branches to creating the FI document. Then in at then end of it I would create an implicit enhancement. There I would call the FB01 BAPI.

    So how does that strike you?

    Neal

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.