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

Function module for FI document change with G/L line items

Former Member
0 Likes
3,529

Hi!

Does anybody know how to change FI document with G/L line items (fields like XREF3, SGTXT, ZUONR - generally speaking, all the fields can be changed with FB02)?

FM FI_DOCUMENT_CHANGE has needed functionality and works well for account payables and account receivables line items, but it doesn't handle general ledger line items.

Regards,

Maxim.

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
1,373

Hi,

sorry i don't know any fm .

I use bdc for transaction fb09 to change fi documents.

Andreas

Hi,

sorry i don't know any fm .

I use bdc for transaction fb09 to change fi documents.

Andreas

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
1,374

Hi,

sorry i don't know any fm .

I use bdc for transaction fb09 to change fi documents.

Andreas

Read only

Former Member
0 Likes
1,373

Hello!

The function has some mandatory fields to use:

I_AWTYP -> get value from BKPF-AWTYP for the specific document;

I_AWREF -> number of the document to change;

I_AWORG-> concatenate document's company with respective year;

Then, only one of the following fields should be filled:

i_lifnr,

i_kunnr,

i_obzei,

i_buzei.

You can find the relevant data for this fields in BSEG.

The structure I_BSEGC should be filled with data you think appropriate. I didn't tested it, but i think the first fields are sufficient.

Then, add lines (1 for each field you wish to change) in table T_ACCCHG.

However, you should notice that you're not allowed to change all fields. For instance, KKBER is one of the fields that is forbidden to change in this FM.

Hope that helps.

Rui Delca Mendes