Skip to Content
0
Former Member
Feb 15, 2016 at 08:37 AM

FUNCTION SSF_FUNCTION_MODULE_NAME can not be used good in RFC

53 Views

Dear Experts,

I want to change smartform to PDF file , but i found JOB_OUTPUT_INFO can not returen correct data ,i want to know if SAP can not support this function in RFC?

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZSMT105_HCM_PDF'

IMPORTING

FM_NAME = M_FM

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

clear :JOB_OUTPUT_INFO.

CALL FUNCTION M_FM

EXPORTING

CONTROL_PARAMETERS = PCTRL

OUTPUT_OPTIONS = OUTOP

IMPORTING

JOB_OUTPUT_INFO = JOB_OUTPUT_INFO

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Best Regards,

Merry