How to print text into different boxes in a main window
Hi,
I divided the main window into 5 windows using boxes.
Now how can I print different data into each of these boxes.
The data comes from a print program .
Please suggest.
Hi
In smartforms you can create a template object or a table object and set the boxes.
after you'll create the text object into the templeate and set on which box the data will write.
best regards
Marco
Similar Messages
-
SAPSCript how to print a comment at the end of main window on first page?
In SAP Scripts, How do I print a comment at the end of the first page (I have several pages of data) in the main window?
- Venhi
good
yes we can put condition.....to display the footer window get printed after all data in main window gets over.........................assingn u r footer window to next page [ i.e u r second page] ...and write the condition
In such senario no need to use a window for footer.
In the Script form:
-> In the Main Window itself after all the main data create an Element.
-> Use BOTTOM and END-BOTTOM; write your footer information between them.
In your Driver Program:
-> After printing all the data (means after passing to form and before closing the form) call one WRITE-FORM with the footer element.
I'm sure it will work.
f u r not interested to change the print program. Then simply insert simple code in the footer wondow.
now insert this code in ur footer window
IF &TTXSY-PAGE& = &SAPSCRIPT-FORMPAGES&.
*all code in footer goes here.
ENDIF.
&TTXSY-PAGE& holds the page number of current page.
&SAPSCRIPT-FORMPAGES& holds total form pages.
This will work.
write this code then the footer will be printed in last page itself
/: IF &NEXTPAGE& EQ 0
whatever footer you want.
/: ENDIF
You need to create an element in the MAIN window. You can do it in two ways:
1. In SE71, you can create:
/:E FOOTER
/:BOTTOM
Text
/:ENDBOTTOM
In the print program, just call this element.
2. In you print program, populate parameter type = BOTTOM in FM, WRITE_FORM.
Ex.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'FOOTER'
type = 'MAIN'
window = 'BOTTOM'
EXCEPTIONS....
However, if you issue new page having new header data. Thus, new item data. And if it will exceed more than 1 page, the footer will still appear. To solve this, you need to create a new element in MAIN. Ex. INIT_FOOTER. It just contains the following:
/:E INIT_FOOTER
/:BOTTOM
/:ENDBOTTOM
Call this after passing all item data.
reward point if helpful.
thanks
mrutyun^ -
How to enter text into text box in Pages '09
When I manually select a text boxes in Pages, I can paste text into them. I can move from text box to text box using System Events to keystroke tabs but have not figured out how to get Applescript Editor to make the pastes. I am trying to use Applescript Editor to enter text into a pages document that is formatted for labels.
I have downloaded template U-0089-02_P.doc from Avery, 14 boxes displayed in two columns of seven rows.
Once you have clicked in the upper left box, the following script should enter text into every box, from left to right and top to bottom.
tell application "Pages"
activate
tell application "System Events"
keystroke "Box 1"
keystroke tab & tab -- to go to the next column
keystroke "Box 2"
keystroke tab -- to go to the next row
keystroke "Box 3"
keystroke tab & tab
-- and so on
end tell
end tell
The problem is that I don't know how to enter the upper left box from the AppleScript Editor. -
How to print text on container using oop on alv list
Hello Guru's,
pl guide me how to print text on container using alv list-display which have interactive events using oop classes/methods ...
I want to print hard coded text on coantainer , on double clicking it will call another screen.
Pl Help..
Message was edited by:
paresh sonavaneHi Paresh,
1. Go to the Layout and Create One custom container box and give name it.
2. Custom Container is the one type of tool and its used for Displaying the Reports
with the use of ABAP Objects.
3. Go to se38 and Write The Following Code.
tables ZTEAM_GD.
DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET .
SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
CREATE OBJECT OBJ
EXPORTING
CONTAINER_NAME = 'ALV'. -
> Give ur Container Name
CREATE OBJECT OBJ1
EXPORTING
I_PARENT = OBJ.
CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'ZPLAYER_BAT_DET'
CHANGING
IT_OUTTAB = IT_TEAM.
*CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
EXPORTING
I_STRUCTURE_NAME = 'ZTEAM_GD'
CHANGING
IT_OUTTAB = IT_TEAM.
CALL SCREEN 9000.
*& Module USER_COMMAND_9000 INPUT
text
MODULE USER_COMMAND_9000 INPUT.
CASE SY-UCOMM.
WHEN 'EXT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPU
Thanks.
Reward If Helpful. -
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) -
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 -
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. -
How to print "Text" in JAVA(TM)....
Does anyone know how to print "text" using Java?
- Here's an example output...
NOTE: # == 'empty spaces'
--------------------------- <- Paper
|###################|
|####Welcome#########|
|###################|
|########to##########|
|###########JAVA(TM)##|
|###################|
|#######Programming####|
|###################|
Please post a complete << SAMPLE CODE >> for printing the "text" (Welcome to JAVA(TM) Programming. Including the indentions. So it will not be like this...
-------------------- <- Paper
|Welcome |
|to |
|JAVA(TM) |
|Programming |
| |
| |
| |
| |
Thanks.Please read How To Ask Questions The Smart Way
-
How to print date in cheque box in sapscript??
Hello Guru,
We have developed or design new form for cheque printing in sapscript
how to print date in cheque box in sap.
1
6
1
2
2
0
1
1
thanks in advance.
Thanks & Regards
Richahi,
If your requirement is to display date with box,first create a Box by using following syntax
* &sy-datum&
/: BOX XPOS '0' CH YPOS '3.65' LN WIDTH '77.50' CH HEIGHT '4.5' LN FRAME '10' tw
then adjust the box size according to your requirement by changing xpos,ypos,width and height
with regards
Edited by: naresh bammidi on Dec 16, 2011 8:00 AM -
How to print form into pdf format using smart forms in abap
please let me know how to print form into pdf format using smart forms in abap.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Mar 25, 2011 2:04 PMHi ,
refer this link
<removed by moderator>
Regards,
Dhina..
Moderator message: please do not reply to questions that violate forum rules.
Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM -
How to print texts from iphone 4
how to print text from iphone 4 without having to screenshot?
An iOS cannot be downgraded or uninstalled...Apple has never supported doing this and removes the older iOS version files when a new iOS is released.
-
Freeform to Text: How to insert Text into freeform
How to edit text into freeform
Hi FZRR,
Could you share more information with us? Or you can upload the screenshot to OneDrive and share the picture link here.
If you want to insert text into freeform shape, there are two methods:
1. Insert a textbox on the freeform shape, edit text in the textbox.
2. Select the freeform shape, and right-click > Add text.
If there is anything I can do for you regarding this issue, feel free to post back.
Best regards,
Greta Ge
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
How to get text into a timeline
I do not understand how to get text into a timeline in Premiere Pro. I can work in titles more or less, change fonts and sizes, but I do not get how to insert the text into the timeline. Am I even starting at the right place, going into "titles" first?
Once you have made your title, drag it from the project panel to V2 on your timeline above your other footage.
-
Box in a main window with a header text in it
Hi Abapers,
I am new to sapscripts and have got an issue where a box in the main window of the first page is not getting printed in the next page when the data is flowing to the next page .
below is the code in the main window.
BOX FRAME 10 TW HEIGHT 7 MM
BOX YPOS 142 MM FRAME 10 TW HEIGHT 0 MM
*BOX YPOS 26 MM FRAME 10 TW HEIGHT 10 MM
*HEADING_TEXT
Description Value in &bkpf-waers&
i have the same code in the main window of the next page also
what may be the problem here ?
Thanks in advance .Hi Sai Ram,
There is no condition palced before the box statement.
The next page also has a main window designed similar to the first page and an additional address window and a footer .
This page is printed as the last page and contains the page as required , the problem is that all the other pages which contain the data flowing from the first page donot contain the box header as desired .
Please let me know if the requirement is not clear , i will try and put it in a better way . -
How to print text bigger in size on whole screen on container?
Hi Friends,
My requirement is print text as big as possible on custom container.
Can any one guide me how to do this i am getting display but not big as i want
i am using class 'CL_DD_DOCUMENT' and method add_text to do this.
following code i have written for doing this only i want big display?
DATA: gv_message TYPE REF TO cl_dd_document. "bin display
CREATE OBJECT gv_message.
CALL METHOD gv_message->add_text
EXPORTING
text = gv_msg2 "text-s01
sap_style = co_style
sap_fontstyle = co_serif
sap_fontsize = cl_dd_area=>large "co_font
sap_emphasis = cl_dd_area=>strong. "co_emphasis
fix_lines = 'X'.
merge document
CALL METHOD gv_message->merge_document.
display document
CALL METHOD gv_message->display_document
EXPORTING
reuse_control = 'X'
container = 'T_MSG'
EXCEPTIONS
html_display_error = 1.Hi Paresh,
1. Go to the Layout and Create One custom container box and give name it.
2. Custom Container is the one type of tool and its used for Displaying the Reports
with the use of ABAP Objects.
3. Go to se38 and Write The Following Code.
tables ZTEAM_GD.
DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET .
SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
CREATE OBJECT OBJ
EXPORTING
CONTAINER_NAME = 'ALV'. -
> Give ur Container Name
CREATE OBJECT OBJ1
EXPORTING
I_PARENT = OBJ.
CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'ZPLAYER_BAT_DET'
CHANGING
IT_OUTTAB = IT_TEAM.
*CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
EXPORTING
I_STRUCTURE_NAME = 'ZTEAM_GD'
CHANGING
IT_OUTTAB = IT_TEAM.
CALL SCREEN 9000.
*& Module USER_COMMAND_9000 INPUT
text
MODULE USER_COMMAND_9000 INPUT.
CASE SY-UCOMM.
WHEN 'EXT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPU
Thanks.
Reward If Helpful.
Maybe you are looking for
-
I love Siri. It's useful and fun and I love messing with it but why can't I name it? It's sort of a petty thing but I would like to be able to name our phone companions. Also apple kinda needs to fix the location services thing with the other Siri vo
-
Can't play to AirTunes and local speakers at same time - iTunes 7 on Win XP
I've just taken delivery of an AirPort Express purely to use the AirTunes feature. Setup was a doddle. My MacBook Pro running OSX can route audio to AirTunes, or local speakers, or both at the same time - with no issues. My XP PC, however, can route
-
ITunes will not let me sign-in after updating
device: Mac Mini Intel core 2 duo operating system installed: Mac OS X v10.6.8 version of iTunes installed on my computer is: iTunes 10.4 Details: After I upgraded to latest Itunes, the sign-in function is grayed out after I enter my apple ID. not
-
Why do we need header datasource?
I just got confused? Why do we need header data table if line items datasource contains all the field of header datasource? Another thing is that should we create different ODS' for each?
-
I'm trying out CS4 on Windows Vista and using the tutorials. I get stuck with the property inspector. It is faded out and won't allow me to do anything! There must be something that can be tweaked! What is it?