Skip to Content

Connecting BAPI_GOODSMVT_CREATE with SAP PI 7.31

Hi experts,

Im trying to find a standard solution to connect the bapi BAPI_GOODSMVT_CREATE (to post goods movements) with PI.

I was thinking about the B2MML standard, but  i dont find an appropriate schema, may be B2MML-V05-ProductionSchedule.xsd but this schema deals with production orders.

Could someone tell me the nearest schema in B2MML or another standard that deals with my goal? is there a Pi content available for this purpose?

Im not interested in SAP MII.

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 21, 2013 at 01:38 PM

    Hello,

      Have you considered using the  enterprise service Notify of Goods Movement (proxy)?

    http://esworkplace.sap.com/socoview%28bD1lbiZjPTAwMSZkPW1pbg==%29/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=B753CFDB1F2011DC5A11000F20FCB6A9

    You can get the document definition in ESR as a WSDL or XSD. It is also provided in the webpage

    It uses the event BUS2017-CREATED to trap goods movement creation. Use BADI MB_BADI_RAISE_A2A to filter movement type to send to PI. If not all goods movement will be sent and it will surely cripple your ECC instance.

    If you want function BAPI_GOODSMVT_CREATE, prefer the use of ALE message type MBGMCR with function ALE_GOODSMVT_CREATE to create the message. If you look at transaction BAPI, you will notice that MBGMCR is the ALE message type of BAPI_GOODSMVT_CREATE.

      I think a specific program is needed to send MBGMCR from ECC. You will also need to retrieve the XSD of the MBGMCR from PI in the ESR.

    Regards,

    Yan Wong

    Add comment
    10|10000 characters needed characters exceeded

  • May 20, 2013 at 06:41 PM

    Hi,

    >>>Im trying to find a standard solution to connect the bapi BAPI_GOODSMVT_CREATE (to post goods movements) with PI.

    just a tip from my experience - the worst thing you can do is to use the BAPI as this type of transaction will be locked in many cases and you will need to reprocess it very often (and RFC on backend does not do that)

    much better to use IDOC - MBGMCR02 (uses the same bapi internally) or a proxy (from which you can call this BAPI) - this way it will work in a correct way - with direct call for BAPI you will have to build the reprocessing logic yourself which is a bad practice,

    Regards,

    Michal Krawczyk

    Add comment
    10|10000 characters needed characters exceeded

  • May 20, 2013 at 05:22 PM

    Refer below link

    http://scn.sap.com/thread/682207

    Regards

    Bhargava krishna

    Add comment
    10|10000 characters needed characters exceeded