I am using following code to load the PDF file.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
OUT_PARAMETERS = PRINT_PARAMETERS
VALID = VALID_FLAG
EXCEPTIONS
INVALID_PRINT_PARAMS = 2
OTHERS = 4.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = G_PATH
FILETYPE = 'BIN'
TABLES
DATA_TAB = IT_LINES
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.
NEW-PAGE PRINT ON PARAMETERS PRINT_PARAMETERS NO DIALOG.
LOOP AT IT_LINES INTO WA_LINES.
WRITE WA_LINES.
ENDLOOP.
NEW-PAGE PRINT OFF.
I need to print the uploaded PDF .Can sometell me how to do that.
The code is printing the unformatted PDF data.
I want to convert it to understandable format and Print it.