Unable to genarate Smartform
Hi,
I have transported a smartform to production. throwing error "Unable to Genarate Smartform" when I try to print the form from document. Its working well in test system.
How to solve this.
Cheers
Senthil
Senthil,
Even though it is a standard program,if you had done some changes to the program in development then the same should be moved to production.
K.Kiran.
Similar Messages
-
Micrsoft Diagnostic service crashing unable to genarate dailyperformace logs files in server
Dear Team,
Please suggest post upgradation Exchange 2013 CU6 unable to genarate dailyperformace logs files on some of the servers.
We tried deleting the registry as suggested in below artical but not help to resolve that. in task scheduled unable to see both performace logs.
http://blogs.technet.com/b/anya/archive/2014/11/25/microsoft-exchange-diagnostics-service-crashing-post-cu6-upgrade.aspx
Please help.
Thanks,
SatishHi,
From your description, I recommend you check if Task Scheduler Service is disabled by any GPO. If yes, please enable Task Scheduler Service and then restart Exchange server to check the result.
Here is a similar thread for your reference.
Exchange 2013 CU6 MSExchangeDiagnostics Crash
https://social.technet.microsoft.com/Forums/office/en-US/30fdc02d-b36e-427d-99b7-9598d781a097/exchange-2013-cu6-msexchangediagnostics-crash?forum=exchangesvradmin
Hope this can be helpful to you.
Best regards,
Amy Wang
TechNet Community Support -
Unable to Activate Smartform After ERP 6.0 Upgrade
Since upgrading from R/3 4.7 to ECC 6.0 one of our smartforms has stopped functioning in the upgraded DEV environment.
When running the check on the smartform the following error is displayed:
Global Definitions
Field "STRING" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. .
This sounds like a syntax error to me, but I cannot understand why this form activates fine in our 4.7 DEV environment but not in ECC 6.0
I've tried running the check on the 'Initialisation' code of the 'Global Variables' node and that executes successfully. I'm at a loss as to where this error is occurring, does anyone have any suggestions?
Thanks,
RichardRichard,
The syntax rules have changed a bit in ECC 6.o when compared to 4.7. This can also be noticed in the profile parameter abap/warn2error_release. you probably had a warning in your 47 that changed to error in ERP 6.0. just a thought...
Thanks
Ganesh.S -
Which device type support Unicode printing ?
Hi all,
Do you know which cascading font device types support Customer-defined true type fonts ?
I use HP LaserJet printer. I've imported ZSWINCF device type in to SAP system and installed some true type fonts required for my report. It's able to print <b>Unicode </b>text in ABAP List but unable in SAPScript/Smartform printing.
I also try to use ZHPUTF8 or HPUTF8, and install these fonts. But i've problem in printing out.
Do you know how to resolve this problem ?
Thanks,
Best regards,Hi
see this OSS notes may be useful
OSSNote:960341
Symptom
In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
Other terms
CONVERT_OTF, SAPscript, Smart Forms
Reason and Prerequisites
The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
Example:
%Charwidth values from HP4300 HELVE 060 normal
/Widths
[ 278 333 500 633 633 1000 758 333 333 333 633...
Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
Solution
Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
Header Data
Release Status: Released for Customer
Released on: 30.06.2006 12:44:06
Priority: Recommendations/additional info
Category: Consulting
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
OSS Note: 776507
Symptom
Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
Other terms
SAPscript, SmartForms, printing, device types, OTF
Reason and Prerequisites
Help required to choose proper fonts in a SAPscript or SmartForm
Solution
When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
1) The language version of the form used to produce the printout.
Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
3) The output character set of the device type
Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
4) The set of available printer fonts for a given device type
When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
Note on SAPscript/SmartForms Print Preview:
The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
Which fonts are suitable for a given language?
Language(s): Font family to use in a form:
Latin-1 (Western Europe/Americas) *******
DE,EN,FR,ES,NL,SV COURIER, HELVE, TIMES
(LETGOTH, LNPRINT)
Latin-2 (Central Europe) ****************
PL, CZ COURIER, HELVE, TIMES
ISO 8859-4 (Baltic) *********************
ET, LT, LV COURIER, HELVE, TIMES
ISO 8859-5 (Cyrillic) *******************
BG, RU, SR, UK COURCYR, HELVCYR, TIMECYR
ISO 8859-7 (Greek) **********************
EL COUR_I7, HELV_I7, TIME_I7
ISO 8859-8 (Hebrew) *********************
HE COURIER, HELVE, TIMES
ISO 8859-9 (Turkish) ********************
TR COURIER, HELVE, TIMES
Simplified Chinese **********************
ZH CNHEI, CNKAI, CNSONG
Japanese ********************************
JA JPMINCHO, DBMINCHO, DBGOTHIC
Korean **********************************
KP KPBATANG, KPDODUM, KPGULIM
KPGUNGSE, KPSAMMUL
Traditional Chinese *********************
ZF TWDPHEI, TWMING, TWSONG
Thai ************************************
TH THANGSAN, THDRAFT, THVIJIT
Arabic (Unicode systems only) ***********
AR ANDALE_J
Verify your output by examining the OTF data
When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
Goto->Display Requests->Settings
and choose
Display Mode: Raw
Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
//XHPLJ8000 0700 00000000001
IN04EALEXTEST_ZEBRA
IN05%PAGE1
OPDINA4 P 144 240 1683811906000010000100001
IN06%WINDOW2
MT0024401289
CP11000000E
FCHELVE 120 00109XSF100SF101110000067E X
UL +0000000000000
SW00067
CT00000000
ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
//XHPLJ8000 0700 00000000001
The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
IN04EALEXTEST_ZEBRA
In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
OPDINA4 P 144 240 1683811906000010000100001
The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
CP11000000E
Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
FCHELVE 120 00109XSF100SF101110000067E X
Header Data
Release Status: Released for Customer
Released on: 22.08.2005 09:57:20
Priority: Recommendations/additional info
Category: Customizing
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
BC-SRV-SSF Smart Forms
<b>Reward points for useful Answers</b>
Regards
Anji -
Unable to see data in Table in smartform
Hi all,
I need to create a smartform where I have to print the header details at the start and then below that details for all line items for a particular document.
so i have data ;ike :
Header data :
field 1 : field 2:
Field3 : field4:
field5: field6:
Item data :
field1 field2 field3 field4 --> Item 1
field1 field2 field3 field4 -->Item 2
field 1 field2 field3 field4 -->Item3
For the Header data,Im planning to use a template in a secondary window.
However for the item data,i need to use a table (As i know the no of records only at runtime).Also another reason for usng table would be that I dont need the header on each flloowing page but only the Line item details on the following pages.
Now my ques is :
1.I hav ecreated the form and put some constant /texts to just test the form.I am able to see the texts/data in the header data.However Im unable to see the data for the Item i.e. in the TABLE.
I have used template for Header details which I can see.
I dont know what Im doing wrong.Is it because in the DATA tab under TABLES,I have given an interna table but there is no data in the table?
I have defined only 1 line type in my table an dthat has 4 cells (as I need to print 4 item fields under the Item data)
PLease let me know what I am doig wrong because of which Im unable to see the item data in table form.
Thanks!Hi,
Have you used any exists?
in exists is there any system date kind?
Can you try to run your report thru RSRT and use debug option there.
before reporting please check your all connected targets have data for reporting.
mean at targets-->request tab, reporting symbol was there or not.
Any master data objects included in multi provider?
if yes then please check those, if any ACR was running then it may cause you.
if possible try to develop simple query with as per needs(mean to see 2015 data only).
As my guess selections/filters migth be hidden, please check those.
Thanks -
Unable to use page protection in smartform
I am working on a smartform but i am unable to use the checkbox page protection anywhere in the po form. What do I have to change so I can use this option?
Hi
check the parent nodes of the objects, do they hv page protection checked.remove them and try.
OR
U can create a FOLDER node and check the page protection.
If u want to protect a particular line type then in table click DETAILS and click the line types which u want to protect.
Regards
Hareesh -
Unable to display Ship to part country in smartforms
Hi ,
The problem is iam unable to dispaly the ship to party country name in the smartform Delivery note.
Just wanted to let you know that the address number for both ship to and sold to party have different numbers.
And i have also mentioned the following in the address node of the ship to party:
At Address number : &gf_adrnr&
In Global Def: gf_adrnr type vbpa-adrnr space
At Sending Country : &gs_sland&
In Global Def: gs_sland type vbdka-sland
Also mentioned output starts with paragraph Z1
No of lines used 8
Used street name so clicked on the radio button of street name.
Is there anything i have to do for getting the country name in ship to party.
Could anyone help me out.
Thanks,
Priya.Hi,
Just incerese the window size height to 2 chars on which the Ship to part is being printed.
Regards,
Rama. -
Iam unable to print u2264 in Smartforms
Hi everyone,
Iam unable to print ≤ symbol in Smartforms. When i use this
symbol it is printing as # and when iam converting smartform
to PDF format it is showing ≤ symbol as 'd' .Please help me in this issue. It is very urgent.
Thanks in advance
ManoharHi Manohar,
Is your system unicode enabled? if so try using the true type font, which will support all the special characteristics. If your system is not unicode enabled then try changing your font to helvecyr or timescyr and also try changing the device type to get the proper print out.
Hope this helps you -
Im unable to edit a smartform if i login German.
In english, i can edit. pls let me know how to edit even in German.OK. In that case, try to Translate the smartform. You can translate the smartform even if you have text elements. Steps to take up the translation:
1. goto Transaction SE63
2. in R3 Enterprise select form menu
Translation - ABAP Objects - Other long texts
3. select FS - SSF-Smart Form
4. Object Name: choose your smart form
5. select target language
6. press edit
Regards,
Vishwa. -
'Unable to generate forms Smartform name '
Hi ,
I am facing. In Dev & Test it is working fine but in Production it is giving me error: 'Unable to generate forms <Smartform name>'
Please inform me how u solved ur issue. If I will solve ds issue i will inform u.
Helpfull answere will be rewarded
regards,
Mehul.hi,
plz make sure that code is completely transferred from development > quality>production.
Also check for necessary tables and others which will be used by Smart form.
Is it possible you to check the variables used in the smart form are properly populated in the print program or not.
Plz make sure above mention issues, it may solve your problem.
Reward if useful.
pradeep -
Unable to print directly from vf03 txn after converting smartform into PDF
Dear All,
I have converted ond smartform into pdf.now when i am trying to print one document using vf03 transaction whatever button i click(ex-print preview/print) it is asking to save the pdf as local file. but i want to print that document as pdf directly from vf03 without saving it into local file.
I am giving you the code below:-
(all modification done by me are in BOLD)
Print of a invoice by SAPscript SMART FORMS *
REPORT zrlb_invoice5.
declaration of data
INCLUDE zrlb_invoice_data_declare5.
*INCLUDE ZRLB_INVOICE_DATA_DECLARE.
*INCLUDE rlb_invoice_data_declare.
definition of forms
INCLUDE zrlb_invoice_form015.
*INCLUDE ZRLB_INVOICE_FORM01.
*INCLUDE rlb_invoice_form01.
INCLUDE zrlb_print_forms5.
*INCLUDE ZRLB_PRINT_FORMS.
*INCLUDE rlb_print_forms.
START-OF-SELECTION.
FORM ENTRY
FORM entry USING return_code us_screen.
DATA: lf_retcode TYPE sy-subrc.
CLEAR retcode.
xscreen = us_screen.
PERFORM processing USING us_screen
CHANGING lf_retcode.
IF lf_retcode NE 0.
return_code = 1.
ELSE.
return_code = 0.
ENDIF.
ENDFORM. "ENTRY
FORM PROCESSING *
FORM processing USING proc_screen
CHANGING cf_retcode.
DATA: lv_medium LIKE tnapr-nacha.
DATA: lwa_print_data_to_read TYPE lbbil_print_data_to_read.
DATA: lwa_bil_invoice TYPE lbbil_invoice.
DATA: lf_fm_name TYPE rs38l_fnam.
DATA: lwa_control_param TYPE ssfctrlop.
DATA: lwa_composer_param TYPE ssfcompop.
DATA: lwa_recipient TYPE swotobjid.
DATA: lwa_sender TYPE swotobjid.
DATA: lf_formname TYPE tdsfname.
DATA: lwa_addr_key LIKE addr_key.
DATA: ls_dlv-land LIKE vbrk-land1.
DATA:lv_job_output_info TYPE ssfcrescl,
lv_document_output_info TYPE ssfcrespd,
lv_job_output_options TYPE ssfcresop,
lv_bin_filesize TYPE i,
gt_docs TYPE STANDARD TABLE OF docs,
gt_lines TYPE STANDARD TABLE OF tline,
gt_otf TYPE TABLE OF itcoo, " OTF Structure
lv_name TYPE string VALUE 'INVOICE',
lv_guiobj TYPE REF TO cl_gui_frontend_services,
lv_path TYPE string VALUE 'D:\',
lv_fullpath TYPE string VALUE 'D:\INVOICE',
lv_filter TYPE string,
lv_uact TYPE i,
lv_filename TYPE string,
++lv_fm_name TYPE rs38l_fnam. +*****************************************
SmartForm from customizing table TNAPR
lf_formname = tnapr-sform.
lv_medium = tnapr-nacha.
determine print data
PERFORM set_print_data_to_read USING lf_formname
CHANGING lwa_print_data_to_read
cf_retcode.
IF cf_retcode EQ 0.
select print data
PERFORM get_data USING lwa_print_data_to_read
CHANGING lwa_addr_key
ls_dlv-land
lwa_bil_invoice
cf_retcode.
ENDIF.
IF cf_retcode EQ 0.
PERFORM set_print_param USING lwa_addr_key
ls_dlv-land
CHANGING lwa_control_param
lwa_composer_param
lwa_recipient
lwa_sender
cf_retcode.
ENDIF.
IF cf_retcode EQ 0.
determine smartform function module for invoice
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = lf_formname
variant = ' '
direct_call = ' '
IMPORTING fm_name = lf_fm_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc NE 0.
error handling
cf_retcode = sy-subrc.
PERFORM protocol_update.
ENDIF.
ENDIF.
IF cf_retcode EQ 0.
PERFORM check_repeat.
IF lwa_composer_param-tdcopies EQ 0.
nast_anzal = 1.
ELSE.
nast_anzal = lwa_composer_param-tdcopies.
ENDIF.
lwa_composer_param-tdcopies = 1.
DO nast_anzal TIMES.
In case of repetition only one time archiving
IF sy-index GT 1 AND nast-tdarmod EQ 3.
nast_tdarmod = nast-tdarmod.
nast-tdarmod = 1.
lwa_composer_param-tdarmod = 1.
ENDIF.
IF sy-index NE 1 AND repeat IS INITIAL.
repeat = 'X'.
ENDIF.
call smartform invoice
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
is_bil_invoice = ls_bil_invoice
is_nast = nast
is_repeat = repeat
importing document_output_info =
job_output_info =
job_output_options =
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
lwa_control_param-getotf = 'X'.
lwa_control_param-no_dialog = 'X'.
lwa_control_param-device = 'PRINTER'.
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
Begin of Changes 24/10/2007*
ARCHIVE_INDEX_TAB =*
ARCHIVE_PARAMETERS = arc_params*
control_parameters = lwa_control_param
MAIL_APPL_OBJ =*
MAIL_RECIPIENT = lwa_recipient*
MAIL_SENDER = lwa_sender*
*End of changes 04/12/2007
output_options = lwa_composer_param
user_settings = 'X'
is_bil_invoice = lwa_bil_invoice
is_nast = nast
is_repeat = repeat
iv_medium = lv_medium
Begin OF Changes 04/12/2007*
IMPORTING
document_output_info = lv_document_output_info
job_output_info = lv_job_output_info
*job_output_options = lv_job_output_options *
End Of Changes 04/12/2007*
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION lf_fm_name
EXPORTING
ARCHIVE_INDEX = toa_dara
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS = arc_params
CONTROL_PARAMETERS = lWA_control_param
MAIL_APPL_OBJ =
MAIL_RECIPIENT = lwa_recipient
MAIL_SENDER = lwa_sender
OUTPUT_OPTIONS = lwa_composer_param
USER_SETTINGS = space
IS_BIL_INVOICE = LWA_BIL_INVOICE
IS_NAST = nast
IS_REPEAT = repeat
IV_MEDIUM = lv_medium
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
gt_otf[] = lv_job_output_info-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '*
COPYNUMBER = 0*
ASCII_BIDI_VIS2LOG = ' '*
IMPORTING
BIN_FILESIZE = lv_bin_filesize
BIN_FILE =*
TABLES
otf = gt_otf
lines = gt_lines
EXCEPTIONS*
ERR_MAX_LINEWIDTH = 1*
ERR_FORMAT = 2*
ERR_CONV_NOT_POSSIBLE = 3*
ERR_BAD_OTF = 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.
*.......................GET THE FILE NAME TO STORE.........
CONCATENATE 'smrt' '.pdf' INTO lv_name.
CREATE OBJECT lv_guiobj.
CALL METHOD lv_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = lv_name
file_filter = lv_filter
CHANGING
filename = lv_name
path = lv_path
fullpath = lv_fullpath.
user_action = lv_uact.*
IF lv_uact = lv_guiobj->action_cancel.
EXIT.
ENDIF.*
MOVE lv_fullpath TO lv_filename.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
BIN_FILESIZE = lv_bin_filesize
filename = lv_fullpath
FILETYPE = 'BIN'
APPEND = SPACE
WRITE_FIELD_SEPARATOR = SPACE
HEADER = '00'
TRUNC_TRAILING_BLANKS = SPACE
WRITE_LF = 'X'
COL_SELECT = SPACE
COL_SELECT_MASK = SPACE
DAT_MODE = SPACE
CONFIRM_OVERWRITE = SPACE
NO_AUTH_CHECK = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = SPACE
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
changing
data_tab = gt_lines.
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
NOT_SUPPORTED_BY_GUI = 22
ERROR_NO_GUI = 23
others = 24
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
ENDIF.
Else.
IF sy-subrc NE 0.*
error handling
cf_retcode = sy-subrc.
PERFORM protocol_update.
get SmartForm protocoll and store it in the NAST protocoll
PERFORM add_smfrm_prot.
ENDIF.
ENDDO.
lwa_composer_param-tdcopies = nast_anzal.
IF NOT nast_tdarmod IS INITIAL.
nast-tdarmod = nast_tdarmod.
CLEAR nast_tdarmod.
ENDIF.
ENDIF.
get SmartForm protocoll and store it in the NAST protocoll
PERFORM ADD_SMFRM_PROT.
ENDFORM. "PROCESSING
kindly give me a sloution.Hi,
Check for the print mode in the print options and set it as 3- print and archive .
Regards,
Ram -
Crm_ml_preview - Unable to print with smartforms with bitmap images.
I'm using CRM 4.0 and I've an issue on Enterprise Portal when I try to print an Activity.
In fact, If I press the botton "PRINT" a new window opens with following URL:
http://myhost:8080/sap/bc/bsp/sa/crm_ml_preview/ml_preview.do? ...
If the smartform linked, has a bitmap inside (for example the company logo) I receive from this linhk a blank page. If the smartform contain only text, everithing is printed correctly.
With SAP gui, inside CRM system both smartfoms (with or without bitmaps) are printed correctly. This problems arise only when I try to print the activity from Enterprise Portal.
Any suggestion to solve the problem?
Regards
Luca Sozio.It's an HP P3005dn (duplex+network) printer. OS X simply recognized the printer on the network and set itself up accordingly (without the option of selecting PCL or Postscript). The Windows computers in the office, though, - ugh - it was ugly getting them set up. None of them would recognize the printer on the network, and couldn't even browse for it and find it. I wound up having to download Bonjour for windows, and set it up that way. I downloaded the drivers from HP.com, and believe I set them all up to print using PCL.
It sounds like PCL v. PostScript may be the issue; is it possible to print using PCL on Macs? -
Unable to print text in continuity in smartform
Hi
I i am not able to print the whole text in the smartform , it prints half of the text in one line and half in the second .
I want to print it in continuity , how do i go about it ?
The code i wrote is as follows:
CLEAR: ls_object, itab_note, wa_note.
UNPACK contract-recnnr TO contract-recnnr.
CONCATENATE contract-bukrs contract-recnnr INTO ls_object-instid.
ls_object-typeid = 'BUS1505'.
ls_object-catid = 'BO'. "constant
CLEAR: ls_relopt, lt_relopt.
ls_relopt-sign = 'I'.
ls_relopt-option = 'EQ'.
ls_relopt-low = 'NOTE'.
APPEND ls_relopt TO lt_relopt.
TRY.
CALL METHOD cl_binary_relation=>read_links_of_binrels
EXPORTING
is_object = ls_object
it_relation_options = lt_relopt
ip_role = 'GOSAPPLOBJ'
ip_no_buffer = 'X'
IMPORTING
et_links = lt_link.
CATCH cx_obl_parameter_error.
CATCH cx_obl_internal_error.
CATCH cx_obl_model_error.
ENDTRY.
SORT lt_link DESCENDING BY utctime.
DATA: wf_clause(7) TYPE c.
DATA: itab_lines TYPE so_text255 OCCURS 0 WITH HEADER LINE.
DATA: wf_crlfch(10).
CALL FUNCTION 'SRET_BINARY_TO_TEXT'
EXPORTING
xbuffer = wc_crlf
laiso = '00'
IMPORTING
textbuffer = wf_crlfch
EXCEPTIONS
failed = 1
OTHERS = 2.
**FIND first note
IF lt_link IS NOT INITIAL.
LOOP AT lt_link INTO ls_link.
read content of note
ld_doc_id = ls_link-instid_b.
CALL FUNCTION 'SO_DOCUMENT_READ_API1'
EXPORTING
document_id = ld_doc_id
IMPORTING
document_data = doc_data
TABLES
object_content = t_notecontent
EXCEPTIONS
document_id_not_exist = 1
operation_no_authorization = 2
x_error = 3
OTHERS = 4.
wa_note-title = doc_data-obj_descr.
wa_note-createdby = doc_data-creat_name.
wa_note-createddate = doc_data-creat_date.
Check if the line begins with 'Clause:' (any case).
wf_clause = wa_note-title(7).
TRANSLATE wf_clause TO UPPER CASE.
IF wf_clause EQ 'CLAUSE:'.
Lease Notes with Clauses
wa_note-clauses = 'X'.
ELSE.
Lease Notes without Clauses
wa_note-clauses = ' '.
ENDIF.
LOOP AT t_notecontent INTO notecontent.
REFRESH itab_lines.
TRANSLATE notecontent-line USING wf_crlfch.
SPLIT notecontent-line AT '
' INTO TABLE itab_lines.hi Sweta,
The window size can be the problem
please increase the size of the window and see how many character more is coming in the first line.
Then adjust accordingly.
There is one more option which you can try , create another character format of smaller font and try.
Regards,
Avi............ -
Unable to print chinese characters in Smartforms use Zebra printer
Hi,all.
My printer is Zebra ZM400 300dpi,I created a new output device 'TestDevice' and use the Lzeb3 Device type.
In my smartofrms i used the Zebra command to rotated text.Now the smartforms counld not print chinese characters but '#' instead.(style font 'ANDALE_S')
Anyone could help me....
Thanks Advance.
Andy Lee.Hello Andy,
If you use the device type LZEBU3 with font ANDALE_S, then when you print then the SAP system
send a print control for activating the ANDALE font installed on the printer, and the text should
be outputed over this font.
When you get # during print then this means that the device type or the SAP font don't support
this character(this was the original problem), when you get a "space" then this means that the
font which is used by the printer don't support this character.
I think this can have 2 causes in your case:
1. The SAP system use the print control SF000 when you use ANDALE_S, which contains
the print control ^CI17^F8 in HEX form. This should activate the ANDALE font on your printer.
(You can find this under tr. SE73 -> Printer Fonts -> LZEBU3 -> ANDALE_S)
You should check wheter this is the correct print control. You should find on the printer an option
which list you all installed fonts, and also the print control which can be used for activating it.
Compare this print control from the printer with the above print control from the SAP system.
If you see a differnce then change the print control in the SAP system.(Before you do that please
copy the device type LZEBU3 into customer namespace, don't change the original SAP device type)
2. The font installed on the printer don't support the character which you use. Contact Zebra to confirm this, and ask for a ANDALE font which supports the character.
Best regards,
Norbert -
Error in smartform:unable to gnerate form
hi,
i have done some text changes in an already existing smartform created for salary slip.
i have saved and activated the same.
but when i execute thye driver program it gived an error
"Error during generation smartform"
please help Text removed by moderator.
regds
Edited by: Matt on Sep 24, 2011 1:04 PM - violation of netiquette.Hi,
in which client you got the error Log on the client goto smartforms give your form name in the menu smartforms->generate and then run your program.
Regards,
Dhina..
Maybe you are looking for
-
How do i get 2 apple id's on my i pad?
How do i get 2 apple id's in use on my i pad, i mean 2 id's to purchase apps? Eddy
-
I guess this is a windows issue, but it takes me multiple attempts to shut off my yoga because it automatically restarts. This is with the soft buttons on the right, but I believe it happens as often by physical power button. Have you looked what hap
-
Hi all, I'm just trying to send standard LOIPRO idoc when a process order is saved on COR1 / COR2 transactions. First of all I've decided to do it via user-exit but I've seen that the order number (AUFNR) is not determinated yet, so finally I'm doing
-
SAP version 4.7 + Thai localize T-Code : F110S Business place field is missing in T-code F110s. This lead to business place in payment document which created from F110s have business place as same as invoice. Would you please recommend where user can
-
Can't turn off user interface sound effects
Unchecking the box in system prefs has no effect at all. A few minutes later the box is checked again, and I have to keep hearing those annoying sounds. Any ideas why it keeps turning itself back on?