ALV Edit Field with error

Hi!
I'm trying to enter data into a few fields of my ALV but when I press save or double click or try to do any action I'm getting and error and I can't go into my gode to get the data and save it into my tables.
I declarated my ALV table like
DATA BEGIN OF it_output OCCURS 0.
DATA:
kunag    TYPE s901-kunag,
zbuilder TYPE s901-zbuilder,
kunnr    TYPE s901-kunnr,
zdepbal  TYPE s901-zdepbal,
zdepret  TYPE s901-zdepret,
zretbal  TYPE s901-zretbal,
zretret  TYPE s901-zretret,
zdepadj  TYPE s901-zdepadj,
zretadj  TYPE s901-zretadj,
zdisdel  TYPE s901-zdisdel,
zchpdel  TYPE s901-zchpdel,
fields to be filled
returned TYPE s901-zdepbal,
scrapped TYPE s901-zdepbal,
comments(30),
bstkd    TYPE bstkd,
trmtyp   TYPE trmtyp,
werks    TYPE werks,
   END OF it_output.
the last 6 fields are the ones that I need to fill.
The error that I'm getting is into a pop up and it says :
Field T_output_trmtyp is not in the apab dictionary.
Did someone has this problem before? I'll keep looking for the solution.
thanks.

Hi,
Long time back I faced a little similar kind of error. But not exactly for this scenario. I don't remember what the issue was but it was solved when I changed the variable type declaration. I mean, earlier I had declared it as
werks TYPE werks_d.
But later I changed it as
werks LIKE T001W-werks.
And this solved my problem. Hope this may help u...

Similar Messages

  • Editable field with F4 help in alv tree output using cl_gui_alv_tree

    HI
    i need Editable field with F4 help in alv tree output using cl_gui_alv_tree
    Regards
    Naresh

    Hi Naresh,
    Pass the field catalog with the additional parameter (ls_fcat-edit = 'X'.).
    for F4 help if the data element have the search help it automatically will come. other wise include the additional parameter in the field catalog (ls_fcat-F4AVAILABL = 'X')
    Reward if found helpful.
    Regards,
    Boobalan Suburaj

  • Search Help in ALV Editable Field

    Hi,
    My requirentment is to get F4 functionality for one  Editable field,
    These F4 values should come from processing of internal table.
    i have searched in SDN but didnt get satisfactory answer for it.
    . I dont want to use ALV control table concept and with OOPs ALV,
    Please let me know.how we can achieve this functionality,
    your suggestions are always welcome.
    Regards
    Vivek

    Hi,
    Use the Function module: F4IF_INT_TABLE_VALUE_REQUEST
    The below code shows how function module F4IF_INT_TABLE_VALUE_REQUEST is used to display a basic ABAP internal table as an SAP search help.  
    parameters: p_ebeln type ekko-ebeln.
    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,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko,
          it_return type STANDARD TABLE OF DDSHRETVAL,
          wa_return like line of it_return.
    *at selection-screen
    at selection-screen on value-request for p_ebeln.
    select *
      up to 10 rows
      from ekko
      into CORRESPONDING FIELDS OF TABLE it_ekko.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = 'EKKO'
        RETFIELD               = 'EBELN'
      PVALKEY                = ' '
       DYNPPROG               = sy-repid
       DYNPNR                 = sy-dynnr
      DYNPROFIELD            = 'EBELN'
      STEPL                  = 0
        WINDOW_TITLE           = 'Ekko Records'
      VALUE                  = ' '
        VALUE_ORG              = 'S'
       MULTIPLE_CHOICE        = 'X'  "allows you select multiple entries from the popup
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             = ld_ret
      TABLES
        VALUE_TAB              = it_ekko
       FIELD_TAB              = lt_field
        RETURN_TAB             = it_return
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3.
    READ TABLE it_return into wa_return index 1.
    p_ebeln = wa_return-fieldval.
    Hope it helps you.
    Regards,
    Anju

  • How to make WD ALV Editable Fields (Cell) Mandatory (Obligatory) ?

    Hello Friends,
    I have requirement where I need to make WD ALV editable inputfield as Mandatory fields. I found out that there is no method available to do this.
    If anybody has any solution then please reply to this thread.
    Thanks,
    Chandra

    Hello Friends,
    Thanks for your reply. I just wanted to elaborate more on this so that others will benefit from this thread.
    I used method SET_STATE from class CL_SALV_WD_UIE_A_INPUT which is super class for class CL_SALV_WD_UIE_INPUT_FIELD.
    The code looks as below,
    Data:    lr_input_field     TYPE REF TO cl_salv_wd_uie_input_field.
            CALL METHOD lr_input_field->set_state
              EXPORTING
                value = cl_wd_abstract_input_field=>e_state-required.
    well, I just forgot to check super class and its available methods...But got clear hint from Tulasi.
    Thanks to all.
    Chandra

  • Editable ALV - editable fields after copying row

    Hi all!
    I've got a (simple?) problem. I created an editable ALV (by using class CL_GUI_ALV_GRID). There it is possible to add, delte or change entries. That's work!
    The  problem is, when the user copies an entry, the fields are not ready for input. It's the default function of the ALV. My questions is, how can I make the new line editable (including the key fields). I tried to replace the "copy line" function of the ALV with my own function code (on event TOOLBAR) and process it on event BEFORE_USER_COMMAND.
    In my own copy routine I read the selected line to create a new one with the same values, set the attributes (field table type LVC_T_STYL) for the new line and append it to my internal table. After that, I make a refresh of the ALV. Unfortunately the DATA_CHANGED event does not work anymore. So it is not possible for me to check for double entries and validitiy. It doesn't help to call method CHECK_CHANGED_DATA on the grid instance.
    Does anybody has an idea or an example??
    Thank you a lot!
    Best regards,
    Florian
    PS: I used the report BCALV_EDIT_04 as example, but unfortunatley there is no copy functionality implemented!

    Hi,
    Please check this [thread|Re: ALV Function module to Copy the  row;.
    Hope this helps.
    Regards,
    Chandravadan

  • ALV Edit Field...

    Hi all,
    I have this problem...
    I'd built a interactive OO ALV where users can edit the line items.
    However, there is this field, EMAIL, during edit, users won't be able add in text to it...
    I have make the EMAIL long enough, as long as 225 characters...
    but strange once you update it... and go in to edit it again... it won't let me put in text more... it will only let you type as far as previous data...
    Why can't i enter data until 225 chars max for that particular field EMAIL in my OO ALV...
    p/s : I have put my FIELDCAT-OUTPUTLEN = '225' ... still i couldn't add more text to that field EMAIL...
    Please let me know if there have been previous solution given in SCN...
    Thanks,
    William Wilstroth
    Edited by: william wilstroth on Sep 8, 2008 6:53 PM

    Hi William,
    goto saptechinal website there in tutorial you will find multilple sample programs over there
    Regards,
    Chinna

  • Does anyone know why I cant save (dnloaded) form to edit fields with Cute PDF Writer?

    Please Help!!  I am trying to get stuff out to a customer, and I have to keep re-entering information each time.........For some reason after I download a form and complete the fields from internet,  I PRINT/SAVE to Adobe Cute PDF Writer.  Later when I open the file from harddrive I am unable to edit the fields....But I notice even after saving to the Writer,  it automatically opens as reader not writer.   I have tried to associate to the Writer but I cant find it, although I know its on my computer it isnt under program files. 
    My main question - Before I go through the trouble of reinstall, does cute PDF Writer actually allow edits or do I have to get a real PDF writer?
    So if the software does allow editing forms, is it maybe just not fully loaded, and should I reinstall the Cute PDF Writer???? Id appreciate any ideas at this point, this has caused alot of wasted time so far....

    Go to the Acrobat forum here to discuss PDF form creation and editing with Adobe's own Acrobat products. CutePDF Writer, created by another company, only writes PDF. It cannot create or edit forms.

  • ALV Grid: Problem with errors

    Hi,
      Many of you must have definitely experienced this problem.
    I have some default rows on ALV screen for user to enter data.
    Say field1, field2 are in the fields list. Now if user puts values in field2, I consider that as a change and I validate entire row. Say field1 is mandatory. I show an error on field1 when field2 has been changed by adding protocol entry.
    Now if user changes different row and presses enter, mod_cells does not contain entries related to field1 for first row even though protocol contains errors for field1 on first row. Because of this, first row is not getting validated again.
    I added adding an entry in mod_cells for field1. It does not seem to work.
    Please let me know if you have any solution for this problem.
    Thanks.
    Srinivas.

    Hi Aaron,
    set_selected_cells or so is the method. then user is positioned at the error cell.
    regards,
    Clemens

  • ALV- Editable cell with sign (+/-)

    Hello,
    I have an ALV with one editable cell. I need that in this cell I can put a number with sign, I try with data elements that accepts sign but it doesn't work well.
    Can anyone help me? Can I modify the fieldcatalog.
    I'm using the FM Reuse_alv_grid.
    Thanks

    try this..
    wa_fcat-no_sign = '  '.

  • Edit Field with button (...)

    I'm beginner in Java. I'd like a cell in a table with a button (...) on the right side to open a Dialogbox (FileDialog to put a filename in the cell). Thank you in advance for any help.
    Regards
    Museti

    Hi
    I have tried the codes below but can't get it right. Could you tell me what is going wrong here? Thanks.
    //MyTableCellRenderer
    package testrenderer;
    import javax.swing.UIManager;
    import java.awt.*;
    public class MyTableCellRenderer {
    boolean packFrame = false;
    /**Die Anwendung konstruieren*/
    public MyTableCellRenderer() {
    FrameCellRenderer frame = new FrameCellRenderer();
    //Frames �berpr�fen, die voreingestellte Gr��e haben
    //Frames packen, die nutzbare bevorzugte Gr��eninformationen enthalten, z.B. aus ihrem Layout
    if (packFrame) {
    frame.pack();
    else {
    frame.validate();
    //Das Fenster zentrieren
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width) {
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    /**Main-Methode*/
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    e.printStackTrace();
    new MyTableCellRenderer();
    // FrameCellRenderer.java
    package testrenderer;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class FrameCellRenderer extends JFrame
    implements MyTableData
    JPanel contentPane;
    JMenuBar jMenuBar1 = new JMenuBar();
    JMenu jMenuFile = new JMenu();
    JMenuItem jMenuFileExit = new JMenuItem();
    JMenu jMenuHelp = new JMenu();
    JMenuItem jMenuHelpAbout = new JMenuItem();
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    BorderLayout borderLayout2 = new BorderLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable jTable1 = new JTable(DATA, COLHEADS);
    BrowseButtonEditor be = new BrowseButtonEditor();
    /**Den Frame konstruieren*/
    public FrameCellRenderer() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    /**Initialisierung der Komponenten*/
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(FrameCellRenderer.class.getResource("[Ihr Symbol]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Table Cell Renderer");
    jMenuFile.setText("Datei");
    jMenuFileExit.setText("Beenden");
    jMenuFileExit.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jMenuFileExit_actionPerformed(e);
    jMenuHelp.setText("Hilfe");
    jMenuHelpAbout.setText("Info");
    jMenuHelpAbout.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jMenuHelpAbout_actionPerformed(e);
    jPanel1.setLayout(borderLayout2);
    jMenuFile.add(jMenuFileExit);
    jMenuHelp.add(jMenuHelpAbout);
    jMenuBar1.add(jMenuFile);
    jMenuBar1.add(jMenuHelp);
    contentPane.add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jScrollPane1, BorderLayout.CENTER);
    jScrollPane1.getViewport().add(jTable1, null);
    this.setJMenuBar(jMenuBar1);
    jTable1.getColumn("URL").setCellRenderer(new BrowseButtonRenderer());
    jTable1.getColumn("URL").setCellEditor(new BrowseButtonEditor());
    /**Aktion Datei | Beenden durchgef�hrt*/
    public void jMenuFileExit_actionPerformed(ActionEvent e) {
    System.exit(0);
    /**Aktion Hilfe | Info durchgef�hrt*/
    public void jMenuHelpAbout_actionPerformed(ActionEvent e) {
    /**�berschrieben, so dass eine Beendigung beim Schlie�en des Fensters m�glich ist.*/
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    jMenuFileExit_actionPerformed(null);
    // MyTableData.java
    public interface MyTableData {
    public static final String[][] DATA = {
    {"Vertrag 01","c:\\vertrag\\deutsch\\vertrag01.htm"},
    {"Vertrag 02","c:\\vertrag\\deutsch\\vertrag02.htm"},
    {"Vertrag 03","c:\\vertrag\\franz�sisch\\vertrag03.htm"},
    {"Vertrag 04","c:\\vertrag\\franz�sisch\\vertrag04.htm"}
    public static final String[] COLHEADS = {
    "Bezeichnung", "URL"
    // BrowseButtonEditor.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class BrowseButtonEditor
    extends AbstractCustomCellEditor
         private BrowseButtonRenderer br;
         public BrowseButtonEditor()
              br = new BrowseButtonRenderer("...");
              this.addMouseListenerToLabel();
         public BrowseButtonEditor(String title)
              br = new BrowseButtonRenderer(title);
              this.addMouseListenerToLabel();
         public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
                                                      int row, int column)
              JButton button = br.getButton();
    button.setText("...");
              String sStr = new String(((String)value));
    setCellEditorValue(sStr);
    JLabel label = br.getLabel();
    label.setText(sStr);
              return br;
         public boolean stopCellEditing()
              JButton button = br.getButton();
    JLabel label = br.getLabel();
              setCellEditorValue(new String(label.getText()));
              return super.stopCellEditing();
         private void addMouseListenerToLabel()
              br.getLabel().addMouseListener(new MouseAdapter()
                        public void mousePressed(MouseEvent e)
                             if (e.getClickCount() == 2)
                                  cancelCellEditing();
    // BrowseButtonRenderer.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.TableCellRenderer;
    public class BrowseButtonRenderer
    extends JPanel implements
    TableCellRenderer
         private BorderLayout borderLayout1 = new BorderLayout();
         private JLabel label = new JLabel();
         private JButton button = new JButton();
         public BrowseButtonRenderer()
              this.setSize(40, 40);
              this.setLayout(borderLayout1);
              button.setPreferredSize(new Dimension(40, 30));
              this.add(label, BorderLayout.NORTH);
              this.add(button, BorderLayout.EAST);
              label.setHorizontalAlignment(JLabel.LEFT);
              label.setHorizontalTextPosition(JLabel.LEFT);
              // add change listener to button
              button.addChangeListener(new ChangeListener()
                        public void stateChanged(ChangeEvent e)
                             label.setText("" + button.getValue());
    button.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    button_actionPerformed(e);
         public BrowseButtonRenderer(String title)
              this();
    button.setText(title);
         public Component getTableCellRendererComponent(JTable table, Object value,
                                                      boolean isSelected, boolean hasFocus, int row, int column)
              String v = (String)value;
              String sStr = (String)value;
              label.setText(sStr);
              button.setEnabled(isSelected);
              label.setEnabled(isSelected);
              label.setBackground(isSelected && hasFocus ? table.getSelectionBackground() : table.getBackground());
              button.setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
    label.setBackground(Color.white);
              this.setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
              this.setForeground(isSelected && hasFocus ?     table.getSelectionBackground() : table.getBackground());
              this.setFont(table.getFont());
              return this;
         public JButton getButton()
              return button;
         public JLabel getLabel()
              return label;
    void button_actionPerformed(ActionEvent e)
    JFileChooser datei = new JFileChooser();
    String sFile = new String("");
    int returnVal = datei.showOpenDialog(this);
    if (returnVal == JFileChooser.APPROVE_OPTION)
    sFile = datei.getSelectedFile().getName();
    System.out.println("You chose to open this file: " + sFile);
    label.setText(sFile);
    // AbstractCustomCellEditor.java
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import javax.swing.tree.*;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    * <P>
    * This abstract class can be extended in order to customize the look and
    * feel of the editor for a table cell. This will allow the use of any type
    * of component (i.e. JComboBox, JSlider, JCheckBox, or other custom renderers)
    * </P>
    * <P>
    * This class uses and EventListenerList to maintain a list of CellEditorListeners
    * and provides two protected methods for firing editing-stopped and editing-canceled
    * events to listeners.
    * </P>
    * <P>
    * This class also maintains an Object reference that represents the editor's value.
    * In addition to implementing the TableCellEditor.getCellEditorValue() method, this
    * class also provides a setter method for this value - setCellEditorvalue(Object value)
    * </P>
    * <P>
    * This class, like DefaultCellEditor, provides a clickCountToStart property that
    * specifies the number of mouse clicks required to initiate editing.
    * </P>
    * <P>
    * This class defines a cell to be editable if the event passed to
    * isCellEditable() is a mouse event and the click count is equal to (or greater than)
    * the clickCountToStart.
    * </P>
    * <P>
    * This class also defined all cells to be selectable.
    * </P>
    * <P>
    * The stopCellEditing and cancelCellEditing methods fire appropriate events, and
    * stopCellEditing returns true, indicating that editing was stopped.
    * </P>
    * <P>
    * Important Note: This class leaves the getTableCellEditorComponent method defined
    * by TableCellEditor unimplemented. Extensions of this class MUST implement
    * getTableCellEditorComponent().
    * </P>
    * <P>
    * Note: This code was extracted and modified from:
    * Graphic Java 2 - Mastering the JFC vol. II: Swing (3rd. ed)
    * by: David M. Geary
    * ISBN: 0-13-079667-0
    * Chapter 19: Tables
    * AbstractCellEditor
    * </P>
    * <P>
    * @author A. Timpone
    abstract class AbstractCustomCellEditor implements TableCellEditor
         protected EventListenerList listenerList = new EventListenerList();
         protected Object value;
         protected ChangeEvent changeEvent = null;
         protected int clickCountToStart = 1;
         * This method returns tha value (as an Object) stored within
         * the editor
         * @return The Object representation of the editor's value
         public Object getCellEditorValue()
              return value;
         * This method is used to set the value of the editor
         * @param value The value you wish to set the editor component to
         public void setCellEditorValue(Object value)
              this.value = value;
         * This method is used to control the number of mouse clicks required to invoke
         * the editor
         * @count Defaulted to 1, this is the number of clicks you wish performed to invoke the editor
         public void setClickCountToStart(int count)
              clickCountToStart = count;
         * The method returns the number of clicks required to invoke the editor
         * @return The number of mouse clicks required to invoke the editor
         public int getClickCountToStart()
              return clickCountToStart;
         * This method determines if a cell extending this class is editable based on
         * the type of event performed on the cell. If this event is of type MouseEvent,
         * it will invoke the editor if the correct number of clicks is performed
         * @param anEvent The type of event being performed on the cell
         * @return true of false indicating the cell is editable
         public boolean isCellEditable(EventObject anEvent)
              if (anEvent instanceof MouseEvent)
                   if (((MouseEvent)anEvent).getClickCount() < clickCountToStart)
                        return false;
              return true;
         * This method determines if the cell should be selected.
         * By default, this method returns true
         * @param anEvent The type of event being performed on the cell
         * @return true of false indicating the cell is selected (Default to true)
         public boolean shouldSelectCell(EventObject anEvent)
              return true;
         * This method executed the TableCellEditor.fireEditingStopped() method
         * indicating that editing on the current cell has stopped
         * @return true or false indicating cell editing has stopped (Default to true)
         public boolean stopCellEditing()
              fireEditingStopped();
              return true;
         * This method executed the TableCellEditor.fireEditingCanceled() method
         * indicating that editing on the current cell has been canceled
         public void cancelCellEditing()
              fireEditingCanceled();
         * This method adds a CellEditorListener to the cell entending this class.
         * This listener is added into the listener list
         * @param l This is the CellEditorListener you wish to add to the specific cell
         public void addCellEditorListener(CellEditorListener l)
              listenerList.add(CellEditorListener.class, l);
         * This method removes a CellEditorListener from the cell entending this class.
         * This listener is removed from the listener list
         * @param l This is the CellEditorListener you wish to remove from the specific cell
         public void removeCellEditorListener(CellEditorListener l)
              listenerList.remove(CellEditorListener.class, l);
         * This method loops through all of the listeners within the listenerList
         * and calls the appropriate editingStopped() method passing in the
         * ChangeEvent
         protected void fireEditingStopped()
              Object[] listeners = listenerList.getListenerList();
              for (int i = listeners.length-2; i>=0; i-=2)
                   if (listeners[i] == CellEditorListener.class)
                        if (changeEvent == null)
                             changeEvent = new ChangeEvent(this);
                        ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent);
         * This method loops through all of the listeners within the listenerList
         * and calls the appropriate editingCanceled() method passing in the
         * ChangeEvent
         protected void fireEditingCanceled()
              Object[] listeners = listenerList.getListenerList();
              for (int i = listeners.length - 2; i >= 0; i -= 2)
                   if (listeners==CellEditorListener.class)
                        if (changeEvent == null)
                             changeEvent = new ChangeEvent(this);
                        ((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent);

  • Editable field in alv tree output using cl_gui_alv_tree

    Hi,
    i need Editable field with F4 help in alv tree output using cl_gui_alv_tree.
    regards,
    Naresh

    sadly, this is not possible. An ALV Tree cannot by editable.
    Regards

  • Error when trying to set a date type edit field

    Hi all
    I have an edit text field in a form which is bounded to a date type
    database field using dbDataSource.
    When i try to set the edit text field value with Today's date by code.
    I recieve an error message that the value which
    i'm trying to set is not legal. the  error number is [131-183].
    I use the following code to set the edit field:
    If oEditText.Value.Trim = String.Empty Then
                Dim strDate As String
                Dim sboBob As SAPbobsCOM.SBObob =
                 oCompany.GetBusinessObjec(SAPbobsCOM.BoObjectTypes.BoBridge)
                 rs = sboBob.Format_DateToString(Microsoft.VisualBasic.Today)
               strDate = rs.Fields.Item(0).Value.ToString().Trim()
    Try 
           oEditText.Value = strDate
    Catch ex As Exception
        SBO_Application.MessageBox("error setting
    current date: " & ex.Message)
    End Try
    End If
    My question is how can i set the edit field with a valid value?

    Hi!
    When writing to EditText.Value you must always use the B1 "DB-Format" as String.
    The following examples are assuming (it's a must!) that the EditText-Fields are bound to a corrosponding DataSource (Type Date, Price etc...)
    MyDateEditTxt.Value="20080207"
    MyPriceEditTxt.Value="1341.79"
    The best of it: It's Windows and SBO-GUI-Language independent.
    EditText.String must always be written with the format of the actual Language of the SBO-GUI, which can be changed by the user....
    You may also have a look at my statements regarding these problems near the end of this thread:
    [How to pass date value to an UDF;
    Cheers,
    Roland

  • How to get Length of Editable Field greater than 10 using ALV_GRID_DISPLAY

    Hi Experts,
    I am Using , REUSE_ALV_GRID_DISPLAY_LVC For Displaying  an ALV Report .
    Now i'm Using Few fields in Editable mode , but the problem is that , the length of those, editable fields is restricted only to 10 characteras.
    But i need a editable  field with length of 20 chars , ,for, entering some remarks..Is it possible ?
    Can anyone, help how to do that ..?
    Thanx in Advance .. 
    Regards,
    Rajesh

    you can make use of INTLEN
    set the value to 20 and then you can enter to 20 chars.
    FIELDCAT-INTLEN = 20.
    FIELDCAT-OUTPUTLEN = 20.

  • To capture the selected rows along with edited field contents in alv report

    Dear All,
             I do have requirement where, in alv report output one field is editable and need to save the content of the edited field along with the selected rows.
             For example If there are 10 records displayed in the alv output with 20 fields.
    Out of this 20 fields one field (say XYZ) is editable. Also i have already created a new pushbutton (say ABC) on alv output. Now in the alv output if we maintain some value in the field (XYZ ) for the 2nd and 4th record and select this two records, and when clicked on the pushbutton (ABC) it has to update the DB table.
          I am using the Func Module  'REUSE_ALV_GRID_DISPLAY'. 
          Your early reply with sample code would be appreciated.
    Thanks in Advance.

    HI Naveen ,
    There is an import parameter "i_callback_program" in the function module,
    plz pass the program name to it.
    Capture the command by passing a field of type sy-ucomm to "I_CALLBACK_USER_COMMAND ".  Check the returned command and
    and program a functionality as desired.
    u can try the event double_click or at line selection. there u can use READLINE command to c if the line has been selected.
    In case it is , process the code segment.
    Regards
    Pankaj

  • ALV grid with editable fields

    Dear Colleagues,
    I develop an ALV grid with OO standard methods. Before the first display of the table I define the editable fields. It works fine.
    I have a problem : if the table is empty and I press the standard icons "Append a line" or "Insert a line", the new line don't have the defined editable characteristics.for fields. Is there a standard method which I have forgotten ?
    Thanks a lot and kind regards
    Peter

    vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_delete_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_append_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_copy_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_insert_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_copy.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_cut.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_paste.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_undo.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
        vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
        APPEND vs_toolbar_excluding TO i_toolbar_excluding.
    * Displaying the output in ALV Grid
        vs_layout_grid-no_rowmark = 'X'.
        vs_layout_grid-zebra      = 'X'.
        vs_layout_grid-cwidth_opt = 'X'.
        vs_layout_grid-edit       = 'X'.
        vs_layout_grid-ctab_fname = 'CT'.
        vs_layout_grid-stylefname = 'CELLTAB'.
        CALL METHOD v_grid->set_table_for_first_display
          EXPORTING
            i_save                        = 'X'
            is_layout                     = vs_layout_grid
            it_toolbar_excluding          = i_toolbar_excluding[]
          CHANGING
            it_outtab                     = itab[]
            it_fieldcatalog               = it_fieldcat[]
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4.
        IF sy-subrc NE 0.
          MESSAGE 'ALV Grid display unsuccessful' TYPE 'I'.
          STOP.
        ENDIF.                             " IF sy-subrc NE 0
      ELSE.                                " IF w_custom_container...
    * Refresh the container if it already exists
        CALL METHOD v_grid->refresh_table_display
          EXCEPTIONS
            finished = 1
            OTHERS   = 2.
        IF sy-subrc NE 0.
          MESSAGE 'Refreshing the container is not successful' TYPE 'I'.
          STOP.
        ENDIF.                            

Maybe you are looking for

  • How to restore my iPhone using a iPad?

    How to restore my iPhone using a iPad?

  • Problems with a call transaction

    Hi, I'm having some problems with a call transaction and I cannot understand why. I put A in the mode, and I am seeing the dynpros and I am pressing enter it works perfectly but when I use mode N it tells me that there is not information for one of t

  • Alternative for Pooled table M_VMVLA in ECC 5 version

    Hi, Pooled table M_VMVLA in version 3.1i does not exist in ECC 5.Can anyone tell me the alternative for this? <b>Pool/cluster  M_VMVL in 3.1i version</b> Helpful answers will be rewarded Thanks Kiran

  • PO Info Record scales

    Hi sapians, We have created scale based info records for   material  A  and vendor B such as: quantity          price 0-100               10 per unit 100-200             9 per unit and open a PO for vendor B like : item 1 : material A   quantity 50 i

  • Distributed product configuration

    Hi, I am new to the JDI and am wondering if it supports the following scenario. Suppose I have a product that is distributed on two systems, can I develop the product in one track only ? For example : suppose I have a J2EE server for my web applicati