cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in posting documents

Former Member
0 Kudos

Hi Friends,

My requiremnet is - i want to post scrap entry for perticular material while doing GR. To be more clear that while posting MIGO I want call MB1B for perticular material should take place automaticaly.

The logic I have used for this is that, I implenetd BAdI MB_Documnet_BAdI and method MB_DOCUMENT_BEFORE_UPDATE , in this method i have submited one report , in that report i have return BDC for MB1B.

the code that i have written is working fine , it is genetrating two documents of MIGO and MB1B, but the problem is that it is not generating FI document for MIGO means valuation of stcok , but it is genrating agianst MB1B.

so can any one tell me what to do for generating FI document aginst that MIGO number for valuation of stock.

Regards,

Mahesh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Instead of submitting a report from the BADI, create a function module that does the MB1B. You can have all the code in your zprogram in this FM.

Call this FM <b>"in update task"</b>.