Hi,
Is there any way to print the text in vertical format instead of horizontal format in Smart form??
Thanks,
Raj.
Hi,
Is there any way to print the text in vertical format instead of horizontal format in Smart form??
Thanks,
Raj.
Hi all,
I am working on a smartform wherein i need to print a text vertically by rotating the text 90 degree (which means the letters will also be tilted in 90 degree angle).Is there any specific printer command or setting that needs to be done to achieve this?Please help!!!
Innovative use of Graphics in Smartforms - 2 Ideas
________________________________________________________________________________________________________
Author: Jogeswara Ra Kavala
Introduction
It has been experienced consistently, while working in SAP, that the end user often needs to explore/experiment to cater his local needs, which are not addressed in standard system. While doing that sometimes, some creative ideas are born. The author would like to share 2 such Ideas with the members.
Into the Document
Let’s first see the screens of End Result out of these Ideas, so that, the readers can assess the relevance and usefulness for them, before going through the entire document.
End Result of Idea1
To print Page Headers and Column Headers of the form in Regional language.
In this example, a Regional Language Hindi font is taken as example. Same will be applicable to any other language.
.......And the screen is:
End Result of Idea2
To have time-line graphics printed against line items such as scheduled jobs during repairs etc. This will be valid for any such applications where Start Date and End Date are involved.
.…And the screen is:
Let us now see how to go about it?
The similarity in both the ideas dealt here is that, both use tiny graphics uploaded to system through Transaction code SE78.
(I am not going into the SE78 graphic uploading procedure, as it is a basic thing and has been already available in other documents in the forum)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Idea1:
Objective:
To print Page Headers and Table Column Headers of the form in Regional Languages where SAP Language support is not there.
Pre-requisite:
You should be able o punch your translated words in the Regional Language you prefer into a MS-Word document.
For this sometimes, Regional language font (in this case Hindi) needs to be installed in the PC. (We can download regional fonts from net like Indic IME 1 fonts etc. and install in our OS). After installing, the font options can be selected through Language bar (or Atl + Shift key),
(Active language is shown near the right bottom of the Windows OS taskbar like this.)
Now, I punch my translated words (sometime Bi-lingual) in a MS Word document like below.
NOTE:
After many trials I’ve settled at the Font Sizes below.
For Page Header (medium sized) it is 48
Page Header (large sized) it is 60
and for Column Headers it is 36
(As I have selected suitable font size above, there is no need for mention of picture resolution here.)
Now I use Windows snipping tool
to cut these into individual small graphics. (One or two for Page Header, As many required for Column Headers etc)
Like:
Example for Page Header graphic (Font Size 48)
Example for Column Header graphic (Font size 36)
Or
Example for Bi-lingual Column Header graphic (Font size 36)
Note: These Graphics are required to be with BMP extension.
Also take care that snipping to be done close to fonts (not giving margins)
Then, I upload all these Graphics through Tcode SE78 and use them in Smartforms.
Now, let’s see the screens inside Smartform, how these graphics are used.
Page Header
Column Header
(Notice here that, under the Table-lineCells, instead of Text, we have used Graphics.
Important:
I have used, 300dpi resolution option in smartform graphic screens (see below), for all the graphics used in this section.
This technique can be used in a similar way, to get your forms bi-lingual and connect the users with their local language to some extent.
So our end-product here is:
(It may please be noted that, we are talking about the Headers only, not the data inside the internal tables)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Let’s move now to
Idea2:
Objective is to have Graphical printing of Time-line chart, by using different colors for different job executing agencies, in SAP objects like Repair Work Orders.
As we have already discussed, this idea is relevant where you have duration fields like Start Date and End Dates in your internal table.
Pre-requisites
1. Tiny graphics of resolution 23 X 16 pixels (0.58 X 0.41 cm) as many colors as you need to be uploaded through SE78.
For example here:
I want to print the time-line with different colors for different job executing agency (ITAB-ARBPL). I have 3 such categories. So I have created 3 graphics of above resolution with 3 different colors.
2. Repair Start date and Duration of Repairs (Days) are the inputs through Selection screen.
Now let’s discuss things inside the smartform.
1. Design the table for time-line.
This can be done by defining cells with narrowest width, and nos. equal to duration days (higher side).
e.g., A Repair of maximum possible duration with 9 days can be provided 10 or 11 time-line cells.
Remember, the first time-line cell represents the Day1 of the Duration, next one, the Day2 and so on.
2. In each time-line cell, you need to maintain program lines to give code, which decides whether this cell is included in the time-line comparing to the start/end dates of the Job in this line item.
Example:
Repair Start date: 29.09.2013 and Duration : 9 Days.
Job (Line item ) Start Date : 30.09.2013 and End Date: 04.10.2013.
Then, for this particular job, the code in the program lines stores value ‘X’ into a variable for 2nd, 3rd, 4th, 5th and 6th time-line cells and no value for the other cells.
(The code in the picture below is illustrative only. Relevant codes to be written as per the variables used)
If a particular time-line cell is with value ‘X’ above, then this code identifies the graphic to be displayed in the cell depending upon the value of the executing agency (ITAB-ARBPL).
You can see here in the picture below that we have provided all 3 graphics (one for each color) under each cell, so that the program lines code and the lines given in the Condition tab will choose which colored graphic is to be displayed in this cell.
(Again the conditions shown here are just illustrative only)
Important:
I have used, 0 dpi resolution option in smartform graphic screens (see below), for the time-line graphics (23x16 pixels) used in this section.
So we have arrived at the end of the task, to get an output like:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
2nd Idea above looks a bit complex because of the code and conditions involved. The focus of this document is about the use of tiny graphics in smartforms. The coding requirements involved in this, are simple and can be easily understood by members using the program-lines in the forms.
At the end,
Anticipate this documentation will be useful for members in two ways:
1. To be used as is discussed above
2. In triggering some more and improved ideas in their minds.
Thank you
Jogeswara Rao K
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Need to rotate text 90 degrees in a SmartForm.
The printers are all PCL based.
New print-controls cannot be created.
In PCL, the following command sets rotation:
<ESC>&a#P
where # is the number of degrees
To rotate 90 degrees, the PCL command would be:
<ESC>&a90P
In SAPscript, I can use the print-control for <ESC>.
/: PRINT-CONTROL SESCP = &a90P
Another method that works involves standard texts.
Define standard texts named ZPCLROTATE90 and ZPCLROTATE0.
They willl set the rotation to 90 and reset to 0 degrees.
/: PRINT-CONTROL SESCP ( &a90P
/: PRINT-CONTROL SESCP ( &a0P
The SAPscript uses the new standard text objects:
AS horizontal text /: INCLUDE ZZPCLROTATE90 OBJECT TEXT ID ST AS rotated text /: INCLUDE ZZPCLROTATE0 OBJECT TEXT ID ST AS horizontal again
This also works in SAPscript.
None of this seems to work in SmartForms. I thought the INCLUDE text would work the same in SmartForms. It does not.
Tried the first method shown; SmartForms converts the "=" or "(" paragraph symbol to "*". This separates the escape sequence and it becomes invalid.
Any ideas? They do not want to use SAPscript. Cannot create a Z print-control.
Thanks,
Norm
Dear All,
how to rotate the output text of a smartform at 90 degree.
Hello,
I created a new page format(for ex.g.::X_PORT--144 rows & 48 columns) and assign it to the default printer.Now when i give the print command of any report or document while selecting this new page format printer prints blank pages.
What will i have to do..??
Please help me into this regard.
Waiting for your response....
Thanks & Regards,
JUNAID
If you want to print a bar code, you have various
options:
1.
Printing via bar code DIMM/SIMM or barcode-capable printer
To be able to
use this method, the printer itself must be able to print bar codes. Therefore,
it must be possible to access the bar code via a simple escape sequence.
Frequently, you require a special bar code module for the printer.
The
printing works as follows: SAP sends a simple printer escape sequence that
activates the bar code, then the bar code text in plaintext and finally a
sequence that switches the printer back to normal printing. In this way,
therefore, the lines of the bar code are created by the printer itself (see Note
5196).
Whether bar code printing is supported in this way can be seen
from the note that the printer manufacturer created within the Printer Vendor
program. Note 1097990 contains an overview of these notes.
- Supported
documents: Sapscript, Smart Forms, (lists)
- Supported bar codes: All bar
codes that are implemented in the printer/bar code module
- Supported
printers/device types: All printers that are barcode-capable
- Display in
print preview/PDF file supported: no
2. Printing via a
barcode.dll
If the printer cannot set the lines of the bar code itself,
this must occur elsewhere. One option is that you print via a Windows system,
device type SAPWIN and a barcode.dll. If you print via SAPWIN, the print
formatting occurs in the Windows operating system. This then uses the
barcode.dll to create a graphic that contains the lines of the bar code (see
Note 14561).
Note 14561 contains various suppliers from whom you can obtain a
barcode.dll.
Supported documents: Sapscript, Smart Forms,
(lists)
Supported bar codes: All bar codes that are contained in the
barcode.dll
Supported printers/device types: Only SAPWIN device
types
Display in print preview/PDF file supported: no
3. New bar
code technology
If you do not want to use or cannot use the first two
methods, you can use the new bar code technology that is described in Notes
430887 and 645158. In this way, SAP creates a graphic that contains the lines of
the bar code. SAP then prints this graphic. To be able to use this option, you
must use transaction SE73 (system bar codes) to create a new system bar code
because the SAP standard bar codes normally use the old technology (option 1 or
2).
Supported documents: SAPscript, if you have implemented Note 1558595,
Smartforms
Supported bar codes: Code39, Code93, Interleaved 2of5, Code128,
PDF417, data matrix
Supported printers/device types: PCL device types,
PostScript device types, Prescribe device types, ZPL-II device types, SAPWIN
device types (see Note 430887)
Display in print preview/PDF file supported:
yes
4. Using a bar code font
There are Windows TTF fonts that
contain bar codes. You can upload such a font to SAP and use it by calling
transaction SE73 and choosing 'Install True Type Font'. For more information,
see Note 201307.
Supported documents: SAPscript, Smart Forms
Supported
bar codes: Various 1D bar codes
Supported printers/device types: Most PCL
device types, PostScript device types, ZPL-II device types, SAPWIN device types
(see Note 201307)
Display in print preview/PDF file supported:
Yes
5. Printing via a PDF-based form
The Adobe Document
Services (ADS) creates the lines of the bar code here.
Supported
documents: PDF-based forms
Supported bar codes: Various 1D bar codes and 2D
bar codes; see selection in the Adobe Designer.
Supported printers/device
types: PCL device types, PostScript device types, ZPL device types (see Note
685571); for SAPWIN device types and Prescribe device types, see Note
1066060.
Display in print preview/PDF file supported: Yes
As per SAP Note 895560, you must use one of the following device
types for Vietnamese printing:
1. To use SWINCF, you need to print in one of 2 possible ways:
1).
Through a remote Windows print server with SAPSprint, using Access Method S and
device type SWINCF. (see SAP Note 894444)
2). Through a local Windows PC using
frontend printing, with access method G and device type SWINCF. (see SAP Note 821519)
2. HPUTF8 (see SAP Note 750219, with specific hardware requirments.)
1). The printer model is listed in SAP Note 750219.
2). The Andale font module is installed in
the printer (hardware part).
Please contact the vendor (HP) if you have
problem with it.
Hello ,
I've created label with EAN128 barcode. If I print that label in A4 paper I can scan this barcode without any problem. But when I print with damatax printer seemingly it is printing perfect but when I try to scan barcode the hand terminal does not react.
Any one have ideas what present Dazel Output Management System version?
Hi All,
We are getting a Runtime Error while saving or changing any Purhase Order, if the Output Message has Dispatch Time maintained as 4 i.e. Send Immediately.
For all other dispatch time there is no issue. We have maintained condition record for the Message Type with Print Medium as 1 and Dispatch Time as 4. Also, the printer is maintained in the communication tab.
No printer is maintained as default in the User Profile. No Printer is assigned to purchasing group. Our requirement is to print on the printer specified in the Condition Records itself.
We are using Smartform, not standard SAP script for printing.
Please suggest how we can rectify this issue.
Regards,
Ankit
Hi,
I have a series of SapScript forms that are being archived to iXOS just fine. When they are retrieved by the user, I would like to incorporate an overlay with a "COPY" watermark or similar.
Any ideas how to provide this on the retrieved archive image, but not have it on the original document ?
Sap 4.7 system running ..
SAP_BASIS 620 SAPKB62067
SAP_ABA 620 SAPKA62067
SAP_APPL 470 SAPKH47033
Many thanks.
some of the background programs created a short dump related to SPOOL_TEMSE_ERROR.
Meanwhile in SM12 the system log could find the output :"2 GB limit for TemSe object reached"
There is no possibility to increase this "area". The 2 GB is the
maximal limit of an TemSe object.This is also described in note 857075.
The trace file of a work process contains the following:
C-stack for
xxxxx
M
---------------------C-STACK-------------------------------------
...................................................................
?raise()
at 0x..............
?abort() at
0x..............
?rstssbpw_sync_buff_prep_write() at
0x........
..............................................
or
?rstsf_tel_040_22707_131()
at 0x............
.............................................
One of
the following entries occurs in the system log: E06 Assurance too many DB
rows
All these messages occur during the output to the
database.
You cannot terminate the background job. The system
constantly restarts the process.
Hi Gurus,
My requirement is that i have a Smartform whose output I am getting in a normal way. Now i want the output to be converted directly to Excel format .
Do anyone have a answer for this. Please help.
Thanks in advance.
I want to make a smartform that displays a pdf file, with links linking the different parts of de pdf (referencing different pages of the document). Is that possible?
thank
Hi Sap Expert's
Here We Are Facing Problem With Dot Matrix Printer's
We Are Taking Proforma Invoice Printout in ( EPSON COMPATIBLE 9 PIN ) Dot Matrix Printer Print Is Coming Properly In
First Page But From Second Page On Words Print Is Going 1- Inch Up And Third Page 2-inch up Like that Print is Coming Wrong
Can Any One Please Help Me Out From This Problem.
Regards,
Ajay Rana
Hello,
I created a new page format and assighn to the defauly printer.Now when i give the print command of any report or document it prints blank pages.
Please help me into this regard.
Waiting for your response....
Thanks & Regards,
JUNAID
Hi All
In sapscript we have versions for different languages and we add and put any code in it independently but only alignment cannot be changed as every version will be impacted.
The logic used are all independent in different versions in sapscript.
Now when we go in translations for smartforms in SE63 , i have seen that we get very few text elements that can be translated..hope they have some texts hence appear in the editor.
Now suppose a text element is present in smartforms and not currently present in se63 editor and if i try to add it in SE63 editor , say
/E &total_nd&
/IP { let say i want to give a blank space hnece using paragraph format IP before the texts for that text element}
On activation even after several times my chnages gets revert.
Can someone suggest how can add say just a space on call of certain text element in smartform.
I don't want to change the actual form.
In sapscript it will be simple to do. Please suggest and give your views.
Thanks
Hello
I apologize if this question is not for this forum.
We have purchase orders with 200 + positions. Now our warehouse needs very long time to take all position on stock.
My question (as an end sap user)...Can we import quntities, item numbers... from excel sheet or any other table?
Which transaction must we use?
Now we use MB01 but I can'f find option to import data in purchase order....
Thank you for your advice.
Kind regards
Our sap version.
Hi Experts,
I have developed one custom Adobe form for 'Delivery note' and configured in NACE with custom output type and using print program RVADDN01. I am using ENTRY_PDF subroutine in NACE.
Getting correct print preview.
But the issue is..I am not able to send FAX to SOST. NACE configuration is correct, SCOT settings are correct.
All routines are giving return code as 0 and sy-subrc as 0 in print program but the entry is coming to SOST.
Please let me know whether this print program is suitable for handling FAX or not. suggest me if you have any idea on this issue.
Regards,
Dileep.