The below code shows how function module CLPB_IMPORT is used to import data from the clipboard into an ABAP internal table.
Export data to clipboard CALL FUNCTION 'CLPB_EXPORT' TABLES DATA_TAB = ld_BUFFER EXCEPTIONS CLPB_ERROR = 01.