‎2011 Sep 27 3:06 PM
Hi all!
I am looking for a function module or BAPI in order to create FI document.
My aim is to have field FDLEV (Planning Level) on item side.
Some documents have a false Planning Level and we can not modify them using transaction FB02 then we have to use a specific program.
I want to consult FI document (FI_DOCUMENT_READ) and I have to reverse it using a call transaction FB08.
Use the previous FI document in order to create a copy and modify the planning level and post it. I see BAPI_ACC_DOCUMENT_POST but this is not for vendor and I do not have the field to correct.
Thanks for your help!
David
‎2011 Sep 27 3:11 PM
Hi
Please, see SAP Note 306504 - Collective note: BAPIs for the AC interface
Regards
Eduardo
‎2011 Sep 27 3:28 PM
Hello,
If the required fields are directly not available in "BAPI_ACC_DOCUMENT_POST" you can pass them through extension structure and then use the relevant BaDI to map the fields of the extension table to the accouting tables.
Also you need not to reverse the document and create a new document with reference to your old document.
Create one Z program in which you could possibly use the FM FI_DOCUMENT_CHANGE.
We just need to pass the old and new values of the field that we need to change along with the field name to this FM.
Hope this info is useful.
Thanks.
Regards,
Rinkesh Doshi
‎2011 Sep 27 4:46 PM
Hi
Rinkesh is right. I forgot the question of extensionin. See SAP Note 487722 - Using EXTENSION1 for accounting BAPIs. You can also do it with a BADI instead with a BTE as this note suggests.
Regards
Eduardo