cancel
Showing results for 
Search instead for 
Did you mean: 

Middle ware to SAP - message not received

former_member324953
Participant
0 Kudos

Hi Team

Right now we are testing with Process message PI_CONS.

Action : In Middleware they mapped the values from MES to FM PROCESS_MES_UPLOAD. This FM is all about Characteristics & Its Value which will be mapped with XML structure fields   from MES .

Issue : From Middleware side they Triggered the Process message but message is not received in SAP.

Question 1 : Do we have any check  points to get the message in SAP from Middle ware. As per  middleware Team they triggered the message successfully.

Question 2: In FM PROCESS_MESS_UPLOAD , we have ATNAM & ATWRT . these Two fields are mapped multiple time in Middleware ( mapped to Batch , Process order , Qty.. and with its corresponding value).So I had a doubt while executing this FM manually in SE37 , how the multiple characristics & Its values will be passed in to  this ATNAM & ATWRT to reach the Destination… Is the approach correct one ? 


Please let me know if you need any more input about the issue.


Thanks

Uday

Accepted Solutions (0)

Answers (1)

Answers (1)

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Please refer SAP help document on it,

Technical Communication - PP - PI-PCS Interface: Linking of Process Control Systems - SAP Library

and http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/55f74f37-0701-0010-dda1-e1415575f...

Did you send process messages automatically using report RCOCB004?

You create a process message in an external system and transfer this to the R/3 system via the PI-PCS interface.

You can also Function module BAPI_PROCESS_MESSAGE_CREATEMLT.

Best Regards,

R.Brahmankar

former_member324953
Participant
0 Kudos

Hi Brahman

First of all thank you so much for the reply...

Yes , I tried with BAPI_PROCESS_MESSAGE_CREATEMLT. in SAP manually Process message created successfully.

Same Parameters We tried with PROCESS_MES_UPLOAD in Middleware system. In Middleware they are getting message " created successfully " but in SAP same not received.

in this PROCESS_MES_UPLOAD FM , We have FC_DESTINATION_FOR_TRFC & Message number as Characteristics.

query 1 :Message Number - Will it be generated Automatically or We have to generate in Middle ware

FC_DESTINATION_FOR_TRFC - Is this Destination refers PI04  ( for PI_CONS)



query 2: From SAP help understood , we should use PROCESS_MES_UPLOAD to communicate from Middleware to SAP .... but can we use BAPI_PROCESS_MESSAGE_CREATEMLT FM to connect SAP from MW.


Thanks once again!

Uday

former_member324953
Participant
0 Kudos

Hi Brahman

Following to the above post we were able to trigger Process message using  FM PROCESS_MES_UPLOAD in SAP.


Now Having the below query about Field MSID in this FM

query 1 :Message Number(MSHD - Field MSID) - Will it be generated Automatically during creation in SAP (CO54) or We have to generate in Middle ware  ,before passing in to SAP


Query 2 : My understanding is once Process message reaches SAP from Middle ware , it will be automatically sent / processed. But It seems it is wrong. All the process messages received from Middleware  will be in TO BE SENT Category. We have to send it manually or by RCOCB004 in Background. Please correct me if i am wrong.


Thanks

Uday

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

I am not an expert in this area, no idea about point 1 but point 2 run the program RCOCB004 is to set at plant level and RCOCB002 is set at client level.

You can create and schedule a job for program RCOCB004

Please refer this discussion,

Best eEgards,

R.Brahmankar