Form Printing format
I'm developing a lot of form for a customer who needs to manage conformity of received products so he needs to print some forms that have to be sent to supplyer.
Question is: How can I print only data inside form without stars rating - number of visit - buttons (reply modify - delete) and the voice Permalinks at the bottom of the pages?
Thank you for any suggestions
My solution to this issue is a bit complex but it works well with my approach to a lot of other things. First I would say that I use a single custom JSP for the edit, view, and printview version of a form. The code in the JSP is conditioned on the ssConfigJspStyle variable as to whether it displays the edit control etc. For the printview function, I created a custom ViewEntryController and call it with an operation of printview. For the most part this just supers everything to the stock ViewEntryController except for some custom things I add that's not relevant here. The key is that after calling super in the handleRenderRequestAfterValidation method. I grab the ModelAndView that is output and reset the ssConfigJspStyle in the model to "printview". This passes it to the JSP. When it is displayed all of the buttons etc are suppressed just like they are when you are modifying because they look at the value of that variable. Using this variable also lets me do things like expand textarea controls to fit the full amount of text so it doesn't get cut off when it's printed.
I realize this is not an easy answer but hope it helps.
Gary
Similar Messages
-
Printing formatted text from an Oracle form
I'm trying to print formatted text from an Oracle form without using the standard menu print. The print button on the menu prints out the text and the actual form. I just want to print the text that is displayed on the form. I would like to add a print button to the form. Is there a print function or event in PL/SQL?
Thanks in advance for any help!!
JasonIf you are interested in the content of the field you can loop over them (next_item built in) and write their content into a file using the TEXT_IO built in.
for nicer outputs check out Oracle Reports on OTN. -
Formatting Long Text gets disturbed during Adobe form Printing
Hi Guru's,
I have developed Adobe Form for PM work Orders (IW32) printing using Code u2018SFPu2019. The Order Contains order Long Text or Operation Long Text.
In my case the user maintains some table like structure in the Long text .e.g. ( Here the tab means the actual space and the text length can vary. So basically he will draw a table cells one below another by adjusting tab's)
Text 2 Tab Tab |___|___|
Te TabTab Tab |___|___|
I am reading this using READ_TEXT and it gets perfectly read.( I mean the tab positions will be intact. Also it will remain intact by the time ADS will get called)
When i submit this for generating Adobe Form the formatting of the tab positions gets disturbed and it prints something like
Text 2 |___|___|
Te |___|___|
How to keep the Tab positions intact while printing the Adobe Form? For SAP script printing it comes perfectly but for Adobe form printing it gets disturbed. Any idea how to handle this situation?
Thanks
PradeepTough request!
You have to calculate the widths of texts so that to determine to which tab position refers each tab character.
You might print the sapscript to OTF format, and read the OTF to get the exact positions (based on top left border of the page).
But now comes the second big issue: how to position a text in Adobe form at a dynamic position. That, I don't know. You might ask a question about this 2nd issue in forum -
Japan page format for legal form printing
Dear Experts,
I have an issue where I need to identify which page/spool format to be used for JP legal form printing that use 4 quadron forms.
Program name : RPCEADJ0
if spool format is X_24_80_JP, how do i know if this is 4 quadron forms format?
TQHi,
Thanks for you reply.
I cannot control left and right margin in PDF. Also, it is a PDF file so eventhough somehow you are able to change left and right margin, the content does not adjust itself to fit the legal page (as it does in word or excel).
Let me know if there is any other option.
Thanks,
RS -
JSP Form with Formatted Confirmation Page
I have a basic form, and I would like to have a confirmation page pop-up when the user clicks that they are done. The confirmation page needs to have considerable formatting on it, and include the data the user inputted on the form. It also needs to have a "Continue", "Go Back" and "Print" buttons. Continue will tell the form to proceed with submitting the form to the servlet, Go Back will put the user back on the form, Print will bring up another JSP with the form data in printable format with print/email options. Upon exit from the print page they will be back on the Confirmation Page.
The code below will allow for an OK, and Cancel button in the standard Message box, but this won't work.
I am assuming I need to create another jsp for the confirmation page. But i am stuck on two issues. How can i ...
1) Get the data onto the confirmation page from the form?
2) How can I pass back to the initial form the value of what the user selected (Continue or Go Back) so i know whether to proceed with submitting the form, or staying put.
Thanks for any help! I am very new to jsp programming.
<FORM
ACTION="http://www.mcfedries.com/scripts/formtest.asp"
METHOD="POST"
NAME="Monikers"
onSubmit="return validate(Monikers)">
Here's the JavaScript for this function:
<SCRIPT LANGUAGE="JavaScript">
<!--
function validate(frm) {
// Build the form data
var formData
formData = "First Name: " + frm.First.value + "\n"
formData = formData + "Last Name: " + frm.Last.value + "\n"
formData = formData + "Nickname: " + frm.Nick.value + "\n"
formData = formData + "Stage Name: " + frm.Stage.value + "\n"
// Show the data to the user
return confirm("Here is the form data you entered:" + "\n\n"
+ formData + "\n"
+ "Do you want to submit this data?")
//-->
</SCRIPT>Does the problem persist if you upload All Files (and not just modified). Do you continue to receive the message even if you choose "After Sending: Stay on Current Page" option? If yes, a site URL would help in identifying the issue.
Also try inserting a fresh form on a page/new Muse site and see if you're able to replicate the behaviour on different browsers.
Thanks,
Vinayak -
Dual Language in Form Printing
Hi Friends,
I have to maintain two languages for sales order printing i.e. EN and FR.
I have copied the standard print program into a Zprogram as I have to add some more functionality also the script is a Custom Script.
How would I maintain two languages for the same script?
Kindly help.
Regards,
Pradeep
Note : I will definitely assign the marks for good answer .Hi Prabhu,
Kindly explain it in detail. How can we create a smart form which having dual language i.e english & french.
e.g. I want my smart form Print in this format like
SOLD TO(english) / VENDU(french) i.e. text will be printed in dual language.
Thanks & Regards,
Abhishek. -
Development of Print Format for Quotation Comparison Statement
Hi,
Can any tell me about what are the transtcion and configuration involeved in developement of
Print format for Quotaiton Comparision.
Regards
AnilNot sure what you mean by printing quotation comparison, however the following will enable you to configure output for RFQ and rejection letters:
IMG > Purchasing > Messages > Output Control > Message Types > Define Message Types for Request For Quotation
First maintain message types for RFQ, there should be 3 already in the standard system, ABSA (Quotation Rejection) MAHN (Reminder) NEU (Inquiry). When you create the RFQ initially, NEU will be determined to output the details of the qutation required. To customise the form:
- select line for NEU
- Double click on processing Routines - This will give you a list of the possible output mediums (print, fax etc...), the print programs and print forms available.
- If you want to customise the form, copy existing (MEDRUCK) to a Z object (ZMEDRUCK) in SE71
- make any required changes to ZMEDRUCK using transaction SE71. If you are simply changing layout then changing the form will be enough, if you require additional data on the form, additional programming will be required in the print program (copy SAPFM06P to ZAPFM06P to make changes with SE80). ABAP programming knowledge very useful here or pass to programmer.
- Update customising previously mentioned to use new form/program
- Maintain Condition records in transaction MN01 if you require the output to arrive on the RFQ automatically
The same process can be used for ABSA and MAHN if required. ABSA will only be triggered from Quotation comparison/maintenance if the rejection indicator is checked. -
Print format type changed from 1024 to 255, when selecting 1024
Hi,
when i execute a Z report, with Print format type, X_65_1024/4, it changes to X_65_255 , when i see in the spool and the data is wrapped around.
What is the reason for this.See knowledgebase article [1548872|http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=1548872]
Cheers, Uwe -
How to set the default print format for the report
Hi,
In ALV report , i want to defalut specific print format and printer for background processing .
Any clues!!!!!!!!!
Regards
SwatantraHi
Please check below code:
DATA: PRIPAR TYPE PRI_PARAMS,
ARCPAR TYPE ARC_PARAMS,
LAY TYPE PRI_PARAMS-PAART,
LINES TYPE PRI_PARAMS-LINCT,
ROWS TYPE PRI_PARAMS-LINSZ.
DATA: val(1).
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LOCL' " <--- Printer Name
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*** Specifying the page formats
pripar-linct = 65.
pripar-linsz = 190.
pripar-paart = 'X_65_132'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
* list_name = 'Testing Purpose Only' "l_list
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
write:/ 'Unable to create spool'.
ENDIF.
So now a spool is created with the required print parameters...
The list that is created from here will be in the spool.
Once the list is completed, close it with NEW-PAGE PRINT OFF.
Hope this helps.
Regards
Eswar -
I click on the print icon under an article in the Wall Street Journal. A new window opens with the article in print format. When I print, I get blank paginated pages equaling the length of the article. On the top left hand corner of the page will appear the title of the article; on the top right hand corner will appear the web address of the article; on the bottom left hand corner will appear the pagination; and on the bottom right hand corner will be the date and time of the printing. This is just how any article would print; the only difference being that I'm not getting the content of the article printed.
This has only started a couple of days ago. I do not have this issue with any other publication, yet this problem doesn't exist with other browsers.I don't have a WSJ account to test... Here is some general advice:
When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
(1) Bypass Firefox's Cache
Use Ctrl+Shift+r to reload the page fresh from the server.
Alternately, you also can clear Firefox's cache completely using:
orange Firefox button (or Tools menu) > Options > Advanced
On the Network mini-tab > Cached Web Content : "Clear Now"
If you have a large hard drive, this might take a few minutes.
(2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
* right-click and choose View Page Info > Security > "View Cookies"
* Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
This will open a window listing the site's cookies, which you can remove individually.
Then try reloading the page and logging back in. Does that help? -
Smartform -Network printer format Issue
Hi,
I can print fine using my YPCC default printer.
But When i do through network printer FORMAT is getting Disturbed( Values are printing in next line).How can we handle this? Do we need to do some driver program modifications?
Here are the parameters in Driver program
CALL FUNCTION fm_name
EXPORTING
archive_index = toa_dara
archive_index_tab = arc_ind_tab
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj = ls_recipient
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
wa_itab = wa_header
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
TABLES
wa_dep = item_itab
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
IF sy-subrc <> 0.
WRITE: / 'ERROR in passing vars to the smartforms '.
ENDIF.
ls_composer_param-tdnewid = space.
ls_control_param-no_dialog = 'X'.YOu need to modify the smartform not the driver program to print all lines the way you want by changing font size, reducing line length...etc..etc..
It's printing fine on the default PC printer, because, it uses windows printer driver to render the output, where as SAP network printer uses SAP printer driver to generate the printer commands, there's always difference in the output between the two drivers.
Regards
Sridhar -
To download the print format and mail it on giving a range of customers
Hai
i have a smartform attached program to a report.
my selection screen contains only customer number (in range) and sales office code.
on executing the program will generate a printfile file for each customers.
i posted this question already and got the reply but the selection screen has only one parameter called p_mail(where u pass the address straight away).but i need the pdf format to get splitted for each and every customers and to mail them automatically.
where to write the coding for fetching the email addressess of the customers and how to loop it in order to send for all the customers automaticlly.
how to pass the parameters in the function module.
please explain to me clearly.i am in need of help.
this is the program i got for sending one mail.i get confused as how this will work for the range of customers.somebody please solve me this problem.kindly tell me where to do the changes
REPORT ztest_smartform.
DATA:it_nfal TYPE nfal OCCURS 0 WITH HEADER LINE.
DATA:fm_name TYPE rs38l_fnam.
DATA:ssfctrlop TYPE ssfctrlop.
DATA:ssfcompop TYPE ssfcompop.
DATA:it_otf_data TYPE ssfcrescl.
DATA:it_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA:bin_filesize TYPE i.
DATA:it_pdfdata TYPE TABLE OF tline.
DATA:it_pdf TYPE TABLE OF solisti1.
" Mail related declarations
"Variables
DATA :
g_sent_to_all TYPE sonv-flag,
g_tab_lines TYPE i.
"Types
TYPES:
t_document_data TYPE sodocchgi1,
t_packing_list TYPE sopcklsti1,
t_attachment TYPE solisti1,
t_body_msg TYPE solisti1,
t_receivers TYPE somlreci1,
t_pdf TYPE tline.
"Workareas
DATA :
w_document_data TYPE t_document_data,
w_packing_list TYPE t_packing_list,
w_attachment TYPE t_attachment,
w_body_msg TYPE t_body_msg,
w_receivers TYPE t_receivers,
w_pdf TYPE t_pdf.
"Internal Tables
DATA :
i_document_data TYPE STANDARD TABLE OF t_document_data,
i_packing_list TYPE STANDARD TABLE OF t_packing_list,
i_attachment TYPE STANDARD TABLE OF t_attachment,
i_body_msg TYPE STANDARD TABLE OF t_body_msg,
i_receivers TYPE STANDARD TABLE OF t_receivers,
i_pdf TYPE STANDARD TABLE OF t_pdf.
PARAMETERS p_mail type char120.
*START-OF-SELECTION.
START-OF-SELECTION.
"select data
SELECT * FROM nfal INTO TABLE it_nfal UP TO 10 ROWS.
ssfctrlop-no_dialog = 'X'.
ssfctrlop-preview = 'X'.
ssfctrlop-getotf = 'X'.
ssfcompop-tddest = 'LP01'.
Continued
Venkat.O
Posts: 1,036
Registered: 12/2/05
Forum Points: 1,782
Re: to down load the print format to pdf and sent the data thru the mail
Posted: Jul 15, 2009 7:31 AM in response to: amalrose Reply
from above
"Get Function module name for given smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST_SMARTFORM'
IMPORTING
fm_name = fm_name.
"Call Smartform function module.
CALL FUNCTION fm_name
EXPORTING
control_parameters = ssfctrlop
output_options = ssfcompop
IMPORTING
job_output_info = it_otf_data
TABLES
it_nfal = it_nfal.
***********appending the otf data into the final table*********************
it_otf_final[] = it_otf_data-otfdata[].
converting OTF data into pdf data**************************
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = bin_filesize
bin_file =
TABLES
otf = it_otf_final
lines = it_pdfdata[]
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
To send data as email attachment, we need to have a table of SOLISTI1.
This table contains line size of 255 characters. Below function module
does the trick of changing the table from X character sized lines into
any given Y character sized lines.
REFRESH it_pdf[].
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst = '255'
TABLES
content_in = it_pdfdata[]
content_out = it_pdf[]
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
Continued
Venkat.O
Posts: 1,036
Registered: 12/2/05
Forum Points: 1,782
Re: to down load the print format to pdf and sent the data thru the mail
Posted: Jul 15, 2009 7:32 AM in response to: amalrose Reply
from above
"Subject of the mail.
w_document_data-obj_name = 'MAIL_TO_HEAD'.
w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.
"Body of the mail
w_body_msg = 'This is body of mail msg.'.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
"Write Packing List for Body
DESCRIBE TABLE i_body_msg LINES g_tab_lines.
w_packing_list-head_start = 1.
w_packing_list-head_num = 0.
w_packing_list-body_start = 1.
w_packing_list-body_num = g_tab_lines.
w_packing_list-doc_type = 'RAW'.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
"Write Packing List for Attachment
w_packing_list-transf_bin = 'X'.
w_packing_list-head_start = 1.
w_packing_list-head_num = 1.
w_packing_list-body_start = 1.
DESCRIBE TABLE it_pdf LINES w_packing_list-body_num.
w_packing_list-doc_type = 'PDF'.
w_packing_list-obj_descr = 'PDF Attachment'.
w_packing_list-obj_name = 'PDF_ATTACHMENT'.
w_packing_list-doc_size = w_packing_list-body_num * 255.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
"Fill the document data and get size of attachment
w_document_data-obj_langu = sy-langu.
READ TABLE it_pdf INTO w_pdf INDEX g_tab_lines.
w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_attachment ).
"Receivers List.
w_receivers-rec_type = 'U'."Internet address
w_receivers-receiver = p_mail.
w_receivers-com_type = 'INT'.
w_receivers-notif_del = 'X'.
w_receivers-notif_ndel = 'X'.
APPEND w_receivers TO i_receivers .
CLEAR:w_receivers.
"Function module to send mail to Recipients
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_document_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = g_sent_to_all
TABLES
packing_list = i_packing_list
contents_bin = it_pdf
contents_txt = i_body_msg
receivers = i_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0 .
MESSAGE i303(me) WITH 'Mail has been Successfully Sent.'.
ENDIF.
ENDIF.Here:
http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=en
Was it deactivated on the old computer? If not, you may need to contact Adobe support by clicking on "Chat"
Serial number and activation support -
Hi!
There are several report print formats in an ABAP report. You can choose between them during printing, some examples: X_65_80 (80 columns, 65 lines), X_90_120 (120 columns, 90 lines) and so on...
Is there away to define more "standard" like printer formats?
I know, I can give anything after the REPORT statement (like REPORT zreport LINE-SIZE 99 LINE-COUNT 99) but these are not standard and mostly the printers don1t like them.
Thank you in advance
TamáHi Tamas,
When you run the report, the spool will be displayed on the screen. At this time, click on print,the system will show the print dialog. Click on properties, this will spool request attribites dialog. Click settings. in the next dialog box, select the required field, and the value and select the validity as required. This way you can set the standard format for all reports.
Ravi -
SSRS 2008 R2 why Link Report Print format different from parent?
Hi,
I have created a link report based on Report A.
In Report A I have set the print format to "LANDSCAPE", but the link report always appear in Portrait, any work around on this?
If this is one of the SSRS bugs, is that anyway I can disable the print button in Report Server?
ThanksHi SAMSUNG,
I can reproduce the issue in my local environment. As per my understanding, this scenario is caused by design.
In Reporting Services, Report server administrators have the option of disabling the print feature by setting the report server system property EnableClientPrinting to false. But this property will disable client-side printing for all reports managed by
the server. So if you want to hide the print icon in all reports, we can refer to the following document:
http://msdn.microsoft.com/en-us/library/ms155874(v=sql.105).aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to create a print format in SAP
Hi,
I dont know if this is the right forum to ask this, but I have not done this for a long time. Does anybody know how to maintain a print format such as "X_65_200" that you use when printing a report in SAP? I'm trying to create a format that will use a Legal size paper. Useful answer will be rewarded.
Thanks,
Ricky
Message was edited by: Ricky OreaHi,
The Print formats are maintained in TSP1D Table.. it is usually done by the BASIS folks..
Regards,
Suresh Datti
Maybe you are looking for
-
Hi, I know this topic has been discussed many times before, I've looked through the archives for some solutions, but in my case I just can't get anything to start-up and fear it's a logic board failure requiring re-install. If anyone could offer any
-
Can you share video's on the trial version. If so how?
Can you share a video on the trail version, if so how. Can you share a video on the purchased version?
-
HT201363 Hi, I request to change the country to use a gift card.
Hi,i kindly request to change the country from malaysia to u.s.a for 2 days becuase at this moment i have a travel to u.s.a & i want to used the gift card. Thank you <Re-Titled By Host>
-
Hi Gurus, My client has the requirement that while executing the APP via T-Code F110, the system should post payment documents with cheque numbers by Plant wise.There are around 80 Plants maintained in SAP and we are not using business area.
-
Buget Exceed problem regarding material transfer in project system
Hello Sir, I have a problem regarding budget in project system. when i do budget and release . and do any transaction with that budgeted wbs element in particular project. i get budget excced errors usally. however, budget remains more than exceeded