REUSE_ALV_HIERSEQ_LIST_DISPLAY without colors

Hi,
I'm printing a list with REUSE_ALV_HIERSEQ_LIST_DISPLAY but I don't want the headers coloured because we need to print it in a Black and white printer...
Is it possible??
Thanks!

Hai.
check this example.
REPORT ZALV5_OBJECTS.
TABLES : EKKO.
TYPE-POOLS : SLIS.
TYPES : BEGIN OF TY_EKKO,
EBELN TYPE EKPO-EBELN,
EBELP TYPE EKPO-EBELP,
STATU TYPE EKPO-STATU,
AEDAT TYPE EKPO-AEDAT,
MATNR TYPE EKPO-MATNR,
MENGE TYPE EKPO-MENGE,
MEINS TYPE EKPO-MEINS,
NETPR TYPE EKPO-NETPR,
PEINH TYPE EKPO-PEINH,
END OF TY_EKKO.
DATA: IT_EKKO TYPE STANDARD TABLE OF TY_EKKO INITIAL SIZE 0,
IT_EKPO TYPE STANDARD TABLE OF TY_EKKO INITIAL SIZE 0,
IT_EMPTYTAB TYPE STANDARD TABLE OF TY_EKKO INITIAL SIZE 0,
WA_EKKO TYPE TY_EKKO,
WA_EKPO TYPE TY_EKKO.
DATA: OK_CODE LIKE SY-UCOMM, "OK-Code
SAVE_OK LIKE SY-UCOMM.
*ALV data declarations
DATA: FIELDCATALOG TYPE LVC_T_FCAT WITH HEADER LINE.
DATA: GD_FIELDCAT TYPE LVC_T_FCAT,
GD_TAB_GROUP TYPE SLIS_T_SP_GROUP_ALV,
GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
*ALVtree data declarations
CLASS CL_GUI_COLUMN_TREE DEFINITION LOAD.
CLASS CL_GUI_CFW DEFINITION LOAD.
DATA: GD_TREE TYPE REF TO CL_GUI_ALV_TREE,
GD_HIERARCHY_HEADER TYPE TREEV_HHDR,
GD_REPORT_TITLE TYPE SLIS_T_LISTHEADER,
GD_LOGO TYPE SDYDO_VALUE,
GD_VARIANT TYPE DISVARIANT.
*Create container for alv-tree
DATA: GD_TREE_CONTAINER_NAME(30) TYPE C,
GD_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
*Includes
*INCLUDE ZDEMO_ALVTREEO01. "Screen PBO Modules
*INCLUDE ZDEMO_ALVTREEI01. "Screen PAI Modules
*INCLUDE ZDEMO_ALVTREEF01. "ABAP Subroutines(FORMS)
*Start-of-selection.
START-OF-SELECTION.
ALVtree setup data
PERFORM DATA_RETRIEVAL.
PERFORM BUILD_FIELDCATALOG.
PERFORM BUILD_LAYOUT.
PERFORM BUILD_HIERARCHY_HEADER CHANGING GD_HIERARCHY_HEADER.
PERFORM BUILD_REPORT_TITLE USING GD_REPORT_TITLE GD_LOGO.
PERFORM BUILD_VARIANT.
Display ALVtree report
CALL SCREEN 100.
*& Form data_retrieval
text
--> p1 text
<-- p2 text
FORM DATA_RETRIEVAL .
SELECT EBELN
UP TO 10 ROWS
FROM EKKO
INTO CORRESPONDING FIELDS OF TABLE IT_EKKO.
LOOP AT IT_EKKO INTO WA_EKKO.
SELECT EBELN EBELP STATU AEDAT MATNR MENGE MEINS NETPR PEINH
FROM EKPO
APPENDING TABLE IT_EKPO
WHERE EBELN EQ WA_EKKO-EBELN.
ENDLOOP.
ENDFORM. " data_retrieval
*& Form build_fieldcatalog
text
--> p1 text
<-- p2 text
FORM BUILD_FIELDCATALOG .
Please not there are a number of differences between the structure of
ALVtree fieldcatalogs and ALVgrid fieldcatalogs.
For example the field seltext_m is replace by scrtext_m in ALVtree.
FIELDCATALOG-FIELDNAME = 'EBELN'. "Field name in itab
FIELDCATALOG-SCRTEXT_M = 'Purchase Order'. "Column text
FIELDCATALOG-COL_POS = 0. "Column position
FIELDCATALOG-OUTPUTLEN = 15. "Column width
FIELDCATALOG-EMPHASIZE = 'X'. "Emphasize (X or SPACE)
FIELDCATALOG-KEY = 'X'. "Key Field? (X or SPACE)
fieldcatalog-do_sum = 'X'. "Sum Column?
fieldcatalog-no_zero = 'X'. "Don't display if zero
APPEND FIELDCATALOG TO GD_FIELDCAT.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'EBELP'.
FIELDCATALOG-SCRTEXT_M = 'PO Iten'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 1.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'STATU'.
FIELDCATALOG-SCRTEXT_M = 'Status'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 2.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'AEDAT'.
FIELDCATALOG-SCRTEXT_M = 'Item change date'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 3.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'MATNR'.
FIELDCATALOG-SCRTEXT_M = 'Material Number'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 4.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'MENGE'.
FIELDCATALOG-SCRTEXT_M = 'PO quantity'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 5.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'MEINS'.
FIELDCATALOG-SCRTEXT_M = 'Order Unit'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 6.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'NETPR'.
FIELDCATALOG-SCRTEXT_M = 'Net Price'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 7.
FIELDCATALOG-DATATYPE = 'CURR'.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'PEINH'.
FIELDCATALOG-SCRTEXT_M = 'Price Unit'.
FIELDCATALOG-OUTPUTLEN = 15.
FIELDCATALOG-COL_POS = 8.
APPEND FIELDCATALOG TO GD_FIELDCAT..
CLEAR FIELDCATALOG.
ENDFORM. " build_fieldcatalog
*& Form build_layout
text
--> p1 text
<-- p2 text
FORM BUILD_LAYOUT .
GD_LAYOUT-NO_INPUT = 'X'.
GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
GD_LAYOUT-TOTALS_TEXT = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'
ENDFORM. " build_layout
*& Form build_hierarchy_header
text
<--P_GD_HIERARCHY_HEADER text
FORM BUILD_HIERARCHY_HEADER CHANGING
P_HIERARCHY_HEADER TYPE TREEV_HHDR.
P_HIERARCHY_HEADER-HEADING = 'Hierarchy Header'(013).
P_HIERARCHY_HEADER-TOOLTIP = 'This is the Hierarchy Header !'(014).
P_HIERARCHY_HEADER-WIDTH = 30.
P_HIERARCHY_HEADER-WIDTH_PIX = ''.
ENDFORM. " build_hierarchy_header
*& Form build_report_title
text
-->P_GD_REPORT_TITLE text
-->P_GD_LOGO text
FORM BUILD_REPORT_TITLE USING PT_REPORT_TITLE TYPE SLIS_T_LISTHEADER
P_GD_LOGO TYPE SDYDO_VALUE.
DATA: LS_LINE TYPE SLIS_LISTHEADER,
LD_DATE(10) TYPE C.
List Heading Line(TYPE H)
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
ls_line-key "Not Used For This Type(H)
LS_LINE-INFO = 'PO ALVTree Display'.
APPEND LS_LINE TO PT_REPORT_TITLE.
Status Line(TYPE S)
LD_DATE(2) = SY-DATUM+6(2).
LD_DATE+2(1) = '/'.
LD_DATE3(2) = SY-DATUM4(2).
LD_DATE+5(1) = '/'.
LD_DATE+6(4) = SY-DATUM(4).
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Date'.
LS_LINE-INFO = LD_DATE.
APPEND LS_LINE TO PT_REPORT_TITLE.
Action Line(TYPE A)
CLEAR LS_LINE.
LS_LINE-TYP = 'A'.
CONCATENATE 'Report: ' SY-REPID INTO LS_LINE-INFO SEPARATED BY SPACE.
APPEND LS_LINE TO PT_REPORT_TITLE.
ENDFORM. " build_report_title
*& Form build_variant
text
--> p1 text
<-- p2 text
FORM BUILD_VARIANT .
Set repid for storing variants
GD_VARIANT-REPORT = SY-REPID.
ENDFORM. " build_variant
regards.
sowjanya.b.

Similar Messages

  • 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

  • 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...

  • 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

  • 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.

  • Using IMAQ create, set-up, acquire and windraw to save image without color map

    Hi,
    Attached is my VI (using labview 8.5) and am not sure where it is getting the color info from, but it saves the image as jpeg/bmp/tiff with colormap (confirmed by imread in matlab). Can someone help me save these images without colormap info.
    Thanks
    Attachments:
    HL Grab with two boards and SONY XC55_Images.vi ‏166 KB

    Hi Maverick269,
    I noticed that you posted this question over on the Machine Vision forums as well. That will definitely be a better place to get this question answered, so let's work on the issue over there :
    http://forums.ni.com/t5/Machine-Vision/Using-IMAQ-create-set-up-acquire-and-windraw-to-save-image/m-...
    In the future it helps us stay organized if we limit each issue to a single thread.
    Cheers,
    Andy C.
    Applications Engineer
    National Instruments 

  • How to reordering a table without coloring the entire column ?

    Hi,
    When I click on a column header to re-order the table, the entire column is show in a differente color. Is there any way to avoid this behave ?
    Thanks,
    M�rcio

    Javadoc for IWDNode says:
    public void clearSelection()
        Clears the Node's multiple selection; does not change the lead selection.
    public void setLeadSelection(int index)
        Sets the lead selection to the given index. It may be called with NO_SELECTION to reset (clear) the lead selection.
        Parameters:
            index - the index of the element
        Throws:
            ContextException - if caller tries to reset the selection, but selection is mandatory
            IndexOutOfBoundsException - if the given index is not within the element list
        See Also:
            getLeadSelection()
    Armin

  • Acrobat 9 Pro & Office 2007 - No Color Text without Color Printer?

    I have a number of legacy word documents (.doc) that I convert to PDF from Office 2007 using Acrobat 9 Professional.
    These word documents have sections of text that are red. The documents also all have an embedded JPG in the header (company logo, also colored).
    In all cases the red text is converted to black when creating the PDF but the logo stays color.  The only way to convert to PDF and maintain text color is to first select a color printer from the printer dialog box.
    So, for each word document I need to create a PDF from, I first need to open the print dialog box, select some color printer and click "close."  Only then can I produce a PDF where both the logo and the text maintiain their original colors.
    This behavior is new to Acrobat 9.  I never once had to change from my default (B&W laser) printer to a color printer before making a PDF.
    Is there a solution?  Have I missed some easy step here or is this the expected behavior now?

    Sorry, I'm printing using the PDFMaker Office Add-in (toolbar).
    [[You might also check the Adobe PDF printer properties to be sure you  have not changed that to B&W.]]
    If the printer properties were B&W then the color JPG (logo) would be B&W in the PDF, but it's not, it's color.  It's only the text that is B&W.  But, of course, I double-checked (to be sure) and confirmed that it is set to color.
    [[ If you are using PDF Maker, you might select the Adobe PDF printer  first]]
    Well, that's why I'm posting the question.  Why would I need to change printers in order to create the PDF when, since version 4, I never had to do this?  I'd like to figure out what has happened and how to fix it.

  • Excel export on disco viewer10.1.2 without colors

    Hello,
    When I export a report to Excel on discoverer viewer it doesn't display colors.
    With plus everything seams to be ok.
    Thanks for your help,
    Best regards,
    Max

    used the same code for the export to excel on 11.1.2.3 of adf-essentials deployed to Oracle GlassFish Server 3.1.2.2 (build 5)
    <af:menu text="My Options" id="m2">
    <af:commandMenuItem text="Export to Excel"
    id="cmi1">
    <af:exportCollectionActionListener type="excelHTML"
    exportedId="t1"/>
    </af:commandMenuItem>
    Found no issues. Will give the inputfile a shot and let you know what I find.

  • Display is off-center and mostly without color

    The laptop display usually works perfectly but there are a couple of events that cause the screen to have issues for some time (usually less than 5 minutes). This happens quite frequently when the computer is restarted and I first log in, or the laptop is removed from the docking station (which connects it to a second monitor).
    The Intel HD Graphics 300 driver has been deleted and reinstalled multiple times to no improvement, using first the driver from HP and then using the Intel Driver Update Utility.
    It always has the same problems: pushed left and wrapped around, with most color in a single column. Picture of screen when the issue is happening:

    Hmmm, 2mm is a pretty big offset when you come to think about it.
    Apple's been trumpeting their new manufacturing process with tighter tolerances on these new Macbooks/MBP's. Maybe so, but based on the number of posts here already, it appears that their quality control is subpar.
    Having said that, I suppose it's business as usual for early adopters of Apple hardware. Last time I got burned on Apple hardware was with my MDD G4's leafblower loud fans.
    Despite that negative experience, I'm waiting for my CTO 2.8 MBP to arrive this week. I made the leap of faith and switched from Thinkpads. I hope it won't have any issues.

  • How do you paint without "color overlap"?

    I want to use about 50% opacity on my 2nd layer to paint over my 1st layer picture, but I don't want the color to get darker and have overlaps if I let off the mouse and start painting again. Here is a picture below I made to explain better.  Is there a way to paint this way? I've tried all the brush modes, unless I missed something, but nothing works.  Any help would be very appreciated.
    (Note: I did the "Want this" with a little time and MS paint)

    I take it the first layer is the outlined bird and the second layer is the green paint. Assuming that's the case, paint with the green paint with the paint brush tool set to 100% opacity. Reduce the blank layer onto which you are adding the green paint to 50% opacity. (Do all of your green paint strokes on one layer. If you apply strokes to several layers, you'll get the paint build up where strokes overlap.)

  • Create Brush Tool preset without color assignment

    I want a Brush tool preset which uses the CURRENT foreground color, not the color at the time of the preset creation.
    I DO want the preset to remember the SIZE and type of brush, but use the Current Foreground color...
    Is there a way to do this?

    When you save a New Tool Preset there is a check box in the name dialog to either include color or not. If you uncheck that box a brush tool preset will use the foreground color.

  • Can't find options for printing without color!?

    Any ideas for finding options for black and white printing on an iMac 10.7?  I don't want to waste the color cartridge.

    I've been working on Macs since OS6. Just moved all the way from Tiger to Lion. Seamless aparrt from printing Black and White. I have a few thousand CAD files which I print regularly. They're drawn in various colours on a black screen but obviously when I print them I want them in Black & White. Not Greyscale.
    Previously I've hacked around this using a custom Quartz filter which I can no longer select from the Print dialog. Save in Preview, apply a filter, reopen and print? A few hundred times? Not very helpful.
    I tried setting up an Automator print workflow but it baulks at the printer by sending a Letter format file not the A3 or A4 that's in the original Print Setup dialog.
    Oh - the printer is a Xerox Workcentre 7425.

Maybe you are looking for