Smartform Printing in XDF format
Dear all experts,
I was trying to print out the smart form in XDF format. I accessed to Spool List (SP01) to view the result but the output shown on screen is truncated. After printing it, I went to AL11 to see the output file, however, only single line of truncated string shown on screen. Is there anyway configurations or checking that I should do to solve this problem?
Thanks.
Within SP01, viewing the spool request, I see the following characters:
═䑆ⴱ⸳ഊ◢팍ਲ扪
祰攠⽔祰攱ഊ>
〰‱〰〠㄰〰‵>
‱〰〠〠〠〠>
㈰‷㈰‷㘰‷㘰>
⽁獣敮琠㜲>
ਯ䱡獴䍨慲′>
㔳㠠㔳㠠㠵> Etc....
EDIT: I note that when I submit this post, the characters change. I'm seeing 'symbols' mainly, some Asian characters (the form should be in English).
When printing, it comes out with something like:
%PDF-1.3
%aDuE
2 0 objtype /Type1
/BaseFont /H00 1000 1000 520 1000 74 1000 0 0 0 0
/CapHeight
/LastChar 255
%Charwid8 592 779 650 650. etc
/F002 6 0 R
Date=(0000000)
@SAP_OB End TOA_DARA
>>
endob00327 00000 n
and so on...
For now we would like to validate the PDF printing before modifying any new print programs to automate the process.
Thanks-
Message was edited by: Chad Carter
Message was edited by: Chad Carter
Similar Messages
-
Smartform Printing in PDF format
Hi all,
I am looking to print standard SmartForms in PDF output.
I have printed a standard SmartForm to the spool. I convert the spool job to PDF using function module CONVERT_OTFSPOOLJOB_2_PDF. From this I get a new spool request titled "#####(original spool no) converted to PDF format".
My Basis team has create a new printer with device type PDF1 which I have used during this function module.
However this PDF spool shows up as odd characters. It also does not print as expected, again it prints the odd characters.
Obviously I'm missing something - does anyone have any suggestions?
Thanks-Within SP01, viewing the spool request, I see the following characters:
═䑆ⴱ⸳ഊ◢팍ਲ扪
祰攠⽔祰攱ഊ>
〰‱〰〠㄰〰‵>
‱〰〠〠〠〠>
㈰‷㈰‷㘰‷㘰>
⽁獣敮琠㜲>
ਯ䱡獴䍨慲′>
㔳㠠㔳㠠㠵> Etc....
EDIT: I note that when I submit this post, the characters change. I'm seeing 'symbols' mainly, some Asian characters (the form should be in English).
When printing, it comes out with something like:
%PDF-1.3
%aDuE
2 0 objtype /Type1
/BaseFont /H00 1000 1000 520 1000 74 1000 0 0 0 0
/CapHeight
/LastChar 255
%Charwid8 592 779 650 650. etc
/F002 6 0 R
Date=(0000000)
@SAP_OB End TOA_DARA
>>
endob00327 00000 n
and so on...
For now we would like to validate the PDF printing before modifying any new print programs to automate the process.
Thanks-
Message was edited by: Chad Carter
Message was edited by: Chad Carter -
Smartforms output in XDF format within single spool
Hello,
i have created a form which is called by a custom report.
The report selects the data for different customers of the same company code and
is then calling the form. The form is only opend and closed once for each run of
the report:
Open form
output 1
output 2
output n
Close form
The result is exactly one spool request (in OTF format).
Now i changed the output options before calling
the form (output_options -> structure SSFCOMOP):
output_options-xdfcmode = 'X'.
output_options-xdf = 'X'.
output_options-xdfoutmode = 'S'.
output_options-xdfoutdev = 'IDS3'."->output device of type PLAIN
The result was a regular spool request in OTF format.
Within a debugging session of the generated function module
of the used form i learned that in case of multiple outputs into the same
spool request the above output options (for XDF output) are completely ignored
(or not used).
Is this behaviour intended by SAP or is this simply an error
in the generated code of the smartforms function module?
Regards,
Ralf MatthiesHello,
i have created a form which is called by a custom report.
The report selects the data for different customers of the same company code and
is then calling the form. The form is only opend and closed once for each run of
the report:
Open form
output 1
output 2
output n
Close form
The result is exactly one spool request (in OTF format).
Now i changed the output options before calling
the form (output_options -> structure SSFCOMOP):
output_options-xdfcmode = 'X'.
output_options-xdf = 'X'.
output_options-xdfoutmode = 'S'.
output_options-xdfoutdev = 'IDS3'."->output device of type PLAIN
The result was a regular spool request in OTF format.
Within a debugging session of the generated function module
of the used form i learned that in case of multiple outputs into the same
spool request the above output options (for XDF output) are completely ignored
(or not used).
Is this behaviour intended by SAP or is this simply an error
in the generated code of the smartforms function module?
Regards,
Ralf Matthies -
Date format within smartforms printing
Hello,
I have an issue regarding date format.
When I print a delivery note date format is e.g. 08.04.2011, printing an invoice it shows 04-08-2011.
It seems that depending on the customers country the invoice printing converts to date format within country settings
(V_T005-DATFM) while delivery form doesn't.
If I always want to print in date format of sales company what should I do?
Thanks a lot,
Wolfi.I guess, it should work if you define
/: SET COUNTRY &country_key&
in the Initialization section of your smartform.
Note: The country-dependent formatting options are stored in the T005X table.
Regards,
SaiRam -
Smartform printing on Dot Matrix printer for continuous stationery
Hi Friends,
I'm throwing my smartform print output on printer using local printer .Now the problem is as i have designed the SF using A4 page size , the output on Dot matrix is my output (WHICH IS 1/3rd OF a PAGE) + rest of empty space which is actually wasting pages.
Settings in SPAD are as follows:
Output device : Lp01
Device type : SWIN
and page format : LINE_21
Format Type : LINE_21
What i want is a restricted output .please let me know the possible solutions and do i need to load the driver for my printer in SAP as well (Printer is : wipro WEP 800 DX)
Thanks and Regards,
Sachin SoniHi,
Change the page settings in the form
-> under the form attributes you can find the page format there you can set up your required format
Thanks,
Nethaji. -
SmartForms Printing Error for Japanese Characters
Hi,
I have an issue with Printing Japanese Characters in the SmartForm.
When I Print Preview the smartform I can see the characters in Japanese but when I Print the actual smartform in the printer, all I get is some junk characters like # and !.
I have the following setting in the smartform.
Multi-Byte functionality enabled
Character set used is Shift JIS
Smartform created in language EN
Translate to All Languages set to true
No restriction on Language Control
Smartstyles used has JPMINCHO fonts only
Default Para is JPMINCHO
Characters formatting has explicit JPMINCHO as font
Login language is JA
Printer is Local Printer with device type JPSAPWIN
When I debug the Smartform function module, the OTF Data Table (within the function) shows characters in Japanese (with codepage 8000) but then I look at the actual spool as a result of processing the function, it comes up as garbled.
Interestingly, I have exactly the same settings on another test smartform to print just 2 columns and it works well.
Not sure where I am going wrong.
Appreciate help on this issue.
Many Thanks
Krishnanhi,
has anyone solved this problem? even i m facing the problem. me restating the problem as below:
in VF02 transaction, for billing document we are trying to print smartform. Our logon languagae is EN and the Output Type langugae is EN. In spool, we are getting the CORRECT format ie the texts that are maintained in Japanese are showing as Japanese characters while the whole smartform is in English format.
Our requirement is to PRINT (from printer) the texts that are maintained in Japanese should get printed in Japanese format. I know that this is problem with printer settings. The printer is printing perfectly fine as other documents in Japanese characters so its ensured that printer is enabled for Japanese.
I suppose some kind of setting needs to be done at SAP end so that printer recognises double-byte character set of Japanese.
Waiting for confirmation/ solution.
Thanks
Debs -
Smartforms output in Powerpoint format
Hi ,
I am an ABAPER working in CRM Module .Also working in PCUI . I got a requirement for CRM Portal where I need to display the Smartforms output in Powerpoint format when user clicks on Print button. Previously there are in PDF Format.Can anyone help on this ?? Please..Hey Anil
Your requirement is not specific ,weder you want the output saved in XLS format in the smartform....or u want to download the data in XLS format?
1. Function Module 'SAP_CONVERT_TO_XLS_FORMAT' : from internal table to Excel file .
2. FM ''SO_DOCUMENT_REPOSITORY_MANAGER' : To attach this file as an attachment in a mail in this pass the file and other details of sender and receiver.
Regards
Swapnil
Edited by: swapnil kamble on Sep 11, 2009 2:12 PM -
hi gurus,
The smartform is a letter fromat.
The selection screen contains vbak-lifsk(Delevery block) its mandatory field and vbak-vbeln .
My requirement is to print all sales order no.'s and that sold to party details and remaining is hardcoded.
my problem is, suppose in a block if there are 2 or more sales doucuments we want to print the same format for for those sales order numbers.
suppose delevery block is Road Permit.
this block contains 5 sales order numbers.so i want 5 letters .
Now i am getting for one sales order no .
Best answers will be rewarded.
Thanks and regards,
alsonHi Alson,
If the output is only one page per sales order....
1. Hardcoded part would be repeated per each page.
2. For the dynamic date ( sales order no. and sold to party details ),
we can run a loop and print each sales order no. in different page
with NEW-PAGE command....
or another approach could be.. we have to call the generated FM for the
smartform within a loop of the table which has all the data of sales orders
for a delivery block.... -
Hi All,
I have created a smartform and when i try to print it prints in Landscape format, but the form Output has 'Portrait' format and uses DINA4 page format. I have verified my default printer settings and has a page format as 'Letter' , I have changed it to A4 size but still same issue.
Let me know if you have any solution or any tips, highly appreciated...
Thanks
SudheerHi All,
Thanks for the response.
I have correct format 'Potrait' in Smartform Page Output Options and i have verified SPAD parameters also.Interstingly it has 2 DINA4 page formats with following values..
Potrait :
Width - 210 mm
Height - 297 mm
Landscape :
Width - 297 mm
Height - 210 mm
When i looked at Smartform Form Painter Graphical view it has Potrait format(210X297)(WXH).
And i have tried to reprint today morning again and has same problem.
So issue is still unresolved....
Thanks
Sudheer -
Arabic language Smartform given Wrong Output format.
Hi,
I have developed Arabic Language smartform and tested in Print Privew mode working fine .
Problem with smartform Converted into PDF format and downloded to PC given wrong format.
Pl let me know any changes required.Sorry I do not have answer to your question. But can you share with me how you managed to display Arabic language in Smartform?
-
Needed smartform to determine page format automatically.
Hi
I have a reqirement to print the smartform output in Letter format paper for one company code and it should print it in A4 size paper for rest of the company codes.
I am using R/3 4.6c
I tried with this code
data: lx_sf_header(31) type c,
field-symbols: <fs_header> type SSFFORMHD.
if company_code = 'XXXX'.
CONCATENATE '(' sy-repid ')%HEADER' into lx_sf_header.
assign (lx_sf_header) to <fs_header>.
<fs_header>-PAGEFORMAT = 'LETTER'.
endif.
but I am getting short dump & this logic is working fine in ECC.
Please help me regarding this.......
Thanks in advance
Kiran.
Edited by: kiran Pasala on Sep 30, 2008 4:44 PMDuplicate post.
Needed smartform to determine page format automatically. -
Need to Download Smartform Data from OTF format to CSV file
Hi,
I need to download smartform data from OTF format to CSV file. Is there any Function module to download Smartform data from
OTF format to CSV file.
Regards,
Selvapriya S.Not that I know of. There is a lot of data in the OTF file besides the field values you are printing (formats, headers. positions, fonts, etc).
You might be able to use the CONVERT_OTF function module and take the default format of 'ASCII'. Once it is converted to an ASCII data format, you might be able to write some ABAP code to strip off the extraneous data and parse the fields you need. -
Error message when I try to print: unsupported document-format"application/vnd.cups-command". I recently had my hard drive replaced in my early 2010 21" iMac. Anyone know anything about this? Thanks in advance.
What system are you running? Have you tried going to the Canon website to download and install the latest drivers for that model?
Are you running Time Machine? -
Unable to print in excel format
Hi,
I develop report in xml publisher and my apps version is 11.5.10.2
But my report is not printing in excel format.
Any idea on this....
Regards
ZaheerHi Zaheer;
Please check Hussein Sawwan greatest previous post:
Re: Unable to View Excel Output File Created by XML Publisher
Regard
Helios -
I have a problem in converting smartform output to pdf format.
Hi,
While converting the smartform output to pdf format.
It is showing this error.
otf end command // missing in otf data.
I have used this function.
Assigning the OTFDATA to OTF Structure table
CLEAR gt_otf.
gt_otf[] = gs_otfdata-otfdata[].
Convert the OTF DATA to SAP Script Text lines
CLEAR gt_pdf_tab.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = gv_bin_filesize
TABLES
otf = gt_otf
lines = gt_pdf_tab
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.
Please help me in this regard. Thanks in advance.Hi ,
I am getting this exception "err_conv_not_possible"
CALL FUNCTION f_name " '/1BCDWB/SF00000092'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = st_control_parameters
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = st_output_options
USER_SETTINGS = 'X'
ZST_TEXTSYMBOLS = ZST_TEXTSYMBOLS
wa_kna1 = wa_kna1
wa_claim_header = wa_claim_header
IMPORTING
DOCUMENT_OUTPUT_INFO = st_document_output_info
JOB_OUTPUT_INFO = st_job_output_info
JOB_OUTPUT_OPTIONS = st_job_output_options
TABLES
IT_CLAIM_VERSION = IT_CLAIM_VERSION
IT_CLAIM_ITEM = IT_CLAIM_ITEM
IT_CLAIM_PARTNER = IT_CLAIM_PARTNER
IT_FINAL = IT_FINAL
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.
ELSE.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = v_bin_filesize
TABLES
OTF = st_job_output_info-OTFDATA[]
DOCTAB_ARCHIVE = it_docs
LINES = it_lines
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.
ENDIF.
HERE when i tried to debug it i got SY-SUBRC = 1.
Please help me in this regard. Thanks in advance.
Maybe you are looking for
-
Error in retrieving and parsing XML File
Hi Folks I am Working on People centric user interface, While i am custimizing a application in Business application Builder i am getting this error " Error in retrieving and parsing XML File " can any body look on this and give me the solution it wi
-
Usage of field-symbol to internal table generically.
Hi gurus, please tell the usage of field symbol to an internall table. how do i use field symbol generically , so that i can use same field symbol for many different internal tables. regards, krishna TABLES: EKKO. DATA: ITAB TYPE STANDARD TABLE OF EK
-
Having a gui in one class use a gui in another?
Hi everyone, I have created two separate classes for an employee program. My first class consists of a frame that adds a new employee to the program and my second class is the Main Program that is supposed to allow the user to choose what information
-
Delete Records from selection screen
Hi, I have built a report with a selection screen, and it has 2 radio buttons. First button is just to display the records, but the second button, when selected will deleted the records displayed in the fields on the selection screen, but I cannot s
-
Placing a divider in JSplitPane that can't be resized
Hi, how can i place a divider in JSplitPane that can't be resized? Or is there another way like JPanels?