Hi Experts,
I'm very new to this field.
I'm getting MESSAGE_TYPE_X while converting Smartform spool to PDF.
Here is the code where I'm getting this.
001460 START-OF-SELECTION.
001470
001480
001490 DATA: l_result TYPE c.
001500
001510 g_path = p_path.
001520 CLASS cl_gui_frontend_services DEFINITION LOAD.
001530 CALL METHOD cl_gui_frontend_services=>directory_exist
001540 EXPORTING
001550 directory = g_path
001560 RECEIVING
001570 result = l_result
001580 EXCEPTIONS
001590 cntl_error = 1
001600 error_no_gui = 2
001610 wrong_parameter = 3
001620 not_supported_by_gui = 4
001630 OTHERS = 5.
001640 IF sy-subrc <> 0.
-----> MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
001660 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
001670 ENDIF.
001680 IF l_result <> 'X'.
001690 MESSAGE e100(5k) WITH g_path.
001700 EXIT.
001710 ENDIF.
001720
Thanks
Ajay