cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting BAPI_GOODSMVT_CREATE with SAP PI 7.31

iaki_vila
Active Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

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

http://esworkplace.sap.com/socoview%28bD1lbiZjPTAwMSZkPW1pbg==%29/render.asp?packageid=DE0426DD9B024...

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

iaki_vila
Active Contributor
0 Kudos

Hi ,

Thanks, I will consider your recommendation, although the movements will be generated in the MES system and they will be notified to SAP ERP. Do you know any XSD standard for the MES - PI communication?

Regards.

Former Member
0 Kudos

Hello,

If you want to create inbound goods movement you can use the following ES:

https://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F1...


Software component ESA ECC-SE in PI ESR. If you look at the code inside the proxy, it uses BAPI_GOODSMVT_CREATE. Moreover, you have badi that allow you to do some pre/post processing.

What do you try to integrate with MES? Are you going to send process orders from ECC and MES will confirm them or will MES just notify consumption of raw materials and components to ECC (using goods movement)?

Regards.

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

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

iaki_vila
Active Contributor
0 Kudos

Thanks Michal,

Have you considered to use any XML standard with these kind of movements, like B2MML?

Regards.

Bhargavakrishna
Active Contributor
0 Kudos

Refer below link

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

Regards

Bhargava krishna

iaki_vila
Active Contributor
0 Kudos

HI Krishna,

I haven't any problem to import the BAPI in the PI. I want to know the more appropiate schema and standard to connect the PI with a MES system dealing with the case pointed.

Regards.