cancel
Showing results for 
Search instead for 
Did you mean: 

SAP-Scales weighting Interface (RS232)

0 Kudos

Dear experts,

once a production declaration is performed in MIGO trx, we would need to read the weight from the scales through an interface. For that purpose we will be using a custom tab in MIGO with a custom button to trigger the weight reading from the scale, that value will be captured in a custom field into the same custom tab as well.

The scales are connected to intranet through RS232.

I am not really familiarized with this kind of interfaces, is there any way to read that information and write it in the MIGO field using the mentioned custom button and without any third party software? (TCP socket connections or something similar?). Do you know which would be the steps for that implementation?

Thanks a million,

kind regards,

Jose

Accepted Solutions (0)

Answers (4)

Answers (4)

anilmalhotra88
Participant

Hi Jose,

Integration of weighscale to SAP is very much possible via a RS232 cable (weighscale will be connected to PC using this cable). its very simple also, create a FM in SAP by referring the below blog & you can get data into SAP. Before all this use software Terminal V1.9b in the client system (weighscale connected system) & note the parameters like Baud rate, parity, stop bits etc from this software as you will be needing this once the FM is ready in SAP to connect the weighscale. I have implemented the weighbridge/weighscale integration in my organization & have integrated 25+ bridge/scales to SAP.

https://blogs.sap.com/2013/07/10/read-comm-port-using-abap-wo-third-party-software/

Regards,

Anil Malhotra

SMGOHIL
Participant
0 Kudos

Hello Anil,

I have setup the same given in above link but buffer data can not be read in FM. Does anything need to configure in commport ? like driver to let data read in SAP or something else. We can already read data in third party application written in .NET but data can not be read in SAP FM. Does any SM59 connection required?

Thanks & Regards,

Sweta Gohil.

anilmalhotra88
Participant
0 Kudos

Hi Sweta,

Possible reasons based on my exp.

1. Regedit maintenance - try maintaining the entry once again and restart the system to see if that works (this has worked for me most of the times) (Step 4 in the blog link)

2. Check if any other application is currently accessing the comport, unlike modern usb's, the com port can communicate with only one windows application at a time

3. Try using a terminal software like Terminal v1.9b (google it & the first link), this software will allow you to communicate with your comport in realtime and you could understand whether the connection between local PC & weighbridge is working fine. (dont forget to disconnect the terminal before executing SAP FM)

4. Check your weighbridge manual to see if the data flow is configured as continuous mode, this will push data from weighbridge to PC without any command

Try the above and let me know if any of the above helps.

Regards,

Anil

anilmalhotra88
Participant
0 Kudos

Hi Jose,

yes thats also possible, but you need to configure XI accordingly to read data from the Port/Socket, the above method is for connections via cable/bluetooth.

Regards,

Anil Malhotra

0 Kudos

Hi Anil,

thanks a million by your answer! it is really useful!!

just one question please, it is mandatory to have the the PC and the weightscale physically connected by cable?

I mean, right now the scale information is being sent by RS232 to the PCs through our intranet and the PCs in that intranet are capturing the data when necessary. Is it possible to go through the same approach without that physical cable connection? (but connected through the intranet).

We would like to continue using a TCP connection (reading the information from an IP address and a port) as working right now.

Thanks a lot!

kind regards,

Jose.