Skip to Content
author's profile photo
Former Member

Problem in posting documents

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 06:13 PM

    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>.

    Add comment
    10|10000 characters needed characters exceeded