Print Currency as symbols in SAPSCRIPT/Smartforms
Hi all,
My customer want to print currency not as text but as symbols , for example "S" instead of "USD" .
Does somebody know how to make it?
Is there a dynamic solution ?
Best regards.
Hi
U should check if in your system there's the currency symbol and if it supports it.
The other problem can be in the printer, it need to know if it can understand that symbol.
U can get all symbols available in your system from table TCP01.
Here the symbol corresponds to a number has to be used in the sapscript/smartform.
For example Euro sing is 156, so in the sapscript it need to insert <156>, the dollar shoul be 36, so <036>.
Anyway you can't be sure your device can print the symbol.
Max
Similar Messages
-
How to print the MICR symbols in sapscript for Cheque printing
Hello All,
I am working on the cheque printing. I want to display check number with MICR symbols like in the original cheque we have at the footer level the symbols.
How to print the MICR symbols in the SAP Script. Could anybody please help me out in this issue.
ThanksHi,
In This case your Printer should support the E-13B Charecters.
Create a ParaGraph with Font family as MICR_E.
use C for ON-US SYMBOL which is printed at the beginig and end of the Check Number
ie C&CHECK_NUMBER&C
then use A for TRANSIT NUMBER and
Use D for DASH SYMBOL in your check.
then while Printing the check the original check number will be printed .
Note: Your Printer should support the E-13B charecters
Thanks.
UmaS. -
Print EURO symbol u20AC in smartform
Hi All,
I am trying to print the EURO symbol 'u20AC' in smartform; user types the euro symbol in the Invoice header text, but the Invoice smartform prints some other characters when I print the header text;
Appreciate your help if some of you have a solution to print the euro symbol in the header text by smartform;
Thank you very much
IverGi,
That is strange, it works fine for me. I copy the relevan parts into this thread.
Regards,
Aidan
Symptom
There are problems to print the euro character U20AC and and trademark character U2122.
Cause
This can vary depending on the device type used to create the spool and whether the system is Unicode or non-Unicode. The problem is because the characters are not supported in the system character set or the character set of the device type.
Resolution
In Unicode systems, these characters can be printed via windows and cascading fonts device type SWINCF. The unicode system codepage supports these characters and the character set 4220 of device type SWINCF also supports these characters U20AC and U2122. In a Unicode system, it is also possible to print the euro and trademark characters via Unicode device types like HPUTF8 or LEXUTF8 In this case, the printer must also be Unicode. i.e. It must have a built-in hard disk, which contains Unicode fonts and symbol sets.(see notes 750219 and 215015)
For non-unicode systems, it is more difficult. For sapscript and smartforms, it is possible to use both signs for releases >= 4.6A. In the graphical SAPScript editor, available as of, you can select "Edit" > "Command..."-> "Insert Command" -> "SAP character" and then enter the SAP character number 156 (Euro sign) or 357 (trademark sign). With this method, it is possible to print the euro and tradwmark characters. You need to use one of the device types specified in note #129581. or in the old line editor, you can enter <156> or <357>(between "<" and ">" without spaces). It is not necessary to add any character to the character set if you use one of thes device types listed in note #129581. The print of the euro and trademark characters are only possible for postscript device types POST2, I2HPPS and I4HPPS after you implement note #1334841. -
Printing currency symbols(like $ for dollar)for all countries in smartforms
Hi friends,
I have to print currency symbols (like $ for dollar) for all countries in SRM PO Smartform.
Is there any character set which has all the currency symbols in it?
If so, how to print those in Smartforms?Hi
There are two ways to maintain format of Currency,
1. Transaction : OY01 Customize: set up countries
2. Menu->System->User profile-> Own data -> Defualt
Just check the country seeting as well as user setting
before run the smart form.
U can use SET COUNTRY command to set country format which is specified into OY01.
Use Write stament to convert into required currency format.
... CURRENCY w
Effect
Correct format for currency specified in the field w.
Treats the contents of f as a currency amount. The currency specified in w determines how many decimal places this amount should have.
The contents of w are used as a currency key for the table TCURX; if there is no entry for w, the system assumes that the currency amount has 2 decimal places.
Regard ,
Vinod -
How can i print currency symbol in smart form?
how can i print currency symbol in smart form?
i want to print the currency symbol with grant total based on the vendor currency.
pls hepl............Hi,
think You can't print the symbols for currency like $ and Pound etc
see this doc if needed
A variable in SAPscript is called a symbol. There are the following types.
System symbol (e.g. the number of the current page)
Standard symbol (usable in any document)
Program symbol (value from the print program)
Text symbol (local variable)
The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
goto any PAGEWINDOW's Text elements in Script (SE71)
from the Menu-> INSERT-> Symbols
you find all symbols here
System symbols
System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
1. General system symbols
See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
2. SAPscript system symbols
See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
3. ABAP system symbols
For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
Sample code:
User: &SYST-UNAME&
Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
Standard symbols
Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
Tools
Form Printout
Administration
Settings
Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
Standard symbols complicate searching a SAPscript form, since text like Charity registration 211581 may be hiding in a standard symbol.
Text symbols
A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
/: DEFINE &COMP_NAME& = University of Warwick
/: DEFINE &WS_RATE& = &TAX_SUMM_C&
Reward points for useful Answers
Regards
Shiva Kumar -
Sapscript/Smartform via mail with PDF attachment: logo is missing
Hi all
I'm implementing my function to send Sapscript/smartform via mail.
I need to do it because when a message needs to be sent, I have to insert the message as attachment but also to add a text in the body mail.
So I've just created a simple sapscript having a logo (as graphic) and a little text.
I use the fm CONVERT_OTF to convert the OTF to PDF format and the following code to increase the pdf string from 132 to 255 char:
LOOP AT t_pdf.
TRANSLATE t_pdf USING ' ~'.
CONCATENATE l_buffer t_pdf INTO l_buffer.
ENDLOOP.
TRANSLATE l_buffer USING '~ '.
DO.
MOVE l_buffer TO l_attachment.
APPEND l_attachment TO x_attachment.
SHIFT l_buffer LEFT BY 255 PLACES.
IF l_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
All seem to work fine, but as soon as I open the pdf file attached to the mail I can't see the logo
So after calling fm CONVERT_OTF, I've created a pdf file by method GUI_DOWNLOAD, and then upload this file (by GUI_UPLOAD) into internal table for attachment and send the mail.
Now really all work very fine, becaus I can see the logo
Of course I don't want to dowload the file before sending a mail, but I need to send my print directly as pdf attachment
The two ways seem to be equal, they use the same print and the same functions, only the way to upload the internal table for attachment is different:
1) tha abap code above to expand the line from 132 to 255
2) the method GUI_UPLOAD
So something seems to be wrong in the first way because ithe logo is missing in the pdf attachment generated for the mail
MaxHi
I'm not working on unicode system, anyway I didn't see that parameter BIN_FILE, so I didn't use it
I've read the note 1324547 and I've done just as it explaines: now works fine
I don't know why it doesn't work with old manner (i.e data is treated as character-type), but it worls with the new one (If the data is treated as xstring-type)
I can only suppose the data are corrupted while being elaborated for expand to 255 char....but I don't why
Anyway your suggestion works for me
Thank
Max -
Printing QR-Code barcodes in SAP smartforms
Hi,
Is it possible to print QR-Code barcodes in SAP smartforms using system barcode font? Can anybody please let me know the font settings for QR-Code in SE73 font maintenance?
A sample QR-Code lablel can be found [here|http://images.orkut.com/orkut/albums2/ATUAAADhaahG5MxsqQ66lcSO9oHRWD3X8zh7yv1kEakKwMtVHchChN1WfZlM__2D0_o8H7AS4_UaTTCymQQtvXHb9-q3AJtU9VCWnzkZ4gC1sVnCekVuQ90qmhzeMw.jpg].
Regards,
MilanHi Milan,
I'll blog in SDN about my research that I presented at TechEd during session CD119 (blog) but I'll begin sharing with you some ideas.
Basically, without relay on any printer specific driver I would propose to follow the following steps:
1.Generate the QR Code image file (.PNG) with one of the methods presented in the following pages
2.Upload the image into the SAP system
2.1 Convert the generated file (file.png) to TIFF using SAP IGS class CL_IGS_IMAGE_CONVERTER (see GRAPHICS_IGS_IMGCONV_DEMO)
2.2.Upload. Use report RSTXLDMC to upload the image into SE78
3.Include the image into the Form:
3.1.SAPScript/:INCLUDE ZHEX-MARCO-name OBJECT TEXT ID ST
If everything is clear, the missing point should now be the first one. To generate the PNG from ABAP I found some options if you like, the better I think is presented in my open source project called abap2qrcode published here http://code.google.com/p/abap2qrcode/.
I know it's not trivial and I'm curious to know what do you think about it.
Sergio -
Rightfax commands in Sapscript/Smartforms
Hi,
We are using RIGHTFAX with SAP ECC 5.0 for fax sending functionality.
I have read all the threads related to RIGHTFAX functionality but would like to have answers for the following.
1) Where exactly in a SAPSCRIPT / SMARTFORM form do I add the fax control commands (FCL Commands)so that RIGHTFAX connector for SAP R/3 recognise them?
For eg: I want RIGHTFAX to include a particular cover sheet.For that I need to write the fax control command RFSAP_FCSFILE:file name. But where do I write that inside sapscript/smartform?
Thanks,
Bhaskar Pal.
This message is not answered.Somehow it is showing as being answered already. I would appreciate your help/input on this issue. Please respond.Hi. First try to set your post as unsolved. There should be a radiobutton on the left of your post to do so.
TO answer your questions, what you need to do is to create a page, this page will be printed first. Put your FCL commands in this page. When the document is send to the printer device(the one setup for RIGHTFAX), it will have this coding on the first page. Once it reaches RightFax, the software will recognize that there is FCL code on this page and will except it, get the values, apply them, and then it strips off this first page. This is good because we don't want the end user to see this anyway. So, create a page in your sapscript called FAXPAGE, put your commands in there and always start your printing at this page.
Regards,
RIch Heilman -
SE78 - Sapscript / Smartform
Moved to correct forum by moderator
Ladies and Gentlemen,
I am investigating graphics upload into SAP for use in sapscripts / smartforms. The format that I am currently researching is TIFF. I have previously used SE78 and have had an option to upload a TIFF format graphic directly from the transaction, however on this 4.6C system I only get one type choice - BMP. Can SE78 be configured somewhere to allow other type uploads and if so where could I find such configuration screens?
Kind Regards,
Mantas
Edited by: Matt on Jan 13, 2009 3:32 PMMethod 1 If you are in 46c, there is a better method. Save your image in bmp or tiff. Upload using the se78->graphics->bma format. You can load the image as color or monochrome. once done there is undocumented sapscript command /:bitmap, using which it can be printed. See oss note 307414 for documentation of this command.
Method2 These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP
2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
make it Zoom as 100% and save as *.TIFF
3. Open SE38 and execute program RSTXLDMC
4. Give your TIFF file path name
5. Select Bcol (for Color)
6. TEXT ID will be ZHEX-MACRO-*.
7. Inplace of * write your own logo name (ZCOMPANYLOGO)
8. Execute the program
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window
Method3
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be. -
Hi,
How to Print Currency Fields in Smartforms [in tables node]
Thanks & Regards,
Ajithhi
use sth like this
data: lv_neto type string,
wa_tabla-to_neto like bseg-dmbrt.
write wa_tabla-to_neto to lv_neto currency 'CLP'.
then in ur text of the smartform write &lv_neto&, doing that ur amount will be showed fine.
Regards -
Euro Currency 'u0080 ' displays as '# ' after Smartform to PDF converion
Hi,
The Euro currency symbol '' used in Smartform displays corrcectly on printout. if the same document sent via email after PDF conversion the '' displays as '#' in PDF. All other Currency symbol '£', '$', '¥',...etc displays correctly in printout & in PDF.
Thanks in advance
VincentHi,
The Euro currency symbol '' used in Smartform displays corrcectly on printout. if the same document sent via email after PDF conversion the '' displays as '#' in PDF. All other Currency symbol '£', '$', '¥',...etc displays correctly in printout & in PDF.
Thanks in advance
Vincent -
How not to print all the pages of a smartform? (for tr F150 - Dunning)
Hi Forum
We have the follow situation:
For DUNNING (transaction F150) the user want stamp 3 diferents SMARTFORM.
For the first time the transaction is executed is required only a list of documents, for the second time (via sample printout, indiv dunn notice or dunn history) once the legal data of the customer is updated, the user wants the list of documents, a letter for the lawyers and a letter for the client, in the follows executions (3 and up) the user can require only the list of documents or all smartforms (list and letters)
Via customizing we can control the normal dunning and the legal dunnig, but once the client is in legal status the transaction create only the legal smarforms.
We found an user exit associated EXIT_SAPF150D_001. in the F150 transaction, but is not complete, in sense that are failed some parameters .
Another option is create an unique smartform with 3 pages where we can control the case for the print, but here is where we ask: How we can do to print a specific page of the smartform without print all of them (how can we print the 2nd and 3rd page without print the firs one) ??
To control the 3rd execution, we can create a dictionary table with a flag .
Thank you for your helpYou could create a report containing all the single reports in one using UNION. This report could be placed on a "hidden" page. The link for downloading that report you can place on your page. That should work.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
https://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494 -
SAPScript/Smartform phase out
Is SAP planning to phase out SAPScript & Smartforms in near future? Kindly advise.
Thanks,
VivekHi,
Not sure but looks like. Also in my project we are moving to Adobe over smartforms.
Below link will be of some help
Re: What SAP recommends in ECC 6. Either SAPSCRIPT or SMARTFORMS?
Regards,
Vipul -
How to control the print pages in se71 form or smartforms
Dear All:
I have a issue for control the print pages in se71 form or smartforms.
For example:my report used form or smartforms to print.it have 12 total pages.but user want to print the .3rd page.3rd page is customized.
How can I do it?
Thanks
SunHi,
By using command node, with some command we can handle this. -
Selecting Printer defined in VV22 Transaction for Smartform printout
Hi All,
Can any one help me. My requirement is to print a picking list output using smartform automatically when ever a transfer order is generated.
The main problem is i have to select the printer which is defined in VV22 Transaction for that particular output type but when the smartform is called it is taking the printer defined in SU3 transaction.
I have developed the smartform and now done the setting for automatic printing also by passing NO_DIALOG = 'X' when the function module is called but unable to set the printer defined in VV22 Transaction.
Please let me know if you know the solution.
Regards
RaviI think u can directly pass the printer name in ur driver program.
eg:
data: l_t_out TYPE ssfcompop.
l_t_out-tddest = 'LOCL'.
CALL FUNCTION l_f_fname -
> Smartform Function Module Name
EXPORTING
archive_index = toa_dara
ARCHIVE_INDEX_TAB = TSFDARA
archive_parameters = arc_params
control_parameters = l_t_control
output_options = l_t_out
user_settings = space
p_langu = p_langu
TABLES
g_t_item = g_t_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Rgds,
Pavan
Maybe you are looking for
-
FI Archiving - System error: Customer/vendor line item not on OI basis
While archiving FI Documetns using object FI_Documnt, I am getting message System error: Customer/vendor line item not on OI basis for few non archivable documents. Is it like these also open items and can not be able to archive them. Or what is the
-
Hi, I have a requirement where i have to use to separate select options but the value of the 2nd Select option is dependant of the value chosen in the first select option. For eg:First Select option is for SWCV and 2nd option is for Data Object. If y
-
My Built-in ethernet stopped working yesterday, possibly as a result of a power surge through my DSL line while I was at work. Everything was dandy before I left for work, but when i returned many hours later, my connection was gone, and "Built-in Et
-
A set from a set of sampled data from a thickness sensor.
A set from a set of sampled data from a thickness sensor. The samples are stored in an appropriate array of up to 100 elements. The values represent the depth of the insulation around a particular cable. The thickness can vary from 0-4mm represented
-
Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context What Transparent Gateway (TG) 11g configuration steps prevent the following errors?: a