Skip to Content

FM MB_CREATE_GOODS_Movement

Hi All

I have a query about what are the Required input Fields for the FM MB_CREATE_GOODS_MOVEMENT.

In our scenario , we are passing the value from MES to SAP. Requirement is we have to post the Cancellation document from MES to SAP .

For this requirement customised new message category and assigned above characteristics and same has been assigned in standard destination address COCI_CANCEL_MATERIAL_MOVEMENT for both 262 & 102


But while passing the above value through COCI* values mapping getting error.In Debugging mode found that it is not successful in execution of MB_CREATE_GOODS_MOVEMENT.

Query : What are the required fields to execute the FM MB_CREATE_GOODS_MOVEMENT

Kindly share your expertise.

Regards

Sachin

Cancel.jpg (39.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Sep 06, 2016 at 01:43 PM

    Hello

    My suggestion for you is to set a break-point on this function module and check which parameter are sent when it is called in debug. Please observe that sometimes the goods movements are posted in the update task, so it may be necessary to activate the update debugging to reach the FM.

    Regards

    Caetano

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Caetano

      We are not cancelling from confirmation.Trying to cancel the Migo document only..

      I tried to cancel with BAPI_GOODSMVT_CREATE today.. and successfully cancellation is done..partial cancellation too..

      Actually this MB_CREATE_GOODS_MOVEMENT was called inside COCI_CANCEL_MATERIAL_MOVEMENT . SAP proposed to use this COCI_CANCEL_MATERIAL_MOVEMENT as destination address for cancellation.. but it is not working.. So going to create a custom destination address with BAPI_GOODSMVT_CREATE and complete the scenario...

      Regards

      Sachin

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2016 at 07:41 AM

    Hi ,

    There is one field you need to pass single digit value F value for this BAPI . There is note about this.

    I guess , it is to differentiate 101/102 movement type over 261/262 movement.

    search for note.

    Best Regards

    Jatin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2016 at 04:38 PM

    Hi,

    Check - 365880 - MB_CREATE_GOODS_MOVEMENT: Field selection for movement type

    Regards

    Dimas Faria


    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.