hay jeyanthi,
Actually i am trying to execute the sample program which you gave in ur link.
I created the same as ZZZ_TEST2 form and trying to execute using below code. before doing mail or pdf format process i just want to display in print preview.
so i am trying for this.
could you pls guide me...
I am struck up while executing program using this form ZZZ_TEST2. problem here is ...i get error while i try to execute form ZZZ_TEST2, but it activates succesffully,it shows INTERNAL ERROR and ends.
If at all i use that form in program it justs ends normally without generating output or report.
is there any way to debug inthis state or how to solve this problem.
If u need more specfic i can explain..
I will send you my sample code writen in program
<code>DATA: v_form_name TYPE rs38l_fnam,
i_tline TYPE TABLE OF Tline with HEADER LINE.
DATA : w_ctrlop type ssfctrlop,
w_return TYPE ssfcrescl,
w_compop TYPE ssfcompop,
v_len_in LIKE sood-objlen.
DATA:i_otf TYPE itcoo occurs 0 with HEADER LINE.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZZZ_TEST2'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = v_form_name
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.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error =2
send_error = 3
user_canceled = 4
OTHERS = 5.
if sy-subrc <> 0.
endif.
</code>
Message was edited by: ambi chan
Message was edited by: ambi chan