Cl_salv_table - How to set grid ready for input

Hi,
I am using the class "cl_salv_table" on a 6.40 system to display an ALV grid.  How can I set the grid cells are ready for input/editing? 
( Something similar to slis_layout_alv-edit parameter  
use in the REUSE_ALV_GRID_DISPLAY function )
I have looked at the demo programs SALV_TEST_TABLE* and
SALV_DEMO_TABLE*.  Unless I am blind I cannot find a way.
Any suggestions?
Lukas
Message was edited by: van vuuren lukas

Hi,
thanks for the reply,
I do not call the SET_TABLE_FOR_FIRST_DISPLAY,
as far as I can tell SALV does not require this. 
Here is in short  what my program looks like:
data: lr_salvgrid  type ref to cl_salv_table,
      lr_columns type ref to cl_salv_columns_table,
      lr_column  type ref to cl_salv_column,
      gt_matdoc type mb_mkpf.
I call method  cl_salv_table=>factory to get a reference to my itab:
        call method cl_salv_table=>factory
          exporting
            list_display = if_salv_c_bool_sap=>false
          importing
            r_salv_table = lr_salvgrid
          changing
            t_table      = gt_matdoc.
Then for fieldcatalogue:
i.e. hide columns etc
  lr_columns = lr_salvgrid->get_columns( ).
  lr_columns->set_optimize( abap_true ).
  lr_column = lr_columns->get_column( 'MANDT' ). 
  lr_column->set_visible( abap_false ).
Then to display:
  lr_salvgrid->display( ).
I would have thought that the edit parameter would be somewhere in the fieldcat ( in class CL_SALV_COLUMN )
but I cannot find it there.  Everything else like text/edit mask/currency/visible etc is here but not edit.

Similar Messages

  • Set specific rows in ALV grid ready for input

    Hi everyone,
      I have a question about how to set specific rows in ALV grid ready for input.
      I know that I can make some columns ready for input before the ALV displayed,but I have no idea how to make specific rows displayed in the ALV ready for input.

    Hello Aaron
    For editable columns we can use the fieldcatalog (LVC_S_FCAT-EDIT = 'X') but for rows you need to define editability on cell level.
    The required steps are documented in sample report BCALV_EDIT_02. Below I point out a few crucial points:
    *§1.Extend your output table for a field, e.g., CELLTAB, that holds
    *   information about the edit status of each cell for the
    *   corresponding row (the table type is SORTED!).
    DATA: BEGIN OF gt_outtab occurs 0.  "with header line
            include structure sflight.
    DATA: celltab type LVC_T_STYL.
    DATA: END OF gt_outtab.
    *§3.Provide the fieldname of the celltab field by using field
    *   STYLEFNAME of the layout structure.
       gs_layout-stylefname = 'CELLTAB'.
       CALL METHOD grid1->set_table_for_first_display
             EXPORTING i_structure_name = 'SFLIGHT'
                       is_layout        = gs_layout
             CHANGING  it_outtab        = gt_outtab[].
    Note: in the sample report only field SEATSMAX is editable. In your case you need
    to fill CELLTAB for all fields in a row.
    *§2.After selecting data, set edit status for each row in a loop
    *   according to field SEATSMAX.
      LOOP AT gt_outtab.
        l_index = sy-tabix.
        refresh lt_celltab.
        if gt_outtab-seatsmax ge 300.
            perform fill_celltab using 'RW'
                                 changing lt_celltab.
        else.
            perform fill_celltab using 'RO'
                                 changing lt_celltab.
        endif.
    *§2c.Copy your celltab to the celltab of the current row of gt_outtab.
        INSERT LINES OF lt_celltab INTO TABLE gt_outtab-celltab.
        MODIFY gt_outtab INDEX l_index.
      ENDLOOP.
    ENDFORM.                               " SELECT_DATA_AND_INIT_STYLE
    NOTE: LVC_T_STYL is a SORTED table type. Thus, take care that you are using the
    INSERT ... INTO TABLE statement and not APPEND (because then nothing is appended
    to the CELLTAB itab).
      IF p_mode EQ 'RW'.
    *§2a.Use attribute CL_GUI_ALV_GRID=>MC_STYLE_ENABLED to set a cell
    *    to status "editable".
        l_mode = cl_gui_alv_grid=>mc_style_enabled.
      ELSE. "p_mode eq 'RO'
    *§2b.Use attribute CL_GUI_ALV_GRID=>MC_STYLE_DISABLED to set a cell
    *    to status "non-editable".
        l_mode = cl_gui_alv_grid=>mc_style_disabled.
      ENDIF.
      ls_celltab-fieldname = 'SEATSMAX'.
      ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
      INSERT ls_celltab INTO TABLE pt_celltab.
    Regards
      Uwe

  • How to set default values for inputs?

    I have several inputs which are always initialized with 0 when I start the VI. I'd like save own default values for them. I've already tried just setting the numbers and saving the VI but it did not work.

            If you want to make any data in any controls, Arrays you can right click on it select >Data operations>Make current values default or you can select EDIT in tool bar, click on Make current values Default.
    First, enter the data you want in the control or array and then follow the things Geeta said.
    Post if any other help required.
    Message Edited by mathan on 12-05-2008 12:07 AM

  • Editing Options - Document Type 'Ready For Input'

    I have a client who wants the default editing option for all users to have the Document Type set to 'Ready For Input'. Is this possible? I have explained how each user can change the own entry but they are not happy with this.
    Any ideas?
    Ged Griffiths

    Hi Jurgan,
    Thanks for your reply ,
    The requirement here is to track the link between 541 and 542 ,
    The processor PO is updated by user in PO field and also added the vendor field (custom) which is again updated by user
    while doing 541 on saving exit finds out the latest PO number for combination of Vendor and material and updates it in one field
    Hence 541 document always contain the processor PO ,and vendor PO
    Normally client use MB1B for this but , if required MIGO can not be used because of this PO field constrain
    Hope its clear
    Thanks
    Diwakar

  • How to define on cell-level: ready for input or not?

    Hello,
    we would like to define on each cell of a table if it's ready for input or not.
    Not only rows or columns should be marked as input-ready but single cells.
    E.g. The user should be able to say A2 is ready for input, B3 ist not.
    Thank you,
    Daniel

    Hi Daniel,
    I can not imagine such a function.
    What is possible, is that you define the data slices according to what you want to be able to enter. so if you include several char with certain values in your data slices, your mask in the end will have the look, that certail cells are not ready for input.
    Unfortunatly you can not set data slices on key figures, so maybe you need an account model.
    regards
    Cornelia

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • How to hide a varible that is ready for input and personalized for a value

    Hi All,
    Is there anyway to hide a variable in variable screen selection which is ready for input and its personalized value is stored in the ODS.
    Any help greatly appreciated.
    Suresh.

    Hi Roberto,
    Is there anyway to hide that variable from the variable screen(with still option being selected as ready for input).I ried all the options such as replacemetn type & copy from another variable.Always it appears in the varaible screen.
    I don't want user to change the value of this variable.
    Cheers,
    Suresh.

  • Interactive form within WebDynpro not ready for input

    Hi,
    After building a simple interactive form with the form builder, I want to fill in the fields in the adobe form. The form is included in a ABAP web dynpro application as Interactive form and the enabled property is checked. But the form fields are still read only and not ready for input.
    The interactive form uses ZCI layout and an ABAP dictionary based interface. The menu item include scripting was hit and I can not fill in the fields. Instead I only see read only fields. When previewing the form in the forms designer, the fields are open.
    Please assist.
    Regards
    Ravikumar

    hi Ravikumar,
    The following code fragment shows how this input readiness can be set up:
    method WDDOMODIFYVIEW.
    data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    check first_time = abap_true.
    LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018INTERACTIVE_FORM_1u2019).
    LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    endmethod.
    Hope this helps.

  • Authorization Variables ready for input

    I have a problem whit a variable, is an authorization variable and ready for input, but when i use this variable and clean the input box this variable don't works as an authorization variable...
    I hope that this variable return all the values where the user has authorization but it return ALL values and not only where the user is authorized...
    How can I make that a blank variable gives me all the values the user is authorized to see?
    Hope someone can help me!
    Best regards
    Enrique

    Steps that you may be missing:
    1. Make the info object authorization relevent. You make this setting in info object maintenance screen -RSA1 .
    2. Create a authorization objects in RSSM for this object.
    3. Maintain values for this object in PFCG for the role that you  assign  to the users.
    After that, run the query.
    Ravi Thothadri

  • How to make a form for input in web interface builder

    Hi expert:
        How to make a form for input in web interface builder?I have already used it to do PS planning, but I don't know how to  draw lines and checkboxes . Thanks in advance.
    Allen

    WAD:
    Open the WAD and create a new template. On the left hand navigation you will have several Web Items available. Under 'Standard' you have 'Analysis' item. Pull that into your template to the right. Under the Properties tab you need to pick the query [form/layout] that you have built in Query Designer.
    You will also find other items such as Button group, Checkbox, drop down, list box etc available. Pick and drag into the template whatever it is you require. Lets say you want a button. Under the Properties tab select the 'Command' that you require. You could use standard commands that are available there. You could also define functions and commands that you require.
    Query Designer:
    Open the QD and drag the characteristics and key figures that you require into the rows and columns of the QD. You would need to specify restrictions under the Filter tab of the QD based on the granularity of data that you require. You would need to remember that the key figures need to be made Input Ready [do this by clicking on KF and on the planning tab select "change by user and planning functions"].
    This shouldgive you a start. After you've explored it yourself a bit we can discuss further and I can certainly provide you additional details/material on these areas.
    Srikant

  • Where is the "not ready for input" field stored in SAP?

    Hi,
    In the tcode CT04, the 'Additional Data' tab has a field called 'not ready for input'. I want to find this value in a table. I thought it was in CABN-ATINP but this does not seem to be populated all the time.
    e.g.
    1. characteristic ABCDE has the value checked in CT04 but there is no entry in CABN-ATINP
    2. characteristic ZYXWV has the value checked in CT04 and there is an entry in CABN-ATINP
    Does anyone know:
    a) why?
    b) how to find the value for point 1 above?
    Thanks,
    Kroc.

    obviously, that is wrong.
    It is true that the ATINP value for batches which have a reference field in CT04 does not ever change but having a reference field does not necessarily mean that it should be display mode.
    Anyone know why the reference field stops the ATINP field update?
    And how does the program know that it should be 'not ready for input' when the ATINP flag is not changed?
    Thanks.

  • Input ready query - not ready for input

    I have created the following in IP:
    1. A multiprovider based on an actuals cube (Standard infocube) and a plan cube (realtime - data can be planned not loaded).
    2. An Aggregation level on the multiprovider - containing infoobjects: 0version, employee, WBS element, infoprovider, fiscal year, fiscal year variant, 0currency and 0amount.
    3. A filter on the following infoobjects: employee (=123456), wbs element(XX.XX.XXX.X), version (variable - mandatory; ready for input), fiscal year(2008) and fiscal year variant(XX).
    4. A planning function to copy from version 0 (actual) to version 866 (random Value - Master data exists).
    I have created a query on the multiprovider and set the query properties correctly. I have also created two restricted key figures as follows:
    1. Actual (Restricted by infoprovider = actual; version = 0; fy = 2007; fyvar = XX)
    2. Plan   (Restricted by infoprovider = plan  ; version = input-ready variable; fy = 2008; fyvar = XX)
    I have used all the infoobjects in the agg. level in the query. I am using the same version number (866) on the query selection screen as defined in the filter.
    When I run the query, I can see only the actuals line. The plan keyfigure is not ready for input (although keyfigure properties are set to "Data can be changed using user entries or planning functions).   
    What am I doing wrong which is preventing the plan keyfigure from opening up for planning?
    I have also tried to create an agg. level on the plan infocube with similar settings as above. When I run the query, I get a no data found result - which I think is right because there is no data in the planning cube.
    PS: When I use the wizard in the planning modeler the keyfigure (0amount) can be changed.

    Hi Avya,
    Use a filter on the 0currency, for a particular currency type. (if problem is: currency type keyfigures are not input ready)
    This will mak it input ready.
    **Reward Points for useful answers**
    Regards,
    Naveenan

  • Ready for Input Variables for Multiple Queries in I_T_VAR_RANGE

    Hi
    I created Web template which contains multiple views/queries. Two views/queries contain Ready for Input Variables. I have custeomer exit code for this Web template. I wrote code by using Ready for input variable which pass to customer exit code. But the variables which contain in two views/queries not appearing in I_T_VAR_RANGE. The two variables belongs to different views and I required those variables. please find below code:
        WHEN 'ZVBCUST'.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR1'. 
            g_soldto = w_var_range-low.
          ENDLOOP.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR2'
            g_zvbsshto = w_var_range-vnam.
            g_shipto = w_var_range-low.
          ENDLOOP.
    The above 'ZVAR1' is ready for input variable which belongs to one Query and below 'ZVAR2' is other ready for input variable which belongs to second query. I required these two at a time when customer exit variable 'ZVBCUST' executes.
    But in I_T_VAR_RANGE only one variable appears when I execute Web Template . Kindly help me in this regard
    Thanks
    luci

    Hi,
    First thing is to how you have defined your variable such as
    Customer exit or
    Replacement path or
    Manual input etc..
    If you want your variable filled through the exit select Customer Exit, then you have to look at the variable options such as Single value or range. According to your definition you have code as you defined such as wa_range-opt = 'BT' or 'EQ'.
    Next..
    In CMOD -> your project -> EXIT_SAPLRRS0_001 -> include 'ZXRSRU01' ->
    ISTEP = 1 -> before the variable pop up will be filled by the exit
    when 'your variable'
    your code
    ISTEP = 2 -> after the variable pop up i.e after running your selections, calculates the values for your variables after selection screen execution.
    when 'your varaible'
    your code
    ISTEP = 3 -> Validation purpose and message handling purpose
    when 'your variable'
    your code

  • G/L account must be marked as ready for input

    Hi All,
    In our system (SAP 40B), I set a payer code reconcile account is 1000001. Then I add value "G/L Acc. 1000001, Alt. G/L 1100001" at IMG - Permitted Alternative Reconciliation Accounts.
    I used F-22 Input fi document for this payer code, when I changed the G/L account from 1000001 to 1100001, the system display below message.
    G/L account must be marked as ready for input
    Message no. F5 439
    Diagnosis
    A reconciliation account which is entered when you enter a document needs
    the marking "Reconciliation account is ready for input" in the master
    record. In this case, this requirement is not met.
    Where can I mark "Reconciliation account is ready for input" in the master
    record?
    Best regards,
    Eric Yang

    Dear Srikanth,
    Because one payer code only can set one reconcile account, user want to change reconcile account from account A to B (only for this document). So I set "Permitted Alternative Reconciliation Accounts" let user can change AR reconcile account by T-Code F-22。
    I have already sat the field 'Recon. acct ready for input' as display and solved this question, thanks for your help!
    Best regards,
    Eric

  • Recon account ready for Input-Not possible to change during MIRO

    Hello
    We are on ECC 6.0
    System does not allow users to change Vendor Recon A/c during invoice verification through MIRO. Recon A/c field is greyed out under Details tab in MIRO.
    Recon Account has been declared as Ready for Input and Alternative Recon A/c has been mapped wrt GL A/c by assigning it an ID.
    However, i am able to change recon A/c during invoice booking through FB60 or F-43 t codes.
    What am i missing?
    Does sytem allow change of Recon A/c in MIRO? If yes, how?
    Thanks.
    Vimal

    Hi, check vendor rec. account for this Company code, then check Accounts Receivable and Accounts Payable-Business Transactions-Postings with Alternative Reconciliation Account-Define Alternative Reconciliation Accounts
    If there exists such Defining, so check may be Alternative account just for Aut.posting, or forbided for posting in this Currency

Maybe you are looking for

  • Brief skip at the beginning of a song

    I experience a skip (about 200-400ms in duration) at the beginning of most songs (about 2-10 seconds in) when playing in iTunes on my Mac. Disabling Crossfade and Sound Enhancer did nothing. This problem started after upgrading from iTunes 6 to iTune

  • Creative ZEN firmware V1.21.01e - loss of track from playlist upon p

    I find that on the 8GB ZEN here, occasionally playing a playlist causes one of the track entries within the playlist to disappear. E.g. there were three entries, but after play, there are only two . The loss can occur at any position. The track itsel

  • Price control for material

    Hi, i want to configure such that while making the material master it allows me the option either taken as V or S. Now i face the prob.that it not allow me  to change price control coming bydefault from OMS2 setting. Pl suggest me for that.

  • Trouble encoding AVI file into proper FLV. *Please Help*

    I have a small AVI file with uncompressed video. CS3 converts it perfectly to an FLV accept for the fact that I can't output to 16:9 CS4 can and does convert it and keeps the 16:9 aspect ratio. The problem is CS4 adds all kinds of metadata crap which

  • "By default, join" drop-down doesn't have "Preferred Networks" option

    I use my laptop on two different networks. I would like it to automatically join whichever one is available. The Mac Help has instructions titled "Choosing preferred AirPort networks" with three steps. Step 1 works fine; I can open network preference