How to start conky colors at startup?

I just installed conky-colors in my machine. But have no idea how to set it to start automatically on boot. Can you please help?
If i can run the command "conky -c ~/.conkycolors/conkyrc" after the whole desktop is loaded....

Gcool wrote:I think GDM gets those settings from ~/.xprofile instead. Try adding it there.
Thanks a lot mate! It worked! At first It got stuck after loading conky.. So, I did some more digging and added -d  (to run it as a daemon) to the line : "sleep 5 && conky -d -c ~/.conkycolors/conkyrc" and it worked!
Thanks a lot guys!

Similar Messages

  • How to Start a color in the middle of a cell in the table & end in next cel

    Hai,
    I am developing a project in VB6 and the databse in MsAccess, i prepared the Report in HTML, Based on 2 Fields called Nextti & Duration Field I am coloring the Background of cells in the report table.
    Actually the Color should start and end insdie or outside the cell based on the 2 Field Values.
    Table is populated for 4 Years under that 48 months, therefor 2 row headings. 1 for showing Years in column & other for Months & with Some fields.
    the below is the line i use to change the background of a particular cell. Its done when i populate the data in the HTML Report.
    OutStream.WriteLine ("<td bgcolor=Yellow><P align=center><Font FACE=Tahoma size=1 color=black>" & Format(dtShade, "dd") & "</Font></P></td>")
    Now i am able to shade the Cell by giving its background color to yellow as below code
    but the problem is i am able to change the background of the full cell. But i don't need to change the background of the full cell always. For example if Nextti value is 15/1/2005 & Duration is 30 then the shade should start from the middle of January Cell (because of the date 15th)end in the middle of next cell (February). If the duration is 15 then it should end in the (January) same end of cell. Kindly tell me how can i do this through HTML. I heard Div can be used to solve this issue. I am a beginner so kindly any one give me a appropriate example which will suit to solve this issue.
    thankyou,
    Chock.

    Can you work out what the actual HTML is to do
    "Whatever it was that you wanted to do" ? { I couldn't understand that }
    I.e If you make up a Test table, with Your Text editor can you get a sample output that looks like you want?
    But the problem is i am able to change the background of the full cell. But i don't need to change the background of the full cell always. For example if Nextti value is 15/1/2005 & Duration is 30 then the shade should start from the middle of January Cell (because of the date 15th)end in the middle of next cell (February). If the duration is 15 then it should end in the (January) same end of cell.
    Is this something that can be done in HTML?
    If your question is 'amenable' to HTML, figure out conditions for which you want to Set a certain color....
    If the color in one cell for instance depends on the Next Cell, then you're going to have to buffer the whole Table ROW....
    Set which ones should be RED for instance, then output that ROW in HTML...
    If you are using Java for this, then also be aware that you might need to escape certain characters like use "\\" to get "\"
    You'd also probaly have an easier time, however you are doing this if you used some sort of CSS .......

  • How to start process at tomcat startup

    Hello frens
    I need to start a process when tomcat startup
    the problem is when tomcat startup i have a bat file PushMsg.bat which content are as .............
    cd c:
    cd \tomcat\webapps\myApp\WEB-INF\classes
    java SendMsg
    i need to run this bat file as tomcat get startup .how to achieve this????????????

    Se16 -- table:RSPCPROCESSLOG - click on display entries.
    Entet the variant, instance start date (this info you can get from the "display message" of PC.
    Now execute to display the table entries of RSPCPROCESSLOG.
    Next goto SE37 transaction --enter RSPC_PROCESS_FINISH
    Take the entries from the above table to set the input parameters of the FM.
    I_logid = log_id(from above table)
    I_type = type(from above table)
    i_variant = varaint (from above table)
    i_instance = (from above table)
    Click on F8(EXECUTE)
    now the actual process is set to gree and the process chain will be triggered (rest of the PC with out repeating the step from where is was red).

  • How do you change the start up color

    I dont knoow how I did it but the start up color has gone from gray to a pink  - Very hard on my old eyes

    Dennis,
    Are the colors otherwise OK when the computer is done starting?  If the the monitor cable is not plugged in tight you will get strange colors.
    Try this instead:
    Apple Menu > System Preferences > Appearance > Blue
    Ji~m

  • How do I sound an alarm if a thread fails to start from the weblogic startup script?

    Here's the problem. I have a critical java program for my web app that
    is its own thread and is started by the weblogic startup script when
    the weblogic server is started. The constructor of this thread will
    throw exceptions and send out emergency emails to the Sys Ops people
    if it cant instantiate itself correctly. The only time that it wont be
    able to do that is if it cant read the email property from a config
    file to know where to send sys ops email to. In that situation what
    would be the best way to alert someone that the thread failed to
    start?

    [email protected] (Mike Lomage) wrote in message news:<[email protected]>...
    ... The only time that it wont be
    able to do that is if it cant read the email property from a config
    file to know where to send sys ops email to. In that situation what
    would be the best way to alert someone that the thread failed to
    start?My 2 cents worth:-
    1) Post a console message to the admin (thro' net send in NT).
    2) Hard code a default email address (easiest).
    drit
    Freelance Java Developer / Code Inspector
    http://www.geocities.com/doc_i_t/CodeInspectionService.html

  • How to start/ restart the service in visual admin of SAP WAS 6.4?

    I have installed the sneak preview version of SAP NetWeaver WAS 6.4 for default Database MaxDB. While developing a simple application to manage simple database table citymaster with 2 columns in jsp I am getting error as
    Exception e com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at : java.comp.
    Looking at visual admin tool for WAS 6.4 all the entries are in color blue but the last entry for 'DATASOURCE' is in RED color where 'java.comp/env/JDBC/DATASOURCE' is the jndi reference created for default DataSource.
    Can any one help me that why the last entry is in RED and it that say that some error has occured or that entry is not started then how to start that?
    Please help....

    Dear Daniel,
    I have checked the Visual Administrator's  JNDI Registry service entry in the ejbContexts node but there is no entry for the project which I have created.
    It get deployed while I right click on the project's ear file and click on "Deploy on J2EE Engine". But same as before while checking in Browserthe site gives the same error...
    503   Service Unavailable
    Application cannot be started!
    Details: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application bcone.com/EntityCMPAppln cannot be started, because it has hard reference to resource CONFIG_DB with type javax.sql.DataSource, but it is not active on the server.
         at com.sap.engine.services.deploy.server.ReferenceResolver.processUsageOfComponent(ReferenceResolver.java:508)
         at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:149)
         at com.sap.engine.services.deploy.server.application.StartTransaction.beginLocal(StartTransaction.java:285)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:355)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:120)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:224)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4170)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2390)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2267)
         at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:41)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:101)
         at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:80)
         at com.sap.engine.core.thread.impl4.SingleThread.execute(SingleThread.java:70)
         at com.sap.engine.core.thread.impl4.SingleThread.run(SingleThread.java:111)
    Please help me, how to recover this error.
    Rgds,
    Vivek

  • How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?

    Someone else posted ths question a month ago, but still no answers.  Anyone?
    How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?
    Windows XP, SP3 operating system recently re-installed so I also reinstalled my printer software.  Now, for some reason, each time I turn my computer on, my HP Photosmart C4100 all-in-one photosmart premier software opens.  It is not in my startup.  This slows down my computer terribly, which is why I never used the program before my re-install.  How can I disable this feature?  I only print, I don't use it for photos.
    Any help here is appreciated.

    Run msconfig.exe from the start button (type in msconfig).  When it comes up go to the Startup tab and find and deselect the HP product you do not want to start.  Save and reboot computer.  Now try.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • How to start Oracle Application Server 10g on Linux

    Hi,
    I have installed the Oracle Appliacion server and Infrastructure server on Linux. Both I have installed under with Diff. folder
    Can some one please tell me how to start / stop Appliacion server and Infrastructure server on Linux
    We are going to use the these with Oracle EBS 11.5.10.2 .
    Oracle EBS 11.5.10.2 installed in the same Linux server under diff. folder
    Can some one please guide me.
    Thanks,

    You can do as rizla said or go another route.
    We setup profiles to use for all of the oracle homes. Then in the scripts we call the profiles. Easier to migrate and manage in my opinion if you have multiple oracle homes. You can then use profiles when ssh'd into the boxes, too. Both ways will work.
    Example:
    Script which you can chkconfig.
    #!/bin/sh
    # oracle_collabInfra
    # This shell script takes care of starting and stopping Oracle Collab Infra instance.
    #chkconfig: 345 96 14
    # Source function library.
    . /etc/rc.d/init.d/functions
    RETVAL=0
    start () {
    echo $"Starting Collab Suite on the Infra instance..."
    echo $"Starting Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl start"
    sleep 10
    echo $"Starting Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    startup;
    exit;
    sleep 10
    echo $"Starting Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl start iasconsole"
    sleep 5
    echo $"Starting Infra OID and OC4J_Security processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OID"
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OC4J_Security"
    echo $"Starting Infra HTTP_Server processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=HTTP_Server"
    return $RETVAL
    stop () {
    echo $"Stopping Collab Suite on the Infra instance..."
    echo $"Stopping all Infra OPMN managed processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl stopall"
    sleep 5
    echo $"Stopping Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl stop iasconsole"
    sleep 10
    echo $"Stopping Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    shutdown immediate;
    exit;
    sleep 10
    echo $"Stopping Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl stop"
    return $RETVAL
    restart () {
    stop
    start
    RETVAL=$?
    return $RETVAL
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart)
    restart
    echo $"Usage: $0 {start|stop|restart}"
    RETVAL=1
    esac
    exit $RETVAL
    profile:
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=$ORACLE_BASE/collabInfra
    export ORACLE_SID=orcl
    export TMP=/tmp
    export TMPDIR=/tmp
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/kerberos/bin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/backup_restore
    unset USERNAME

  • How to change background color in online editor

    How to change background color in online editor

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • How to get background color of controls ?

    Hello everyone.
    How to get background color of controls ?
    When we use AWT/Swing,
    we can get background color of component by using Component.getBackground()
    It is regret that I can not find any method for such a method in JavaFX.
    And how do we detect the change of background color of controls ?
    Best regards.

    Hi Tadashi,
    try this.
    @Override
    public void start(final Stage primaryStage) {
        primaryStage.setTitle("Test ChangeListener");
        Button btn = new Button();
        btn.setText("change background");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                primaryStage.getScene().setFill(Color.rgb(
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255)));
        StackPane root = new StackPane();
        root.getChildren().add(btn);
        primaryStage.setScene(new Scene(root, 300, 250));
        primaryStage.getScene().fillProperty().addListener(new ChangeListener<Paint>() {
            @Override
            public void changed(ObservableValue<? extends Paint> arg0, Paint arg1, Paint arg2) {
                System.out.println(
                        "old color: " + arg1.toString()
                        + ", new color: " + arg2.toString());
        btn.getOnAction().handle(null);
        primaryStage.show();
    }Peter

  • How to select a color of cell in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi.
    I need to select a color of a cell in REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    I have found an example, but 
    It shows how to select a color of sell in REUSE_ALV_LIST_DISPLAY.
    Can you give me an example of code?
    Thanks.

    Here ia a simple example of the method how to paint a cell / line / column using REUSE_ALV_HIERSEQ_LIST_DISPLAY  function.
      Programm:    zalv_hierseq_color
      Paint a line, a colomn, or a cell
      using REUSE_ALV_HIERSEQ_LIST_DISPLAY
      Victor Stupin, Russia 2009
    REPORT zalv_hierseq_color.
    TABLES: spfli.
    TYPE-POOLS: slis.
    SELECTION-SCREEN BEGIN OF BLOCK rad1.
    PARAMETERS:
            p_row TYPE i,
            p_col TYPE i.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN COMMENT /1(50) comm1.
    SELECTION-SCREEN COMMENT /1(50) comm2.
    SELECTION-SCREEN COMMENT /1(50) comm3.
    SELECTION-SCREEN END OF BLOCK rad1.
    INITIALIZATION.
      comm1 = 'Paint a line: fill ONLY p_row (p_col is empty)'.
      comm2 = 'Paint a colomn: fill ONLY p_col (r_row is empty)'.
      comm3 = 'Paint a cell: fill P_COL and R_ROW'.
      DATA:
            t_fieldcat TYPE slis_t_fieldcat_alv,
            fs_fieldcat LIKE LINE OF t_fieldcat,
            fs_layout TYPE slis_layout_alv ,
            w_color(4) ,
            w_row TYPE i,
            w_fieldname(20),
            w_prog TYPE sy-repid.
      DATA:
      BEGIN OF t_spfli OCCURS 0,
            color(4),
            checkbox ,
            cell     TYPE slis_t_specialcol_alv,
            carrid   TYPE spfli-carrid,
            connid   TYPE spfli-connid,
            cityfrom TYPE spfli-cityfrom,
            cityto   TYPE spfli-cityto,
            distance TYPE spfli-distance,
            keyln    TYPE int4,
            box      TYPE char1,
            lineno   TYPE int4,
      END OF t_spfli.
      DATA:
      fs_cell LIKE LINE OF t_spfli-cell.
      DATA: gt_item    LIKE TABLE OF t_spfli WITH HEADER LINE,
            gt_header  LIKE TABLE OF t_spfli WITH HEADER LINE,
            gs_keyinfo TYPE slis_keyinfo_alv.
    START-OF-SELECTION.
      SELECT *
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 1.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CARRID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 2.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CONNID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 3.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'DISTANCE'.
      fs_fieldcat-key = ' '.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 4.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CITYFROM'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = ' '.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 5.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CARRID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 6.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CONNID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 7.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'DISTANCE'.
      fs_fieldcat-key = ' '.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 8.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CITYFROM'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = ' '.
      APPEND fs_fieldcat TO t_fieldcat.
      p_col = p_col + 4.
      LOOP AT t_fieldcat INTO fs_fieldcat WHERE tabname = 'GT_ITEM'.
        IF fs_fieldcat-col_pos EQ p_col.
          fs_fieldcat-emphasize = 'C600'.
          w_fieldname = fs_fieldcat-fieldname.
          IF p_row IS INITIAL AND p_col GT 0.  " <---- paint only column if p_row is empty
            MODIFY t_fieldcat FROM fs_fieldcat TRANSPORTING emphasize.
          ENDIF.
        ENDIF.
      ENDLOOP.
      fs_cell-fieldname = w_fieldname .
      fs_cell-color-col = 6.
      fs_cell-nokeycol = 'X'.
      APPEND fs_cell TO t_spfli-cell.
      IF p_row IS NOT INITIAL AND p_col IS NOT INITIAL.  " <---- paint a cell
        MODIFY t_spfli INDEX p_row TRANSPORTING cell.
      ENDIF.
      fs_layout-info_fieldname = 'COLOR'.
      fs_layout-coltab_fieldname = 'CELL'.
      fs_layout-f2code = '&ETA'.
      gs_keyinfo-header01 = 'KEYLN'.
      gs_keyinfo-item01   = 'KEYLN'.
      LOOP AT t_spfli INTO gt_item.
        gt_item-keyln = 1.
        gt_item-lineno = gt_item-lineno + 1.
        APPEND gt_item.
      ENDLOOP.
      READ TABLE t_spfli INDEX 1 INTO gt_header.
      gt_header-keyln = 1.
      gt_header-lineno = 0.
      APPEND gt_header.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          is_layout                      = fs_layout
          it_fieldcat                    = t_fieldcat
          i_tabname_header               = 'GT_HEADER'
          i_tabname_item                 = 'GT_ITEM'
          is_keyinfo                     = gs_keyinfo
        TABLES
          t_outtab_header                = gt_header
          t_outtab_item                  = gt_item
    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.

  • How to change the color of specific row in ALV tree

    Hi,
    I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE.
    The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display', there is no parameter IS_Layout.
    Pls suggest...

    hi
    hope this code will help you.
    Reward if help.
    REPORT zsharad_test1.
    TABLES: ekko.
    TYPE-POOLS: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_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,
    line_color(4) TYPE c, "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    gd_tab_group TYPE slis_t_sp_group_alv,
    gd_layout TYPE slis_layout_alv,
    gd_repid LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    PERFORM data_retrieval.
    PERFORM build_fieldcatalog.
    PERFORM build_layout.
    PERFORM display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    FORM build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
    gd_layout-info_fieldname = 'LINE_COLOR'.
    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 DISPLAY_ALV_REPORT
    Display report using ALV grid
    FORM display_alv_report.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    TABLES
    t_outtab = it_ekko
    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. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    DATA: ld_color(1) TYPE c.
    SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekko.
    *Populate field with color attributes
    LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_ekko FROM wa_ekko.
    ENDLOOP.
    ENDFORM. " DATA_RETRIEVAL

  • How to change the color of SAP screen?

    Hi Frens,
    I know it has nothing to do with SD Community, but still I am asking. Can anyone tell me "How to change the color of SAP screen?" It is needed especially when you are working on System Landscape including PRD, Qua & Dev. There are chances that you end up making a test case in PRD instead of Dev or Qua. To avoid that, different color of SAP screen may be very useful and safe.
    Regards
    Vikas Chhabra
    SD/CIN Consultant

    We had a clone of SAP for testing
    Only GUIXT solution was available for users to distinguish between real Prod & Clone as SID was same
    Created 2 scripts n C:\guixt\scripts
    saplsmtr_navigation.e0100.txt
    Esession.txt
    BOTH having identical code
    if V[_ashost=10.3.3.18]
      TitlePrefix "CLONE18"
      TitleSuffix "(CLONE8)"
    endif
    if V[_ashost=10.3.3.25]
      TitlePrefix "PROD25"
      TitleSuffix "(PROD25)"
    endif
    After much research - this was only solution.
    GUIXT will be around; like SAPSCRIPT & SMARTFORMS
    despite the enticement of Adobe Forms!
    After some time you may set GUIXT profile start window HIDDEN
    This you do by clicking profile button of GUIXT menu
    If you want to see GUIXT Window again
    CMD.exe Dos prompt
    cd C:\Program Files\SAP\FrontEnd\SAPgui
    guixt visible
    Regards
    Jayanta Narayan Choudhuri
    Kolkata
    URL: http://ojnc.byethost11.com

  • How to make a color wheel?

    I'm using CS4 on a Mac.
    I need to make a color wheel, like the attached, but with 24 segments.
    Could someone tell me how? Start with a circle, obviously, and then what?

    MarieMeyer wrote:
    If I wanted to try a different method - is there a way I can make a 15 degree segment with an arc at the top and bottom that I can fill with color, and then repeat it 23 times?
    The only way to do that and ensure your segments would meet in a perfect circle would be to start with the circle and divide it into a 15d segment, so you'd merely be tripling the amount of work.  Plus, it will be needlessly fussy to get that rotation correct.
    Here's what to do -- Create a circular band having the width that you want, divide it into segments, and paint the segments with the Live Paint tool:
    Draw your outer circle with the default empty fill and 1pt black stroke.
    Use Object...Path...Offset Path to offset that circle by a negative amount to get your inner circle.
    Select both circles and use Object...Compound Path...Make to get your circular band.
    Choose the Line Segment Tool, move your cursor until it's shown as being at the "center" of the circle band shape.  Hold down your Alt key to draw the line from the center of your drag and also hold down the Shift key to constrain your cursor to create a vertical line.  Draw the line until it extends past the outer edge of the circular band.
    With that line segment selected, double-click on the Rotate Tool, set a 15d rotation angle (from the center point, which is the default), choose "Preview", then click the "Copy" button to get a rotated line.
    Exit the Rotation options window, and with that last line still selected, keep hitting the Ctrl+D keys to duplicate that rotation and copy until you get your segments defined.
    Select everything and click on the selection with the Live Paint Bucket Tool to define the object as a Live Paint Group.
    Use the LPBucket to colour your circle segments as you wish:
    When you're finished, use Object...Expand to break the thing into two Groups:  the guidelines and the coloured segments.
    In the Layers Panel, select the guidelines group and hit your Delete key to get rid of the lines:
    Don't worry -- it took about 359 times longer to write all those steps than to actually do it!
    Ken

  • How do I manipulate color after changing an image to halftone with bitmap in Photoshop CS5 and CS6?

    Hi,
    I'm just starting to play with turning into images into halftone image. So far I've learned how to do it 2 ways: 1) using the Pixelate>Halftone filter and 2)Converting the image to grayscale then bitmap>halftone. After either technique, I'm a little lost on how to best changel color - not as whole but to convert different section to different colors - kind of Andy Warhold look. I've tried the history brush. I've dragged it into illustrator (which I tried live trace). But I'm not quite getting the flexibility of just painting different areas different colors. Also, what angles work best to avoid strange grid effects?
    Any techniques or inside advice would be greatly approciated! Thanks, Andrea

    Why not apply the halftone to a duplicate layer, that way, you still retain the colors, you can then allow some or all of the colors to show through, using blend modes, masks or opacity changes.

Maybe you are looking for

  • Extra column in Crosstab report

    Hi Experts, We are designing a cross tab report (using CR 2008) and got stuck at one point. If we want to add an extra column in cross tab, what is the way to insert the same? Currently our cross tab is designed using 3 elements: Country, Month and S

  • Crystal Report with standard Input-Parameters in InfoView

    Hi there, i've created a crystal report which has non-optional input parameters, e.g, Date from ... Date to ... I've managed to fill this parameter with standard parameters if the user does not choose a value. e.g. date is today - 14 days. If i start

  • How to connect database using JSF??

    When I deployed a JSF war file which was connected to MySql on Sun Application Server, then lanuched it, why there was an error message like "HTTP Status 503 - This application is not currently available". Can anyone tell me why? thanks.

  • Powerbook audio in/out: advice needed

    I don't understand my 15" aluminum powerbook's audio in/out. I know that the input jack requires a far higher power signal than my nylon string Gibson solid body Chet Atkins CE guitar is able to generate, so I have to run the signal from my guitar th

  • BADI to uncheck Invoice indicator and set net price as 0 while creating PO

    Hi all, Is there any BADI to uncheck the Invoice indicator and set the net price as "0" while creating Purchase order? Im creating Purchase order in SRM and for certain vendor and material group net price should be set to zero and invoice receipt to