Regarding the Alignment of text in top-of-page using oops
I am displaying the texts on the top-of-page in two columns, i am facing a problem while displaying the text on the right-side as it is not displaying the text in the proper alignment.
I am using the method : add_gap for the gap between the
left- side text and the right-side text .
how can i overcome this.
it is a trail and Error method , using the add_gap method you have to adjust the texts. otherwise you have to use the method add_table. see the usage of the method in the program DD_STYLE_TABLE
Similar Messages
-
Allignment in ALV top of page using oops
I am displaying some fields with their values on top of page using Classes.but i am not able to get a proper alignment.
i want the field and their respective values one-below the other with once the field description and the values below after the description. eg...
field : 0125465
0123654
23654100
sales : au01
sd02
GH26
org : 101
102
103Check this sample..
Take the code from the HTML_TOP_OF_PAGE from the below report.
REPORT ztest_page.
DATA : it_flight TYPE TABLE OF sflight WITH HEADER LINE.
data: t type x.
START-OF-SELECTION.
SELECT * FROM sflight INTO TABLE it_flight.
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_structure_name = 'SFLIGHT'
TABLES
t_outtab = it_flight
EXCEPTIONS
program_error = 1
OTHERS = 2.
*& Form TOP_OF_PAGE
* text
FORM top_of_page.
WRITE 'This is the Top of page which triggers in print'.
ENDFORM. "TOP_OF_PAGE
*& Form html_top_of_page
FORM html_top_of_page USING document TYPE REF TO cl_dd_document.
DATA : dl_text(255) TYPE c. "Text
* Add new-line
CALL METHOD document->new_line.
CALL METHOD document->new_line.
CLEAR : dl_text.
* program ID
dl_text = 'Program Name :'.
CALL METHOD document->add_gap.
CALL METHOD document->add_text
EXPORTING
text = dl_text
sap_emphasis = cl_dd_area=>heading
sap_color = cl_dd_area=>list_heading_int.
CLEAR dl_text.
dl_text = sy-repid.
CALL METHOD document->add_text
EXPORTING
text = dl_text
sap_emphasis = cl_dd_area=>heading
sap_color = cl_dd_area=>list_negative_inv.
* Add new-line
CALL METHOD document->new_line.
CLEAR : dl_text.
dl_text = sy-uname.
CALL METHOD document->add_gap
EXPORTING
width = 34.
CALL METHOD document->add_text
EXPORTING
text = dl_text
sap_emphasis = cl_dd_area=>heading
sap_color = cl_dd_area=>list_negative_inv.
* Add new-line
CALL METHOD document->new_line.
CLEAR : dl_text.
CALL METHOD document->add_gap
EXPORTING
width = 34.
* Move date
WRITE sy-datum TO dl_text.
CALL METHOD document->add_text
EXPORTING
text = dl_text
sap_emphasis = cl_dd_area=>heading
sap_color = cl_dd_area=>list_negative_inv.
* Add new-line
CALL METHOD document->new_line.
CLEAR : dl_text.
* Move time
WRITE sy-uzeit TO dl_text.
CALL METHOD document->add_gap
EXPORTING
width = 34.
CALL METHOD document->add_text
EXPORTING
text = dl_text
sap_emphasis = cl_dd_area=>heading
sap_color = cl_dd_area=>list_negative_inv.
* Add new-line
CALL METHOD document->new_line.
ENDFORM. "HTML_TOP_OF_PAGE
same Code can be used in the class. you take the above code and see.. -
hello , im working with hebrew and the dot "." isnt correcting to right with the align , i know that in indesign u use with paragraph direction to correct it but here what should i do. sorry for my english
You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money.. -
TOP-OF-PAGE using Object Oriented model
Hi all,
(1) I hve a doubt reg the top-of-page using Object oriented concept . While iam creating the top-of-page iam using a class called ' cl_dd_document' , wht is the purpose of that class ?
(2) I have displayed a text in the top-of-page container . I want to display another text in a new line in the same container below the first text . How can i do it . plz send me a sample code for it .
Vighnesh ,1. this class cl_dd_document is used to define the properties of the text used in top of page...to change the fonts of texts , to add space between texts, to add a new line and so on..
2. to add new line , use this
CALL METHOD document->new_line. -
Is the license terms allow you to generate pages using Wizzard Business Catalyst and publish them on other servers. As the export side and run?
Our iPads work just fine behind a firewall and the Lightspeed filtering solution in an education environment. If your proxy solution cannot be configured to support IOS maybe you should be looking at another vendor. Products such as 8e6 and Lightspeed can be deployed without the use of a traditional proxy set up.
http://www.m86security.com/products/web_security/m86-web-filtering-reporting-sui te-deployment.asp
http://www.lightspeedsystems.com/products/Web-Filter.aspx -
Changing the alignment of text on the Creative Zen Visio
Ok after having the Vision:M for a very long time it finally has a crack in the screen. The crack has turned into one big black blob and is on the left side which is covering up the text. Is there is a way to change the alignment of everything on the player so everything is aligned to the right side? Which would let me see artist names etc...
Hi, i have a similar situation without the icon. I have a button whose text is to be left aligned. Here is the snippet of code i have. But, it is not working.
linksButton = new JButton(link);
linksButton.setHorizontalTextPosition(SwingConstants.LEFT);
linksButton.setBounds(xComp,yComp,width,height); -
Desired text in top of page in ALV
Hi All,
Due to some technaical requirement user want to convert sapscript form into ALV GRID report.
Can we show some text in right justified mode, some in left justified mode, some in center, some in bold character, etc.
in top of page in ALV.
Edited by: Lalit Singh on Nov 3, 2009 6:08 AMHi,
You can use the Following Code Sample For using the Top of Page in your Report For ALV
*& Form TOP-OF-PAGE
Header To ALV GRID
FORM top-of-page.
DATA: it_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader.
*-Title
wa_header-typ = 'H'.
wa_header-info = text-004.
APPEND wa_header TO it_header.
CLEAR wa_header.
*-Date
wa_header-typ = 'S'.
wa_header-key = text-005.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info.
APPEND wa_header TO it_header.
CLEAR wa_header.
wa_header-typ = 'S'.
wa_header-key = text-006.
CONCATENATE sy-uzeit(2) ':'
sy-uzeit+2(2) ':'
sy-uzeit+4(2) INTO wa_header-info. "todays date
APPEND wa_header TO it_header.
CLEAR: wa_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_header.
ENDFORM. "TOP-OF-PAGE
wih this ALV Function Module
*-Grid Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP-OF-PAGE'
i_structure_name = 'WA_FC_FINAL'
i_grid_title = text-003
is_layout = wa_layout
it_fieldcat = it_fieldcat
i_default = 'X'
i_save = c_a
is_variant = it_variant
TABLES
t_outtab = it_fc_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. " IF sy-subrc <> 0.
Regards,
Richa Tripathi. -
I just downloaded the ff4 yesterday. When I printed pages from the web the name of the site and address that prints across the top of each page is garbled and so is the page # and date that prints across the bottom of each page. How do I correct this. I need this info. Example: printing bank balances, I can compare balances based on the date I accessed which is printed at the bottom of each page. I never had this problem with the previous version of firefox.
Does that happen on all pages or only on some?
You can try to reset the print prefs on the about:config page.<br />
* http://kb.mozillazine.org/Problems_printing_web_pages
You can open about: pages via the location bar like you open a website. -
HOW TO KEEP TEXT AT BOTTOM OF PAGE USING JAVASCRIPT-ANSWERED
UPDATE 5/12/2006: MORE COMPATIBLE CODE:
Was using OnRequestEnd.cfm to load copyright info at bottom
of each page but page size varied and copyright info would appear
at different points on different pages. Didn't look good. Could not
use tables to align the text for output reasons. Coded a way using
CSS and JavaScript to keep text at bottom of each page. Be careful
with CFFORM, us have to set the attribute 'wMode=transparent' in
CFFORM so text is above form. Tested in IE and Netscape. Put at end
of individual templates or inside OnRequestEnd.cfm - Enjoy!
(css goes in your external css file or between local style
tags)
.copyright{background-color:#d8d8d8;color:Black;font-size:10px;font-family:Arial;width:10 0%;text-align:center;}
body {border-bottom-width:0px;}
(following goes at end of page or in OnRequestEnd.cfm)
<span id="x" class="copyright">
my copyright
</span>
<!--- *** KEEPS COPYRIGHT LINE AT ABSOLUTE BOTTOM OF EACH
PAGE --->
<script>
if(document.body.scrollHeight <
document.body.clientHeight){
var s = 0;
document.getElementById('x').style.cssText='position:absolute;bottom:'+s+';';
else {
var s = document.body.scrollHeight;
document.getElementById('x').style.cssText='position:absolute;top:'+s+';';
</script>To change it for a given text frame, the frame must be selected when you execute the menu command.
AlyMcF1 wrote:
…how can I apply this to the majority (400+) of my text frames at once?
To change the setting of existing frames throughout your document, use Edit > Find/Change.
Choose the Object tab.
Set the Search: field to Document.
Set the Type: field to Text Frames.
If there is a formatting attribute common to all the text frames you want to target and change, click the glass/frame icon next to the Find Object Format field to access the Find Object Format Options dialog and set that common attribute.
Click the glass/frame icon next to the Change Object Format field to access the Change Object Format Options dialog and set the Align: field to Justify under Basic Attributes > Text Frame General Options > Vertical Justification.
Step through the Find Next/Change sequence to selectively apply the change, or click the Change All button if you're certain you want all the found frames changed. -
Right Justfied In ALV Top Of Page Using opps
Hi All,
I Have Report in wich there is requirement of Segment Wise Summary In the Top-Of Page
Here I am Provding the Code and the o/p of the Report,
Top-of page Event
LOOP AT IT_SEG INTO W_SEG.
V_AMT = W_SEG-AMT.
V_AMT1 = V_AMT1 + W_SEG-AMT.
V_STR = W_SEG-SEGMENT1.
LR_TEXT = LR_GRID_1->CREATE_TEXT(
ROW = V_ROW
COLUMN = V_COL
TEXT = V_STR ).
WRITE: V_AMT TO V_STR." LEFT-JUSTIFIED."RIGHT-JUSTIFIED.
V_COL = V_COL + 1.
LR_TEXT = LR_GRID_1->CREATE_TEXT(
ROW = V_ROW
COLUMN = V_COL
TEXT = V_STR ).
LR_LABEL->SET_LABEL_FOR( LR_TEXT ).
LR_CONTENT = LR_GRID_1.
CL_SALV_FORM_CONTENT=>SET( LR_CONTENT ).
V_ROW = V_ROW + 1.
V_COL = 1.
ENDLOOP.
Out Put is coming like this
Segment Amount
1 100.00
2 800000.00
3 7500.00
4 120000000.00
Total 120087500.00
Required Output is
Segment Amount
1 100.00
2 800000.00
3 7500.00
4 120000000.00
Total 120087500.00
Can any one help me how how to go ahead.
Points will be rewarded ,
Thanks in Advance
Ramesh
Edited by: RAMESH on Jun 19, 2008 9:13 AM
Edited by: RAMESH on Jun 19, 2008 9:14 AMHi All,
I Have Report in wich there is requirement of Segment Wise Summary In the Top-Of Page
Here I am Provding the Code and the o/p of the Report,
Top-of page Event
LOOP AT IT_SEG INTO W_SEG.
V_AMT = W_SEG-AMT.
V_AMT1 = V_AMT1 + W_SEG-AMT.
V_STR = W_SEG-SEGMENT1.
LR_TEXT = LR_GRID_1->CREATE_TEXT(
ROW = V_ROW
COLUMN = V_COL
TEXT = V_STR ).
WRITE: V_AMT TO V_STR." LEFT-JUSTIFIED."RIGHT-JUSTIFIED.
V_COL = V_COL + 1.
LR_TEXT = LR_GRID_1->CREATE_TEXT(
ROW = V_ROW
COLUMN = V_COL
TEXT = V_STR ).
LR_LABEL->SET_LABEL_FOR( LR_TEXT ).
LR_CONTENT = LR_GRID_1.
CL_SALV_FORM_CONTENT=>SET( LR_CONTENT ).
V_ROW = V_ROW + 1.
V_COL = 1.
ENDLOOP.
Out Put is coming like this
Segment Amount
1 100.00
2 800000.00
3 7500.00
4 120000000.00
Total 120087500.00
Required Output is
Segment Amount
1 100.00
2 800000.00
3 7500.00
4 120000000.00
Total 120087500.00
Can any one help me how how to go ahead.
Points will be rewarded ,
Thanks in Advance
Ramesh
Edited by: RAMESH on Jun 19, 2008 9:13 AM
Edited by: RAMESH on Jun 19, 2008 9:14 AM -
How to display 3 alv with top-of-page using splitter container
Hi,
I want to display 3 different alv in a single container corresponding to the 3 check boxes on selection screen.
i.e.
If user selects 1 check box only one alv should be displayed, if 2 checkboxes selected by user 2 alv should be displayed and same for 3.
I cannot use 3 different containers bcoz if second checkbox is not selected then that place remains blank. So I am using single container and using splitter container dividing it into the no of rows corresponding to the no. of checkboxs selected by user.
Now I also want to display top-of-page for each alv. Please guide me how to achieve this.
Thanks & regards,
Harshadacreate with some IF_ELSE conditions as i have done below. in my case the same things are required. if error table is there only then it will be displayed, else only output will be displayed.
* First Main Container
CREATE OBJECT obj_main1
EXPORTING
container_name = 'CC_CONTAINER'
style = cl_gui_custom_container=>ws_maximizebox.
* create top-document
CREATE OBJECT obj_dyndoc_id
EXPORTING
style = 'ALV_GRID'.
IF pr_view EQ c_x OR pr_stat EQ c_x.
* First Splitter Container
CREATE OBJECT obj_splitter1
EXPORTING
parent = obj_main1
rows = 2
columns = 1.
* Place obj_parent_html in First row First column
* for Top_of_page
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = obj_parent_html.
* Place obj_container1 in Second row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = obj_container1.
* Set the height of Top of page
CALL METHOD obj_splitter1->set_row_height
EXPORTING
id = 1
height = 24.
ELSEIF pr_email EQ c_x.
* First Splitter Container
CREATE OBJECT obj_splitter1
EXPORTING
parent = obj_main1
rows = 3
columns = 1.
* Place obj_parent_html in First row First column
* for Top_of_page
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = obj_parent_html.
* Place obj_container1 in First row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = obj_container1.
* Place obj_container2 in Second row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 3
column = 1
RECEIVING
container = obj_container2.
* Set the height of Top of page
CALL METHOD obj_splitter1->set_row_height
EXPORTING
id = 1
height = 24.
ENDIF.
Please note there is no need to create a hEADER in the container, but create it for the 1st table only which is always displayed
ags.
Edited by: ags on Nov 4, 2009 4:49 PM
Edited by: ags on Nov 4, 2009 4:50 PM -
LOGO required in ALV top of page using factory method
Hi,
I am doing an ALV using factory method of class Cl_SALV_TABLE. Can any one help me about putting a LOGO on the top of page.
Thanks in advance.
AmitavaHi,
In START-OF-SELECTION.
put form to display header
like PERFORM build_header
gr_table->display( ).
then...
in FORM
FORM build_header.
lr_grid TYPE REF TO cl_salv_form_layout_grid,
lr_logo TYPE REF TO cl_salv_form_layout_logo,
create object lr_logo.
lr_logo->set_left_content( lr_grid ).
lr_logo->set_right_logo( 'LOGO_NAME' ).
* Set the element top_of_list
gr_table->set_top_of_list( lr_logo ).
ENDFORM.
thanx. -
How do I display on-the-fly generated XML on a web page using DW CS4 Spry regions?
On a main web page I'm trying to display formatted data from an ASP page that generates XML on-the-fly from a query.
When I run the ASP page from the browser, the XML formatting of the data works. But when I run the main web page, the data doesn't display.
I'm using DW CS4 Spry regionsto display the data on the main page from the XML data generated by the ASP page. Here's the main page code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
<html>
<head>
<script type="text/javascript" src="SpryAssets/xpath.js"></script>
<script type="text/javascript" src="SpryAssets/SpryData.js"></script>
<script type="text/javascript" src="SpryAssets/SpryUtils.js"> </script>
<script type="text/javascript">var A1D1xml = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.asp", "tests/test");</script>
<title>Test XML Main</title>
</head>
<body>
<div id="A1D1xml" spry:region="A1D1xml">
<table id="A1D1">
<tr>
<th>ID</th>
<th>Last Name</th>
<th>Final Status</th>
</tr>
<tr spry:repeat="A1D1xml">
<td>{acr_id}</td>
<td>{acr_lastName}</td>
<td>{acr_final_status}</td>
</tr>
</table>
</div>
</body>
</html>
Here's the code for the page that generates the XML: A1D1ACRs_testWxmlCode.asp
<html>
<%
set objConn=server.CreateObject("ADODB.Connection")
objConn.Open application("web_test")
set rs = objConn.Execute( "SELECT acr_id, acr_lastName, acr_final_status from acr_records_grid_view where acr_changeOption = 'A1D1'")
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%>
<?xml version="1.0" encoding="utf-8"?>
<tests>
<%While (NOT rs.EOF)%>
<test>
<ID><%=(rs.Fields.Item("acr_id").Value)%></ID>
<acr_lastName><![CDATA[<%=(rs.Fields.Item("acr_lastName").Value)%>]]></acr_lastName>
<acr_final_status><![CDATA[<%=(rs.Fields.Item("acr_final_status").Value)%>]]></acr_final_s tatus>
</test>
<%
rs.MoveNext()
Wend
%>
</tests>
<%
rs.Close()
Set rs = Nothing
%>
</html>
Thanks.Thanks, but no; I'm using the correct case and folder.
With this code on the main page, The region flashes the table column header names
and the code as written for the spry repeat; then instantly disappears from the screen.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="SpryAssets/xpath.js"></script>
<script type="text/javascript" src="SpryAssets/SpryData.js"></script
<script type="text/javascript">var A1D1x = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.xml", "tests/test");</script>
<title>Test XML Main</title>
</head>
<body>
<div id="A1D1" spry:region="A1D1x">
<table id="A1D1a">
<tr>
<th>ID</th>
<th>Last Name</th>
<th>Final Status</th>
</tr>
<tr spry:repeat="A1D1x">
<td>{acr_id}</td>
<td>{acr_lastName}</td>
<td>{acr_final_status}</td>
</tr>
</table>
</div>
</body>
</html> -
Query regarding the headetand item text in a PR
hello
i have a problem in finding the table where the header and item text for a purchase requisition
Could any body help me
regards
ramaYou cant extract this Text data directly.
Its SAP Scripts.
Get the information from READ_TEXT Function module.
Enter these below values
Client -- Your client
ID -- B01
Language -- EN
Name -- PR Number
Object -- EBAN
This info stores in STXH and STXL tables.
Hope this helps.
Rammohan. -
Moving 'Logon' text From top of page to bottom?
Hi,
I'm using a Theme Greyscale #17 in my application. At the top of all my
pages I have the Company Logo at the Top Left side and a Navigation Bar
on the Top Right. But the Template puts the Users Login (i.e. JSMITH)
just to the right of the Company Logo and it looks funny there. Can somebody
explain how I put the User's login at the bottom left position of the screen?
I don't have an understanding of how to modify Themes/Templates. Thanks
for any help.
Carol
Currently:
[Company Logo]JSMITH HOME | LINKS | ADMIN | HELP | LOGOUT
I'd like it like:
[Company Logo] HOME | LINKS | ADMIN | HELP | LOGOUT
Page Regions
JSMITH
Edited by: Carol_new_to_APEX on Apr 2, 2010 10:08 AMGo to the shared components section of your application.
Click on templates
Find your default page template (There will be a tick mark near it).
Click on the template name.
I think the parts you are looking for are: #NAVIGATION_BAR# and &APP_USER.
hth,
John
Maybe you are looking for
-
I don't have the free crop option in iMovie?
Hi, I'm trying to crop my videos but I can't free crop it. There's only a "crop to fill" option instead of just "crop". Help? (iMovie 10.0.4)
-
Just installed Iphoto 6 and many photos will not import to Iphoto...
About half of my photos from one of my rolls from this Spring will not import into Iphoto6. I can open them up from my hard drive but they will not import into Iphoto. Any tips? g4 tower Mac OS X (10.3.9)
-
Will this hard drive fit in my Macbook pro?
Looking to upgrade the hard drive in my 2010 Macbook Pro. Stats are below. Model Name: MacBook Pro Model Identifier: MacBookPro6,2 Processor Name: Intel Core i7 Processor Speed: 2.66 GHz Number Of Process
-
i am using ios 4.2 8c134, i can't upgrade to any ios.. but ios 5.xx above i not try yet.. any suggestion or ideas to make sure the upgrade will work? sorry for my bad english..
-
Audio Conferencing using Cirrus?
Hi there - I'm interested in building a small website for my company's development team. This is the scenario that I would like to achieve: 1. Colleague enters website 2. Colleague presses "Connect" 3. Colleague is connected with any other collea