Inline data declaration can be used with tables, work area’s (using DATA function) and field symbols (using FIELD-SYMBOL function). The advantage of the inline data declaration is that it automatically copies the right-side type properties as input for the newly defined variable. This feature is implemented with ABAP release 7.4 and gives you the ability to use variables without defining them first. One of the most interesting features is to use inline data declarations. In this blog, we give you an insight of handy ABAP (>= 7.4) features that make the life of a BW consultant easier. However, the BI consultant with an ABAP background is the consultant that tries to achieve the same goal with less code and better performance. Instead, they just use the same traditional statements that they are used to work with before. Most BI consultants forget that this gives you the ability to work more efficiently. With every new ABAP release new functionality gets implemented. ( sokey = 'Key2' sopono = 'PO#34' socono = 'Four' flag = 'D' ) ).ABAP features that makes your BW life easier ( sokey = 'Key1' sopono = 'PO#12' socono = 'Three' flag = 'A' ) You may also improve a little bit your algorithm by using the built-in operator FILTER which I think runs more in the kernel (more information about FILTER in the answer of this other question). TYPES:lty_file_tab TYPE SORTED TABLE OF lty_file WITH NON-UNIQUE KEY sokey sopono socono. The same applies to the syntax of the additions result and cond as to a loop across rows with the exception that the addition TRANSPORTING NO FIELDS cannot be specified. In your case, just doing that declaration below would dramatically improve the performance of your current (working) algorithm: TYPES:BEGIN OF lty_file, This variant of the statement LOOP AT itab groups the rows of the internal table and executes a loop across the groups.
0 Comments
Leave a Reply. |