In ALV, how do u get alternate colors in output

In ALV, how do u get alternate colors in output

For a non OO ALV...
TYPE-POOLS:  slis.
DATA:   xfield    TYPE slis_t_fieldcat_alv,
gs_layout TYPE slis_layout_alv.
In your data structure you have tu put a field for the color, example:
DATA: BEGIN OF xdata OCCURS 1.
DATA:   ebeln          LIKE ekko-ebeln,
        name1          LIKE lfa1-name1,
        txz01          LIKE ekpo-txz01,
        color_line(4)  TYPE c,           " <==== this is the color line
END OF xdata.
You have create a form for the layout like this:
FORM init_layout.
  gs_layout-info_fieldname = 'COLOR_LINE'. "<==the name of de field of the structure
ENDFORM.
Perform the init_layout in the initialization.
Your call alv function, have to be like this:
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_buffer_active         = 'X'
      i_callback_program      = 'YOUR_PROGRAM'
      i_callback_user_command = 'USER_COMMAND'
      is_layout                = gs_layout
      it_fieldcat              = xfield[]
    TABLES
      t_outtab                 = xdata
    EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2.

Similar Messages

  • The app icons I have on the iPad have just come up blank with the app name under it. How do I get the colorful icons to appear? The apps do work though

    The Ipad icons are all just a grey box. How do I get the colorful icons?

    First thing to try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.

  • I have an IPhone 4S. My color pictures and all icons have lost their color. How do I get the color back? Did I touch a wrong button?

    I have an IPhone 4S. All my color pictures and icons turned to looking like a negative.  No color! How do I get the color back on my phone?

    Hi ladwwd56,
    Welcome to the Support Communities!
    Is it possible that you may have an Accessibility feature called "White on Black" turned on?
    See page 244 of the iPhone User Guide PDF:
    http://manuals.info.apple.com/MANUALS/1000/MA1539/en_US/iPhone_iOS4_User_Guide.p df
    White on Black
    Use White on Black to invert the colors on the iPhone screen, which may make it easier to read the screen. When White on Black is turned on, the screen looks like a photographic negative.
    Invert the screen’s colors: In Settings, choose General > Accessibility and tap the “White on Black” switch.
    If that is not the case, try restarting / resetting the iPhone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    If that does not resolve the issue, refer to page 146 in the iPhone User Guide to Reset All Settings:
    iPhone User Guide for iOS 7
    manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Happy New Year!
    - Judy

  • How can I get Multi-color text it a swing componet?

    How can I get Multi-color text it a swing componet?
    I've tryed JTextPane and JEditorPane.
    If they support having text in more then one color then I don't see how.
    I want to make a color-coded Java editor in Java, but I can't color-code if I can only have one color.
    JComponent.setForeground(Color fg)
    is not what I need.
    maybe Java doesn't support it yet.
    but I hope it does.
    Please help, thanks.

    Hi,
    I've made you a little example with a coloured JEditorPane and JTextPane:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorDemo extends JFrame {
         public ColorDemo() {
              super("ColorDemo");
              // coloured JEditorPane
              JEditorPane editorPane = new JEditorPane("text/html",
                   "<FONT color=red> This </FONT>"+
                   "<FONT color=blue> is </FONT>"+
                   "<FONT color=green> a </FONT>"+
                   "<B> JEditorPane </B>");
              editorPane.setPreferredSize(new Dimension(250, 150));
              // coloured JTextPane
              JTextPane textPane = new JTextPane();
              textPane.setPreferredSize(new Dimension(250, 150));
              Document doc = textPane.getDocument();
              Style def = StyleContext.getDefaultStyleContext().
                   getStyle(StyleContext.DEFAULT_STYLE);
              try {
                   StyleConstants.setForeground(def, Color.blue);
                   doc.insertString (0, "This ", def);
                   StyleConstants.setForeground(def, Color.red);
                   doc.insertString (5, "is ", def);
                   StyleConstants.setForeground(def, Color.green);
                   doc.insertString (8, "a ", def);
                   StyleConstants.setBold(def, true);
                   StyleConstants.setForeground(def, Color.black);
                   doc.insertString (10, "JTextPane", def);
              } catch (Exception e) {}
              JPanel contentPane = new JPanel();
              contentPane.add(textPane);
              contentPane.add(editorPane);
              setContentPane(contentPane);
         public static void main(String[] args) {
              JFrame frame = new ColorDemo();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.pack();
              frame.setVisible(true);
    }Hope this helps,
    Kurt.

  • How do I get the color wheel to stop spinning?

    how do I get the color wheel to stop spinning?

    To invoke the Force Quit window, press Command-Option-Escape.
    If no joy, try holding down the Control key while you press the Eject key. This is supposed to bring up this dialog:
    If no joy there, you may have to resort to holding the Power-On key until the machine shuts off. This may leave un-repaired Directory damage, so it is a good idea to hold down the Shift key when you Restart. This invokes Safe Mode, which takes five minutes to run one pass of Disk Utility (Repair Disk), then starts with minimal extensions loaded. You will need your username and password to log in, even if you normally auto-login.
    Poke around a little, if all looks OK, you can restart in normal mode.

  • During initial setup, I deleted the additional colored options in the Calender application. How do I get those colored options back? Thank you!!

    During initial setup, I deleted the additional colored options in the Calender application. How do I get those colored options back? Thank you!!

    Sounds like you have the print dialog minimised, as shown.
    If you click the triangle next to the printer name, this will expand the print dialog and from this view you can see all the menu options as mentioned in the guide.

  • How do I get LR Slideshow to output 4k images over HDMI to my Sony 4k Projector? VPLVW1100ES?

    From my 2014 15" MacBook Pro How do I get LR Slideshow to output 4k images over HDMI to my Sony 4k Projector VPLVW1100ES? I can work in LR on the Sony at full resolution but Slideshow will only output 1080p.
    Thanks,
    John

    Hello JaeRoc48,
    I understand that the sound is not working.
    Go to start.
    Type Sound.
    Select sound.
    Select speakers as default.
    Click OK.
    Let me know how everything goes.

  • Using a standard midi file, how do I get this to an output port for playing it via midi-cable on an extern keyboard?

    Using a standard midi file, how do I get this to an output port for playing it on an extern midi-keyboard?

    Hi
    Create 1 or more External Instrument tracks as required.
    You could send the MIDIFile to a track set to "All" MIDI channels, or if needed, you could split the file by channel and create indivisual tracks for each.
    CCT

  • NI Datalogger (USB-6009)​- How do I get all the channels output

    How can I get all the channels output to the file?  Is it possible to append data blocks into one data file?

    Hi,
    If you are performing a multiple channel acquisition, the easiest way to write all of your data to a file and have new data appended to that same file will be to use the "Write to LabVIEW Measurement File" Express VI.  This VI is located on the Functions>>Output Palette.
    If you put one of these on the block diagram, a dialog box will appear with options including an "append to file" option.  This Express VI also allows to configure how your channels are saved in the file and the LabVIEW Measurement File can be opened in Microsoft Excel. 
    There are some other vi's for writing data to a file on the Funcions>>All Functions>>File I/O palette.  The "Write to Spreadsheet File.vi" on this palette will work for your application as well.  There is an "append to file" input in which you will have to wire in a "true" constant to append your data.
    I hope you find this information helpful.
    Regards,
    Hal L.

  • How can I get vertex colors on a mesh to work properly on a PDF 3D

    Hi everyone,
    I am working with GeoMagic Wrap 2013, a software for modelling meshes.
    I digitalize objects through a 3d scanner.
    The Scanner can digitalize objects, generating a mesh, either with .stl or .obj extensions.
    .Obj is useful because you can retain the original color of the object you are acquiring when getting the mesh.
    What Wrap 2013 let me do, among other functionalities, is to export the mesh in the .pdf format as a PDF 3D.
    The issue is that what i see in Wrap 2013 is this:
    but what i get when i export them in PDF 3D is this:
    which is unconvenient because the point of this is to provide a potential client with a fully rotatable and zoomable preview of a product he/she is interested in.
    How can i get the original colors to render properly on a PDF 3D?
    Thank you

    Thanks Dave,
    I am not so technical about the subject but what you are saying (and what is written on the topic you liked above), is that is not possible to achieve the result i'd like with my model using PDF 3D?
    What is quite annoying is that many mesh modelling softwares now provide PDF3D export service but practically forcing you to use uniformed colors that are really not suitable for certain use... you can't have a model with the original (or vertex more in general) colors...
    That would be really a pity to say the least, especially considering that after some work time i can have really nice looking models within my sofware and no way to present it to the client except some really "flat" photos :/

  • Separation color space - get alternate color (function of type 0)

    Hello,
    I'm trying to retrieve the alternate color value of a spot color which has a function of type 0. Actually I just want to retrieve the result of the function when the tint is 1.0.
    How can I do that?
    Thanks in advance,
    Joe

    Right Leonard.
    The function is PDApplyFunction().
    Thanks,
    Joe

  • How do i get a colored iphone

    im wondering how do i get a coloerd iphone

    iPhones come in two colors: black and white. If you want to add color to one, put a case on it.

  • How can I get it to print output of inputstream?

    Please forgive me for running two similar thread but the other thread ahs strayed from primal concern of coding.
    Some help with the code please???
    I have set up an inputstream and outputstream to the "ftp process" of java.lang.Runtime I have sent the command "dir" to ftp.
    But How can I get it to print all the files etc of the "dir" sent to ftp process?
    Also I have just read that it is perhaps better to buffer the STREAMS.
    How do I do this for outputsteam? I think I have some clue to do for inputstream with bufferedreader?
    import java.lang.*;
    import java.io.*;
    public class RuntimeFTP{
    public static void main(String[] arg){
    Runtime rt = Runtime.getRuntime();
    String[] callAndArgs = { "ftp.exe", "jaguar.wmin.ac.uk" };
    Process process = null;
    OutputStream os = null;
    InputStream is = null;
    String login = "w0109699";
    String password = "11041976";
    String dircommand = "dir";
    byte[] barraylogin = login.getBytes();
    byte[] barraypassword = password.getBytes();
    byte[] barraydircommand = dircommand.getBytes();
    try
    process = rt.exec(callAndArgs);
    process.waitFor();
    System.out.println("Process exit code is: " + process.exitValue() );
    catch(IOException e)
    System.err.println("IOException starting process!");
    catch(InterruptedException e)
    System.out.println("Interrupted waiting for process!");
    try
    os = process.getOutputStream();
    os.write(barraylogin);
    os.write(barraypassword);
    os.write(barraydircommand);
    catch(IOException io)
    System.out.println("io exception write to outputstream");
    try
    is = process.getInputStream();
    while (is.read() != -1)
    How can I print the data to the user
    i.e all the data obtained from the "dir" command sent to ftp?????????
    catch(IOException io)
    System.out.println("io exception read fron inputstream");

    the above code does not work so I have abondaned it.
    I want to integrate an ftp program into a program I am working on. I have scoured the net for reuse able code and come across a "t or Linlyn ftp program" which claims is easily integrate able into larger applications.
    The problem is did does not seem to work and gives me errors. I would be grateful if someone could tell me why I am getting the error, here is the error:
    C:\My_DL_Dap\ftp in java>appletviewer t.java
    Warning: <applet> tag requires width attribute.
    java.security.AccessControlException: access denied (java.net.SocketPermission j
    aguar.wmin.ac.uk resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:
    401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
    at java.net.InetAddress.getAllByName0(InetAddress.java:909)
    at java.net.InetAddress.getAllByName0(InetAddress.java:890)
    at java.net.InetAddress.getAllByName(InetAddress.java:884)
    at java.net.InetAddress.getByName(InetAddress.java:814)
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:109)
    at java.net.Socket.<init>(Socket.java:118)
    at Linlyn.ftpConnect(t.java:326)
    at Linlyn.<init>(t.java:236)
    at t.init(t.java:83)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    I would also be grateful if someone could try out the program and tell me if it works for them, then I could determine if it is because ftp clients are being blocked by my server. The ftp program is very small, here is the url:
    http://www.afu.com/jdownload.html
    1) compile the code
    2) fill in everywhere it requests "your-server" "username" and "password"
    3) to run appletviewer t.java

  • How do you use the color channel output mode in Ultra Key in Premiere Pro CS6?

    I'm wondering how the color channel output mode is supposed to be used in the Ultra Key inside of Premiere Pro CS6? I've looked through all the Adobe help items and I don't see any documentation on it.

    Before I answer, you might want to read the following article: http://www.photoshopessentials.com/essentials/rgb/
    So, basically, if you understood all of that, and maybe already knew all of that, then you can use the color channel to see more deeply into the effect by looking at the details of the image through the lens of the color channel.

  • How do I get the colors back in Itunes 12 sidebar icons

    Hi. I have a hard time getting used to every new itunes version with the user interface getting harder and less friendly than the previous version, probably since itunes 8 or so. I NEED colorful icons to be able to differentiate what is what in the sidebar, and I have always found a work around, since they dropped the much loved colors, in exchange for increasingly monochrome, drab Gray. There is no differentiation even in the grey, no bold letters for titles, headings, album names etc.   In  iTunes 12 however I tried changing the itunes.rsrc file in this version and it really messed my itunes up, to the point where I had to trash it and start all over with new itunes. Does anyone know how to bring the colorful icons back in iTunes 12? This is ONE of the problems, search is not working right for me either for itunes 11 or 12. I would love it if Apple could give us the option of using old Itunes, such as 8 or something similar where everything was more clearly defined and intuitive, at least for me. Thanks!

    PS I am using OSX 10.9.5

Maybe you are looking for

  • Server hangs or freezes during heavy load

    During peak times of the day, especially during heavy load on the Calendar Server, the application seems to hang. The client side application will not respond on the user's desktop, and uni* commands on the server itself respond considerably slow. <P

  • Retrieve BPC data into BW 3.5 : any alternative to UD connect ?

    Hello, SAP BPC 7.0 (Microsoft SQL version not Netweaver) has been deployed a few month ago. Now the data from this tool will need to be brought into our BW 3.5 landscape for reporting, and it has been suggested by our developers that the interface is

  • Which metadata entries does HDR assembly function need?

    I am using a digital back at Hasselblad 500 C/M. The 3FR files of course do not contain all metadata that are needed for HDR assembly in Lightroom. I have compared the missing metadata in the XMP file with a 3FR file of a Hasselblad HD4 camera (which

  • Security Update Error Code 84BC7381

    Hi, I have tried to install this update many times and it always seems to fail to install - Keep getting error code 84BC7381 Security update for SQL Server 2008 Service Pack 2 (KB2977320). Can you let me know how to get this installed. Thank you, Dav

  • Compare 'Folder tags' to imported Keyword Tags

    I have asked questions about thumbnails in PSE11 that aren't being correctly displayed ,but I have yet to get any answers. I though perhaps I should breakdown the problem into easier component to see if I can get to understand just what is going on &