2008 Mar 29 7:16 AM
hi experts,
I am working with smartforms now.i am very comfortable with one page printing,but if it is continuos printing what all are the procedures involved in it.
ie if i want to print invoice from 900001 to 9000010 at a time.
pls give me step by step procedure for it.
regards,
Mani
hi experts,
I am working with smartforms now.i am very comfortable with one page printing,but if it is continuos printing what all are the procedures involved in it.
ie if i want to print invoice from 900001 to 9000010 at a time.
pls give me step by step procedure for it.
regards,
Mani
2008 Mar 29 7:21 AM
Hi,
fetch data into internal table and call the function module
inside the loop.....
example
loop at itab.
CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = control
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = op
user_settings = ' '
emp_no = itab-emp_no
proc_yyyymm = procyymm
category = itab-category
sp1 = wa
sp2 = wa1
itexem = exem
TABLES
it_etc = it_etc
it_f16 = it_f16
it_hrc = it_hrc
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
.
endloop.Regards,
V.Balaji
Reward if Usefull...
2008 Mar 29 7:24 AM
hi thanx for ur reply....i need the steps to be done in smartforms..
using command node..
2008 Mar 29 7:22 AM
Hi,
data : control TYPE ssfctrlop.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = p_form
variant = ' '
direct_call = ' '
IMPORTING fm_name = fm_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
control-no_dialog = 'X'.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
op-tddest = 'DFLT'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
ARCHIVE_PARAMETERS =
user_settings = ' '
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJ =
output_options = op
control_parameters = control
IMPORTING
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards,
Morris Bond.
Reward Points if Helpful.
2008 Mar 29 7:32 AM
Hi,
=
1 : Create a smart form
2. : in the main window. put a loop that contain the excise invoive number and year to be printed. The point 3 and 4 should be done inside the loop
3 . inside that u create a template to print the excise invoice header details.
4. if u have a requirment to print the lijne item also.. put a table and in that give the internal table that contain the item dtails... also put a condition in the table for excise invoice and year.
Revert in case of clarification. Please reward points if it is help full
Regards
Maneesh Chandran
2008 Mar 29 7:35 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |