cancel
Showing results for 
Search instead for 
Did you mean: 

form ysmartform does not exist

Former Member
0 Kudos

what are reasons behind if this message comes after executing printprogram,i am activating the form and calling function module into the print program.

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Form Z_OUTPUTPDFFORMAT does not exist

0 Kudos

REPORT ZVJH_B_OUTPUTINPDF.

DATA SSF_FM_NAME TYPE RS38L_FNAM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_OUTPUTPDFFORMAT'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = SSF_FM_NAME.
* EXCEPTIONS
* NO_FORM = 1
* NO_FUNCTION_MODULE = 2
* OTHERS = 3
* .
*IF sy-subrc <> 0.
*
*ENDIF.

CALL FUNCTION SSF_FM_NAME
* EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF sy-subrc <> 0.

ENDIF.
0 Kudos

I have done same thing in my program but I am getting error.

former_member196280
Active Contributor
0 Kudos

To avoid the error, get the function module name of your smartform using FM SSF_FUNCTION_MODULE_NAME

Ex: call function 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = <Smartform name>

IMPORTING

fm_name = fm_name

.

And replace your current function module with fm_name

Close the thread once your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

hi reddy

i have done that.still problem persist.what should i do now.

former_member196280
Active Contributor
0 Kudos

I guess your smartform is having some templets/table which could be one reason for the problem, check your templets are handled properly.. also see you smartform exists in the same client... check in debugging mode.. goto the attributes of smartform and see the status whether your form is active or not before running the program.

IF everything is perfect, goto your smartform and ready the function module name and call directly using the function module name... still if it is not showing the smartform output, 100% error in your smartform design, check you smartform and solve the problem.

Regards,

Sairam