Skip to Content

Do automatic MIGO for Movement Type 542

Dear All,

Is there any BAPI / FM available for automatic posting in MIGO for movement type 542 . The scenario is that user has transferred an item from one warehouse through movement type 541 in MIGO . The posted quantity has to be return to previous warehouse e.g. WH02 through movement type 542 in transaction MIGO only. But that quantity has to be returned to previous warehouse through running a background program i.e. through Z program. So I want a FM or BAPI which can be used for my purpose. I have gone through the various posting and found that BAPI_GOODSMVT_CREATE can be used for various movement for inventory. But I have doubt whether the same is possible to use for MIGO or not. In BAPI's document it is mentioned that the BAPI is for MB01 , MB31 , MB1A ,MB1B ,MB1C ,MB11 only . In our system all inventory posting/movement are done through MIGO only. So please help us to solve our problem

-pk

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jan 07, 2014 at 01:49 PM

    Hi Pk,

    If you possible to do the 542 movement using any one of the transactions(MB01 , MB31 , MB1A ,MB1B ,MB1C ,MB11). That can be achieved using BAPI_GOODSMVT_CREATE.

    We can post 542 document using MB1B. So please use GM_CODE as '04'.

    Arivazhagan S

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 01:45 PM

    If you can ignore the non-english documentation in this:

    BAPI_GOODSMVT_CREATE And BAPI_GOODSMVT_Cancel - ABAP Development - SCN Wiki

    This might help you.

    Neal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 01:47 PM

    First, did you read 520813 - FAQ: BAPIs for goods movements, then browse following tables

    • T158B for transaction(s) allowed to movement '541'
    • T158G to find gm_code allowing those transactions

    You should find following available gm_codes :

    • 04 MB1B
    • 06 MB11

    And don't worry too much on transaction code 😉

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 06:52 AM

    Hello ,

    Thank you all , We are able to solve our problem. Special thanx to Arivazhagan.

    -Pk

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.