‎2005 Oct 05 3:19 PM
Hi all
I am trying to use late storage with barcode scenario for linking the trip receipts with the trip document.
What is the function module to update the internal barcode table bds_bar_in.
And is there any business object event that triggers when the scanning software finds the matching barcode and creates the link between trip document and images scanned.
Thanks in advance.....
Kiran
‎2007 Feb 22 1:40 PM
Try something like this:
IF sy-dbcnt = 1. " Sales order.
tp_object_id = 'BUS2032'.
tp_saeobjart = 'ZBA0'.
ELSE. " Delivery.
tp_object_id = 'LIKP'.
tp_saeobjart = 'ZD00'.
ENDIF.
tp_saeobjid = tp_vbeln.
CALL FUNCTION 'ALINK_BARCODE_GLOBAL'
EXPORTING
object_type = tp_object_id
object_id = tp_saeobjid
barcode = ta_bar_ex-barcode
i_document_type = tp_saeobjart
no_popup = 'X'
updatetask = space
no_check = 'X'
EXCEPTIONS
no_authority = 1
no_customizing = 2
error_connection = 3
error_parameter = 4
user_exit = 5
general_error = 6
OTHERS = 7.
COMMIT WORK.