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

FI Document creation using Function module or BAPI?

Former Member
0 Likes
3,962

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

3 REPLIES 3
Read only

eduardo_hinojosa
Active Contributor
0 Likes
2,137

Hi

Please, see SAP Note 306504 - Collective note: BAPIs for the AC interface

Regards

Eduardo

Read only

Former Member
0 Likes
2,137

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

Read only

0 Likes
2,137

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