cancel
Showing results for 
Search instead for 
Did you mean: 

smartform Printing

Former Member
0 Kudos

Hi

iam creating smartform and uploading the pdf to that form and printing the pdf

up to this iam clear,,

iam giving the path name for uploading the pdf and print if the given path is exist than only it need to go to print other wise not to print

for this is there any function module is there

can any one help me

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

check with the below code, but not sure whether it meets ur req.

call method cl_gui_frontend_services=>file_exist

EXPORTING

file = lv_filename

RECEIVING

result = result

EXCEPTIONS

cntl_error = 1

error_no_gui = 2

wrong_parameter = 3

not_supported_by_gui = 4

others = 5.

IF result = 'X'.

File exist.

ELSE.

not exist.

endif.

Rgds,

Pavan