Code: Alles auswählen.
PROGRAM.
DATA: gt_rawdata TYPE soli_tab,
gs_data TYPE string,
gs_search TYPE string.
PARAMETERS: p_find TYPE string OBLIGATORY DEFAULT 'Salut Sahbi' LOWER CASE.
END-OF-SELECTION.
cl_gui_frontend_services=>gui_upload(
EXPORTING
filename = 'C:\Dokumente und Einstellungen\SAP\Desktop\pdf_text.pdf'
filetype = 'BIN'
CHANGING
data_tab = gt_rawdata
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19 ).
gs_data = cl_bcs_convert=>raw_to_string( gt_rawdata ).
* Searchstring
gs_search = cl_bcs_convert=>string_to_xstring( p_find ).
* Convert to ASCII
IF gs_data CS gs_search.
FORMAT COLOR 5.
WRITE:/ 'Found', p_find, 'in PDF'.
ELSE.
FORMAT COLOR 6.
WRITE:/ 'Did not find', p_find, 'in PDF'.
ENDIF.
You made my dayRossi90 hat geschrieben: Zwei Fragen:
A: ...?
B: ...?
C: ...? ...?