Smartform and acrobat output
Hi ,
Could any body tell me how to display the smartform output in acrobat as well.
Thanks
Santosh
Hi Pankaj ,
Iam facing problem whenever iam trying to execute :
I have done the coding this way but iam not able to get the data into : ws_opinfo for JOB_OUTPUT_INFO PARAMETER
and also facing the error with fn mod 'CONVERT_OTF_2_PDF' in the tables parameter OTF :
This is my code :
if not i_output[] is initial.
If smart = 'X' .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZHR_INCOMETAX'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = formname
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 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.
data : ws_ctrlpara type SSFCTRLOP ,
ws_opoption type SSFCOMPOP ,
ws_opinfo type SSFCRESCL occurs 0 with header line .
ws_opinfo TYPE SSFCRESCL OCCURS 0 WITH HEADER LINE
ws_opoption = 'MAIL' .
ws_ctrlpara-langu = sy-langu.
ws_ctrlpara-no_dialog = 'X'.
ws_ctrlpara-getotf = 'X'.
CALL FUNCTION formname
EXPORTING
CONTROL_PARAMETERS = ws_ctrlpara
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = ws_opoption
USER_SETTINGS = 'X'
IMPORTING
JOB_OUTPUT_INFO = ws_opinfo
TABLES
i_output = i_output
i_output_all = i_output_all
*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.
data : WI_MTAB_PDF LIKE tline OCCURS 0 WITH HEADER LINE ,
wl_filesize type XSTRING ,
LT_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE .
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
IMPORTING
BIN_FILESIZE = wl_filesize
TABLES
otf = ws_opinfo
doctab_archive = wi_docs
lines = WI_MTAB_PDF
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = wl_filesize
filename = 'D:\Documents and Settings\sju\Desktop\mnr.pdf'
FILETYPE = 'PDF'
IMPORTING
FILELENGTH =
tables
data_tab = WI_MTAB_PDF[]
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
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
Santosh!!!
Similar Messages
-
Where to find predined smartforms and corresponding output types?
he send it urgent pls?
Please have a look at below link. It will give you some details.
http://help.sap.com/bp_autov1470/Auto_DE/HTML/PreconfSmartForms_EN_DE.htm
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
Mulitple Smartforms for single output type
Hi Experts,
I have 4 programs and 4 smartforms and One output type Z999.
Depends on Company code i need to generate appropriate smartform using VF02.
( 4 programs & 4 smartforms means,
US invoice, US Creditmemo, Canada Invoice and Canada creditmemo).
Is it possible to assign 4 smartforms & 4 programs in NACE transaction in single output type?
If it is not possible what is the way? Please adivise me.Hi,
I don't think so that you can not do it directly. But there is a workaround for your problem. You can define your output type as SAP script and enter program name and entry routine. You can ignore a SAP script name because you are going to use Smartforms. In this entry routine you will call different Smartforms based on company code of your document.
But why don't you use different output types for different documents? That would be the best solution.
Cheers -
I am trying to update our Adobe Reader and Acrobat Pro to 11.0.10 using the default MSP packages with SolarWinds Patch Manager. All of the systems keep reporting as 'NOT APPLICABLE'. All of the workstations have Reader11.0.09, with about 10% still on 11.0.08 (due to the fact that the reader 11.0.09 package only patched about 2/3 of the systems). All systems that have Acrobat Pro are 11.0.09.
In SolarWinds I am using the "Adobe Systems, Inc. Packages" node.
Adobe Systems Acrobat 11 Catalog
Adobe Systems Reader 11 Catalog
and the SW Patch Manager downloads the msp's straight from Adobe.
I have checked the msp's manually and they will update at least back to 11.0.07 in Reader, and 11.0.0 in Acrobat Pro. (I had an old stand alone system that still had Reader 11.0.07, and I did a new install of Pro and went straight to update 11.0.10)
The SolarWinds Tech said, "Okay. That content is produced by Adobe. Any questions concerning applicability logic or diagnosing why a package reports as NotApplicable when that's not expected would need to be directed to Adobe, as they are solely responsible for that content and its behavior".
I am new to SolarWinds Patch Manager, and any help or advice would be greatly appreciated.It sounds like you are attempting to use the SCUP catalogs outside of the MS solution. I can almost guarantee you that Adobe didn't test it if it's not referenced in the ETK: 11 SCCM-SCUP — Enterprise Administration Guide
That being said there "should" be logging available in any deployment solution. Since I am not familiar with Solar-Winds particular solution I can't say if it logs errors and how verbose those logs might be. If you have logs then post the output and the forum members "might" be able to assist you. -
I sent a lot of jobs to printing companies by sending them high-res proofs on very large, multiple page jobs with lots of photos and graphics. Many companies are requesting that I just send pdfs. I just upgraded to Windows 7 and CS5. I used to have some special settings in my older Acrobat Distiller and InDesign which have been lost. They gave a much better result that what I seem to be getting from the "Press Quality" setting for pdf's. Does anyone have an excellent list of settings that can used to improve the quality of pdf's? I don't know if this is a combination of settings in both InDesign itself, as well as in Acrobat Distiller, or if the settings in one program will solve this. I have a job pending that needs improvement in the pdf quality. Thank you.
Thanks Peter. My last post was specific to using the Print Booklet feature (which is now solved thanks to your help). But this is related to creating high-res pdfs in general that go to printing companies, and being used for sending high-res proofs to clients. In general I don't need to set up printer spreads for my jobs (just for the one I asked about in my other post), but I used to have some specific settings that a printing company supplied me with to give the highest res pdf output possible. Those settings did in fact give a better result than the Press Quality settings built into my Adobe programs. I have had printers over the years request that I create a postscript file, then use distiller (using the settings they supplied) and I got an excellent result. After getting a new computer, Windows 7 and new CS5 and Acrobat Pro 9 upgrade, all of these settings were lost. I have notes on the settings from a couple of years ago, but they don't seem to apply to the CS5 programs in every given area and I feel like there may be just a couple of boxes that either should or shouldn't be checked that I'm missing now.
I understand that this is very specific information, and I may just need to go with the Press Quality settings. The printing company that gave me that great info a while back is no longer in business and other printing companies I have checked with won't spend that kind of time with me (or maybe they don't know anything other than using the Print Quality setting). Maybe within the CS5 program now, the quality of this setting has been improved more than I realize yet. Again, I'm new to CS5 and am just trying to get everything back to the way I used to have things running, and trying to get the best results possible.
Thanks again! -
How to change font size in smartform and set layout of smartform
Dear abapers,
I want to change font size in smartform and also set the layout of smart form how can we do this.
Thank you sir.Hi,
you can do it first you need to goto smartforms tcode there click on radiobutton 'Style'.
Give any name and click on create. Right sideyou can find character format right click on it and create a node .A pop will raise gve a 2 characterlike z1 or a1 etc click on font tab gve size and font style and click on save and activate. Use this style in your smartform you can apply what ever styles created in styles you can use it in your smartform by that smartstyle name.
When we create text in output options give your smart style name and click on general attributes . Select your text and apply the style what thse size it should be and what the font style it should be.
Goto smartforms tcode and select formpainter in application bar set layout according to your requirement.
Thanks,
venkat -
Bug in PDF and print output with gradients?
I've got a document that makes use of a gradient fill in a table, and I find that (at least for the < 2pt border widths) the border has a thin white line to either side. It shows up readily in both the print and PDF outputs. Is this a known issue? Where can I file a bug for it? I'm using iWork 6.0 with the latest patches applied. This all worked and looked fine under iWork 5.0. :-(
<br>
PowerMac G5 Mac OS X (10.4.7)What are you using to view/print the pdf's?
Make sure you have the latest Adobe Reader, found
here:
Adobe - Adobe Reader - Download
I'm using Preview. I did check it using Acrobat reader on Windows, and the problem still exists. I suspect there was an error made (by Pages) computing the edge of the rectangle for the gradient. It renders correctly in iWork '05.
-John -
Differences between Acrobat 9 and Acrobat X at soft proof
Hi!
Under Mac OSX 10.8 there is a critical error on output preview.
A PDF with the ISOCoatedv2 colorprofil looks very different at Acrobat 9 Pro and Acrobat X Pro.
The preview in Photoshop, Illustrator and Acrobat 9 is correct.
The complete same file at Acrobat X Pro looks verry different! (in each app the simulation is on IsoCoatedv2)
on top the acrobat X Pro (red is to dark)
on the pic below is the correct one in Acrobat 9.
What can i do, that Acrobat X Pro shows me correct colors (the same whicht Acrobat 9 shows)?!what fix? adobe must have changed the way they access/translate data to the monitor color space and didn't tell anyone about it. wouldn't have been the first time and sure wont be the last. no preference panel allows you access to those settings. leaving us with no choice but once again bow to adobes monopoly power.
how come microsoft got sued over a similar issue and adobe?
http://en.wikipedia.org/wiki/United_States_v._Microsoft
and those color management preferences got nothing to do with the way a pdf is rendered on your screen, that's only to describe items that don't have a profile attached (device colorspaces).
acrobat 11 does exactly the same. sorry to be the bearer of bad news.
just checked, the worse your monitor profile is, the bigger the display error. acrobat 11 (and i guess 10 as well) readjust the display. try changing the monitor profile in system preferences and watch acrobat 11 reset its display within a few seconds. it displays correctly for about half a second and than its back to some unrelated display mode.
thnaks for the great find! -
Problem with creating PDF in Photoshop, or Acrobat Output Preview
I saved a PDF in Photoshop and Acrobat's output preview the text was black in 4 colors and Rip did not have this problem. Why?
You have gone a while without a reply here, so I'll bump your post at least, but it is not clear from your question exactly what your problem is.
'Black in four colors' I don't understand this statement. Black is black and does not have colours.
'Rip' I don't know what you mean by Rip.
One tghing that comes to mind is that if you have exported a large layered document to PDF and that document had vectored objects like Type layers, whenn you view the PDF file you might initially see those vectored objects in black while the system is catching up and rendering the type layers etc. In that case, just waiting will see it corrected, but a 3550 x 8800 pixel banner file I delivered to a printer recently, took ages to render on the printer's slow system.
If you expand on your problem, I amn sure someone will try and help. -
What's the difference between this and Acrobat 7.0 Pro?
I don't understand what the difference is between this product and Acrobat 7.0.5 Professional... I can view 3d enabled PDFs in 7.0.5 Pro.
Is this tool a superset of Acrobat 7 Pro that facilitates creation of this 3D content?Actually, the Mac story is a bit more complicated than has been reported. The Acrobat 3D (authoring) product is currently available only on Windows. The new Adobe Reader 7.0.7, which contains the enhanced 3D viewing and collaboration features mentioned in the press releases, will be available simultaneously on Windows AND Mac. The Unix ports mentioned are only for capturing OpenGL streams from applications on Unix and creating PDFs from them, the entire functionality of Acrobat 3D is not currently available on Unix.
I cannot comment on if and when a Mac version of the authoring tool (Acrobat 3D) would be released. Content produced on Windows, however, will be viewable on the Mac and can be collaborated on on the Mac exactly as on Windows, using the Adobe Reader. A lot of work was done on the Mac to make this happen.
As far as OpenGL Capture, you can theoretically capture any output that displays using OpenGL on Windows or the Unix systems that Acrobat 3D supports. However, that said, we sometimes run into applications that do not capture properly. We tested with a number of important CAD applications so that we could make sure that capture worked from them, but we were, obviously, unable to test capture with all OpenGL applications. If you find one that does not work, please report it as a bug against the product.
Hope this helps.
Michael Kaplan
Director of Engineering, Acrobat 3D/Manufacturing -
I had a FrameMaker file that has gone through several revisions. In its
last revision it accidentally had an older version of a pdf file created
on a Mac on one of the pages. The FrameMaker file distilled fine with
Acrobat 8 but had issues under Acrobat 9. The error was:
> %%[ ProductName: Distiller ]%%
> %%[Page: 1]%%
> %%[Page: 2]%%
> %%[Page: 3]%%
> %%[ Error: undefinedresource; OffendingCommand: findresource; ErrorInfo: DictCRC --nostringval-- ]%%
>
> Stack:
> /CSA
> /1
> /CSA
> -mark-
> -save-
>
>
> %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
> %%[ Warning: PostScript error. No PDF file produced. ] %%
The pdf file seemed to be a nice pdf that Acrobat 9 (under Windows) had
no issues with. However, regenerating the pdf file seemed to cure the
issue and had the advantage that all the graphics on the page which was
a software demonstration now are showing the Windows application output
rather than the some Mac application and some Windows application output.
Alls well that ends well I suppose.
MikeI had a problem in FrameMaker 8 and Acrobat 8 with embedding Flash Files
into Acrobat via FrameMaker. Embedding into the pdf was not reliable.
Sometimes the swf would work, sometimes it wouldn't. It appears that
embedding from Frame 8 through Acrobat 9 is more reliable. At least in
the first few files that I've used (which are basically the same files I
previously used. As to why re-pdf the same Frame files---purely for
testing purposes.
Mike -
Regarding Smartforms and Print Programs in MM
HI
ALL
I need to customise the all the standard smartforms Purchase Requisition , Purchase Order,Goods receipt,Goods issue,Goods return in MM .For this I need the standard smartforms and driven programs(Print Programs) for these . send me the smartforms and printprograms for these.
Regards
VenkatHi,
You can goto 'NACE' transaction and select the Required Application then Click on OUTPUT TYPES and select the required Output type and click on PROCESSING ROUTINES.
In this way you can get the standard Smartforms.
Hope this may be helpful,
Regards,
Sravanthi -
Smartforms and webforms.
hi All,
I am a R/3 programmer and i am assigned a query of ESS which is developed in BSP and HTMLB. There is a smartform and that is not picking up the values properly so i m asked to sort that problem out. Basically they have designed the form such a way that once i go to that page and that i push the 'Print' button, the output of the form comes straight in the pdf format. Now generally there is a call 'SSF_FUNCTION_MODULE_NAME' to call the form in abap, is it the same in BSP??
also if it is so i did not see the call in my forms. So is it possible to conver the OTF straight to PDF without calling the smartform . I knw its confusing but i have tried to put it as clear as i can.
please ask me further questions if u feel the need.
thanks in advance,
Reena..Reena,
Yes calling smart form in BSP is same like in ABPA. Yes you can convert the smartform output into PDF from SPOOL output into OTF. But you need to call the FM to generate the OTF data.
To call smartforms: you can use FM 'SSF_FUNCTION_MODULE_NAME' " or you can generate the FM from smartforms then you can use that. Here is the sample code to call the smartforms & covert into PDF.
<b>OnInputprocessing or Oninitialization.</b>
* event handler for checking and processing user input and
* for defining navigation
data: output_options type ssfcompop,
control_parameters type ssfctrlop,
output_data type ssfcrescl,
devtype type rspoptype.
DATA: cached_response TYPE REF TO if_http_response.
DATA: guid TYPE guid_32.
* generated result: PDF format
data: l_pdf_xstring type xstring,
lt_lines type table of tline,
ls_line type tline,
l_pdf_len type i.
case event_id.
when others.
call function 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
IMPORTING
e_devtype = devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
others = 5.
* set device type in output options
output_options-tdprinter = devtype.
*control_parameters-DEVICE = 'LOCL'.
control_parameters-langu = sy-langu.
control_parameters-no_dialog = 'X'.
control_parameters-getotf = 'X'.
CALL FUNCTION '/1BCDWB/SF00000063'
EXPORTING
CONTROL_PARAMETERS = control_parameters
OUTPUT_OPTIONS = output_options
NAME = 'First name'
PHONE = '264-466-4657'
IMPORTING
JOB_OUTPUT_INFO = output_data
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
TABLES
OTF = OUTPUT_DATA-OTFDATA
LINES = LT_LINES
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
if sy-subrc EQ 0.
CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg = 1.
l_pdf_len = xstrlen( l_pdf_xstring ).
cached_response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid '.pdf' INTO display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
ENDIF.
RETURN.
endcase.
<b>In BSP Layput</b>
<% IF display_url IS NOT INITIAL.
%>
<script language="Javascript">
window.open("<%= display_url%>").focus();
</script>
<%
ENDIF.
%>
<b>* Page Attibutes:</b>
display_url type string.
Let me know if you have any issues.
Raja T
Message was edited by:
Raja T -
hi All,
I am a R/3 programmer and i am assigned a query of ESS which is developed in BSP and HTMLB. There is a smartform and that is not picking up the values properly so i m asked to sort that problem out. Basically they have designed the form such a way that once i go to that page and that i push the 'Print' button, the output of the form comes straight in the pdf format. Now generally there is a call 'SSF_FUNCTION_MODULE_NAME' to call the form in abap, is it the same in BSP??
also if it is so i did not see the call in my forms. So is it possible to conver the OTF straight to PDF without calling the smartform . I knw its confusing but i have tried to put it as clear as i can.
please ask me further questions if u feel the need.
thanks in advance,
Reena..hi
good
did you debug the program properly?
did you see how the data flow from abap to bsp?
did you check wheather there is any javascript they are using as the inteface between ABAP and BSP page ?
go through this links, hope this ll give you the idea about Smartforms implementation in BSP.
/people/thomas.jung3/blog/2004/09/20/bsp-in-action-kimball-international
If you have any further query feel free to mail me.
Thanks
mrutyun^ -
Attaching multiple smartform to single output type
Hello Experts,
I have 2 different smartforms for invoice....
these two i have to call depending upon the type of customer.
I want to know that is it possible to attach both smartform to single output type ( in this case RD00).
if not..., Please suggest me how i can achieve this.
Thanks,
AmarIf your question is if is it possible to have 2 different SMFs in one single output the answer is yes.
You have to use the control_parameters-no_open and control_parameters-no_close
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSMF1''
IMPORTING
fm_name = g_funcion
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0.
g_control_param-no_close = 'X'.
CALL FUNCTION g_funcion
EXPORTING
control_parameters = g_control_param
TABLES
g_t_lugares = g_t_lugares2
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5 .
* Smartform Puestos
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSMF2''
IMPORTING
fm_name = g_funcion
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
g_control_param-no_close = ''.
g_control_param-no_open = 'X'.
CALL FUNCTION g_funcion
EXPORTING
control_parameters = g_control_param
i_num_pages = l_tot_pages
i_curr_pages = l_pages_2
TABLES
g_t_puestos = g_t_puestos_ssf
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
ENDIF.
ENDIF.
Maybe you are looking for
-
Error while opening reports in PDF
Hi, I have few reports which i open in PDF format. But when i try to open the report i get the following error message. Adobe Reader could not open "file name.pdf" becasue it is either not a supported file type or because the file has been damaged(fo
-
I recently changed my Mac from using 2 17" displays to one 23" ACD because one of the 17" monitors died and the other was old and the quality had deteriorated. I have a couple of applicatiosn that had windows that I used on the second display and in
-
XI support different xml versions ?
Hi Experts, Using XI we are integrating the R/3 with the E-commerce hub(ARIBA, F4F) that uses its own xml version, how can we check that their Message schema (xml form) is supported by XI or not. Thanks, MK
-
Why have my files vanished from ACC?
I just sent off the links of some photos to share with a client and when I navigated back to the page the files are gone. Whats going on? My first time using this for professional purposes and its not making me look very good so far. Also Why can't I
-
How to set myDoc.modified = false?
When a document is saved my beforeSave event handler changes the doc a bit then the afterSave undoes the change (long story described in another thread). Undoing the changes with afterSave puts the doc back to how it was before the save occured, but