2008 Mar 31 3:46 AM
Hi!
At dialogue creation down payment (F-48), the system creates communications between the purchasing order and the accounting document.
I.e. in history of a position of the purchasing order there is a record with number accounting the document.
And in the accounting document down payment there is a reference to number of the purchasing order in a browser of relations (look FB03 it is cluck in the menu: Environment-> Document Environment-> relationship Browser).
I use ' BAPI_ACC_DOCUMENT_POST ' for creation down payment:
As a result I receive the normal document down payment, but links on the purchasing order it was not created, i.e. there is no record with number of the accounting document in history of a position of the purchasing order, and there is no reference to the purchasing order in a browser of relations of the accounting document.
Is it possible to create the high-grade document down payment with all references what is at dialogue work of transaction F-48? What I for this purpose should make?
Edited by: Soloviev Ivan on Apr 1, 2008 1:47 AM
Hi!
At dialogue creation down payment (F-48), the system creates communications between the purchasing order and the accounting document.
I.e. in history of a position of the purchasing order there is a record with number accounting the document.
And in the accounting document down payment there is a reference to number of the purchasing order in a browser of relations (look FB03 it is cluck in the menu: Environment-> Document Environment-> relationship Browser).
I use ' BAPI_ACC_DOCUMENT_POST ' for creation down payment:
As a result I receive the normal document down payment, but links on the purchasing order it was not created, i.e. there is no record with number of the accounting document in history of a position of the purchasing order, and there is no reference to the purchasing order in a browser of relations of the accounting document.
Is it possible to create the high-grade document down payment with all references what is at dialogue work of transaction F-48? What I for this purpose should make?
Edited by: Soloviev Ivan on Apr 1, 2008 1:47 AM
2008 Apr 10 8:18 PM
Hi,
Did you find a solution to your problem ?
I'am facing the same problem and was curious to know if you solved this.
2008 Apr 10 11:25 PM
Yes. I am find solution for my promlem.
In standard the BAPI does not update the MM order history.
If you need this functionality it is necessary to implement
a business transaction event (user exit) to call
the function ME_CREATE_HISTORY_FINANCE which is also called
from F-48 for online postings.
Take a look a Business Transaction Event 1050.
You need some check here to make sure the function is only called
for your BAPI postings, perhaps you can check for BKPF-TCODE
or BKPF-AWKEY if use use your own object type starting with Z... here.
Then call the function like:
CALL FUNCTION 'ME_CREATE_HISTORY_FINANCE'
EXPORTING
i_check = 'X'
i_post = 'X'
TABLES
t_bkpf = t_bkpf
t_bseg = t_bseg
EXCEPTIONS
error_message = 9.
IF sy-subrc = 9.
MESSAGE ID sy-msgid TYPE 'A' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
It is necessary to create an A message here in case of problems
because at the point this BTE is called the document numbers are
already taken and an A message ensures a proper ROLLBACK
to avoid document number gaps.
2008 Apr 11 10:03 PM
Soloviev,
Thanks for your response. I had also found this function module while debugging F-48 a short while after posting the question.
I was planning to create a custom function module to call ME_CREATE_HISTORY_FINANCE after the BAPI call.
But I see that you suggested using BTE 1050. I will give that a try.
Thanks a lot !!
Johny.
2010 Nov 04 5:45 PM
Hi,
It is possible to explain how fill the structures of the BAPI_ACC_DOCUMENT_POST for the down payment.
THank you in advance.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |