Application Development 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: 

enhancement for updating accounting document in MIGO

Former Member
0 Kudos

When doing MIGO, material document gets generated in background. I would like to pass this material document num (mkpf-mblnr) to the assignment field of GR/IR line item of accounting document (BSEG-ZUONR)

6 REPLIES 6

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Wellcome to SDN. Depending of MM mov, be careful with the settings for this field. Remember that for accounts related with GR/IR (see the comments in SAP Note 77161 - Summarization of FI postings w.ref.to purchase orders). You could have problems to do the clearing of GR/IR accounts.

But if you are sure, try with BTE 00001120. You can modify ZUONR in T_BSEGSUB. You can also use badi AC_DOCUMENT.

I hope this helps you

Regards

Eduardo

Edited by: E_Hinojosa on Feb 8, 2012 9:20 AM

0 Kudos

Hi, Thanks for u r response. it is giving problem

My requirement : Transaction is : MIGO

Before posting of material document, update material document number in assignment field of GR/IR line item of accounting document (WE) at number commitment stage

Update MKPF-MBLNR (Material Document Number) in BSEG-ZUONR

.

but already i tried AC_DOCUMENT i got a problem .

What i did,

first use MB_DOCUMENT_BADI with method

mb_document_before_update.

here i tried to get the material document and export into memory

after use AC_DOCUMENT With method

change_after_check.

here Import the material document doc num and pass it to Assignment field in

but it is not working

when i debug first trigger the AC_DOCUMENT And then it goes to MB_DOCUMENT_BADI

Plese help me regarding this.

Edited by: vsreelakshmi on Feb 9, 2012 5:23 AM

Edited by: vsreelakshmi on Feb 9, 2012 5:29 AM

0 Kudos

May be you can try the method which I mentioned here

0 Kudos

Hi, thanks for u r response.

i had a look on that , i didnt get the answer from that

0 Kudos

The answer is not available there, but you have the suggestions available there. Your question will not get a direct answer as its related to a process so Its your responsibility to apply various suggestions and check it.

0 Kudos

Thank you