Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM for archivelink using barcode?

Former Member
0 Likes
722

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

1 REPLY 1
Read only

Former Member
0 Likes
452

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.