‎2008 Jan 03 5:19 AM
Hi Experts
I have developed three smartforms,
I have two check boxes, fromwhich getting input of which form to be printed.
My requirement is if the user select the two check boxes and execute, i need to print the two forms by single execute.
Is it possible, can we do it using GET_PRINT_PARAMETERS'.
if so, how pls, explain me.
Thanks in advance.
Regards
Rajaram
‎2008 Jan 03 5:22 AM
yes u can.
if c1 = 'X'.
set control paramters using get_print_parameters and den call smartforms.
elseif c2 = 'X'.
repeat da above procedure.
endif.
‎2008 Jan 03 5:23 AM
Hi
In driver prg u have write like this :
if two checkboxes are checked then
call two FM one after the other.
(After activating the smartform u will get FM name)
Madhavi
‎2008 Jan 03 5:56 AM
Hi Madhavi
Thanks for your reply.
if check1 is not initial and check2 is not inital.
call smartform1.
call smartform2.
endif.
Can i do coding like this, will it work.
Regards
Rajaram
‎2008 Jan 03 6:27 AM
sure it will work, u try it and let me know if anything wrong
‎2008 Jan 03 6:40 AM
its working yar but one more doubt
its asking dialog window.
what r the necessary parameters should be passed to the fm
GET_PRINT_PARAMETERS
for avoiding dialog window.
i want to avoid dialog window and
my printer name is 'LP01'.
i need one copy, how to set these to the fm.
Pls help me.
Regards
Rajaram
‎2008 Jan 03 6:58 AM
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = '2571'
immediately = 'X'
release = ''
receiver = sy-uname
list_text = list_text
IMPORTING
out_parameters = print_parameter_set
valid = valid.
IF valid = 'X'.
NEW-PAGE PRINT ON PARAMETERS print_parameter_set NO DIALOG.
‎2008 Jan 03 7:07 AM
Hello Concern,
its Very Simple , I don't know why r u confuse , let me explain.
First Put the name of smart forms in Text element. like below.
Sm1 = Text-001. " Name of first Smart forms
sm2 = text-002.
sm3 = Text-003.
if ch1 = 'X'.
Call Function to get the module name in a variable with Variable SM1.
Call Smart Form itself
endif.
if ch2 = 'X'.
Call Function to get the module name in a variable with Variable SM2
Call Smart Form itself
endif.
like that only .
I suppose it will help you, if not let me know what is your confusion.
Regards
Swati Namdeo.
‎2008 Jan 03 7:07 AM
list_text = list_text
print_parameter_set
valid = valid.
IF valid = 'X'.
NEW-PAGE
the above parameters says unknown while cheking.
pls explain me what denote these and how to declare these parameters.
Regards
Rajaram
‎2008 Jan 03 7:13 AM
Hi
My first problem is solved yar,
now we r discussing that how to print the smartforms without loading the dialog window.
thats what what r the required parameters and what and how to declare those.
Pls help me on this.
Regards
Rajaram
‎2008 Jan 03 10:26 AM
DATA print type SSFCOMPOP.
data control_parameters TYPE SSFCTRLOP.
control_parameters-device = 'PRINTER'.
control_parameters-no_dialog = 'X'.
control_parameters-preview = ' '.
print-tddest = '2579'.
print-TDIMMED = 'X'.
print-tdnoprev = ' '.
print-tdnoprev = 'X'.
CALL FUNCTION '/1BCDWB/SF00000053'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = print
USER_SETTINGS = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
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.
‎2008 Jan 03 11:42 AM
Hi this will help u.
Solution 1:
You can print a check box in different ways.. by inserting symbols and making window as check box..
once go through the thread u will get to k now differnt ways
Solution 2:
To use Check box in smartform do the following:
Change the editor to 'PC Editor' and take the menu.
in text editor of TEXT ELEMENTS..
Insert -> Characters -> SAP Symbols
in print preview u can't see these changes..
go through these links,hope help you to solve your problem
with regards,
Hema Sundara.
pls reward if helpful.