on 05-20-2013 6:11 PM
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.
Hello,
Have you considered using the enterprise service Notify of Goods Movement (proxy)?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yan Wong,
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.
Hello,
If you want to create inbound goods movement you can use the following ES:
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.