‎2007 Apr 23 10:34 AM
HI everybody,
Is it possible to specify in an abap program that I want to print a list immediately after clicking on the print button?
I don't want that the user chooses 'Send to SAP spooler only for now'.
Is it possible???
Thank you.
‎2007 Apr 23 10:40 AM
Hi,
THERE ARE 2 THINGS : (1 IS MANUAL, OTHER IS USER PROFILE)
1. When print command is executed from toolbar,
a window comes
where we can select PRINTER NAME, etc.
In this window itself,
we have to tick 'PRINT IMMEDIATELY'
3. ANOTHER SETTING IS IN USER PROFILE
(THIS WE CAN DO OURSELF, OR TELL BASIS TEAM)
4. From any window, goto this menu
SYSTEM --> USER PROFILE --> OWN DATA
5. A new window will come.
Select DEFAULTS tab.
6. Tick the check box for OUTPUT IMMEDIATELY.
or if it is from program.
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
NEW-PAGE PRINT OFF.
Fill the params using FM call SET_PRINT_PARAMETERS .
I hope it helps.
Cheers,
Simha.
Reward all the helpful answers..
‎2007 Apr 23 10:43 AM
Hi Karim
The <b>ITCPO</b> structure in Scirpts is used to set characterstics to Output interface to the scripts.
Here you can give values to print parameters like no of copies to print, Spool request, Print preview option, type of device specificatin etc.
You will use this structure in the OPEN_FORM function module for the parameter OPTIONS.
Different variants can be defined for the output via the parameter OPTIONS. The structure is described in table ITCPO. Some of the fields contained in this structure can be changed by the user via the print dialog.
Yes, there is. It is used in Sapscript print programs to load up output paramaters. It is used when call the OPEN_FORM function module in the print program. Here is the structure
TDPAGESLCT TDPAGESLCT CHAR 60 0Pages selected for printing
TDCOPIES RSPOCOPIES INT1 3 0Number of copies
TDDEST RSPOPNAME CHAR 4 0Spool: Output device
TDPRINTER RSPOPTYPE CHAR 8 0Spool: Device type name
TDPREVIEW TDPREVIEW CHAR 1 0Print preview
TDNOPREV TDNOPREV CHAR 1 0No print preview
TDNOPRINT TDNOPRINT CHAR 1 0No printing from print preview
TDNEWID SYPRNEW CHAR 1 0Print parameters, new spool request
TDDATASET RSPO0NAME CHAR 6 0Spool request: Name
TDSUFFIX1 RSPO1NAME CHAR 4 0Spool request: Suffix 1
TDSUFFIX2 RSPO2NAME CHAR 12 0Spool request: Suffix 2
TDIMMED SYPRIMM CHAR 1 0Print parameters, print immediately -------------------------->>> This one is useful for u
TDDELETE SYPRREL CHAR 1 0Print parameters, delete after printing
TDLIFETIME SYPEXPI NUMC 1 0Print parameters, spool retention period
TDSCHEDULE SKSCHEDULE CHAR 3 0Send time request
TDSENDDATE SKDATE DATS 8 0Requested send date
TDSENDTIME SKTIME TIMS 6 0Requested send time
TDTELELAND LAND1 CHAR 3 0Country key
TDTELENUM SKTELNR CHAR 30 0Telecommunications partner
TDTITLE TDTITLE CHAR 50 0Title in dialog box
TDTEST TDTEST CHAR 1 0Test form
TDPROGRAM TDPROGRAM CHAR 40 0Program name
TDSCRNPOS TDSCRNPOS NUMC 15 0Screen display position for OTF
TDCOVER SYPRSAP CHAR 1 0Print: SAP cover page
TDCOVTITLE SYPRTXT CHAR 68 0Print parameters, text for cover page
TDRECEIVER SYPRREC CHAR 12 0Print parameters, recipient
TDDIVISION SYPRABT CHAR 12 0Print parameters, department on cover page
TDAUTORITY SYPRBER CHAR 12 0Print: Authorization
TDARMOD SYARMOD CHAR 1 0Print: Archiving mode
TDIEXIT TDIMMEXIT CHAR 1 0Immediate exit after printing/faxing from print preview
TDRDIDEV RSPOPNAME CHAR 4 0 Spool: Output device
TDNOARMCH TDNOARMCH CHAR 1 0 No changes by user in the archiving mode
TDFINAL RSPOFINAL CHAR 1 0 Spool request completed
Regards Rk
Message was edited by:
Rk Pasupuleti
Message was edited by:
Rk Pasupuleti
‎2007 Apr 23 10:44 AM
Hi
Yes you can do it programatically.
By writing the
send immediately parameter = 'X'.
u can achieve this.
Regards,
Sreeram