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

MIGO: FI document

Former Member
0 Likes
4,422

Hi,

I'm not sure if this is the right forum...

I'm looking for the coding where in transaction MIGO the FI document is created. I create a goods movement with a purchase order as referece document. I'm not able to find the place where the corresponding FI doc. is created.

Can someone help me here?

Thanks,

Reg

8 REPLIES 8
Read only

Former Member
0 Likes
1,986

Are you looking for how the finance document is created even though you are creating a material document and where in the code that call happens? Somewhere at the end of the process, there is a call to several FI function modules, each creating a FICO document such as as accounting document, COPA document etc. It gets all the function module names from a config table and then executes each one of those function modules in a loop. I will post the name of that table as soon as I find as I don't remember it at the top of my head. This automated FI postings config when a material movement is done in the system and is dependent on material movement type.

Read only

Former Member
0 Likes
1,986

Yes, this is exactly what I need. I want to add a new entry into accounting document into a different/new account. But until now I wasn't able to find the place when the creation starts.

Thanks,

Reg

Read only

0 Likes
1,986

But that should be a config task. In config, in MM under inventory management, movement types, there will be a place where you set up the accounts per movement type for automatic posting. So if you want to change the account that a certain movement is currently posting to, you change it here in config not through coding.

Read only

Former Member
0 Likes
1,986

No, this is not possible because MM is not used completely...Please give me the include/routine where the FI is created. It must be before (or inside) the module MB_CREATE_GOODS_MOVEMENT. After the commit the material doc. is created and also the accounting doc.

Read only

Former Member
0 Likes
1,986

Go to VL32n

Enter the delivery Number for which you posted Goods reciept.Then use Doc FLow(F7) .You would be able to see all the doc. for accountiong press {accounting tab}

Please award points !!!

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,986

If you want to post other FI document than those specified in the Customizing, you may use BADI definition INVOICE_UPDATE, interface IF_EX_INVOICE_UPDATE, Method CHANGE_IN_UPDATE.

Regards

Read only

Former Member
0 Likes
1,986

I found the place by myself: it's in include MM07MFF9_F_BELEG_ERGAENZEN before module CKMV_AC_DOCUMENT_CREATE. This module creates the account document. I've to insert a modification before and change the items and amounts table...

I don't new another account doc. , I 'only' have to change the accounts, split an exsiting entry etc.

Read only

0 Likes
1,986

This message was moderated.