Can we put text and button together in the same cell of ALV?

Can we put a button and text in a cell of ALV Grid?
Requirement in detail:
Material Description + button - when the button is clicked, it opens up a screen to enter text.
I able to open the screen ob button click but..
when  I concatenated the material description and an icon, it showing garbage in ALV output.

Hi,
I think it is possible..check this code..I believe this also depends on the GUI version..Mine is 6.40 patch level 32....in my output it is showing icon with the text in one column...
TYPE-POOLS slis.
INCLUDE <icon>.
TYPES: BEGIN OF type_data,
         matnr TYPE matnr,
       END OF type_data.
DATA: t_fcat TYPE slis_t_fieldcat_alv.
DATA: s_fcat TYPE LINE OF slis_t_fieldcat_alv.
DATA: t_data TYPE STANDARD TABLE OF type_data.
DATA: s_data TYPE type_data.
* Field catalog.
s_fcat-fieldname = 'MATNR'.
s_fcat-row_pos    = '1'.
s_fcat-ref_tabname = 'MARA'.
s_fcat-ref_fieldname = 'MATNR'.
APPEND s_fcat TO t_fcat.
CONCATENATE icon_negative 'test matnr' INTO s_data.
APPEND s_data TO t_data.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
  EXPORTING
    it_fieldcat   = t_fcat
  TABLES
    t_outtab      = t_data
  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
Naren

Similar Messages

  • Can I put Chinese and English characters in the same dynamic text box?

    I'm translating a game into several different languages, one of which is Chinese. I've noticed that in a dynamic text box where English characters are included also, they aren't displayed when the .swf is exported. The font is embedded in the document with all characters selected. It seems like whatever language-character is first displayed in the text box, the other language cannot be. For instance, if there are Chinese characters first, then English, the English will not display, and vice-versa. Any work around on this? I am using Flash CS5 and Actionscript 2.0. Thanks!

    Kglad - I'm not sure I follow your instructions for the fix. I assume you want me to set the _visible property to false via Actionscript ( textInvisible._visible = false; ). What is the purpose of this second text field - does it need any specific content in it to function? It doesn't seem to work to fix the problem but maybe I'm misunderstanding.

  • How do you place text and a formula in the same cell?

    I'm trying to format a single cell so that there is a label and a sum total together. How do I do this?  I'm sure it's easy, but any help is much appreciated.
    Example:
    Invoice total: $ SUM
    Thanks

    Hi reychido,
    The literal answer your question is Cell A6 contains:
    ="Invoice Total: "&"$ "&A5
    I had to add an extra step. A5 is the SUM of A2:A4, then formatted as Number with 2 decimal places. Without that step, the SUM showed as 56.7
    My second example is another way. Cell C5 contains =SUM(C2:C4) and is formatted as Currency.
    Regards,
    Ian

  • Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Yes.
    Captfred

  • I am subscribed to Photoshop only and I want to know if I can change my subscription to have your new offer of Lightroom and Photoshop together for the same price I am paying for Photoshop alone?

    I am subscribed to Photoshop only and I want to know if I can change my subscription to have your new offer of Lightroom and Photoshop together for the same price that I am paying for Photoshop alone?

    Contact sales support by web chat. They can cancel your current subscription and transfer you to the new one if you are within certain criteria. Otherwise you may need to wait until your subscription runs out and then sign up later.
    Mylenium

  • I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro D

    I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro DC has limitations. There is no way to define what points in columns to force break column? Nor create many columns that are useless? How does text to column in Excel, fixed size when we import text, and define where the breaks have columns?
    Google Tradutor para empresas:Google Toolkit de tradução para appsTradutor de sitesGlobal Market Finder
    Desativar tradução instantâneaSobre o Google TradutorCelularComunidadePrivacidade e TermosAjudaEnviar feedback

    PDF does not contain columns, rows, formats, styles, or other aspects of word processing or spreadsheet file formats.
    This is because PDF is decidedly not a word processing or spreadsheet file format or something "like" one of those.
    (see ISO 32000 for what PDF "is")
    What can optimize the export of PDF page content is to start with a well-formed tagged PDF (ISO 14289-1, PDF/UA-1 compliant).
    Without that export is what it is and one performs whatever content cleanup is needed using the native application for the export file (MS Word or Excel).
    Be well...

  • CAn I run Lion and snow leopard on the same computer with different sign-ins?

    CAn I run Lion and snow leopard on the same computer with different sign-ins?

    Alternatively, partition your internal HD and dual-boot it. Do note that you have to reboot to switch back and forth. You can't do it by logging out and back in.

  • Can I install iwork and microsoft office in the same computer?

    Can I install iwork and microsoft office in the same computer?

    Yes, you can. I have both Microsoft Office and Apple iWork on my computer, and everything works just fine.
    Charlie

  • Border and font setting for the same cell

    I have writen a label in an excel cell using a font that I created (called "wf" - see code below).
    I also want to put a left thick border to the same cell.
    How can I do that?
    ps: I call this function from "main":
    private static void writeDataSheet(WritableSheet s)
    WritableFont wf = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD);
    WritableCellFormat cf = new WritableCellFormat(wf);
    Label l = new Label(1,0,"Last Name",cf);
    s.addCell(l);
    What code should I add to the upper function in order to set a left thick border to my cell?

    this issue has been solved

  • Can I use conditional and advanced actions on the same button?

    I'm fairly new to Captivate, but come from a background of flash and am struggling to use Captivate to do some things I would have expected to be fairly simple and a normal requirement.
    I want to create a screen with a number of interactive objects, in this case pictures, that the learner clicks on to display a piece of text.
    On clicking the next picture the first piece of text is hidden and a second piece shown.
    There are 6 pictures/buttons that need to work this way.
    However I also want to assess whether all the buttons have been used, as we have to force the user to view the entire slide before they continue.
    I can do the hide/show of text and buttons, and I've written a conditional action to check the variables for each button. However I don't know how/when to call this action.
    I was hoping that in my advanced action for each button I could add in a call to the conditional 'check variables' action, which would nicely fulfil this requirement, however this doesn't seem to be the case.
    I have also got animation/effects on the timeline before the images are on screen meaning I don't want to go back to the start of the timeline to use a 'on enter' event.
    I'm surprised this isn't something more people need as although it may be frowned upon out in the e-learning field, disabled navigation is frankly not going away and working for any large corporation will be a must.
    If anyone can shed some light on this, or maybe suggest a better approach then I would appreciate it.
    Thanks.

    Hi Lilybiri,
    Thank you for this, I suspected that this was going to be the way I would have to progress.
    I have to ask though, at present the company I work for uses a very straight forward off the shelf WYSIWYG elearning content designer.
    One of the core template pages is a hotspot page, which works in the way I have explained at the top.
    This is also one of the standard e-learning pages I have used in all my other positions, including when building in Flash.
    It seems incredible to me that to do such a simple, commonly used, page type we will require what is a fairly involved process rather than this being one of the page types or templates.
    I am currently trying to pilot Captivate to show how much better it is to the current product, however the other designers have no programming background and I think will stuggle with the conditional actions, meaning that this is pretty much going to be a no go which I'm gutted about...
    I think I stand a chance of teaching advanced actions but anything beyond that is unlikely initially.
    RodWard, thanks for your comments, I'm finding the actions ok in Captivate, as I say above I'm just amazed that this simple and commonly used page is so convoluted to create!
    My other frustration is the lack of control of the events, not being able to specify x and y for motions etc. but I'm finding work arounds...
    Is there a way to create my own page template? Could I write all the actions and bundle that into a page to provide the other designers so with some naming conventions they could use this functionality?
    Thanks for your help.
    Matt

  • Using a button and a textfield in the same cell of a table

    I have been struggling with this problem for ages, please someone help...
    I am trying to implement a table similar to NetBeans property sheet editor where you have a textfield and a button with "..." in the same table cell. The button is used to invoke a custom editor.
    I have most things working, custom renderers, custom editors and such.
    However, the focus interactions on the table seem completely screwed. Clicking in the editor causes the cell to switch to editing mode as expected. Pressing cursor down or tab, which should close the editor and move focus to the next cell down does not work - the editor closes but the focus disappears to a completely different component elsewhere on my GUI.
    My textfield and button are on a JPanel, and I return that JPanel when getTableCellEditorComponent is called.
    If I switch out the JPanel and instead return the textfield, the focus works as normal.
    I've even looked at the NetBeans source but I can't work out what their trick is.
    Any tips would be gratefully received.
    TIA.

    Thanks for your time, Jeanette...
    Here is a bare-bones example of the problem I'm having. I'm running on JDK1.4 and JDK1.3.1_02.
    I've tried some tricks (hacks) with getNextFocusableComponent and requestDefautFocus and such but with no success.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    * This example shows a keyboard/focus navigation problem when using a JPanel
    * as a table cell editor. The JPanel contains a textfield and a button.
    * Click in the editor to invoke it, and tab-off (or press cursor down). The
    * edit ends, but the focus disappears rather than moving to the next cell in
    * the table.
    * Change the line that returns the panel to return a text field instead, and
    * all is well.
    public class Test
      public static void main( String[] args )
        new Test();
      public Test()
        JFrame f = new JFrame();
        f.setContentPane( new TablePanel() );
        f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        f.setSize( 800, 600 );
        f.setVisible( true );
      class TablePanel extends JPanel
        TablePanel()
          setLayout( new BorderLayout() );
          JTable table = new JTable();
          table.setDefaultEditor( Object.class, new MyEditor() );
          table.setModel(
            new DefaultTableModel(
              new Object[][]
                {null, null},
                {null, null},
                {null, null},
                {null, null}
              new String[] { "A", "B" } ) );
          add( table, BorderLayout.CENTER );
      class MyEditor extends AbstractCellEditor implements TableCellEditor
        private JComponent myEditorPanel;
        private JTextField myTextField;
        MyEditor()
          myEditorPanel = new MyEditorPanel();
          myTextField = new JTextField();
        public Object getCellEditorValue()
          return null;
        public Component getTableCellEditorComponent( JTable table, Object value,
                                                      boolean isSelected,
                                                      int row, int column )
          return myEditorPanel;   // Problems...
    //      return myTextField;   // Keyboard and focus as expected
      class MyEditorPanel extends JPanel
        JTextField tf;
        MyEditorPanel()
          setLayout( new BorderLayout() );
          tf = new JTextField();
          add( tf, BorderLayout.CENTER );
          add( new JButton( "edit" ), BorderLayout.EAST );

  • Can I Edit SD and HDV footage at the same time in CS4?

    I have a Sony PD 150 camcorder and I'm looking at buying a Sony HDR-HC# HDV 1080i camcorder to use as a second camera on video shoots.  Can I edit footage from both cameras on the same timeline in CS4?    I'm using a PC, running Windows XP Home Edition, Version 2002 with an Intel (R) Pentium (R) 2.80 GB processor with 2.5 GB of RAM.  Thanks!
    Lewis B.

    Do you already have CS4 ?
    CS5 is days away.  9 Days for the first look.
    I have a Windows XP 2005 with 3.4GHz with 4GB of ram and it cant handle HDV for HD video.
    I have a Sony HVR Z1U and use the in camera down-rez and edit in SD just fine.
    Like said before you really need a new computer to edit the HDV but if your going to DVD then your only using SD anyway.
    But to answer you question you can mix formats with CS4.
    As you can see my system ranks second from last on Bills Benchmark tests.
    http://ppbm4.com/Benchmark.html
    Take the test to see how your system stacks up.
    ENjoy:  Glenn

  • Is there any way i can keep pages documents and numbers documents in the same file?

    Im trying to group pages and numbers documents in the same file is this possible?

    Not on the iPad itself, no. iOS apps keep their documents within each app itself. You would need to save the documents to a WebDAV server. Dropbox can serve this function if partnered with DropDAV. See:
    http://techinch.com/blog/integrate-dropbox-with-pages-keynote-and-numbers-on-ipa d
    Regards.

  • How can I load more then 1 img within the same Cell of datagrid?

    Hi
    I am using Flash CS3 datagrid component, I want to show more than one image in the same cell.
    I m using LoadCellRenderer class extends UILoader implements ICellRenderer,
    but it loads only one image in cell.
    can any one guide me?
    Thanks in advance.

    Hi, kennethkawamoto2
    I go through the on-going thread. and apply the code also but result is same,
    Data Grid inbuilt Roll over , selected, selection --  events are disappear after apply custom CellRenderer class.
    Any idea Why this happend?

  • Why are some websites turning hot pink in Firefox? In IE it's fine. I can't read text and buttons are missing as well as some photos. It's really difficult and I've already checked my Color settings. Help?

    I've recently tried to make the switch to Firefox as we all know IE is unsafe and my computer was almost lost to a virus. However, it's been difficult as I can't log into my e-mail (after thirty seconds I get kicked back to the login page) and some screens come up as a violently pink color with pale blue font. Links disappear and often times the wording is rewritten in Times font over a button. Pictures disappear and simply say where the photo came from (like "Photo courtesy of the AP") I've tried to adjust settings but it's not helping any.

    You can check the default color settings:
    * Tools > Options > Content : Fonts & Colors > Colors
    Also make sure that "Allow pages to choose their own colors, instead of my selections above" has a check mark.
    See also:
    * [[Websites look wrong]]
    * [[Website colors are wrong]]

Maybe you are looking for

  • Load file does not exist

    We have several users using OLS V4.2 on one of our citrix servers. However, one of our users can upload an excel sheet into OLS. She always gets the error : Package Result = Error] Package:                     Import excel V2 Appset:                 

  • I just transfered my Iphoto Library of 40k pictures to an external hard drive.  I want to put them on a new desktop, how do I do that?

    I just transfered my iphoto library of 40k pictures to an external hard drive.  I now want to put them onto a newer desktop.  How do I do that?

  • Imovie event library

    Hey Apple users out there. Years ago I started out with a Steve Wozniac signed Apple IIGS. Switched to PCs due to software and finally am back in the Apple fold. I am learning with the imovie after using Ulead for a while. When I do a project, then c

  • Can the dvd player support PAL formatted dvds?

    Hi, I'm moving from the States to France, and I'm wondering of the dvd drive supports PAL formatted dvds. If not, is there an easy, user-friendly way to convert from PAL to NTSC? Thanks!

  • Problem with executing script in sql*plus

    I have Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production installed And I have a script for generating Packages with more than 1000 rows. when I try to execute I get this: SQL> @c:\gen_pkg\gen_pkg.sql Package created. 977 The Package