![]() ![]() Maybe there is a special reason why this doesn't work, just would be interesting to know. Maybe somebody can tell me what I'm doing wrong (or maybe it's not yet supported in ABAP - I'm on a System with SAP_BASIS 740 SP12). I found some restriction regarding the chaining of table expressions. * Reading the column with value 13 with chained table expressionsĭATA(num2) = itab-col2-col1. READ TABLE wa1-col2 INTO DATA(wa2) INDEX 1. * Reading the column with value 13 with READ TABLE statements Itab3 TYPE TABLE OF struc2 WITH EMPTY KEY. Itab2 TYPE TABLE OF itab1 WITH EMPTY KEY, Itab1 TYPE TABLE OF struc1 WITH EMPTY KEY, The following chainings with table expressions are possible: Therfeore, the syntax checker might kindly remind you from time to time to place the VALUE operator in front of a table expression (or to leave it away …). The same rules when to use what hold for table expressions as for READ TABLE. But there are some performance considerations. You don’t have to care how the intermediate result is represented internally. While the third case is important, if you want to work with references to table lines, the results of the other two cases are normally transparent to the user. The temporary result of the expression is a reference variable. The temporary result of the expression is a data object.įorces the expression to work like READ TABLE … REFERENCE INTO …. The temporary result of the expression is a field symbol.įorces the expression to work like READ TABLE … INTO …. The result of table expressions can be influenced accordingly.Īs a rule works like READ TABLE … ASSIGNING …. ![]() With READ TABLE you can read into a work are, assign a field symbol or set a reference. READ TABLE itab WITH TABLE KEY key COMPONENTS col1 = … col2 = … INTO wa. READ TABLE itab WITH KEY col1 = … col2 = … INTO wa. READ TABLE itab INDEX idx USING KEY key INTO wa. Table expressions are LHS-expressions! Specifiying the line Index access using the primary index The operand positions where table expressions can be used are read positions but also some write positions where you can modify the resulting table line. If a table line is not found, the exception CX_SY_ITAB_LINE_NOT_FOUND is raised. All you have to know is the syntax that does the same as a given READ TABLE statement. The result of a table expression is a single table line. You can view a table expression simply as a short form of a READ TABLE statement. Are a new way for accessing table lines in operand positions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |