Printing text verticallyin smartform
Hi all,
How can we print text vertically.(INVERTED ) IN SMARTFORM.
Tnks in Advance.
The only way to print text vertically in SMARTFORMS is to place each character on it's own line or in a specific window or template that has been created to hold one character--as in the following example:
E
x
a
m
p
l
e
Adobe printforms on SAP (t-code SFP) can rotate your text if you're on a system that has been setup for that.
If, by "inverted", you mean upside-down then the only way to do this in SMARTFORMS, that I know of, is to create an image of your information upside-down and include that as an image in your SMARTFORM where needed (not recommended). If you have to pull the information in dynamically for this issue then this approach will not work. There are bar codes that can be inverted (upside-down) in SMARTFORMS but that was not your question--just thought I would mention that.
Similar Messages
-
Hi everyone
i am working on smartforms and i have to print a text which is of som 50lines in 2 columnsDo you have the lines of text in an internal table?
If so you can do so.
Use the function module 'rkd_word_wrap' to wrap text into lines of, say, 20 characters each.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = <your itab text line>
DELIMITER = ' '
OUTPUTLEN = 20 <no of chars in a line>
IMPORTING
OUT_LINE1 =
OUT_LINE2 =
OUT_LINE3 =
TABLES
OUT_LINES = table containing
text
EXCEPTIONS
OUTPUTLEN_TOO_LARGE = 1
OTHERS = 2
Count the no of lines in the wrapped text using LINES( itab )
statement.
Divide the lines into two.
Then write those divided lines into table with two columns, remove loop at internal table check box. -
Hi ,
I am developing a smartform. In output i need to get text in both chinese and english language. While my logon language is English , i cannot able to see the Chinese text, only i can able to see the english text...IF i login in Chinese i can able to see both in English and Chinese.
Please let me tell the reason for not getting chinese text in English logon.
Regads
Saravanahi ,
tcode se63 is used for conversion of so many object like sap-script,smartforms,dictionary objects etc.
suppose u wanna to change original language of copied sap standard sap - script forms then u can change the original laguage ge to en by this code.
jus go to se63 -
>translation----> long texts--->sap-script--> forms
then jus put the name of copied form and press the edit button.
similarly u can change other objects original language
This helps in translating the text to different language.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/frameset.htm -
How to print text on back and back of page in smartforms
How to print text on back and back of page in smartforms.
Prince,
in page's output option you can set D for double-sided.
Default: No change of print mode
S Begin new page in SIMPLEX mode (single-sided)
D Begin new page in DUPLEX mode (double-sided)
T Begin new page in TUMBLE DUPLEX mode (double-sided)
Amit. -
Problem printing horizontal text in smartform with zebra Z6M label printer
hello,
The situation is this:
There is a Z smartform wich prints a label to a zebra Z6M label printer with the text and barcodes vertically.
The form have a command in the main windows with the parameter: S_LZPL_SETUP '^FWR'
This label works fine, but the client want to change the form, they have told me to create a new smartform and print the info horizontally, using the same printer.
The tests i have done are the following:
create a smartform from ground and write a template text and a barcode with a new font of system barcodes. the bardoce is shown ok(it is shown horizontally), the problem is that the template text is shown vertically, as in the original smartform.
then i tried on another zebra ZM600 label printer, similar model, but not the same, and the smartform printed was ok (text and barcodes shown horizontally). So i think is a configuration setting problem, but i dont know where to search.
i have checked the label printer parameters in SPAD, but didnt find anything souspicios.
have you any idea?
thanks in advance.See these if they be of any help.....
BARCODE:
goto smartform styles-> create a style-->
create a character format.
under standard settings give the bar code name
use this style in ur smartform. select the data field which u want to barcode print and assign the character format
Similarly
SAPSCRIPT
open the form and click the character format button and
repeat the step as above....
http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/frameset.htm
Go to Character formate in your form.
create a new char formate with enable BAR code AND
you can give its type too.
To Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
go through these links and cose u r previous threads,
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
smartform - barcode
http://www.erpgenie.com/abap/smartforms.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
Detailed information about SAP Barcodes
A barcode solution consists of the following:
a barcode printer
a barcode reader
a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
Creating Bar code:
) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Check this thread for detail information.
How to print Barcode in te SAP SCRIPTS? -
Standard text printing missing on Smartform
Hi All,
I am using standard text in Smartform.
Standard text contains 'terms and conditions' hence it's used for printing in second page.
For printing standard text one window other than Main window has been created in second page.
Now when I am taking print preview of smartform only two pages are visible and on second page complete standard text is not displayed. As standard text is of two pages then rest missing text should come on third page as a continuity.
But missing standard text is not getting diplayed.
Any suggestion what shall we do to print complete standard text.
Regards,
Amit
Edited by: Amit Singh on Nov 25, 2010 11:38 AM
Edited by: Amit Singh on Nov 25, 2010 11:39 AM
Edited by: Amit Singh on Nov 25, 2010 11:39 AMI tried to use the 2nd option provided by you but still this prolem is not resolved.
Missing Standard text is not going in a new page.
I tried to expand the window size and now entire text is coming in a single page. But by this way page window is not same as in a first page.
Is there any otherway to print the rest missing text in next page of the smartform.
Regards,
Amit -
Print Arabic text in smartforms
Hi,
How to print Arabic text in smartforms, where i have to write in arabic please help me as soon as possible.
Thanks,
MSA.Hi,
create the text in Arabic .
ex: goto SO10 give the text name and language is Arabic.
when u call that pass the language as Arabic.
ex:
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = txt_id
language = txt_langu "Rabic language.
name = txt_name
object = txt_obj
TABLES
lines = t_line.
Regards,
Venkat. -
How to print text in paper format iin smartforms
Hi all,
I want a question that how to print text in paper format like paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
Usefull answers will be awarded.
Thanks all...Hi,
U create two windows in the page and same as like second page.
but in first page first window select the condition print only on first page.
in second window select conditin print only on second page.
first try without creating a secondpage. if that doesn't workout create secondpage and try.
Assign points if useful.
Regards
(YUGANDHAR.P) -
Printing symbol in text of smartform
Hi All,
I need to write a symbol (tick mark) in text of smartform.
Can anyone help me?
Thanks,
BipenHi
You can use the table ICON and the field ICON_OKAY
or copy the icon from Word and try to paste the same
or type <709> in change editor
Regards
Shiva -
How to print text vertically in smart forms
hi,
Can any one tell how to print text vertically in smartforms
ADVANCE THANKS
GUHAPRIYANHI,
Chk out this thread.Maybe it proves helpful.
Re: vertical writing in smartforms
Regards,
Gayathri -
Standard Text in Smartforms using SO10 Transaction
Hi,
My requirement is i have IF Condition followed by Elseif. when ever any of above conditions satisfy i need to print a text of at least 5 lines.
If <>
Print Text upto 5 lines each line at least 100 char(text1)
elseif <>
Print Text upto 5 lines each line at least 100 char(text2).
else <>
text24.
If solution for the above is using SO10 Tcode then plz expain me in detail.
thanx in advanceHi
Check this
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Subtotals - Check the link...
Re: Subtotal with Table Node in smartforms
Regards
Anji -
Hi..how we enter standard text for smartform using include text
hi
guru
..how we enter standard text for smartform using include text..
i know only using so10 we write text..
in smartform it asking text-object
text-id,
so what values we should give to get textHi,
Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
Regards,
Shafivullah Mohammad -
Urgent!! Printing Barcode using smartforms
req: need to print barcode using smartforms.
【Settings】
The following settings are made already
1. Style ( paragraph, character type(Syatem Barcode ) )is created and activated (T-code:Smartforms)
2. In the smartform I used the above style to print barcode .
※TEXTTYPE = TEXT ELEMENT.
【Execution】
1. I run the smartform in test mode with setting any print parameters
2. Trigger print preview
【Problem】
1. I am getting only BAR's no barcodes.
The bracodes are not displayed properly.
If I test the same system barcode in SE73 it displayed properly.
Is there anyother settings are necessory?
Plz help me in solving the peoblemHi
To Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
Detailed information about SAP Barcodes
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
Reward points for useful Answers
Regards
Anji -
How to write print program for smartforms
Hi all
I need to develop new smartform and its print program.
But Im not experience in writing print program for smartform.
Ive gone through the simple print program sample that use only one table as input and one table for output.
But my smartforms require few tables for input and output.
How should I define the Data?
Can anyone guide me on how to write it.
Thanks & Regards
azTransaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
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.
Reward points... -
Regarding passing an internal table from print program to smartform....
Hi All,
can any body let me how to pass an internal table to the smartform, i have processed the data in the print program then i want to pass the final internal table from the print program to smartform and with that data in the internal table i have to process it in the smartform (i want to get some more data based on the internal table data from the print program) and then i will display finally.
for example: i have it_qals which contains all the lot numbers which is processed in teh printprogram, now i want to pass all these (it_qals) lotnumbers to smartform , and in the smartform i will use the lotnumbers in the it_qals table and will process other data accordingly
can any body help me plzz.. its very urgentChek this code i am coping my whole program here.
REPORT ZDP_SMARTFORMS_REPORT3 .
TABLES: MARA,
MAKT.
DATA: FNAME TYPE RS38L_FNAM.
DATA: BEGIN OF ITJOIN OCCURS 0.
INCLUDE STRUCTURE ZDP_JOIN__IN_SMARTFORM.
INCLUDE STRUCTURE MARA.
INCLUDE STRUCTURE MAKT.
data: END OF ITJOIN.
*DATA: BEGIN OF ITJOIN OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITJOIN.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: MAT FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK B1.
SELECT MARA~MATNR MAKTX "UP TO 5 ROWS
FROM MARA JOIN MAKT ON MARAMATNR = MAKTMATNR
INTO TABLE ITJOIN
WHERE MARAMATNR IN MAT and maktspras eq 'EN'.
into corresponding fields of table it
*SELECT MATNR UP TO 5 ROWS FROM MARA INTO TABLE ITJOIN
WHERE MATNR IN MAT.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZDP_SMARTFORMS_3'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FNAME
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.
not necessar y above function if u copy function name from
**- smartforms>environment>function name
CALL FUNCTION '/1BCDWB/SF00000037'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITJ = ITJOIN
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.
Also check these links
Check out this link,
http://www.erpgenie.com/abap/smartforms.htm
and also refer these threads,
Passing table to smartform
PASSING INTERNAL TABLE IN SMARTFORM
Hope this helps.
ashish
Maybe you are looking for
-
Link Between One PDF to another PDF
Hi, Could you please explain on how can we link between one PDF to another PDF. I have 2 PDF files which are Online Interactive Adobe forms. Regards, Maruti
-
Agent logged out suddenly, reason code:50003
Hi, We have icm 8.0(3) and cad 8. Sometimes, an agent (each time a different one) is logged out suddenly and he get the reason code: 50003 Please find attached a logout status report that is showing the agent using extension "7459" has been logged ou
-
Soundsticks bug!!!
Since installing SnowLeopard my original USB connected Harmon Kardon soundsticks will not stay selected as my sound output device on reboots. The SL 6.1 update has not fixed this. After each reboot I have to go to the System Prefs and select them as
-
Procedure to find the exit name from the include program
hai i know the name of the include program through this i want to know the user exit name what is procedure? please give me the details Thanks
-
I can't open/use the chat window on Facebook. Help