Drop down  ! check table validating ?

Hi,
For ALV edit mode i am creating a fieldcatalog-checktable field fill with value ! , then also while in the drop values are get validated with check table?
It is validating the entry with checktable? why ? after giving  ls_fcat-checktable = '!'.
* Here YDROP_DOWN field have check tabke values " ", 1, 2
  ls_fcat-fieldname = 'YDROP_DOWN'.    
  ls_fcat-datatype  = 'INT4'.
  ls_fcat-checktable = '!'.
  ls_fcat-no_out    = c_x.
  append ls_fcat to pt_fieldcat.
  describe table pt_fieldcat lines v_rows.
  call method cl_alv_table_create=>create_dynamic_table
    exporting
      it_fieldcatalog = pt_fieldcat
    importing
      ep_table        = g_hts.
  assign g_hts->* to <i_status>.
Then during the first display
  call method g_grid->set_table_for_first_display
    exporting
      is_layout            = gs_layout
      i_save               = 'A'
      it_toolbar_excluding = i_exclude[]
    changing
      it_fieldcatalog      = gt_fieldcat[]
      it_outtab            = <i_status>[].
  call method g_grid->set_ready_for_input
    exporting
      i_ready_for_input = v_input.  " it will be 1 or 0

Hi ARS,
See the below link and i am sure it will help you lot
/people/srilatha.t/blog/2007/04/16/alv-grid-150-insert-row-function
/people/david.halitsky/blog/2007/04/24/so-youve-got-to-code-an-editable-alv-inside-an-sap-provided-exit-and-x-function-group
Problem in ALV
Thanks
Seshu
Message was edited by:
        Seshu Maramreddy

Similar Messages

  • How to put drop down in table control ?

    Hi All,
    I m writing one module pool program to edit table.
    I want dropdown to one field so that user can select the appropriate value. And also I want to save that record.
    So how to get the dropdown list and after editing that record how to save that in the database?
    Thanx in advance.
    -Umesh

    Hi Umesh,
    Please check this demo program RSDEMO_TABLE_CONTROL on how to add drop down list in table control. Also check this program DEMO_DYNPRO_TABCONT_LOOP_AT as well.
    To save to database you can code something like this in PAI.
    MODULE USER_COMMAND_0100 INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      CASE SAVE_OK.
        WHEN 'SAVE'.
          MODIFY <database table> FROM TABLE <table control>.
          IF SY-SUBRC = 0.
          ELSE.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this will help.
    Regards,
    Ferry Lianto

  • Drop down in Table Maintainence Gen

    Hi all,
    I'm facing a problem in table maintainence generator main view screen...i've got two fields in my db table and i've created search help for both the fields for drop down option for both the fields in main view screen.....but the first field shows up drop down option were in the other does'nt....i've changed the layout of the screen and lenght of the text element as well, even altered or changed the length of the view screen but its not working out....what i'm i suppose to do to get show up the drop down option for the other field too so as to make the the end user find the list of entries in the field..............any suggestion or changes would be really appreciated and correct answers would be surely rewarded....
    Answer need urgenlty..........

    Check whether in the attributes of the field, whether you have put the "Dropdown" value for your field as "Listbox" or "Listbox with key".
    Also check whether you have referenced the field directly to the data element.
    HOpe this helps.
    Thanks
    Balaji

  • Drop down in table

    hi,
    I have a dropdown by key in a table with 50 values.when I select a value in this drop down the following method will be called.This method is used to set new values in a dropby index present in the same table.This is happening perfectly.When I press enter to go to the next row in the table,the dropdown by index is retaining previous values.when I select the value in it change in second row is reflected to the first row also.this should not happen.Old values in the previous row of the dynamic dropdown should be retained.Can u suggest what should be done.
    public void onActionselectSkill(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionselectSkill(ServerEvent)
         //IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
         //IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
         int newsklen=wdContext.nodeNewskill().size();
         int sklength = wdContext.nodeSkills().size();
         boolean cppAdded = false;
    String getsub="";
         for(int i=0;i<sklength;i++)
          getsub=wdContext.nodeSkills().getSkillsElementAt(i).getSubject();
         //String getsub=wdThis.wdGetContext().currentSkillsElement().getSubject();
          // String getsub=nSkills.currentSkillsElement().getSubject();
         // String getsub="50000138";
           if(getsub.equals("50000138"))
              IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
                   IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
              List lis=new ArrayList();
              IPrivateDetails1.INewskillElement el1 = nNewSkill.createNewskillElement();
              el1.setTskill("abap");
              lis.add(el1);
              IPrivateDetails1.INewskillElement el2 = nNewSkill.createNewskillElement();
              el2.setTskill("workflow");
              lis.add(el2);
              //wdContext.nodeNewskill().bind(lis);
              nNewSkill.bind(lis);
              //nNewSkill.setLeadSelection(1);
          else if(getsub.equals("50000130"))
                        IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
                             IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
                                  List lis=new ArrayList();
                                        IPrivateDetails1.INewskillElement el11 = nNewSkill.createNewskillElement();
                                        el11.setTskill(" C Programming");
                                        lis.add(el11);
                                        IPrivateDetails1.INewskillElement el21 = nNewSkill.createNewskillElement();
                                        el21.setTskill("C++ Programming");
                                        lis.add(el21);
                                        IPrivateDetails1.INewskillElement el31 = nNewSkill.createNewskillElement();
                                        el31.setTskill("C# Programming");
                                        lis.add(el31);
                                        IPrivateDetails1.INewskillElement el41 = nNewSkill.createNewskillElement();
                                        el41.setTskill("Java");
                                        lis.add(el41);
                                        IPrivateDetails1.INewskillElement el51 = nNewSkill.createNewskillElement();
                                        el51.setTskill(" Visual Basic");
                                        lis.add(el51);
                                        IPrivateDetails1.INewskillElement el61 = nNewSkill.createNewskillElement();
                                        el61.setTskill("Pascal");
                                        lis.add(el61);
                                        IPrivateDetails1.INewskillElement el71 = nNewSkill.createNewskillElement();
                                        el71.setTskill(".Net");
                                        lis.add(el71);
                                        nNewSkill.bind(lis);
                                        //nNewSkill.setLeadSelection(1);
           else if (!cppAdded)
              IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
                   IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
              cppAdded = true;
              List lis=new ArrayList();
              IPrivateDetails1.INewskillElement elCpp = nNewSkill.currentNewskillElement();   
              if (null ==  elCpp) {
                elCpp = nNewSkill.createNewskillElement();
                elCpp.setTskill("Other");
                nNewSkill.addElement(elCpp);
                nNewSkill.bind(lis);
                //nNewSkill.setLeadSelection( nNewSkill.size() - 1);
              elCpp.setTskill("C++");
              nNewSkill.bind(lis);
        //@@end
    The method that is called when I click enter in the table is
    public void onActionaddSkills(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionaddSkills(ServerEvent)
        int sarea=0,keysk=0,pro=0,fdas=0,tdas=0;
         if(wdContext.nodeSkills().currentSkillsElement().getSubject()==null)
                   sarea=1;
         if(wdContext.nodeNewskill().currentNewskillElement().getTskill()==null)
                        keysk=1;
         if(wdContext.nodeSkills().currentSkillsElement().getProficiency()==null)
                        pro=1;
         if(wdContext.nodeSkills().currentSkillsElement().getFromdateSkills()==null)
                        fdas=1;
         //if(wdContext.nodeSkills().currentSkillsElement().getTodateSkills()==null)
                   //     tdas=1;
         if(sarea==1 || keysk==1 || pro==1 || fdas==1 )
                 IWDControllerInfo ctrlInfo3=wdThis.wdGetAPI().getViewInfo().getViewController();
                     IWDConfirmationDialog dialog3=wdComponentAPI.getWindowManager().createConfirmationWindow("SkillSets Table Field Is Missing.""\n""Check ur entry!!!",ctrlInfo3.findInEventHandlers("ok"),"OK");
                 dialog3.addChoice(ctrlInfo3.findInEventHandlers("cancel"),"cancel");
                 dialog3.open();
                 else
                  skNode=wdContext.nodeSkills();
                      skEl=skNode.createSkillsElement();
                      skNode.addElement(skEl);
                   //IPrivateDetails1.INewskillNode nsknewNode;
                    // IPrivateDetails1.INewskillElement nsknewEl;
                      sknewNode=wdContext.nodeNewskill();
                   sknewEl=sknewNode.createNewskillElement();
                   sknewNode.addElement(sknewEl);
        //@@end

    Hi,
    I did not study your code, but the behaviour you describe is clear.
    You have to create the 50 nodes dynamically for each table row (to be precise: for each nodeElement the row is bound to), and bind the Dropdown element in the particular row to each of these nodes (with 50 elements).
    This must be done dynimcally if you don't know how many rows your table will contain. Otherwise, you can create the context for all table data design time.
    Good luck.
    Roelof

  • How to get different values in drop down in  table rows

    Hi
    I have an application, which has a drop down in the table. Each row is to have different values in its drop down based on the "characteristic" parameter. For eg. first row has characteristic as color, and the corresponding drop down will contain the color names. Second row has charateristic as weight, and the drop down will carry corresponding weight values.
    I am getting the data from the backend as a flat table i.e. charaterisitc - value pair.
    I think i will have to use the Drop Down by Index control, but i dont know how exactly to go about it.
    Can any one please help in this regard.
    Thanks & regards,
    Anupreet

    Hi Maksim
    I am sorry, but i am not able to get you.
    This is the piece of code that i wrote for populating the drop down:
    IPrivateMaintainDocAttribView.IDropElement dropEle = null;
    for(int i = 0;i<size;i++)
                 dropEle = wdContext.nodeDrop().createDropElement();
                 dropEle.setDropval(wdContext.nodeCtxNode_DocAttribs().getCtxNode_DocAttribsElementAt(i).getCmpCtx_Value());
                 wdContext.nodeDrop().addElement(dropEle);
    Here, Dropis the sub node to which i am putting the data and thisis linked to the table.
    CtxNode_DocAttribs is the model node from where i am picking the data and setting in the subnode.
    Thanks & regards,
    Anupreet

  • Drop Down in table control

    Hi All,
    I am facing Problems here ;-
    I have developed a table control in WDA4 application i have 3 dropdowns which are dependent on each other i.e. when i select the entry in the first one then corresponding to that entry the data should be shown in next drop down and same goes for the third one .I am using dropdown by index here .
    Thnks ,
    Sahil

    Hello Sahiil,
          You need to bind the table to a context node and the three drop downs separately to three context nodes. when you click one one of the drop downs, populate the the other nodes.
    I hope this works for you.
    Please feel free to ask if you have any further doubts.
    Regards,
    Ritwik.

  • Entry does not exists in check table -- Validation

    Hi friends..,
      I am able to create new entries in my table with INSERT statement through a function module.
    But, the problem is..,
    I am having one key field in my table, and T1(another table) is check table for this.
    So while creating the entries through SE11, its giving error message like ENTRY DOES NOT EXISTS IN CHECK TABLE. But the same entry i am able map through my function module..!
    Any extra settings reuired for this..?
    Or.,
    Am i need to write validation code?
    Thanks,
    Naveen.I

    Hi...Rama chary..,
    I am having separate function modules to do this..!
    So here I can't to update two table at time.
    My function module updating a table field with out checking it wrt its check table..!
    Even i write code to check table , it will not meet the functionality of SE11 error..!??
    so what can i do..?
    Thanks,
    Naveen.I

  • Drop Downs in Table Control in Web dynproABAP

    Hi All,
    I am facing Problems here ;-
    I have developed a table control in WDA4 application i have 3  dropdowns which are dependent on each other  i.e. when i select the entry in the first one then corresponding to that entry the data should be shown in next drop down and same goes for the third one .I am using dropdown by index here .
    Thnks ,
    Sahil

    hi!
    you can bind the texts property  of your Dropdownbyindex
    to the required attribute.this will populate your data.
    thanks
    vishal

  • Linking a library to a list - filtering data per selected drop down / check box item

    Good day,
    I am rather new to SharePoint and have run into a dilemma. Is it possible to link a library to a list, then create a parent-child relationship between the the department (list) to document (library)? 
    Example - I have a library that contains 100+ documents, the library is filtered using groups/subgroups. 
    IT
     -> IT TX (30 docs)
     -> IT WI (10 docs)
    Biz Ops 
     -> Biz Ops WI (8 docs)
     -> Biz Ops CA (5 docs)
    In the list I created I have departments as a required field, and a dropdown tool that shows the 5 departments that contain items that need to be grouped together. (Biz Ops, IT, HR, Sales, and Compliance)
    I have linked the library of documents to the form (list), using "Lookup (information already on this site)". All the documents in the library appear in the selection box within the list. However is it possible to first select a department which
    then filters documents only tied to said department? So at the beginning of the list you choose the department you wish to browse the documents, then it filters out all documents not related to that department? 
    My apologies if this is long winded and confusing. Your help is most appreciative. 
    Cheers. 

    Hi,
    According to your post, my understanding is that you wanted to filter the corresponding documents from a Document Library when you selected a department in a List.
    I recommend that you can follow the steps as below to implement it in your environment.
    1. Create a new Web Part Page and add the Document Library and the List web part into it.
    2. Click the List web part, click the current web part’s drop-down arrow, choose Connections, Send Row of Data To, and then choose the Document Library web part.
    3. Click the Document Library web part, choose the “All Items” view from the Selected View, click the current web part’s drop-down arrow, choose Connections, Get Filter Values From,
    and then choose the List web part.
    4. Open the Configure Connection – Webpage Dialog, choose the “Department” column from the Provider Field Name drop-down list and choose the “Group” column from the Consumer Field
    Name drop-down list.
    5. Click Apply, OK button, save the Web Part Page and test it in your environment.
    For more information, you can refer to:
    http://office.microsoft.com/en-us/sharepoint-server-help/connect-data-in-web-parts-HA101785157.aspx
    http://www.dummies.com/how-to/content/connect-web-parts-in-sharepoint-2010.html
    Best Regards,
    Linda Li
    TechNet Community Support

  • Check table validation

    Hi all,
    I have created a customized table. In one field I have assigned check table and foreign key checkbox is checked. But when this table is updated through a program it goes on creating any entry. Entry is not restricted to the check table values only. It goed on creatting values which are not in the check table.
    How to avoid it?
    Regards,
    Jeetu

    Hey Matt,
    My 10 points was deducted when I had previously asked for points same as Ankesh.
    Just wanted to know what in cases like this ;-).
    Believe post by Ankesh has been removed by Moderator.
    Cheers,
    Jayant
    Edited by: Jayant Sahu on Dec 4, 2008 4:22 PM

  • Related Drop-down boxes - unique validation

    Someone sent me a acroform, which has different sections that contain drop-down controls.   Each drop-down has the options 1,2,3,4,5.  These are supposed to be used to rank preferences.  Is there a way where once you select "1" you are not allowed to choose it again in the remaining 4 drop-down boxes?  I cannot find this anywhere in teh Acrobat PDF bible, albeit an older version.
    regards,
    Nat

    We can do this with power of JavaScript. I would use the substring function in loading the values to dropdown.
    for example I will have code similar to the following on DropDown1 'exit' event
    var FilterChar =  this.rawValue;
    var DD2AllValues = "A1,A2,A3,a1,a2,a3,B1,B2,B3,b1,b2,b3,C1,C2,C3,c1,c2,c3";
    DD2AllValues = DD2AllValues.split(",");
    DropDown2.clearItems()
    var curItem
    var curChar
    for (i=0,i<DD2AllValues.length,i++) {
         curItem = DD2AllValues[0];
         curChar = DD2AllValues.substring(0,1)
         if (curChar == FilterChar) {
              DropDown2.addItem(curItem);
    hope this helps though you have to change a lot to make it work for your situation.
    Good luck,

  • ESS Bsns pkg  Bnfts &Pymnt - Overview Drop down and table not populated

    Hi All,
      We have configured ESS business package. Payslips in form of PDF are available in Benefits and payment.
    Overview dropdown and table are not getting populated.
    I checked context node rem, vcdata and attribute overview_sel in VcRem2Selection comp.
    They are not populated at any place as well. How does this work?
    Please guide
    Regards,
    Ganga

    Hi Gangadharayya,
    There are 2 ways of populating the dropdown.
    Either u can create a simple type and bind the attribute to the SimpleType, or use the class ISimpleTypeModifiable and IModifiableValueSet to populate the values at run-time.
    Hope this helps u
    Regards,
    Poojith M V

  • Drop down in a Table

    Hi All,
    I have a scenario where I need a drop down in table.It is binded to a context and should be populated with values(yes/no) from the context. But based on the data selected from the other columns it should default to yes or no. and then let user choose . How is this achieved.
    Thanks all for your help.

    Hi,
    In a table, while u create binding,
    1.Select the context node
    2.In "Cell Editor of Table Column" u can select dropdown by index.
    By doing so u will get dropdown in the table.
    If the contexdt binded to the dropdown is character type, u can update the intenal table with "yes/no" and bind internal table to context node.
    If not add a new field and update the field with "yes/no" value.
    Thanks

  • Show Drop Down List

    Post Author: snufse
    CA Forum: General
    We have a report that prints data from a Sales Ticket table. The report has one parameter which is a Shift Start Date/Time. The Shift Start Date/Time is a field in the Sales Ticket table that goes with each Sales Ticket and also a field in a Shift table. When operator closes a shift, the Sales Tickets are updated with the Shift Start Date/Time and a new entry is made into the Shift table.
    Now we need to run a sales ticket report that uses the Sales Ticket table and selects by Shift Start Date/time. Is there a way in the parameter entry screen to show user a drop down of all valid Shift Start Date/Time entries from the Shift table, this is the only way user will know what valid shift parameters exist. Now they have to run a shift report, pick the shift from the report and manually key that in as a parameter.
    Thank you.

    Post Author: snufse
    CA Forum: General
    We are on CR XI product version 11.5.8.826.
    I was reading about using a Command Object (connect to your datasource and entering sql command). If this is correct how could I get the result to show in a drop down list and have user select a line and use this as a parameter for creating the report?
    Could you pleaseoint me in a direction where I might pick up some tutorial on how to do this. Thank you.

  • Regd: Drop down option related

    hi gurus,
    am Created  an iView with a  drop down selection option.
    for example
    <b>Display as : Table
                    : Chart</b>
    it's working fine and displaying in the output as per the selection in the Drop down list.
    my Question is it's working in the <b>REVERSE</b> order also i.e. Once the table or chart is displayed ..If i am double clicking on the TABLE view,  AUTOMATICALLY it's changing to Chart view and vice versa. WHICH I DON"T WANT.
    it should work in ONE way only i.e. as per the Drop down selection.
    Can any body help  to solve it.
    Regards,
    prasad

    Hi Venkat, thanks for ur reply.
    Ok, here is what i have done.
    taken a datasource-->frm DS output >created an form view with drop down options (table and chart)>from the the <b>output of form view</b> --> created both a Table and chart outputs with required visibility condition.As i mentioned it's working fine BUT the revesre also working.
    please suggust where i have to correct.
    Thanks in advance.
    prasad

Maybe you are looking for

  • Unable to update apps after 10.5 update

    I have been unable to update apps on my iPhone since downloading iTunes 10.5. I have an established connection in iTunes to my account and can download apps but when I when I click on "# Updates Available" I am asked to sign in again and then receive

  • Unable to Install Adobe Reader 8.1.2

    I downloaded the Adobe reader 8.1.2 and when I try to Install or Remove the program it comes up with an error that the application is on a network that cannot be found. I then do a search for the .msi file and even this cannot be found. When I try to

  • Drill Down Problem in Report

    Hi, I am using the product hierarchy in the report and its used for drilling down. when i say drilldown the report is not working and TIME OUT warning is coming. I have run the same report in quality system which contains more or less the same data.

  • How to use apache shiro in spring application

    Hi every one,                Can any please tell me the steps to integrate Apache Shiro and Spring . (Give me the sample web application ) Regards Siva Suresh

  • MacOS 9 compatibility issues with upcoming FW 1600/3200?

    Hi there, I was just wondering if there will be any compatibilty issues when any upcoming FW 1600/3200 devices come out. I have a Dual G4 1.25Gz, run 9.2.2 most of the time and would like to probably have a controller + devices to run on the Mac.