ALV without colors
Hi All,
Is it possible to display ALV without colors ?
If yes pls help me....
Dilip
Hi Dilip,
Try this code,
REPORT ZTEST.
TYPE-POOLS : SLIS.
DATA: BEGIN OF IT_VBAK OCCURS 0,
VBELN LIKE VBAK-VBELN,
ERDAT LIKE VBAK-ERDAT,
END OF IT_VBAK.
DATA : FLD_CAT TYPE SLIS_T_FIELDCAT_ALV,
FLD TYPE SLIS_FIELDCAT_ALV .
DATA:V_REPID LIKE SY-REPID.
START-OF-SELECTION.
V_REPID = SY-REPID.
SELECT VBELN ERDAT FROM VBAK INTO TABLE IT_VBAK.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = V_REPID
I_INTERNAL_TABNAME = 'IT_VBAK'
I_STRUCTURE_NAME =
I_INCLNAME = V_REPID
CHANGING
CT_FIELDCAT = FLD_CAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 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.
LOOP AT FLD_CAT INTO FLD.
CASE FLD-FIELDNAME.
WHEN 'VBELN'.
FLD-KEY = ' '.
MODIFY FLD_CAT FROM FLD.
ENDCASE.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
IT_FIELDCAT = FLD_CAT
TABLES
T_OUTTAB = IT_VBAK
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.
Thanks
Lakshman
Similar Messages
-
Select multple rows in ALV without pressing pressing CTRL key
Hi experts,
Is there any way that I can select multple rows in an ALV without pressing pressing CTRL key?
I am using set_table_for_first_display method for displaying the ALV.
I tried different options of sel_mode, but none of them works without the CTRL key.
Thanks,
Mohit.Hi,
You can add checkbox using ALV grid display.
Call your ALV grid as below. Pass 'wa_layout' with 'WA_LAYOUT-BOX_FIELDNAME' as your selection column name.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'F_GUI_STATUS'
I_CALLBACK_USER_COMMAND = 'F_USERCOMMAND'
I_GRID_TITLE = TEXT-026
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = I_FIELDCAT
TABLES
T_OUTTAB = I_OUTTAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Check below link for more help.
[http://www.sapfans.com/forums/viewtopic.php?t=40968]
Thanks,
Archana -
How to delimit leading zero in vendor number in OO ABAP ALV without using conversion routine
Hi,
How to delimit leading zero in OO ABAP ALV without using conversion routine, because I have many fields like vendor, customer, material number etc..
How to address this leading zero.
I appreciate your quick response.
Regards,
Nalini S.Hi Nalini,
Delimiting leading zeros in fields has to be done via conversion routines, as suggested by Vadamalai you need to pass on the conversion routine name in you field catalog variable.
Now as to which object oriented approach are you using to have your table contents display in ALV as it matters -
Using FACTORY method of CL_SALV_TABLE class, or
Using SET_TABLE_FOR_FIRST_DISPLAY method of CL_GUI_ALV_GRID class.
Using FACTORY method of CL_SALV_TABLE will do your own work, no need to apply any conversion routines or set long/medium/short text for columns as we do in field catalogs!
Cheers,
Varun -
Why did Adobe see fit to eliminate, "Print Without Color Mangement"?
Why did Adobe see fit to eliminate, "Print Without Color Mangement", and when are they going to restore it? None of their workarounds is really adequate when printing through a rip. Prior to CS5 it was all so simple. Now, I keep CS4 onboard just for printing. Is there actually a good rationale for the elimination of such a useful function?
Adobe was forced to remove the NCA mode because the current OS X Mac print pipeline and print drivers quit supporting it. Photoshop CS5 & 6 and LR 3 & 4 can't send unmanaged data to the Mac pipeline; it'es either application managed color or printer managed color and iehter case, the data gets modified by the pipeline–which means the current apps can't send data with NCM.
The printer utility can do a workaround to do so.
Note, this isn't yet an issue on Windows but for cross platform uniformity, it was removed there as well. So, if you want to yell at somebody, go yell at Apple...
And no, it ain't coming back... -
hi ,
can one send me program for alv cell color with help of function modules
kiranHi Kiran .
<b>1.Cell Color.</b>
While Building Fieldcatalog ,there is one field called
EMPHASIZE.You have to set like this .
i_field-emphasize = 'C26'.
<b>2.ROW COLOR.</b>
Have a look at this example .
<b>a</b>.Define one variable COLOR in ur main ITAB.
<b>b</b>.Fill it .
<b>c</b>.Pass this info.
w_layout-info_fieldname = 'COLOR'.
<b>d</b>. display it .
*& Report ZGRID_COLOR *
REPORT zgrid_color .
TYPE-POOLS slis.
DATA: BEGIN OF i_pa0001 OCCURS 0,
<b> color(3) TYPE c,</b>
pernr TYPE pa0001-pernr,
subty TYPE pa0001-subty,
END OF i_pa0001.
DATA :i_field TYPE slis_t_fieldcat_alv,
w_field LIKE LINE OF i_field,
w_layout TYPE slis_layout_alv.
START-OF-SELECTION .
PERFORM get_data.
PERFORM fieldcat.
PERFORM layout_build.
PERFORM dispaly .
*& Form fieldcat
FORM fieldcat .
CLEAR :w_field,i_field[].
w_field-fieldname = 'PERNR'.
w_field-tabname = 'I_PA0001'.
w_field-seltext_m = 'PERNR'.
APPEND w_field TO i_field.
CLEAR w_field.
w_field-fieldname = 'SUBTY'.
w_field-tabname = 'I_PA0001'.
w_field-seltext_m = 'SUBTY'.
APPEND w_field TO i_field.
CLEAR w_field.
ENDFORM. " fieldcat
*& Form dispaly
FORM dispaly .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = 'ZGRID_COLOR'
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
<b> is_layout = w_layout</b>
it_fieldcat = i_field
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = i_pa0001
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.
ENDFORM. " dispaly
*& Form get_data
FORM get_data .
SELECT pernr subty
FROM pa0001
INTO CORRESPONDING FIELDS OF TABLE i_pa0001
UP TO 10 ROWS.
LOOP AT i_pa0001.
IF sy-tabix GT 5.
<b> i_pa0001-color = 'C51'.</b>
MODIFY i_pa0001 INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDFORM. " get_data
*& Form layout_build
FORM layout_build .
<b> w_layout-info_fieldname = 'COLOR'.</b>
ENDFORM. " layout_build
I hope it helps u .
<b>Thanks,
Venkat.O</b> -
HP CLJ 3800 prints without color
The HP 3800 was printing perfectly until I changed from Win XP to Win 7.The printer is operated as a home network printer. After installation of the driver (as chosen by the Win 7 installation system) it then printed only without color. Since HP apparently no longer updates drivers for older printers, I assumed it was a driver problem. However since it prints only B/W when operated at the printer menu itself - say by printing the diagnostics page from the pinter keyboard - it has only just dawned on me that it cannot be a driver problem. Attempts so far: The firmware has been replaced with a 2014 version.A cold reset has been performed.The black toner cartridge has been replaced - it was almost finished anyway. The other cartridges are more than half full.All cartridges have been taken out and put back.The formatter assembly has been pulled out and put back firmly. These measures produced no change. An engine test was performed and the output sheet did print colored lines - but still no color otherwise. It is an old printer but still produced beautiful output until this hiccup. Any advice on what to do next would be appreciated.
Further to this post. Printing of color is intermittent. I turn the printer on one day and there is color, another day no color. Today the first printing had color, subsequent printing no color. Nothing was changed in the configuration. Would one of the HP experts just point me in the right direction. PLEASE.
-
Photobook cannot printed. FIle sent contains images shift and without color
I have tried to buy a photobook, but everytime that I sent the order I always got an e-mail telling me that the order cannot be printed because:
"Upon shipment of your order, there was an error and the image file can not be printed. The file received contains shifted images or without color."
They gave me the following suggestions:
a) to update my MacOSX software, but I got already Lion.
b) to update iPhoto software, but I got iPhoto '11 (version 9.1.5) and I cannot find new version.
I tried to make the .pdf preview sometimes I can see the problem too, but sometimes the file looks perfect, so I have placed the order but without any luck.
I have contacted the Italian Apple Assistance Center they told me that it could be due to the effects given to the pictures, but I didn't use any strange effects.
To give you more details I have used a Canon EOS500D camera
Honestly I am facing this problem since I have upgrade my MacOSX to Lion.
Any suggestions?Hello,
Are you using a macbook air?
I have the same problem, but only on the air and not on the imac.
I already tried two different airs, both have the same problem.
I just started a similar thread: https://discussions.apple.com/thread/3354990?tstart=0
Best regards
Ben -
How do I print without color management in CS6?
EVery time I print a test target for color profiling, I open CS4 so that I can print with no color management. I can't figure out how to do it in CS6. I must be missing something obvious, but I just can't find the option to print without color management anywhere in the CS6 driver.
As someone who prints Digital Negatives (there are quite a few of us out there now), the ability to print without color management is a huge liability. Why would you take that out of Photoshop and create a completely seperate application to do this? From inside photoshop, I can print with registration marks (necessary for multi-negative prints).
So now there's Lightroom to manage the locations, open up Photoshop to apply curves and then figure a way to add registration marks to the file itself, the print from another app altogether.
Even just the ability to add profiles (AdobeRGB tagged file, then print with photoshop manage color, AdobeRGB profile) works in this situation.. but for some reason.. you've decided to pick and choose which profiles we can and can't use.
... unhappy with CS6
jim -
ALV Tree - Color Specific Column based on value in that cell?
Hi Forums,
I have searched the forum and I am unable to find the answer to my question.
I am using an ALV tree and I would like to color a cell RED is the value in the cell is negative.
I have set my field catalog to many different emphasize numbers and no luck either?
CLEAR ls_fieldcatalog.
ls_fieldcatalog-fieldname = 'ORG_TXT'.
ls_fieldcatalog-coltext = text-d02.
ls_fieldcatalog-scrtext_m = text-d02.
ls_fieldcatalog-col_pos = 2.
ls_fieldcatalog-outputlen = '30'.
ls_fieldcatalog-no_out = 'X'.
ls_fieldcatalog-emphasize = 5.
APPEND ls_fieldcatalog TO et_fieldcatalog.
I am using
gr_alv_tree_control TYPE REF TO cl_gui_alv_tree
as my class to display my tree and I have found no methods that would set the color in there either?
What else could be checked?To those interested, i was able to color the TEXT of a First coloumn of the TREE. Using this code:
That said it will not work without BOTH
ls_layout_item-fieldname = gr_alv_tree_control->c_hierarchy_column_name.
ls_layout_item-style =
cl_gui_column_tree=>style_intensifd_critical.
IF ls_vip_display-vip_diff_tot > 0.
ls_layout_item-fieldname = gr_alv_tree_control->c_hierarchy_column_name.
ls_layout_item-style =
cl_gui_column_tree=>style_intensifd_critical.
ENDIF.
IF ls_vip_display-vip_diff > 0.
ls_layout_item-style =
cl_gui_column_tree=>style_intensifd_critical.
ENDIF.
ls_layout_item-t_image = '@GZ@'.
ls_layout_item-style =
cl_gui_column_tree=>style_intensifd_critical.
APPEND ls_layout_item TO lt_layout_item.
* add leaf nodes
CALL METHOD gr_alv_tree_control->add_node
EXPORTING
i_relat_node_key = lv_parent_id
i_relationship = cl_gui_column_tree=>relat_last_child
i_node_text = lv_node_text
is_outtab_line = ls_vip_display
it_item_layout = lt_layout_item
is_node_layout = ls_node_layout
IMPORTING
e_new_node_key = lv_new_key
EXCEPTIONS
relat_node_not_found = 1
node_not_found = 2
OTHERS = 3.
Anybody else who can shed some light to why both are needed OR possibly how I can change the position of the colored text to a different cell?
Edited by: Keith Warnock on Feb 9, 2011 6:48 PM -
How can I print without color?
How can I print without my color cartridge in my printer, I have a HP Deskjet 3510. I cant find only print in black in white in the setting on my printer.
Hi,
Actually we call it as Grayscale. But Grayscale is a mixture of all colors. If you only wish to print Black & White only, you need to set "Black Ink only" as default. Please try:
The setup may vary from printer to printer but basically (for Windows):
(a) Double click printer icon on desktop,
(b) Click Set Preferences,
(c) Click Advanced,
(d) Select "Black Ink only" for Print in Grayscale
(e) Click Ok/Apply ...
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
How to Hide rows in ALV without affecting total sum at the end of table?
Hi,
I need some help in hiding particular rows in an ALV Grid without affecting the total sum at the end of the table. I am trying to hide the rows that have negative quantities, but I still need those values so that the user can still compute for the total sums. Can anyone help? Thanks.
JosephHi,
Hopw this way you can hide the rows in the GRID.
DATA:
ld_column TYPE lvc_fname,
ld_hide TYPE abap_bool.
FIELD-SYMBOLS:
<ls_entry> TYPE any,
<ld_fld> TYPE any.
ld_column = 'COL_1'. " column which you want to suppress if everything is zero
ld_hide = abap_true. " = 'X'; default hide column
LOOP at <gt_outtab> ASSIGNING <ls_entry>.
ASSIGN COMPONENT (ld_column) OF STRUCTURE <ls_entry> TO <ld_fld>.
IF ( <ld_fld> > 0 ).
ld_hide = abap_false. " display column because at least single value > 0
EXIT. " leave LOOP
ENDIF.
ENDLOOP.
READ TABLE gt_fcat INTO ls_fcat
WITH KEY fieldname = ld_column.
IF ( syst-subrc = 0 ).
ls_fcat-no_out = ld_hide.
MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.
ENDIF.
hop you will get the total with for those columns too.
Regards,
Madhavi -
hi gurus,
I have a ALV Display report with Sub totals at two levels.
plant wise and category wise
plant1
category1
subtot
category2
subtot
subtot
plant2
category1
subtot
category2
subtot
subtot
Now the subtotals are being displayed for both the plant wise and category wise, but they are displayed with the same row color.
so, now i want these two subtotal rows with different ROW COLORS.
so where should i change for acheving the above.
thanks in advance.
chaitanyaHi,
Check this coding it will help you alot and also check the TCode LIBS & BIBS u can find more examples here
code&----
*& Report ZALVCOLOR *
REPORT ZALVCOLOR .
DATA : mara TYPE mara. " General Material Data
TYPE-POOLS: slis. " ALV Global types
FIELD-SYMBOLS :
<data> TYPE table. " Data to display
SELECT-OPTIONS :
s_matnr FOR mara-matnr. " Material number
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '50' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
v_1 = 'Maximum of lines to display'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
Form f_read_data
FORM f_read_data.
FIELD-SYMBOLS :
<field> TYPE ANY,
<field2> TYPE ANY,
<header> TYPE ANY,
<header2> TYPE ANY,
<lt_data> TYPE table. " Data read from DB
DATA:
lp_struct TYPE REF TO data,
lp_struct2 TYPE REF TO data,
lp_table TYPE REF TO data, " Pointer to dynamic table
lp_table2 TYPE REF TO data, " Pointer to dynamic table
ls_lvc_cat TYPE lvc_s_fcat,
lt_lvc_cat TYPE lvc_t_fcat. " Field catalog
First column
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'MATNR'.
ls_lvc_cat-ref_table = 'MARA'.
APPEND ls_lvc_cat TO lt_lvc_cat.
2nd column
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'MAKTX'.
ls_lvc_cat-ref_table = 'MAKT'.
APPEND ls_lvc_cat TO lt_lvc_cat.
3rd column
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'MATKL'.
ls_lvc_cat-ref_table = 'MARA'.
APPEND ls_lvc_cat TO lt_lvc_cat.
Create 1st internal table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = lt_lvc_cat
IMPORTING ep_table = lp_table.
ASSIGN lp_table->* TO <lt_data>.
Read data into 1st internal table
SELECT matnr maktx matkl
INTO TABLE <lt_data>
FROM v_matnr
UP TO p_max ROWS
WHERE matnr IN s_matnr.
Create 2nd internal table
Checkbox
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'CHECKBOX'.
APPEND ls_lvc_cat TO lt_lvc_cat.
Table color
CLEAR ls_lvc_cat.
ls_lvc_cat-fieldname = 'TABCOLOR'.
ls_lvc_cat-ref_table = 'CALENDAR_TYPE'.
ls_lvc_cat-ref_field = 'COLTAB'.
APPEND ls_lvc_cat TO lt_lvc_cat.
Create 2nd internal table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = lt_lvc_cat
IMPORTING ep_table = lp_table2.
ASSIGN lp_table2->* TO <data>.
Create structure = structure of the 1st internal table
CREATE DATA lp_struct LIKE LINE OF <lt_data>.
ASSIGN lp_struct->* TO <header>.
Create structure = structure of the 2nd internal table
CREATE DATA lp_struct2 LIKE LINE OF <data>.
ASSIGN lp_struct2->* TO <header2>.
Move data from 1st internal table --> 2nd internal table
LOOP AT <lt_data> ASSIGNING <header>.
DESCRIBE TABLE lt_lvc_cat.
CLEAR <header2>.
Fill the internal to display <data>
DO sy-tfill TIMES.
READ TABLE lt_lvc_cat INTO ls_lvc_cat INDEX sy-index.
For each field of lt_lvc_cat.
ASSIGN COMPONENT ls_lvc_cat-fieldname OF STRUCTURE <header>
TO <field>.
IF sy-subrc NE 0. EXIT .ENDIF.
ASSIGN COMPONENT ls_lvc_cat-fieldname OF STRUCTURE <header2>
TO <field2>.
IF sy-subrc NE 0. EXIT .ENDIF.
<field2> = <field>.
ENDDO.
Modify color
ASSIGN COMPONENT 'TABCOLOR' OF STRUCTURE <header2>
TO <field2>.
IF sy-subrc EQ 0.
PERFORM f_modify_color USING 'MAKTX' <field2>.
PERFORM f_modify_color USING 'MATKL' <field2>.
ENDIF.
APPEND <header2> TO <data> .
ENDLOOP.
ENDFORM. " f_read_data
Form F_DISPLAY_DATA
FORM f_display_data.
Macro definition
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-down = 'X'.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_layout TYPE slis_layout_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv. " Field catalog
Build Fieldcatalog - First column
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-ref_tabname = 'MARA'.
ls_fieldcat-key = 'X'.
APPEND ls_fieldcat TO lt_fieldcat.
Build Fieldcatalog - 2nd column
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MAKTX'.
ls_fieldcat-ref_tabname = 'MAKT'.
APPEND ls_fieldcat TO lt_fieldcat.
Build Fieldcatalog - 3rd column
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATKL'.
ls_fieldcat-ref_tabname = 'MARA'.
APPEND ls_fieldcat TO lt_fieldcat.
Layout
ls_layout-zebra = 'X'.
ls_layout-colwidth_optimize = 'X'.
ls_layout-box_fieldname = 'CHECKBOX'.
ls_layout-coltab_fieldname = 'TABCOLOR'.
m_sort 'MATNR'. " Sort by creation date
Display data
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = <data>.
ENDFORM. " F_DISPLAY_DATA
Form F_modify_color
FORM f_modify_color USING u_fieldname TYPE lvc_fname
ut_tabcolor TYPE table.
DATA:
l_rnd_value TYPE datatype-integer2,
ls_tabcolor TYPE lvc_s_scol.
Random value
CALL FUNCTION 'RANDOM_I2'
EXPORTING
rnd_min = 0
rnd_max = 3
IMPORTING
rnd_value = l_rnd_value.
CLEAR ls_tabcolor.
ls_tabcolor-fname = u_fieldname.
CASE l_rnd_value.
WHEN 0.
ls_tabcolor-color-col = 1. " Blue.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
WHEN 1.
ls_tabcolor-color-col = 3. " Yellow.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
WHEN 2.
ls_tabcolor-color-col = 5. " Green.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
WHEN 3.
ls_tabcolor-color-col = 6. " Red.
ls_tabcolor-color-int = 0.
ls_tabcolor-color-inv = 0.
ENDCASE.
INSERT ls_tabcolor INTO TABLE ut_tabcolor.
ENDFORM. " F_MODIFY_COLOR[/code]
Regards,
Raj. -
ALV with colored cell exporting to Excel
Hi all,
I have an ALV-Table in my webdynpro appliation. There are some dropdownbykey fields in the alv and some cells are colored.
After export to excel the colored cells are no more colored.
Is there a possibility to export the color too.
Best regards
MarcusHave you found a solution to this issue? I am searching for the same.
-
Subtotal in ALV without sort technique to maintain heirarchy of records.
Hello Abappers,
In my functionality, i want to perform subtotals of the expenditures of a particular SBU. So in the ALV under each Business Unit, there are various Expense types and under them various SBU's
Heirachy is as follows :
BU - > Expense Type - > SBU
So when i display all this in ALV,
column A is BU
column B is expense types under one BU
column C is SBU's under one expense type
column D is the amount expenditure of SBU
I want a subtotal of amounts spend under one expense type. i.e sum of all SBU expenditure and then total of all expenditure. Total i can get by do_sum in fieldcatalog.
But for the subtotal, i need to use sort criteria, but if i sort entire thing gets sorted and the heirarchy is lost.
Is there any other way of performing subtotal without sorting?
Regards.hi.
i think before showing the itab in alv , u should also calculate the subtotals in it.and then sort it out and send to alv. -
Hello,
Does anyone know how I can change the color of a row in ALV? Like the zebra from in standard R/3.
thanks,
VishalHi,
see <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/b6/b7bc68306049bd8500362ce52b6def/frameset.htm">here</a> (alternating)
Regards, Heidi
Maybe you are looking for
-
Just upgraded my daughters computer (XP) to 9.3.2. When I try and print either pdfs or web pages I get an error messaging stating that the program "must be closed". However Word prints just fine. Anyone else have these problems, or has anyone solv
-
Dear Experts, My query is how can we make we down payment correlate with credit limit set in FD32. Is there a standard way to do so?
-
Applying presets causes filter settings to get corrupted if process version updated
I have an ongoing problem with Lightroom 5.7 including earlier versions. The problem occurs when editing photos which use previous process versions (ie, 2010). My presets all have the Current Process version checked (as they should). Whenever I ap
-
Hi all, I want to change from a Text Field to a Select List item. The list items should consist of 'Buyer' from a Linked_table in another Db. Do I have to create a LOV (List of Value) or can I do it in another way? //Lasse
-
The hold button is not working. It is stuck on lock. How can I fix this?
My ipod Nano 5th Generation is locked and when I toggle it to unlock nothing happens. Any ideas on how to fix this since the lock makes it unresponsive.