on 04-06-2015 2:26 PM
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
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.