How to display horizontal line in top-of-page by using object oriented ALV?
How to display horizontal line in top-of-page by using object oriented ALV.
I am created top-of-page in object oriented alv.
But not be successes in showing horizontal line in it.
Can any one pls give solution for this..
Thanks and regards..
Hi
Try like this
data: gt_list_top_of_page type slis_t_listheader. " Top of page text.
Initialization.
perform comment_build using gt_list_top_of_page[].
form top_of_page.
* Note to self: the gif must be loaded into transaction OAOR with
* classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.
* I Loaded NOVALOGO2 into system.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
* I_LOGO = 'NOVALOGO2'
* i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = gt_list_top_of_page.
endform. " TOP_OF_PAGE
form comment_build using e04_lt_top_of_page type slis_t_listheader.
data: ls_line type slis_listheader.
clear ls_line.
ls_line-typ = 'A'.
ls_line-info = 'Special'(001).
fgrant = xgrant.
concatenate ls_line-info fgrant
'Stock Option Report to the board'(002)
into ls_line-info separated by space.
condense ls_line-info.
append ls_line to e04_lt_top_of_page.
endform. " COMMENT_BUILD
Use following syntex for footer print in alv:
* For End of Page
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
* For End of Report
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
check this link
http://abapprogramming.blogspot.com/
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5dc3e690-0201-0010-1ebf-b85b3bed962d
Changing width of a custom container dynamically
Display Page numbers in ALV
Insert picture in selection screen.
Logo in OO ALV Grid
Reward all helpfull answers
Regards
Pavan
Similar Messages
-
How to capture index/row no of row in table using object oriented alv.
i have a table with many fields. i have an alv grid table displayed using object oriented alv. when i double click on a record, i call another screen. there i want to display the record number. eg, if i doubleclick on the third row, i will go to next screen and display 3 there.
please let me know how it is done as it is urgent.
thanks in advance.Hi,
Use the following code to get rowno.
CLASS lcl_grid_events DEFINITION DEFERRED.
DATA:
grid1_events TYPE REF TO lcl_grid_events.
CLASS lcl_grid_events DEFINITION.
PUBLIC SECTION.
METHODS:
dbclk
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row
e_column
es_row_no.
ENDCLASS. "lcl_grid_events DEFINITION
CLASS lcl_grid_events IMPLEMENTATION.
METHOD dbclk.
*access e_row variable, which contains the record no.
ENDMETHOD. "dbclk
ENDCLASS. "lcl_grid
write the following code after method call of set_table_for_first_display
CREATE OBJECT grid1_events.
SET HANDLER grid1_events->dbclk
FOR grid1.
reward point if useful. -
How to display an image on the HTML page by using applet
Dear friends,
I am now writing an java applet, I want to display an image on the HTML page, and tried the following commands:
{color:#ff00ff}{color:#000000}Image map; //put in the class definition
map=getImage(getCodeBase(),"hhh.gif"); //put in the function of init()
g.drawImage(map,0,300,this); //put in the function of paint(){color}
{color}
However, when I run it, the image wasn't displayed at all.
I hope who guys ever come across this problem could help me to solve it. Thank you in advance!
HawaiiHi,
I am no expert on Images
but
from personal exp.
are you sure that map actually contains the image?
try using
ImageIcon ii = ImageIcon(String name);
map = ii.getImage();I saw a tutorial on images i think on sun
where they use ImageIcon to load the image -
How to display large text document (2-3 pages) without using the webpage widget?
Hello all,
We are designing this online course and our project leader asked us to try to include the course materials/contents within the Captivate file as much contents as we can. However, we have several "big" text-based files to display, such as syllabus, standards, project templates, etc.
I know that the webpage widget created by Jim Leichliter can "embed" web pages and PDF files into Captivate. However, as mentioned before, our project leader wants everything to reside within Captivate. That means that I can't use the web page widget to "quoate" an external PDF file.
I also tried the extended Text Entry Area widget, but couldn't get it work. I would really appreciate it if someone could help me with this.
Thank you very much.Would it be possible to create a table that had one row for every week? If so you could do something like this:
DESC ALL_WEEKS
NAME Null? Type
WEEKENDING DATE
SELECT A.CUST,
B.WEEKENDING,
SUBSTR(MAX(TO_CHAR(A.WEEKENDING,'YYYYMMDD')||A.STATUS),9,1)
FROM YOUR_TABLE A,
ALL_WEEKS B
WHERE B.WEEKENDING <= A.WEEKENDING
GROUP BY A.CUST,
B.WEEKENDING; -
How to draw horizontal line at the end of table for multiple line items
Dear Experts,
Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
Thanks
Ramesh ManoharanHi
I tried as per your logic but it is not solving my problem . when i am gone to table painter it is showing line type 1 and line type 2
is below format.. if u see here line type 1 bottom line and line type 2 top line both are same.. so how to avoid this ?
line type 1
line type 2 -
How to display 3 lines in an AnyChart candlestick flash chart ?
Hi,
I have a nice Candlestick flash chart and I am using Anychart 5.1.2. i would like to display 3 horizontal bar lines on this chart.
The values on the y axis on these 3 bar lines are contained into 3 items. Do you have an idea on how to display these lines with the XML ? Here is the XML existing.
<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
<root>
<type>
<chart type="Candlestick">
<animation enabled="no"/>
<hints auto_size="yes">
<text><![CDATA[{NAME}
Niveau maxi: {HIGH}
Niveau moyen: {OPEN}
Niveau mini: {LOW}]]>
</text>
<font type="Verdana" size="10" color="0x000000" />
</hints>
<names show="yes" width="150" placement="chart" position="bottom" >
<font type="Verdana" size="10" color="0x000000" />
</names>
<values show="no" prefix="" postfix=" m ngf" decimal_separator="." decimal_places="0" />
<arguments show="no" />
<candlestick_chart>
<bulls>
<background enabled="yes" color="White" />
</bulls>
<bears>
<background enabled="yes" color="Black" />
</bears>
</candlestick_chart>
</chart>
<workspace>
<background enabled="yes" type="solid" color="0xffffff" alpha="0" />
<base_area enabled="no" />
<chart_area enabled="yes" x="80" y="50" width="670" height="280" deep="0">
<background enabled="no"/>
<border enabled="yes" size="1"/>
</chart_area>
<name text="&P8_SITE_AFF. - Niveau du &P8_DATE_DEBUT. au &P8_DATE_FIN. - Pas de temps : &P8_TRUNC. (DD : Jour, HH24 : Heure, MI : Minute)" >
<font type="Verdana" size="14" color="0x000000" align="center" />
</name>
<x_axis name="Niveau min : &P8_NIVEAU_MIN. m ngf - Niveau max : &P8_NIVEAU_MAX. m ngf - Niveau moyen : &P8_NIVEAU_MOYEN. m ngf" smart="yes" position="center_bottom" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</x_axis>
<y_axis name="Niveau" smart="yes" position="left_center" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</y_axis>
<grid>
<values />
</grid>
</workspace>
<legend enabled="no"/>
</type>
#DATA#
</root>Thank you for your kind help.
ChristianHi,
I have a nice Candlestick flash chart and I am using Anychart 5.1.2. i would like to display 3 horizontal bar lines on this chart.
The values on the y axis on these 3 bar lines are contained into 3 items. Do you have an idea on how to display these lines with the XML ? Here is the XML existing.
<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
<root>
<type>
<chart type="Candlestick">
<animation enabled="no"/>
<hints auto_size="yes">
<text><![CDATA[{NAME}
Niveau maxi: {HIGH}
Niveau moyen: {OPEN}
Niveau mini: {LOW}]]>
</text>
<font type="Verdana" size="10" color="0x000000" />
</hints>
<names show="yes" width="150" placement="chart" position="bottom" >
<font type="Verdana" size="10" color="0x000000" />
</names>
<values show="no" prefix="" postfix=" m ngf" decimal_separator="." decimal_places="0" />
<arguments show="no" />
<candlestick_chart>
<bulls>
<background enabled="yes" color="White" />
</bulls>
<bears>
<background enabled="yes" color="Black" />
</bears>
</candlestick_chart>
</chart>
<workspace>
<background enabled="yes" type="solid" color="0xffffff" alpha="0" />
<base_area enabled="no" />
<chart_area enabled="yes" x="80" y="50" width="670" height="280" deep="0">
<background enabled="no"/>
<border enabled="yes" size="1"/>
</chart_area>
<name text="&P8_SITE_AFF. - Niveau du &P8_DATE_DEBUT. au &P8_DATE_FIN. - Pas de temps : &P8_TRUNC. (DD : Jour, HH24 : Heure, MI : Minute)" >
<font type="Verdana" size="14" color="0x000000" align="center" />
</name>
<x_axis name="Niveau min : &P8_NIVEAU_MIN. m ngf - Niveau max : &P8_NIVEAU_MAX. m ngf - Niveau moyen : &P8_NIVEAU_MOYEN. m ngf" smart="yes" position="center_bottom" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</x_axis>
<y_axis name="Niveau" smart="yes" position="left_center" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</y_axis>
<grid>
<values />
</grid>
</workspace>
<legend enabled="no"/>
</type>
#DATA#
</root>Thank you for your kind help.
Christian -
How To Print Field Value in TOP-OF-PAGE During Line Selection.
How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.
(If my memory serves me well (not used for long time ago)
Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE: / 'Interactive Report &3'.
WRITE record-vbeln TO sy-tvar3.
Regards,
Raymond -
How to draw horizontal line in smartform after end of the all line items
Hi Friends,
I am working on the smartform. I have created TABLE node in Main window.
i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
Could you please help me how to resolve this issue.
FYI: I tried with the below two options. But no use.
1. desinged footer area in the table node of the main window.
2. tried with uline and system symbols.
please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
this is very urgent.
Thanks in advance
Regards
RaghuHello Valter Oliveira,
Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
Could you please tell me how to insert blank line text.
1 - in your table, create a line type with only one column, with the same width of the table
2 - in table painter, create a line under the line type
3 - insert a blank line text in the footer section with the line type you have created. -
How to give colors to the top-of-page in ALV List Display
how to give colors to the top-of-page in ALV List Display....
Check this blog.........
It provides your required output...........
/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
See the point 7 for complete code...
Regards,
Pavan -
How to insert horizontal line dynamically after every line item in sapscrip
Hi All,
I have to insert a horizontal line after every new item in sap script.
How to do this .
In some material there is2 line item or in other line item it ay be more .
How to insert horizontal line dynamically after every line item
Point will be rewarded
Regards
NirajHi Niraj,
You can get your work done by keeping the horizontal line (&ULINE&) after all the item level fields, in this case once each item line is written you will get a horizontal line.
In case you have different fields for the item lines which are optional (not printed every time) then you can have them in an IF....ENDIF condition and below the endif use a horizontal line.
Some thing like this:
/E ITEM_HEADER
IL <TI>Item,,Material,,Description</>
IP <TI>,,,,Quantity,,,,Price,,Price unit,,,,,,Value</>
/ &ULINE(71)&
Let me know if this helps, else please describe your problem with an example.
Luck. -
How to display 2 lines of fieldcat in alv
hi,all.
I wonder how to display 2 lines of fieldcat in alv,no matter grid,list ,oo. whatever.
thanks in anvance.Hi,
it's only possible in alv-list (3 lines).
A. -
How to display multi line headings in procedural alv report
Hi experts,
How to display multi line heading in alv( procedural alv report) report.
some columns single line and some columns multi line in the same report.
ex:
solvent consumed solvent recovered
fresh | recovery recovery | spent batch no storage
I am using procedural alv .pls give me idea.Hi Ram,
Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
Thanks,
Duy -
How to display horizontally to vertically column in oracle
Dear All
How to display horizontally to vertically column in oracle,Please give me Sol. ASAPSunil,
Which column is the sal column? I canât see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you canât build sums on string columns. If you want to build sums in an updateable report / tabular form, then donât use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
Regards,
Marc -
Print Apps won't print with C510a eStation. Prints thin line at top of page.
My C510a eStation printer will not print using the Print Apps. It just prints a thin line at top of page. Everything works fine until I print.
All other print functions work. It prints from computer via WiFi. It prints when I send an email to it. It copies via the Zeen. It just won't print using the Print Apps.
Does anyone else have this problem? What is the solution?
12/23/2010 3:00PM. I just got off the phone with an HP engineer. She said that the eStation is still in the TESTING phase and to call to report problems so they can improve the product. (I would have thought the product would have been fully tested before being released to the public!)
She had me reset the Zeen display by holding down the volume keys while powering up. This erased everything that had been done on the Zeen by me and resulted in no HOME screens, which will have to be set up by me. The only app at the bottom of the blank home page was Yahoo!. Even the printer app was missing. I had to move it from the app tray to the home page. Now, I have to spend hours, again, setting up the Zeen.
After the reset, the printer apps seem to work now. The Zeen will copy using the printer app. My computer still seems able to print and scan to/from the eStation.
The eStation C510a eStation printer and Zeen display are very exciting. However, they are not for someone not willing to spend the time to get it to work properly. If you have a cell phone, be prepared to use up a lot of minutes while on support.
The HP engineer said that it will soon have a new release of Android operating on the Zeen which will allow it to be faster.
This question was solved.
View Solution.I have decided to return this printer to the store as it just has too many problems. HP has essentially told me they will not issue updates to solve the problems. I hate this, as I really loved the product.
-
In alv report , how to reserve 20 lines from beginning of page
hi experts
in alv report , how to reserve 20 lines from beginning of page.
regards
subhasis.If by reserve you mean should not move on scrolling then make them KEY from fieldcatalog.
But I think maximum of 10-12 can be handled by that.
Regards,
Amit
Reward all helpful replies.
Maybe you are looking for
-
I can't copy my old iPhoto library from a external HD to my new mac?
Hi. I just bought a new mac and want to have all my old iphoto pictures from my old mac into my new iPhoto library. I've tried to copy the old iPhoto library into a external HD(works fine), but the problem is that I can't copy it out from the externa
-
[SOLVED] errors with fdisk and cryptsetup; is my drive going bad?
I'm having issues with re-formatting an external hard drive using dm-crypt. It was previously formatted with TrueCrypt/NTFS, which I used as a shared backup drive between Windows and Arch. At some point, it stopped being able to mount, which I attrib
-
How can I import schema to a different tablespace in a new database?
Hi, I want to transport a schema "abc", which is on 'USERS" tablespace in the old database, to a new database using Data Pump. But on the new server, I want it on a different tablespace, say "TEST". How can I do that? I tried the following but it doe
-
L7600 printer driver does not install on Windows 8.1 HP Pavilion x2
I am trying to install the full package on my laptop. I get to the point where it is trying to execute something in this folder- C:\Users\Winston\AppData\Local\Temp\7zS0EB0\setup\devicediscovery and I get an error message above.
-
How do I turn off the iPhone dial pad tones
I Have the dial pad tones turned off before the update now it's loud how do I turn them off