Print Preview as an attachment
Respected All,
I got a requirement from client side that, "On PO save an email(external) will be send to agent with print preview of PO as an attachment"
I'm new to worflow can you suggested me what should be the steps, where should i start
I appreciate you spend your time replay.
Regards,
Farrukh
Hi Farrukh,
The requirement that you have will require some efforts from ABAP side.
First you have to make changes in standard print program of the PO and provide necessary data that is required for the print preview of the PO.
Customize the standard program to get the PDF data of smart form ( u will get lots of details in ABAP forum) and attach that to the mail being sent to external mail ID.
And then create a method in BOR object, that will call the customised print Program and pass data using SET and GET commands.
Regards,
Sangvir Singh
Similar Messages
-
Print Preview of 'Document' attached to a PR/PO, Sale Order line item
Is there a BADI/BAPI involved in 'Print Preview of Document attached to a PR/PO, Sale Order line item'. When I select a line item in PO for which a DIR is attached, it doesn't display the files content in the Print Preview.
Q:) Is the system supposed to display the 'Original file' content attached to a DIR in the Print Preview Or is this the standard behavior that system won't display attached DIR - file content.
Please advise.
-ThanksHi,
unfortunately I have to inform you that from DMS point of view such a 'file preview' function is not available in the standard of the R/3 system.
If you want to raise a development request at SAP please see the SAP note 11 for further information.
Best regards,
Christoph -
Running Safari 6.0.3 When trying to print files using Adobe Reader 11.0.02, print preview screen is all black. If files are attached to an email, receiver can't open it. It does work OK in Firefox 19.0.2 Any ideas?
Back up all data.
Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
Condition type freight is not getting displayed in print preview
Hi,
I created PO, and while seeing its print preview:
Condition type freight is not getting displayed.
Where i missed?
Utshi,
Inddition to M/08...(As given above)...
Also do check the smart form or SAP script...used for the output...check it with the ABAPer...whether the field is liable for o/p or not??
Smart form is attached at message type of message determination..
Regards
Priyanka.P -
Print Preview is no longer working. Windows pops and then closes.
The Print Preview function no longer works. Clicking Print Preview results in
(1) a small window pops open in the middle of the screen then disappears
(2) then a large window opens (to preview the content as it once did)
(3) then the new windows disappears (shrinks out of sight) and apparently dies
(4) "Print previewing message..." appears in the status bar until the cursor is moved off the page.
In case it also isn't working, the system information includes:
Windows 7 64-bit SP1
The Troubleshooting Information is:
Name: Thunderbird
Version: 31.3.0
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
Profile Folder: Show Folder
(Local drive)
Application Build ID: 20141127140543
Enabled Plugins: about:plugins
Build Configuration: about:buildconfig
Memory Use: about:memory
... well, the rest wouldn't fit (something about a character limit) and the attachment part only works with images!Does it still fail to work if you restart thunderbird in Safe Mode?
In Thunderbird
Help > Restart with addons disabled -
Error while displaying print preview of smartform in VL03n
Hi all,
i created one smartform & print program . i assigned this in NACE tcode for ZD05 output type.
Then i am trying to see the print preview in VL03n while doing issue delivery output.
But i am getting error like ' Output could not be issued'. Please suggest where i am doing mistake. Thanks.
Regards
sumitraHi,
Follow below Steps:
1) Double Check your program and smartform names where you are attached in nace transaction.
2)check your templates and tables having formatting issues.
3)Finally create dummy of your smartform. then delete one by one window in smartform check it and trace out in which window error is existing.
even i faced same problem.
in my case i gave wrong line and column numbers under the template node texts. it won't show the error in smart form but while executing transaction out put could not issued.
Thanks,
Satheesh. -
I changed left and right margins to .5 thinking they were in inches and closed the page setup screen the next time I tried to print all I saw was a blank page or no page depending on zoom / shrink to fit ratio set. When I go to page setup all I get is a new window that is transparent in the text area and extends off the right side of the screen. I have to right click and select close to close it as I do not see the standard minimize, maximize, and close buttons. I do not want to reset defaults as I have changed many settings and do not remember all the settings I have changed. I do have an older copy of my firefox profile in a previous user profile of mine on this machine. Is there an easy way to reset the page setup settings?
What do I do?
PS. I am using Firefox 29 on a XP Pro machine slated for upgrade to windows 7 Pro.Sorry I have been away from this system forr a while. when I turned it on this morning and launched Firefox it upgraded me to version 31.0.
Attached are three Png files, one is what happens if I try to print to do a print preview. If I try to print a web page it prints the same thing.
The other file is what comes up when I click on page setup. It opens a very wide window that is a copy of the web page that was there when page setup was clicked on.
The Third is what happens to the above page setup window when I drag the window to the left. -
Credit memo print preview problem
Hi Friends,
The present process is return sales , in which return sales order created with reference to sales order, Credit memo request created and Credit memo also created.But the problem is not getting print preview.Error message is Excise invoice corresponding to the document type is not found.
We are generating Excise invoice Automatically, Is there any effect of this on the present issue.Please give some hint.
Thanks
ChetanHi,
See normally we have excise invoice creation automatic when invoice is saved. In such cases we have a check in the print program of invoice, which prevents its printing if excise invoice is not created.
In case of credit memo, you might not be creating any excise invoice, but the print program attached might be preventing its printing also.
Check that such a check is given in print program for credit memo output, if yes you may have to remove it.
Hope this helps you.
Regards,
Dhananjay -
No PO Print Preview in SRM 7.01
Hi,
We are using extended classic scenario, when trying to ope Print Preview (PDF form)option in SRM, nothing is displayed.
We are trying to open standared PO output, but nothing is coming, there is no issue with SC output.
The below is the message when we try to ope PO in SRM:
"Adobe Reader could not open. "Purchase Order.pdf" because it is either not a supported file type or because the file has been damaged(for exmaple, it was sent as an email attachement and wasn't correctly decoded"
Thanks
rajaHello Raja,
Is the smartform is a Custom or standard one?(CHECK badi BBP_OUTPUT_CHANGE_SF )
If it is custom Smartform there might be error in format .
Please check.
Regards,
Neelima -
Print preview not showing values correctly. (single words are omitted)
Hi,
When viewing print preview of ME23n , it does not shows the values correctly.
It omitting the single words.
If its having 2 or more words, it displaying correctly
For example;
This is the vendor & its address. (check attached image img1.jpg)
ZERANDIB BUSINESS APPLIANCES
Number-122/A
PO BOX 41,112,REID AVENUE
COLOMBO-04
When displaying the print preview, it shows only some parts of the above address
Shows only; (check attached image img2.jpg)
ZERANDIB BUSINESS APPLIANCES
PO BOX 41,112,REID AVENUE
These values are getting from a table called LFA1. I have checked that table & in that table all the values exists correctly.
I have noted issue is with, having only a single word. (If address or name having only a single word, that is without spaces, it will not going to show in the print preview) -
In the above example, it is not showing Number-122/A and COLOMBO-04 (Its a single word. No spaces there)
If its like --> Number - 122/A & COLOMBO - 04 , then it will display in the print preview correctly (where there are spaces after - mark)
check img3.jpg
If its having more than one word, then it will display correctly in the print preview. As below;
ZERANDIB BUSINESS APPLIANCES
Number - 122/A
PO BOX 41,112,REID AVENUE
COLOMBO - 04
Any ideas how to resolve this issue?
Is there any thing to do with printer settings & configurations / netweaver admin point of view?
Best Regards.
ZerandibHi Zerandib,
By the way , since its a standard program, i think that code is out of our scope.
Me23N is a standard tcode but cusomters create Z-Program for printing by making a copy of standard.
You may please check upon the same.
Is it possible to check the results on a system where patch has not been applied ?
Regards,
Deepak Kori -
ME23n , Does not shows the values correctly in print preview
Hi,
When viewing a PO using ME23n , it does not shows the values correctly in the print preview.
For example;
This is the vendor & its address. (check attached image img1.jpg)
ZERANDIB BUSINESS APPLIANCES
Number-122/A
PO BOX 41,112,REID AVENUE
COLOMBO-04
When displaying the print preview, it shows only some parts of the above address
Shows only; (check attached image img2.jpg)
ZERANDIB BUSINESS APPLIANCES
PO BOX 41,112,REID AVENUE
These values are getting from a table called LFA1. I have checked that table & in that table all the values exists correctly.
I have noted issue is with, having only a single word. (If address or name having only a single word, that is without spaces, it will not going to show in the print preview) -
In the above example, it is not showing Number-122/A and COLOMBO-04 (Its a single word. No spaces there)
If its like --> Number - 122/A & COLOMBO - 04 , then it will display in the print preview correctly (where there are spaces after - mark)
check img3.jpg
If its having more than one word, then it will display correctly in the print preview. As below;
ZERANDIB BUSINESS APPLIANCES
Number - 122/A
PO BOX 41,112,REID AVENUE
COLOMBO - 04
If its 2 or more words, it shows correctly.
If its 1 word, then its not showing!
Why it is happening like that? Any ideas how to resolve this issue?
regards.
zerandibIt turns out that this problem went away after the program crashed. Everything seems to be working well now.
-
Print Preview in InDesign?
Sorry, I thought this would be simple to find by searching, but it appears that each page with an answer on it has Print Preview at the bottom, so I'm getting a huge number of unrelated hits! I'm converting publications from Ventura Publisher 10 to InDesign CS4 on Windows XP. I'm used to using Print Preview in Ventura to view the placement of the page within the paper size and confirm everything is the way I want it before printing. I'm not needing to view color separations.
For example, my page size for the printed publication is smaller than 8-1/2 x 11, but I'm also printing a postscript file to an 8-1/2 x 11 page size, then distilling a pdf version that is converted to a fax tiff image and transmitted by our fax service bureau to our subscribers. When I do this, I need to determine an exact percentage enlargement that will bring the content as close to the margins as possible, since the fax adds a header and shrinks it back down. In Ventura, I can open print preview and tweak it, seeing in real time how my changes will print, quickly tweaking to bring images or text that are cut off back onto the page by changing the scaling or position of the content on the printed page size. I can't see a way to do that in InDesign. It's taking a lot more time since I can't eyeball it first before printing to file and making the pdf to test the change.
Am I just not getting how to do this? I see the Preview Window under print, but it isn't showing me the exact placement of the elements on the page, so I can see what's getting cut off and where, just the overall size of the enlarged area.
Thanks -- NancyI'm sorry, I think I have not been very clear. This document has two purposes. I have a page setup to be printed on a press. It's not 8-1/2 x 11, because it has to be setup smaller for the press. It is perfect for that purpose. To get a file I can feed to my fax broadcast system, I just need a postscript print file, the same file, that is now printed to a media size of 8-1/2 x 11, as large as possible to fill the space, with slightly different settings as to position on page, grayscale instead of color, etc. I am trying to avoid creating a separate document, or making changes to this document, because it isn't really necessary. This document is perfect for its purpose of creating the printed page; I just need a print file of it that's scaled a little larger to fit an 8-1/2 x 11 page so I can now run it through my fax system.
The final output is not the problem. I can find the correct scale and position and fix it in the Print Preset and I am done forever. My frustration is that to find the correct settings in InDesign, during this testing phase, I have to keep printing, creating the pdf, to just see what if changing the scaling by 1% will now move, for example, the page number back on the page so it will be in the pdf for the fax. In Ventura, I would hit print preview, use a hand to move the page on the media until it was in position, and set it up in print setup so it could be attached to a script and print the same way each time. But I could see it visually prior to printing, and that's all I was trying to do in InDesign.
It's true I'm having to move my creaky brain a new direction, and I'll look at your suggestions again. Thank you both for reading and responding to my original message. From your responses, I take it that the answer to my actual original question is, no, there is no print preview in InDesign that lets you view the actual image of the page on the media, and how it changes when different Print > Setup > Options are selected. The only way to really view it is to change the publication, so you show a page size that is the media size, and move the elements of the page and enlarge them to fit where you want them on the page. -
Converting Smartforms to PDF and displaying Smartforms on print preview
Hi,
How to convert smartforms to pdf?
How to attach this pdf to email?
How to attach this pdf to the email and at the same time can print preview the smartforms?
Thanks.Hi Navi,
Code Snippet for Simple Mail
*& Report ZZ_TEST *
REPORT zz_test .
INCLUDE zz_test_top.
INCLUDE zz_test01.
FORM entry *
--> RETURN_CODE *
--> US_SCREEN *
FORM entry USING return_code us_screen.
CLEAR retcode.
xscreen = us_screen.
PERFORM processing USING us_screen.
CASE retcode.
WHEN 0.
return_code = 0.
WHEN 3.
return_code = 3.
WHEN OTHERS.
return_code = 1.
ENDCASE.
ENDFORM. "entry
*& Include ZZ_TEST_TOP *
TABLES : nast,
tnapr.
TYPES : BEGIN OF t_SOUDNAMEI1.
INCLUDE STRUCTURE SOUDNAMEI1.
TYPES : END OF t_SOUDNAMEI1.
Internal Table declarations
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
*Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
i_lips LIKE lips OCCURS 0 WITH HEADER LINE,
i_SOUDNAMEI1 TYPE STANDARD TABLE OF t_SOUDNAMEI1.
Work Area declarations
DATA:w_objhead TYPE soli_tab,
wa_control_parameters TYPE ssfctrlop,
wa_output_options TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng TYPE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string,"To convert from 132 to 255
wa_SOUDNAMEI1 TYPE t_SOUDNAMEI1,
Variables declarations
w_form_name TYPE rs38l_fnam,
w_len_in LIKE sood-objlen,
w_len_out LIKE sood-objlen,
w_len_outn TYPE i,
w_lines_txt TYPE i,
w_lines_bin TYPE i,
retcode TYPE sy-subrc,
xscreen TYPE c,
w_spld TYPE usr01-spld,
w_receiver TYPE SOXNA-FULLNAME,
w_OBJ_RECORD TYPE OBJ_RECORD,
w_user type sy-uname,
w_email TYPE ad_smtpadr.
Constants Declaration
CONSTANTS : c_x TYPE c VALUE 'X',
c_atrate(1) TYPE c VALUE '@'.
*& Include ZZ_TEST01 *
FORM PROCESSING *
FORM processing USING proc_screen.
SELECT * FROM lips
INTO TABLE i_lips
WHERE vbeln = nast-objky.
Call Function module to Getfunction Module name Generated by Smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = tnapr-sform
IMPORTING
fm_name = w_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
retcode = sy-subrc.
ENDIF.
CLEAR : wa_control_parameters,
wa_output_options.
CASE nast-nacha.
WHEN '1'.
wa_control_parameters-device = 'PRINTER'.
WHEN '7'.
DATA: l_email TYPE ad_smtpadr.
wa_output_options-tdnoprev = c_x.
wa_control_parameters-getotf = c_x.
To get the default output device maintained in the
User profile
SELECT SINGLE spld FROM usr01
INTO w_spld
WHERE bname EQ nast-usnam.
IF sy-subrc EQ 0.
MOVE w_spld TO wa_output_options-tddest .
ENDIF.
wa_output_options-tdnoprev = c_x.
wa_control_parameters-getotf = c_x.
To get the email address maintained for the particular output
CALL FUNCTION 'NAST_GET_MESSAGE_OBJECT_RECV'
EXPORTING
pi_objkey = nast-tdname
IMPORTING
pe_addr = w_receiver
CHANGING
pc_objhandle = w_obj_record
EXCEPTIONS
maildata_not_readable = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF w_receiver NA c_atrate.
To retrieve the E-Mail Id in case we get the User name from NAST
CLEAR wa_soudnamei1.
REFRESH i_soudnamei1.
MOVE w_receiver TO wa_soudnamei1-fullname.
To get the user name
CALL FUNCTION 'SO_NAME_CONVERT_API1'
EXPORTING
name = wa_soudnamei1
TABLES
names = i_soudnamei1
EXCEPTIONS
user_not_exist = 1
parameter_error = 2
x_error = 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.
CLEAR wa_soudnamei1.
READ TABLE i_soudnamei1 INTO wa_soudnamei1 INDEX 1.
MOVE wa_soudnamei1-sapname TO w_user.
To get the e-mail Id maintained in the user profile
CALL FUNCTION 'FTR_CORR_CHECK_EMAIL_SAP_USER'
EXPORTING
i_user = w_user
IMPORTING
e_email_address = l_email
EXCEPTIONS
mail_address = 1
determination_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
MOVE l_email TO w_receiver.
ENDIF.
MOVE w_receiver TO w_email.
ENDCASE.
wa_control_parameters-no_dialog = c_x.
wa_control_parameters-langu = nast-spras .
wa_output_options-tdteleland = nast-tland.
wa_output_options-tdtelenum = nast-telfx .
wa_output_options-tdsenddate = nast-erdat .
wa_output_options-tdsendtime = nast-eruhr .
wa_output_options-tddataset = nast-dsnam .
wa_output_options-tdsuffix1 = nast-dsuf1 .
wa_output_options-tdsuffix2 = nast-dsuf2 .
wa_output_options-tdimmed = nast-dimme .
wa_output_options-tddelete = nast-delet .
wa_output_options-tdautority = nast-tdautority.
wa_output_options-tdcovtitle = nast-tdcovtitle .
wa_output_options-tdcover = nast-tdocover .
wa_output_options-tdreceiver = nast-tdreceiver.
wa_output_options-tddivision = nast-tddivision.
wa_output_options-tdcopies = nast-anzal .
wa_output_options-tdnewid = c_x.
wa_output_options-tdarmod = nast-tdarmod.
wa_output_options-tdnoarmch = c_x.
CALL FUNCTION w_form_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = wa_control_parameters
output_options = wa_output_options
user_settings = ' '
IMPORTING
job_output_info = w_return
TABLES
it_lips = i_lips
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF nast-nacha EQ 7 AND sy-subrc EQ 0.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 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.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING ' ~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~ '.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
REFRESH: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
CLEAR w_objhead.
Object with PDF.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES w_lines_bin.
Document information.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'Delivery' 'Note'
INTO w_doc_chng-obj_descr.
*w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'. "Functional object
w_doc_chng-doc_size = w_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
i_objpack-head_start = 1.
Number of lines of an object header in object packet
i_objpack-head_num = 0.
Start line of object contents in an object packet
i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
i_objpack-body_num = w_lines_txt.
Code for document class
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = w_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'Delivery' 'Note' '.pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = w_lines_bin * 255.
APPEND i_objpack.
Document information.
CLEAR i_reclist.
e-mail receivers.
i_reclist-receiver = w_email.
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'. "Internet address
APPEND i_reclist.
sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
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 ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. "processing
OTF to PDF
========================================================================
Program1
*& REPORT zpmm_print1
REPORT zpmm_print1.
DATA : gw_ssfcrescl TYPE ssfcrescl.
DATA: gt_otf TYPE STANDARD TABLE OF itcoo ,
gt_tline TYPE STANDARD TABLE OF tline,
gv_len LIKE sood-objlen,
gw_ssfctrlop TYPE ssfctrlop, "for CONTROL_PARAMETERS
gw_ssfcompop TYPE ssfcompop. "for OUTPUT_OPTIONS
DATA fm_name TYPE rs38l_fnam.
gw_ssfctrlop-getotf = 'X'.
gw_ssfctrlop-no_dialog = 'X'.
gw_ssfcompop-tdnoprev = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZPMM_1'
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
<error handling>
ENDIF.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = gw_ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = gw_ssfcompop
user_settings = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = gw_ssfcrescl
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.
gt_otf[] = gw_ssfcrescl-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = gv_len
TABLES
otf = gt_otf
lines = gt_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 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.
DATA : gv_filename LIKE rlgrap-filename VALUE 'C:\swet.pdf'.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
bin_filesize = gv_len
filename = gv_filename
filetype = 'BIN'
filetype_no_show = 'X'
IMPORTING
act_filename = gv_filename
filesize = gv_len
cancel = ''
TABLES
data_tab = gt_tline.
Program 2
*& REPORT zpmm_print2
REPORT zpmm_print2.
DATA : gw_ssfcrescl TYPE ssfcrescl.
DATA: gt_otf TYPE STANDARD TABLE OF itcoo ,
gt_tline TYPE STANDARD TABLE OF tline,
gv_len LIKE sood-objlen,
gw_ssfctrlop TYPE ssfctrlop, "for CONTROL_PARAMETERS
gw_ssfcompop TYPE ssfcompop. "for OUTPUT_OPTIONS
DATA fm_name TYPE rs38l_fnam.
gw_ssfctrlop-getotf = 'X'.
gw_ssfctrlop-no_dialog = 'X'.
gw_ssfcompop-tdnoprev = 'X'.
CALL FUNCTION '/1BCDWB/SF00000041'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = gw_ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = gw_ssfcompop
user_settings = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = gw_ssfcrescl
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.
gt_otf[] = gw_ssfcrescl-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = gv_len
TABLES
otf = gt_otf
lines = gt_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 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.
DATA : gv_filename LIKE rlgrap-filename VALUE 'C:\swet.pdf'.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
bin_filesize = gv_len
filename = gv_filename
filetype = 'BIN'
filetype_no_show = 'X'
IMPORTING
act_filename = gv_filename
filesize = gv_len
cancel = ''
TABLES
data_tab = gt_tline.
=========================================================================
Cheers
Mohinder Singh Chauhan -
Colors in print preview not matching colors in soft proofing
Hi There,
Just wanted to print a new photo and realized that the colors in print preview do not match the colors in soft proofing. In both cases I selected the same icc profile and rendering method. The print colors matched the colors in print preview. I never had a problem so far. All new prints will be checked with soft proofing and adjusted when necessary. I never paid attention to the color rendition in print preview and all prints perfectly matched the colors from the soft proofing. I was surprised when my print came out of the printer and the colors weren't matching the soft proofing colors, but that of the print preview.
I don't understand why Photoshop renders the colors differently in the first place. Please see attached screenshot for the difference in the blue/cyan colors.
I would appreciate if anybody could point me in the right direction in what is causing this difference. I don't care if the print view colors will match the print, but I do care when soft proofing is not working.
Thank you.
Best regards,
D.Here are some addtional details:
PS 13.1.2
Mac OS X 10.8.4
12 GB Ram
60 GB free disk space
I printed the same photo from two other computers (MacBook and iMac) with different PS versions (CS4 and CS5). The prints turned out identical to the first one which matches the print preview color rendition on my main computer (MacPro) running CS6. Strangely the colors in print preview of CS5 on the iMac renders the colors identical to the soft proofing colors. -
Print Preview in Web UI giving errors
Hi
I have created a service contract quote in Web UI and have released the same. An action to create the print output has been created and attached to the transaction.
A smartform has been developed to show the output as a PDF. This smartform is working fine in SAP GUI. We are able to see the output in SAP GUI.
But in Web UI, when I schedule this print action, the same is scheduled successfully. But when I hit the print preview button another window opens up with the error "Error occurs in Smart Form'.
I am not sure why this error is coming. Please help in case you have any inputs on how to fix this issue.
RegardsHello Mallik,
I just read your post and I am struggling with the same issue.
Do you already had a solution to your problem?
Thanks
Ab
Maybe you are looking for
-
This little box near the top right started showing up recently, and after a few times I realized I did want to change my home page to my most frequently used web page, so I followed the instructions and it works, but that @W#$ popup box continues to
-
How do i recover files from time capsule
A couple of days ago my macbook pro (mid 2009, 2.53 GHz intel core 2 duo running Mountain Lion) started getting slow almost to a crawl, and the hdd name was changed automatically from Macintosh HD to a really long and weird name, something like ////
-
Iphoto library won't show folders
When using spotlight to locate a specific photo in my iphoto library, it shows a file located in the iphoto library. When I go to finder to find that same file (user/pictures/iphotolibrary), I only get an icon for the library, but no file tree. I use
-
File corrupted or format not supported
i built a site with muse beta and now can't open the file. one file is corrupted the copy is not a supported format. i understnd from the forum that this means my files are pooched. so can i download the site from the server and work on that?
-
Can't import AVCCAM files to timeline with OSX Lion upgrade
I used to be able to edit AVCCAM files on the timeline with the Panasonic plug-in for Final Cut Pro 7, but since upgrading to Lion, I can no longer import the files. Is there a workaround?