cancel
Showing results for 
Search instead for 
Did you mean: 

Weighing Machine integration without HUM

Former Member
0 Kudos


Hi,

Requirement is to integrate a Weighing machine to SAP. WM and HUM are not activated. Process is as follows:

1. PO raised for 10 KG of meat

2. Goods received physically in warehouse

3. Received goods is put on weighing scale to measure weight

4. The weight should be captured in SAP and it should be used in GR posting (Oupn will be used as applicable)

Is it possible to acheive this process without HUM activation? Please also share if any other details that is useful.

Explored SCN posts and I get only solution with HUM. Thanks.

Regards

Ramprakash

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This message was moderated.

manuelhildemaro_ramossanc
Active Participant
0 Kudos

Hi Ramprakash.

I worked in a development to get weight without HUM. In your case i think that you can get weight using an enhancement in standard tx.

There are many ways to get weight, however i used to work with control MSComm. If you want more information about mscomm only let me know.

Regards,

Manuel H.

Former Member
0 Kudos

Hi Manuel,

Please share the implementation details for MSComm. Also share if you have idea about other methods. Thanks in advance.

Regards

ramprakash 

manuelhildemaro_ramossanc
Active Participant
0 Kudos

i'll try to summarize the steps here:

1.- You should know the specifications of  the Weighing Indicator

( Serial interface, Baud rate, etc )

2.- Once you can communicate with your weighing indicator from PC or laptop ( you can test using hyperterminal ), you should work with mscomm32.ocx library. The library should be registered in windows.

Mscomm library will let you use the mscomm control that provides serial communications for your application by allowing the transmission and reception of data through a serial port.

3.- You should register the library in SAP ERP using tx. SOLE.

4.- You should create the abap code to read serial port using OLE properties and methods.

Example:

method abrir_puerto_com.

  set property of go_ole 'CommPort'  = nro_puerto.

  if sy-subrc ne 0.

    raise exception type zcx_lect_puerto_serial_mscomm

      exporting

        textid = zcx_lect_puerto_serial_mscomm=>error_abrir_puerto.

  endif.

  set property of go_ole 'Settings'  = config.

  if sy-subrc ne 0.

    raise exception type zcx_lect_puerto_serial_mscomm

      exporting

        textid = zcx_lect_puerto_serial_mscomm=>error_abrir_puerto.

  endif.

  set property of go_ole 'InputLen'  = 0. "Tomar todo el cont. de buffer

  if sy-subrc ne 0.

    raise exception type zcx_lect_puerto_serial_mscomm

      exporting

        textid = zcx_lect_puerto_serial_mscomm=>error_abrir_puerto.

  endif.

  set property of go_ole 'PortOpen'  = 1. "Puerto abierto = true

  if sy-subrc ne 0.

    raise exception type zcx_lect_puerto_serial_mscomm

      exporting

        textid = zcx_lect_puerto_serial_mscomm=>error_abrir_puerto.

  endif.

  set property of go_ole 'InputMode' = 0. " Modo texto

  if sy-subrc ne 0.

    raise exception type zcx_lect_puerto_serial_mscomm

      exporting

        textid = zcx_lect_puerto_serial_mscomm=>error_abrir_puerto.

  endif.

endmethod.

Regards,

Manuel H.