![]() I have created the following report that fills a dynamic internal table with data. READ TABLE ASSIGNING WITH KEY mandt = '800'. Im trying to work out a way to read an internal table that has to be created dynamically. "if A002 is found create a table of that type and fill itĬREATE DATA tabref TYPE TABLE OF (wa_681-kotab). DATA itab TYPE SORTED TABLE OF spfli WITH UNIQUE KEY carrid connid. READ TABLE t681_rep INTO wa_681 WITH KEY kotab = 'A002'. Tabref TYPE REF TO data, waref TYPE REF TO data. How to correct the syntax error? DATA: t681_rep TYPE TABLE OF t681, wa_681 LIKE LINE OF t681_rep, This is easy to implement, however I haven't done this when the table, where clause and into clause of the OPEN SQL statement I'm trying to optimize are dynamic. The reason I am trying this out is that I have found identical selects happening in a program and want to buffer records in memory and read them from there to avoid DB accesses. Maybe I'm doing this wrong, but it seems like something that should be possible to do, and I have a feeling I'm missing something small. The problem presents itself when I try to read the table into a work area. I have debugged and I can see that has been populated successfully and the structure of the table (field names) are correct. The specified type has no structure and therefore no component called MANDT Search for good names in the solution domain, i.e. Clean ABAP > Content > Names > This section. Prefer solution domain and problem domain terms. Read more in Chapter 2: Meaningful Names: Use Intention-Revealing Names of Robert C. In assignments of an initial internal table to a filled internal table, the target table is initialized in the same way as with the statement CLEAR. ![]() On the last line, I'm trying to read it with a key ( mandt for example), but I I get this syntax error: Do not attempt to fix bad names by comments. The following statements can also result in memory violations: (5) 'READ TABLE itab INTO. (4) 'APPEND wa TO itab SORTED BY (name)' if a comparison access is made to the memory area after work area 'wa' using the component in variable 'name'. fossils ipad match herald decent mistakes. if a read access is made to the memory area after work area 'wa' using the component in variable 'name'. I'm trying to work out a way to read an internal table that has to be created dynamically. 2014 filipina japan online-dating, your stories, taglines part most card.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |