Print immediately
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.
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
Similar Messages
-
Print immediately option for ME21N(PO) and ME41(RFQ)
Dear friends,
Can anybody please tell me for the purchase orders(ME22N),if we select messages button,select communication method----in this screen,print immediately button is automatically coming.
Where i have to do settings to see that in Communication method under messages of PO(ME22N),printing immediately should not come automatically.
With our client for PO-print immediately is set automatically and for RFQ-it is not set.
Client wants that for PO print shall not come automatically on saving/approving the PO.
please suggest where to remove the print immdiately setting for PO.
Advance Thanks ,
Regards,
DayanandHi Gopala,
For RFQs currently-in MN02,
Medium is set to '1' and Date/Time is '4' i.e send immediately on saving the application.And while creating RFQ,under messages,in communication button,print immediately button is unchecked. So whenever print is needed ,print button is checked and getting the print.
But in PO, Medium is set to '1' and Date/Time is '4' i.e send immediately on saving the application.And while creating the PO,under messages/comminication data,print button is automatically coming with checked option,so as soon as approval PO print is coming.where as in RFQ,print check button is not comming as default as checked , so they are getting the print whenever they want. If they want they will create the meassage type with print immediately check the button and get the print.
The same feature shall be there in PO. How to avoid the print immediately check button coming automatically in communication data under messages.print immediately check button should not come automatically same as RFQs.
please suggest.
Regards,
Dayanand -
PO print (print immediately)
Hi,
what happens if i do not check the print immediately checkbox in PO messages?
how can i later print this PO??Hi,
You can print the PO thru ME9F , enter PO No. or any other selection criteria and as per Processing Status like "0" for first time processing (to be printed) "1" Sucessfully Processed ( Printed) to reprint.
Regards,
Vikas -
How To Desable Print Immediately option in Print Prievew
hi friends,
I want to desable the option Print Immediately and delete after print option in print privew of Sap Script
How To Desable this Print Immediately option in Print Prievew.
thanks & regards,
Bhaskarhi
the print option TDNOPRINT has to be intial (' '). NOT 'X'
TDNOPRINT CHAR 1 0 No printing from print preview
this will do.
Gr., Frank -
How to report print to the printer immediately and display the popup?
Dear friends,
I am running my report in background and displaying the confirm results on popup window and sending the results to printer,
but now i want to send the results page to printer then want to display the popup.
i have writen my popup perform after printer perform only but its not working...when i am clossing the popup or came back from that popup then only the results sending to printer...
How to report print to the printer immediately and display the popup?
Thanks in advance
SridharHi Sudheer,
I am using my print parameters like this :
NEW-PAGE PRINT ON DESTINATION ws_printer
IMMEDIATELY 'X'
KEEP IN SPOOL 'X'
NEW LIST IDENTIFICATION 'X'
SAP COVER PAGE 'X'
ARCHIVE MODE '1'
LINE-COUNT 64
LINE-SIZE 170
NEW-SECTION
NO DIALOG.
Then also its not printing immediatly.
here one thing for displaying the popup i am using submit report(calling another report for popup purpose)
before trigering the submit programe i need to print this.
Thanks
Sridhar. -
Check printing:Print immediately option not working in check printing
Hi,
In check printing program i have made some changes for sending data to 2nd page,when line items crosses more than 1 page.
In such cases print immediately option,selected on the screen of FCH7 is not working.Always i have to print from spool.
If data is limited to single page,then print immediately option is working fine.
Can you have some idea about this option to work correctly?
Thanks & Regards
Seshagiri.Can u check out for the field TDIMMED field in output options.
I think U have to reset that flag . -
Print immediately option default tick mark Missing
Dear All,
We are using Ecc5 on windows 2003.
While printing in the Spool control
The Print immediately option is tick mark by defaulted
But now it is not tick mark by default
Earlier it is there .
Please guide how to set Print immediately by default tick mark.
Thanks,
kumarAnd how is this related to oracle?
May be if post your question in a more relevant forum you get a better/proper answer.
I'd try SAP [NetWeaver Administrator|SAP NetWeaver Administrator; -
My HP Deskjet 1055 was connected to my laptop via USB and wiould not print immediately.
My HP Deskjet 1055 was connected to my laptop via USB and wiould not print immediately. However, when the computer was restarted, the printing job started. Please help me with a solution.
The problem is with your computer's USB port as it is powering down to save power. You need to turn this off. Go here. http://www.ehow.com/how_6818080_turn-port_s-power-save-option.html
Say thanks by clicking the Kudos Thumbs Up to the right in the post.
If my post resolved your problem, please mark it as an Accepted Solution ...
I worked for HP but now I'm retired! -
Can I suppress the print immediately flag?
I have a smartform that I am calling with the tdimmed set to spaces - so that it does not print immediately. I would like to remove that flag entirely from the dialogue, but I DO need to call the dialogue (I need to be able to do a preview).
Is there any way to suppress the flag on the dialogue so that the users are not able to set it?Hi,
1.In output parameters ,you can Set this check box.Itcpp-tddimm-->print immediately.
2.Totally,you cannot suppress this.
Regards,
Shiva Kumar -
Hi,
I have a problem with my MiniSAP system. I am not able to print immediately on my loacal printer with LOCL and SWIN in SPAD.
The only way to use it: Restart frontend printing in SP01.
ThanksHi,
Welcome you on board. You have posted 3 questions on 3 different forums. That is a smart action. However, this forum is only for SAP Business One user. Please close your thread.
Thanks,
Gordon -
Generating Proforma invoice (F8), and getting print immediately.
Hi Gurus,
When generating Proforma invoice for deliveries (F8 type invoice in VF01) they do not print immediately. We have to save in VF01 and then go to VF02 to print. This needs to be changed to print immediately on saving in VF01.
What is the configuration setting involved for this.
Please let me know for the sameIMG --> Sales and Distribution --> Basic Functions --> Output Control --> Output Determination --> Output Determination Using the Condition Technique --> Maintain Output Determination for Billing Documents
--> Here maintain new condition table with a combination of Billing Type, Sales Organization desired fiels & assign the same to Access sequence being used. Ensure that fields are released in Access Sequence.
Maintain Condition record for the same, based on Billing Type, which will address the issue.
Regards,
Rajesh Banka
Reward points if helpful -
In a SMARTFORM when we are trying to print it,
I want the Print Immediately option to be checked automatically.
Can someone tell me how to do that? Please help me with this............
Thanks
Archana.Hi..
*Declare WA parameters and options for Printer Settings
Data: wa_parameters TYPE ssfctrlop,
wa_options TYPE ssfcompop.
*before calling SF
*if the printer name you getting from User Profile table then we *need not select it, then we use no_dialog parameter
w_parameters-no_dialog = 'X'. "if you do't want
w_parameters-preview = 'X'. "Preview
w_options-tdnoprint = 'X'. "No printing from print preview
w_options-tdnewid = 'X'. "New spool request
w_options-tddest = g_spld. "Printer name from User Profile *table
w_options-tdimmed = 'X'. " to check Print immediately
*then call SF
CALL FUNCTION g_fm_name
EXPORTING
control_parameters = w_parameters
output_options = w_options
user_settings = ' '
TABLES
tbl_pitem = tbl_xxx " Your tables
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,
sg -
MD01 printing immediately - spool request
Dear,
after running MD01, automatically scheduling agreement lines are printed. In the details of the spool request the checkbox "Print Immediately" is flagged. How can I avoid this field to be flagged?
Thnx!Check in NACE transaction for the outputtype.Change the output condition record as per your requirement.
-
PO print immediately after release
Hi SAP experts,
I am getting "update was terminated" message when I release a PO I.e. final release, this message I am getting only for PO for which outtype message with "4" " send immediately when saving the application" the output type is defined for print out.
Requirement is, user wants the PO print after the final release, he don't want to run different T-code for print, the error details are mentioned below.
Mod.ID ; Mod.name ; Module type Status
1 ME_UPDATE_DOCUMENT V1 NORMAL Init
2 EINKBELEG_WRITE_DOCUMENT V1 NORMAL Init
3 ME_REL_EVENT_EKKO V1 NORMAL Init
4 MCE_STATISTICS_UPD_V2 V2 NORMAL Init
5 RV_MESSAGE_UPDATE V1 NORMAL Err
ABAP runtime errors POSTING_ILLEGAL_STATEMENT
Occurred on 23.03.2010 at 09:30:29
>> Short dump has not been completely stored. It is too big.
Statement "CALL SCREEN" is not allowed in this form.
What happened?
The current ABAP/4 program "SAPLSPO1 " had to be terminated because
one of the statements could not be executed.
This is probably due to an error in the ABAP/4 program.
What can you do?
Note the actions and input that caused the error.
Inform your SAP system administrator.
You can print out this message by choosing "Print". Transaction ST22
allows you to display and manage termination messages, including keeping
them beyond their normal deletion date.
Error analysis
This program is triggered in the update task. There, the
following ABAP/4 statements are not allowed:
- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SUBMIT
How to correct the error
If the error is in one of your own ABAP programs or an SAP program that
you have modified, try to correct it.
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"POSTING_ILLEGAL_STATEMENT"
"SAPLSPO1 " or "LSPO1U04 "
"POPUP_TO_CONFIRM_WITH_MESSAGE"
Thanks & Regards,
VijayHi,
It appears the program is triggering the output, but due to some problems, the output program canot execute it fully. The probable reasons may be:
1. The Form (Smartform or SAP Script) assignment to the output type. The Form may be in-accessible or may the version assigned to the Output type is not active.
2. The Driver Program for the output may be trying to access/update some table which it is not able to perform. Try to test and check print preview/ manual print is possible or not.
3. Printer assignment to message may be faulty, i.e the printer assigned is not in system, or the printer layout assigned is not supporting. Check SP01 to find out the printer settings.
For finding the actual cause, you can look into ST22 and take APAPers helps to find out by debugging.
Regards -
Print immediately without screen dialog
Hello,
I want to print a smartforms immediately without screen dialog.
The spool is created but not sent to the printer.
I call function module with following parameters :
ws_control-device = 'PRINTER'.
ws_control-no_dialog = 'X'.
ws_control-langu = 'F'.
ws_options-tdnoprev = 'X'.
ws_options-tdcovtitle = 'Releve'.
ws_options-tddest = 'LOCL'.
ws_options-tdnewid = 'X'.
ws_options-tdimmed = 'X'.
ws_options-tdcover = 'D'.
ws_options-tdcopies = '001'.
CALL FUNCTION lf_fm_name
EXPORTING
control_parameters = ws_control
output_options = ws_options
user_settings = 'X'
TABLES tbl_em = wt_em
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Thanks for your help.hi sebastian,
first of all u check for user settings.....in TABLE USR01
Selecting user master records from USR01 table
SELECT SINGLE * FROM usr01
INTO ls_usr01
WHERE bname = sy-uname.
ls_outputoptions-tddest = ls_usr01-spld.
IF ls_usr01-spdb = 'H'.
ls_outputoptions-tdimmed = ' '. "Print immediatetly
ELSE.
ls_outputoptions-tdimmed = 'X'.
ENDIF.
and in control parameters use
ls_outputoptions-no_dialog = 'X'.
this will help u out..
please reward in case usefull...
regards,
prashant
Maybe you are looking for
-
Does anybody know if it is possible to add extra fields in the first screen of asset creation when this is opened from within the PO? More specific: when creating a Purchase Order and the account assignment is set as Asset (multiple account assignmen
-
Hi, In the Interface Mapping there is an option to test the map. But it is not for the ABAP Mapping. How can we test ABAP Mapping ? rgds, RM
-
I have imported employees through dtw.Each employee is identified by Employee No.But the primary key of the record is displayed as Employee No.I tried setting EmployeeID,IDNumber but were of no use.The field empID from the table is displayed as Emplo
-
Creating object of subclass.
Hello All, I have a query. In ServletFilter's doFilter method I got the object of ServletRequest. Now I have to get the header. How do I get the header since getHeader method is in HttpServletRequest class which is the subclass of ServletRequest. Any
-
I maybe stupid but I need help. The red div at the bottom of the page attached is not lined up directly beneath the container above and is aligned to the left. Can anybody tell me where I'm going wrong as Iwant it to align correctly. Thanks for any