Skip to Content
0
Former Member
Apr 22, 2008 at 09:05 AM

smartform generating error

9 Views

iam able to see the print preview of the form but when i print iam getting error called 'error in generating the smartform'

iam new to smartfroms can anyone please help me

here is the print program which was already exisisting

DATA g_fmname TYPE rs38l_fnam.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_vbeln TYPE vbrk-vbeln.

SELECTION-SCREEN END OF BLOCK b1.

START-OF-SELECTION.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZSD_SMRTSALEINVOICE1'

IMPORTING

fm_name = g_fmname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE 'Error in opening the smartform'

TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.

CALL FUNCTION g_fmname

EXPORTING

s_vbeln = p_vbeln

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE 'Error in generating the smartform'

TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.