cancel
Showing results for 
Search instead for 
Did you mean: 

smartform generating error

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Hi,

i m not getting that sy-subrc = 0 or <> 0.

if u getting right print preview means it should print.

Remove the

IF sy-subrc 0.

MESSAGE 'Error in generating the smartform'

TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.

Statements and execute u will find the difference.

if u r maintaining sy-subrc <> 0.

there is problem in smart form function module calling.. or smart form maintainance plz check that. or u may not activate the smart form correctly.

hope it will work.

with Regards,

Kiran.G

Former Member
0 Kudos

Hi

The problem may be a formatting error.

Test whether all the windows and tables are aligned and measure correctly in the Smartform.

Thanks,

Anon