Module pool ---Problem in finding the line index for the table control

Hi Friends,
I am working in Module pool programming.
My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
Thanks
Satish Raju

Hi Raju,
Follow the steps
<li>U should take one variable in your internal table or in structure which is used for table control fields.
      DATA :BEGIN OF itab OCCURS 0 ,
            mark TYPE c ,
            matnr LIKE mara-matnr ,
            matkl LIKE mara-matkl,
            maktx LIKE makt-maktx,
        END OF itab .
   controls: tabc types tableview using screen 100.
<li>This mark variable should be given in Table control properties. follow the path
double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
<li>Flow logic of the screen
   process before output.
     MODULE status_0100.
     LOOP AT itab with control tabc
     endloop.
   process after input.
     module cancel at exit-command.
     LOOP AT itab.
       MODULE read_table_control.
     ENDLOOP.
     MODULE user_command_0100.
<li>read_table_control module code
     MODULE read_table_control INPUT.
     MODIFY itab INDEX tabc-current_line."this will update the itab table
                                         "mark field with 'X ' whatever we
                                         "have selected on table control
     ENDMODULE.
<li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
   CASE okcode.
     WHEN 'DELETE'.
       LOOP AT itab WHERE mark = 'X'.
         DELETE itab.
       ENDLOOP.
   ENDCASE.
I hope that it helps you.
Thanks
Venkat.O

Similar Messages

  • How do I get the list index for the selected list item

    How can I obtain the list index for the currently selected
    element in a list item? I'm trying to move the label and value
    from on list box to another by using the add_list_element built-
    in and it requires the list index.
    Thanks for your help...

    Hi,
    You can`t get the Index for the selected item..
    you can get the Value of then Tlist using :Block.ListName .
    maybe theis code will help you..
    PROCEDURE pr_PasarElementos(ls_Origen           varchar2,                    ls_destino          varchar2,          cValor                    varchar2 default null) IS
         nCont_Orig     number := 0;
         nCont_Dest     number := 0;
    begin
    nCont_Orig := GET_LIST_ELEMENT_COUNT(ls_Origen);          nCont_Dest := GET_LIST_ELEMENT_COUNT(ls_destino);
         Add_List_Element(ls_destino,nCont_Dest+1,cValor,cValor);
         for rec_Orig in 1..nCont_Orig loop
         if GET_LIST_ELEMENT_VALUE(ls_Origen,rec_Orig) = cValor then
         delete_list_element(ls_Origen,rec_Orig);
         end if;
         end loop;
    end;
    you can call the procedure with :
    pr_pasarElementos('control.ls_activos','control.ls_inactivos',:CONTROL.ls_activos);
    here I`m working with the Value equal to the Label... you would need to look for the Label of the origin (ls_Origen) list using the Value (cValor) you already have.
    I hope this help you.

  • How to implement line selectability for a table control using table Wizard?

    Hello SDN Community,
    I have created a table control using the Table Wizard.  I found my exact question in this forum, but unfortunately it had not been andsered.  While I cannot paste a screen-print into this plane-text area, here are the steps I followed...
    1) SE51
    2) Create new screen 0100
    3) Click Layout button
    4) Clidk Table Control (with Wizard) and draw box on canvas.
    5) Step is "Start" - click Continue
    6) Step is "Name of Table Control" - provided name
    7) Step is "Table Name" - provided name of dictionary table (AUFK)
    8) Step is "Definition of Columns" - selected order numver and order text
    9) Step is "Table Control Attributes" - Line Selectability is in display mode - cannot set it.
    I would like to have a selectability column for my table.  Would appreciate any insight into how to do this.
    Thank you,
    Dean Atteberry.

    This is a puzzling...
    For the table control wizard, in the Table Control Attributes step, I was able to get line selectability to open up by declaring a char01 data element at the beginning of my type.
    The puzzling is in regards to the "Selection col. fld" entry field.
    If I leave it blank and try to go to the next step, I get message "Enter the name of the selection column if you are using a program table"
    So it looked like it wanted to know the name of my selection column.  So I type in "CHAR1".  and got the message "The field "CHAR1" for the selection column is already contained in the table."
    Hmmmmm.... don't understand............
    Dean Atteberry.

  • I want to find on line instruction for the applications

    I have a one year old MacBook Pro with no extra programs, so it is factory stock.  I want to learn some of these programs but the "workshops" are not at the right times.  I want to find on line help/instruction/explanations of the programs.  Eg how iPhoto works, because it makes no sense to me.  I create a new album and it is full of my pictures right from the start, but not the ones I want in there.
    Another example is TextEdit where I tried to type this today "(c)". Simple no?  The only why I could keep this (c) was to type it ( space c space ).  Otherwise it turned it into the copywrite symbol.  Pain in the A__!
    Then there are the tabs.  I looked up help but I think it only applies to a new document.  If you have an old document there seems to be no way to reset the tabs to indent certain parts and so on.
    So if there is some place where i can read and find examples of these and other things then please let me know.
    Catimann

    cat-i-mann wrote:
    I want to find on line help/instruction/explanations of the programs.
    Have you checked Apple's support? Have you used Google?
    Eg how iPhoto works
    The iPhoto support site is here.
    <http://www.apple.com/support/iphoto/>
    and more resources here
    <http://www.apple.com/ilife/iphoto/>
    A manual for iPhoto '08 is available here
    <http://manuals.info.apple.com/en_US/iPhoto_08_Getting_Started.pdf>
    Maybe you can find a more up-to-date one, but even if you don't, it should still give you a nudge in the right direction.
    And, of course, there Help > iPhoto Help.
    Another example is TextEdit where I tried to type this today "(c)".
    Oh, you mean some text, "©", was substituted for another, "(c)"? In other words, you have a text substitution issue?
    In TextEdit, type ⇧⌘/ or ⌘? if you prefer.
    In the search field, type "substitution". You should get all the choices for the Substitutions menu.
    Type ↓ until you reach Substitutions > Text Replacement. You can see it is checked. It should be selected already, with a floating blue arrow pointing at it. Press return, and you're done. Text replacement is off. (You could have reached it directly by typing "replacement", but what would've been the fun of that? I'm not yet tired of the blue arrow.)
    You can control text replacements globally from System Preferences > Language & Text > Text.
    Remember to use the Help files as much as possible. You paid for it when you bought your Mac -- why not get your money's worth?

  • Line items for the PO are not automatically displayed

    Hi all,
    When attempting to post an invoice against PO, the line items for the PO are not automatically displayed. When we went to the Listing of PO's and brought this up, we noticed under the "invoice"tab that the: Invoice Receipt & GR-BsdIV is checked.
    need your help
    Thanks
    Fayaz

    Hi,
    Can you check delivery complete indicator in PO. It is in PO item details delivery tab.
    In MIRO transaction, select the  tab Purchase order/scheduling agreement, enter PO number and press enter.
    Right hand side select the layout all information .
    Regards,
    Chandra

  • Secondary Index for the table MSEG

    Hi folks,
             One of my report is comparetively very slow when it is executed in the production server. when i chked, a query related to the MSEG table is taking more time to execute. I want to create a secondary index for that table. Could any body tell  me the procedure of creating the seconday index for the table MSEG, as i am not aware of that.
    Thanks in advance,
    Shyam.

    Dear shyam,
    Search SDN before posting any thread their are 10k threads available for your question anyhow for your reference here is one link
    http://help.sap.com/search/highlightContent.jsp
    Cheers
    fareed

  • Module pool problem

    Hi,
    I m using module pool and i have used select-options in the screen, for that i have definged select-options as subscreen and called using call subscreen... in module pool.
    My problem is when i validate select-options im thrown error message and that select-options getting disabled i tried to keep chain and endchain in the module program and that says that it can not recognize the select-options(fields).
    any solution for this.
    Thanks,
    Nagaraju.

    Hi,
    Please check out the below links . they might be helpful.
    http://help.sap.com/saphelp_46c/helpdata/en/34/8e72da6df74873e10000009b38f9b8/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba9e735c111d1829f0000e829fbfe/frameset.htm
    Rgds
    Mohit

  • How to find out the line which caused the runtime error in a SP?

    We have a situation like this.
    We are consulting company doing consultancy services on Oracle technologies.
    One of our clients have PL/SQL stored package.
    We found out by debugging the Oracle Forms front-end application that
    error is generated by a procedure inside this package.
    Problem is that this procedure has over 6000 lines.
    How do we figure out the line which caused the error?
    We tried putting messages in between, but not have been successful.
    Any help would be greatly appreciate.

    How do we figure out the line which caused the error?
    We tried putting messages in between, but not have been successful.
    What does that mean exactly?
    Typically you would instrument the code (especially for multi-step ETL/transform processes) to capture/log key information.
    Also, key sections of code would also be in their own BEGIN/EXCEPTION/END block so that you would know what block caused the exception.
    step_num NUMBER; -- what step is being executed?
    BEGIN
      step_num := 1;
      . . . do something
      step_num := 2;
      . . .  do something else
    EXCEPTION
      -- when you get here the 'step_num' variable will have the number of the step that caused the exception. Log it and then handle/reraise it.
    END;

  • I purchased Macbook Pro i5 in March 2011. Now the screen has problem; one vertical blue line is in the screen (at the right side). I noticed this last week when I opened the MacBook, and now I am always seeing it. How to remove it?

    I purchased Macbook Pro i5 in March 2011. Now the screen has problem; one vertical blue line is in the screen (at the right side). I noticed this last week when I opened the macbook and now I am always seening it. I am seeing the blue vertical line always in the screen. However, I am not seeing this line when I open Word, Excel, PowerPoint files (without pictures). But I am seeing this line always when I see movies, pictures, and all the files which have pictures. Please do let me know how can I remove this vertical blue line (blue tint) pernamentally from the screen.
    Regards,
    Ujjal

    Backup your files to a external hard drive and disconnect.
    Call Apple and make a warranty call, then take it to the nearest Apple Store etc.
    You can run these things and it might clear your issue or give further informaiton
    Perform a hardware check
    http://support.apple.com/kb/ht1509
    Then see if resetting the SMC/PRAM resolve your issue
    http://support.apple.com/kb/HT3964
    https://support.apple.com/kb/HT1379

  • [svn:fx-trunk] 5002: Fix up the lookup in DataGroup when finding the appropriate index in the dataProvider given a particular renderer .

    Revision: 5002
    Author:   [email protected]
    Date:     2009-02-18 16:33:42 -0800 (Wed, 18 Feb 2009)
    Log Message:
    Fix up the lookup in DataGroup when finding the appropriate index in the dataProvider given a particular renderer. With this fix, we now correctly support FxLists's displaying and interacting correctly with duplicate items in the dataProvider, a la:
            Flex
            Flex
            Flex
    The lookup now goes through the itemToRenderer data structure which holds the on-screen renderers.
    Reviewer: Ryan
    Tests: Checkin, yes. Mustella tests: DataGroup, FxDataContainer, FxList, FxButtonBar pass.
    QA: Yes, lets get tests for this added to FxList testsuite
    Doc: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • I have an iPad MD371Y. Since when I installed the iOS 6 I'm fading problem with the WiFi connection. The line fall everytime the device go on automatic stand by (if i do not touch it for 5 min). Can somebody be of Help?

    I have an iPad MD371Y. Since when I installed the iOS 6 I'm fading problem with the WiFi connection. The line fall everytime the device go on automatic stand by (if i do not touch it for 5 min). Can somebody be of Help?

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Trying to attach my time capsule to my cable modem box, which is a Virgin media Scientific Atlanta box. Problem is the apple set up tells my to put in the IP address for the virgin cable modem, which I cannot find. Can any on assist?

    can any one help with is problem.

    In what screen of what application are you asked to enter that IP address?  The only place I'd expect to see such a prompt is to let AirPort Utility access another AirPort base station.  Your Scientific Atlanta box isn't one.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • Search for a word and return all the  lines (row) from the text file..

    Hi all,
    I need a help on how to search a string from the text file and returns all the lines (rows) where the searched string are found. I have included the code, it finds the indexof the string but it does not return the entire line. I would appreciate your any help.
    public class SearchWord
         public static void main(String[] args){
         //Search String
         String searchText = "man";
         //File to search (in same directory as .class file)
         String fileName = "C:\\Workspace\\MyFile.txt";
         //StringBuilder allows to create a string by concatinating
         //multiple strings efficiently.
         StringBuilder sb =
         new StringBuilder();
         try {
         //Create the buffered input stream, which reads
         //from a file input stream
         BufferedInputStream bIn =
         new BufferedInputStream(
         new FileInputStream(fileName));
         //Holds the position of the last byte we have read
         int pos = 0;
         //Holds #of available bytes in our stream
         //(which is the file)
         int avl = bIn.available();
         //Read as long as we have something
         while ( avl != 0 ) {
         //Holds the bytes which we read
         byte[] buffer = new byte[avl];
         //Read from the file to the buffer
         // starting from <pos>, <avl> bytes.
         bIn.read(buffer, pos, avl);
         //Update the last read byte position
         pos += avl;
         //Create a new string from byte[] we read
         String strTemp =
         new String(buffer);
         //Append the string to the string builder
         sb.append(strTemp);
         //Get the next available set of bytes
         avl = bIn.available();
         catch(IOException ex) {
         ex.printStackTrace();
         //Get the concatinated string from string builder
         String fileText = sb.toString();
         int indexVal = fileText.indexOf(searchText);
         //Displays the index location in the file for a given text.
         // -1 if not found
         if (indexVal == -1)
              System.out.println("No values found");
         else
              System.out.println("Search for: " + searchText);     }
    }

    Hi, you can use servlet class and use this method to get the whole line of searched string. You can override the HttpServlet to treat that class as servlet.
    public class ReportAction extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //write your whole logic.
    BufferedReader br = new BufferedReader(new FileReader("your file name"));
    String line = "";
    while(line = br.readLine() != null) {
        if(line.contains("your search string")) {
            System.out.println("The whole line, row is :"+line);
    }

  • Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? Difference between Enterprise and SE?

    We’re seeing the following issue: sql - Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? - Stack Overflow (posted by a colleague of mine) and are curious to know if this behaviour is due to a difference between standard and enterprise, or could we doing something else wrong in our DB config.?
    We have also reproduced the issue on the following stacks:
    Oracle SE One 11.2.0.3 (with Spatial enabled)
    Redhat Linux 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    11.2.0.3.0 Standard Edition and 11.2.0.4.0 Standard Edition (both with Spatial enabled)
    Microsoft Windows Server 2003R2 Standard x64 Edition
    However, the SQL works fine if we try it on Oracle 11.2.0.3.0 *Enterprise* Edition.
    Any help or advice would be much appreciated.
    Kindest Regards,
    Kevin

    In my experience sdo_filter ALWAYS uses the spatial index, so that's not the problem. Since you did not provide the explain plans, we can't say for sure but I think yhu is right: Standard Edition can't use the bitmap operations, and thus it'll take longer to combine the results of the two queries (because the optimizer will surely split this OR up in two parts, then combine them).
    BTW: when asking questions about queries here, it would be nice if you posted the queries here as well, so that we do not have to check another website in order to see what you are doing. Plus it will probably get you more answers, because not everyone can be bothered to click on that link. It would also have been nice if you had posted your own answer on the other post here as well, because my recommendation would have been to use union all - but since you already found that out for yourself my recommendation would have been a little late.

  • Is there a way to change the alert tone for the find my iphone app?

    Is there a way to change the alert tone for the find my iphone app? The one they use from the factory is terrible! I tried it out and could hardly hear it from 5 feet away!

    Welcome to the Apple community.
    Unfortunately, so far as I am aware you cannot change this tone. I must admit I don't fully understand your problem, I've tried it myself and can hear it from some distance away.

Maybe you are looking for

  • There is a line on the camera! help please!

    so i have my iphone4 (white one) just last month (8/31) well, the camera works fine until few days ago when i take pictures, the screen suddenly has a blue line on it, the line is like a really tiny blue line thats stay vertically, and its 1cm away f

  • IBM's Multiple Systems Networking Facility ( MSNF )

    I have 2 mainframes. Each mainframe is part of a different logical SNA/VTAm network. Each mainframe has a front end processor ( FEP ). The mainframes communicate with each other through MSNF via a TIC on each front end processor. The communication co

  • Suitable user interface application for a billing system

    I am seeking an appropriate friendly user interface application that is appropriate for a billing system to interact with an oracle 10gr2 database. Thanks

  • My HP8600 x-word app (universal u-click) missed a date

    My HP8600 x-word app (universal u-click) didn't print on 4/28/2013, can I access it somewhere? This question was solved. View Solution.

  • Email in Contract Manager 12

    Has any one started to use the email import in Contract Manager 12? If so are you creating a new email address for the project or using a Project Members email? If you are using a Project email how are you handling the size limits? <br /> Have you fo