on 04-22-2008 10:05 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.