Pic actual data from a table view

hello,
i have a tableview where users can change data.
in the oninputprocessing event the changed data should be picked out of the tableview, and should be added.
I think the typecast is wrong.
string ist type string.
Thanks for your help.
CODE
FIELD-SYMBOLS <calc> TYPE any.
   LOOP AT itab_positionsdaten
               ASSIGNING <wa>
           FROM table_event->visiblefirstrowindex.
*CAlC
           string  = table_event->get_cell_value(
                     row_index = sy-tabix column_index = 10 ).                     ASSIGN /ALD/string TO <calc> casting p.
           erg = erg + string     
endloop.
CODE
Message was edited by: Benjamin Pfahl

Hi Benjamin,
Is your problem is with reading the selected row value or updating the same to the internal table?
for both of them i found that following the approach explained in this thread is better.
Re: Error when using Filter and Sort together on a tableview
this is about using the <b>keyColumn</b> attribute of tableview
Regards
Raja

Similar Messages

  • Send data from 2 table view to a RFC

    Hi All,
    What I try to do is following:
    I have two table view A and B, which contain data, which I need both for the RFC. Now I can Toolbar for one of the tables and connect both tables to the RFC, both with the action caused by the button.
    But only the data from the table view with the button is sent to the RFC.
    Has anyone an idea what I could do?
    BR Matthias

    Hi Matthias,
    have you defined an action like 'submit' and declared the events in the transition like '*submit'?
    Best Regards,
    Marcel

  • Deleting data from a table view

    I have a data source that is in dictionary form (for why, see here). I have the following code that gets called in the commitEditing method for the table view:
    - (void)removeObjectFromListAtIndex:(NSIndexPath *)indexPath {
    NSMutableDictionary *mutableDataDictionary = [[NSMutableDictionary alloc] initWithDictionary:[listContent mutableCopy]];
    dNSLog (@"listContent: %@, mutableDataDictionary: %@", listContent, mutableDataDictionary);
    dNSLog (@"indexPath.section is %d", indexPath.section);
    NSString *section = [[NSString alloc] init];
    switch (indexPath.section) {
    case 0:
    dNSLog (@"Case Zero");
    section = @"A";
    break;
    case 1:
    dNSLog (@"Case One");
    section = @"B";
    break;
    case 2:
    section = @"C";
    break;
    case 3:
    section = @"D";
    break;
    case 4:
    section = @"E";
    break;
    case 5:
    section = @"F";
    break;
    case 6:
    section = @"G";
    break;
    case 7:
    section = @"H";
    break;
    case 8:
    section = @"I";
    break;
    case 9:
    section = @"J";
    break;
    case 10:
    section = @"K";
    break;
    case 11:
    section = @"L";
    break;
    case 12:
    section = @"M";
    break;
    case 13:
    section = @"N";
    break;
    case 14:
    section = @"O";
    break;
    case 15:
    section = @"P";
    break;
    case 16:
    section = @"Q";
    break;
    case 17:
    section = @"R";
    break;
    case 18:
    section = @"S";
    break;
    case 19:
    section = @"T";
    break;
    case 20:
    section = @"U";
    break;
    case 21:
    section = @"V";
    break;
    case 22:
    section = @"W";
    break;
    case 23:
    section = @"X";
    break;
    case 24:
    section = @"Y";
    break;
    case 25:
    section = @"Z";
    break;
    default:
    dNSLog (@"Default");
    section = nil;
    break;
    if (mutableDataDictionary) {
    NSMutableArray *arrayForNameSection = [[[NSMutableArray alloc] initWithArray:[mutableDataDictionary objectForKey:section]] mutableCopy];
    [arrayForNameSection removeObjectAtIndex:indexPath.row];
    NSArray *array = [[NSArray alloc] initWithArray:arrayForNameSection];
    [mutableDataDictionary setObject:array forKey:section];
    listContent = [NSDictionary dictionaryWithDictionary:mutableDataDictionary];
    [array release];
    [arrayForNameSection release];
    [section release];
    [mutableDataDictionary release];
    The code works flawlessly the first time through, but when I try to delete a second item, it crashes with a CALayer exception involving copyWithZone. The analyzer in Xcode (3.2) is telling me something's going on with the NSString section, but I'm not sure what...I'd appreciate any help!
    BTW, Ray if you happen to get this, the code is identical to what I emailed you, except that I added this code. The method name is the same.

    I have a data source that is in dictionary form (for why, see here). I have the following code that gets called in the commitEditing method for the table view:
    - (void)removeObjectFromListAtIndex:(NSIndexPath *)indexPath {
    NSMutableDictionary *mutableDataDictionary = [[NSMutableDictionary alloc] initWithDictionary:[listContent mutableCopy]];
    // What happens to the mutableCopy? Looks like a leak.
    dNSLog (@"listContent: %@, mutableDataDictionary: %@", listContent, mutableDataDictionary);
    dNSLog (@"indexPath.section is %d", indexPath.section);
    NSString *section = [[NSString alloc] init];
    // Memory leak because in all cases you re-assign the variable.
    // Arrrgggg!
    NSString * section = nil;
    if((indexPath.section >= 0) || (indexPath.section < 26))
    section = [NSString stringWithFormat: @"%c", 'A' + indexPath.section];
    switch (indexPath.section) {
    case 0:
    dNSLog (@"Case Zero");
    section = @"A";
    break;
    case 1:
    dNSLog (@"Case One");
    section = @"B";
    break;
    case 2:
    section = @"C";
    break;
    case 3:
    section = @"D";
    break;
    case 4:
    section = @"E";
    break;
    case 5:
    section = @"F";
    break;
    case 6:
    section = @"G";
    break;
    case 7:
    section = @"H";
    break;
    case 8:
    section = @"I";
    break;
    case 9:
    section = @"J";
    break;
    case 10:
    section = @"K";
    break;
    case 11:
    section = @"L";
    break;
    case 12:
    section = @"M";
    break;
    case 13:
    section = @"N";
    break;
    case 14:
    section = @"O";
    break;
    case 15:
    section = @"P";
    break;
    case 16:
    section = @"Q";
    break;
    case 17:
    section = @"R";
    break;
    case 18:
    section = @"S";
    break;
    case 19:
    section = @"T";
    break;
    case 20:
    section = @"U";
    break;
    case 21:
    section = @"V";
    break;
    case 22:
    section = @"W";
    break;
    case 23:
    section = @"X";
    break;
    case 24:
    section = @"Y";
    break;
    case 25:
    section = @"Z";
    break;
    default:
    dNSLog (@"Default");
    section = nil;
    break;
    if (mutableDataDictionary) {
    NSMutableArray *arrayForNameSection = [[[NSMutableArray alloc] initWithArray:[mutableDataDictionary objectForKey:section]] mutableCopy];
    // Get rid of this copy too.
    [arrayForNameSection removeObjectAtIndex:indexPath.row];
    NSArray *array = [[NSArray alloc] initWithArray:arrayForNameSection];
    [mutableDataDictionary setObject:array forKey:section];
    listContent = [NSDictionary dictionaryWithDictionary:mutableDataDictionary];
    // This is autoreleased. You might want to retain it.
    [array release];
    [arrayForNameSection release];
    [section release];
    [mutableDataDictionary release];

  • Best way to pass back data from hierarchical table view?

    Hi,
    I have a view hierarchy using a navigation controller that's working pretty well. One of the bottom level views is a table view where the user selects an item from the list. This bottom view checks the list item, saves the selected item in a property, and then pops the view off the stack.
    What's the best way to alert the parent view that the child view has been popped off so it can retrieve the value in the property? The calling push returns immediately, so it doesn't appear to be a modal call. I want to be able to use the same controller from other parent forms, so I need to be able to do this without referencing the parent in the child form ideally.
    Thanks
    Ray

    Hi, well let me try to explain it a bit more
    - Add a "delegate" property to your child-viewcontroller-class
    - Define a protocoll within each chil-viewController-class
    In this example let us name it "didSelectValue:(NSString *)value"
    - In the parent-viewcontroller before pushing a child-viewcontroller set it's delegate property to "self" (parent-viewcontroller)
    - In the parent-viewcontroller implement to protocoll-method "didSelectValue:(NSTring *)value"
    - In the child view-controller in (assuming it is a tableViewcontroller) add some code in didSelectRowAtIndexPath that checks if the delegate is set and check if it responds to selector "didSelectValue:(NSString *)value". If so, call it with the selected value.

  • Filtering data from a table view to another

    Hi,
    I am using a function module in Visual Composer which output sends a list of processes with related activities.
    One process can have several activities and I would like to display all related activities for on process on a second table when a row of the first table is selected.
    Ex: first table has two columns: the first one is the processes one, and the second the activities one. One process can have several activities so if I have 5 activities for a process, I'll get 5 rows with the same process number but different activities numbers. I would like a second table to appear when a row is selected, in wich all the activities of the selected process would be displayed. Is there a way to do that in VC ?
    Thanks a lot for your help.
    Thibault Schalck

    Hi,
    You can use filter to separate some records with respect to process and can display it in another table. But to meet your requirement create two function module one to display the processes and another one to show the activities with respect to the selected process.
    Regards
    Basheer

  • How to select the data from a Maintainance View into an internal table

    Hi All,
    Can anybody tell me how to select the data from a Maintainance View into an internal table.
    Thanks,
    srinivas.

    HI,
    You can not retrieve data from A mentenance view.
    For detail check this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Regards,
    Anirban

  • Select data from a table and a view: field with same content and different type

    hi all,
    I need data from a table hrp1001 and a view V_USR_NAME. What they have in common are the content of the fields SOBID and BNAME .
    It will be easier if those fields add a same type but they dont.
    Any suggestions for a workaround?
    Thanks

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

  • Error While Viewing Data from MARA Table

    Hi All,
    After Importing SAP Tables, ex MARA  and viewing Data Getting "Error Calling RFC function to get table data: <DATA_BUFFER_EXCEEDED "r  . After decreasing or applying filters on fields , still not able to get data.
    Able to extract data from T001 table.
    Need to pull data in volumes right, so how to tackle this problem.
    Thanks,
    Ravindra

    Hi Ravindra ,
      You can check the OSS note - 1186277 for the resolution of this issue .
    Note- 1186277 is a SAP knowledge article .
    You can access it from here  - [Note - 1186277|https://css.wdf.sap.corp/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3131383632373726]
    Regards,
    Lokesh

  • Exporting data from a materialized view in Oracle 10g

    Can anybody tell me how to export data to a remote server and import data in that remote server without using ftp utility. Actually I want to export the data from a materialized view to the remote server and import the same in the remote server.
    If everything works well, I'll put the exporting and importing in a cronjob.
    Please let me know how can I do that if that's possible .
    Any reply would be appreciated.
    Thanks.

    Here is what I'm trying to do.
    I created materialized views using multiple base tables in my local server and the base tables got populated using a long process.
    Now I want to copy those data alone to some remote server since it doesn't have any base tables in it. For now, the remote server should depends on the localserver's data. I'm going to use the remote server's data for some testing purposes.
    I know it is easy to create mat.views in the remote server but it doesn't have I don't want to do that now. I just want to copy the snapshots from my local server to the remote server.
    Please let me know how to do that.
    Thanks.

  • Hi experts, how to use open sql to read data from one " maintenance view"?

    i want to use this part of data within report ,so how to use open sql statement to read data from one " maintenance view"?

    Hi
    You can't use OPEN SQl statements to fetch data from maintenance view
    You have to use only Database views
    see the different types of views and the difference
    The followings are different types of views:
    - Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    - Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    - Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    - Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Reward points for useful Answers
    Regards
    Anji

  • Reading data from multiple tables on Apex

    Hi All,
    My apologies if the below question has been answered already, just that I could not find the relevant discussion.
    I have an interactive report that I would like to use to display data from 2 tables:
    Table 1 has about 10 columns but I just want to display 3 of those columns, field1, field2 & field3.
    Table 2 has about 5 columns and I only want to display 2 of these columns(Column1 & Column2) on the same report with the above columns from table 1.
    I need my report to look like this: field1  field2 field3 Column1 Column2
                                                    from table1, table2
    I tried the above example and it seems not to be working, may I please get some assistance on how to achieve this.
    Thanks in advance.

    Hi There,
    Thanks for your response, I've actually found and answer the question.
    I wanted to display data from 2 separate tables(views) that did not have joints, and so hence I could not join them with a join condition.
    What I did was to created a dummy field on both tables with similar values and joined the tables using those dummy fields and it works perfect.
    Thanks.

  • Hi, experts. I want  retrieve data from 8 tables

    Hi, experts. I want  retrieve data from 8 tables.
    On which table i have to write for all entries query.
    Thanks in advance.

    Hai   Reddy,
    Actually IF we Use Join's Actually The Performance Will Be Good For  4 tables.
    So It Is Better  To  Create Two Joins  With  4 Tables Each.
    First Retrive The Data For First  View.
    Then Use For ALL  Entries For  First Table And Then   Get Data For Second data.
    Reward  If Found usefull.
    Regards.
    Eshwar.

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • How to retreive data from a maintainence view?

    Hi all,
    I have used select query to retreive data from a maintainence view. But it gave me a syntactical error that XYZ is not in abap dictionary , it's a database / projection view?
    So can't we get data from a view using select query?
    Please share if u have answers.
    Thanks & regards,
    Chandru

    Hi,
    Maintenance view will be created for database tables only.
    Just display the maintainence from SE11 and click Tables tab in the screen
    Here you can find the list of tables used to created for Maintainence view.
    YOu can use these tables to write SELECT.
    If you give us the maintainence table, we will help you.
    Thanks,
    Ramakrishna

  • Hide data in a table view

    Hi,
    I need to hide data in a table..Only column headers required to display.. I tried by (display column headers only) in view..It is showing only column header in the view ..But when iam displaying the table in dashboard it displays data also..another approach i took is to hide data from column properties ...Custom css display:none.. it is working fine..But the thing is it will not display data in other views also.I need to hide data only in table view..any helps will be appreciated.. Thank you

    Hi Aswin,
    Try this....
    Take columns twice and first set which is use in table view (use display:none)
    and second set use in pivot table and exclude first set columns........
    Cheers,
    Aravind

Maybe you are looking for

  • Paralysing Mini-freezes, beachballs and UI updates in Mavericks

    Hi -- I may be having several different issues, but hopefully, they are related. I apologize in advance for the long post including the EtreCheck Results, but hopefully there is someone who can help with the issues that I am having. Problem Descripti

  • How to copy value from one frame to another frame

    Hi, I am new to swing prgramming . I have created a menu called " TopFrame " and it contains toplevel menu item "select" and select Menu contains subitems "firstframe", "secondframe", "thirdframe" and "Exit". When i click select->firstframe it displa

  • Problems Exporting to Quicktime.  Would you use Profcast?

    Using the new Keynote, which is promising, we recording a seminar that was 2 hours long. We wanted to distribute it via CD. We have tried to export it so many ways to Quicktime. We get the old "Your slideshow cannot be exported as a Quicktime movie.

  • Japanese not showing up

    Hi All, Ive installed my Illustrator 10 in Windows Vista Home edition......I have the Japanese IME installed and operational in Word, Web, ect.  When i try and use it in Illustrator the IME screens show up, and i appear to be tying the text in Japane

  • After Effects CC 2014 plays/renders incorrect audio for mp3 (Mac OS X Yosemite)

    Hi, I'm translating the audio for a number of animations made in AE. Sometimes when the mac users import new audio in another language, AE plays and renders a totally different mp3 file than what has been imported. It is playing another piece of tran