ABAP 7.50 Syntax Tips

BASE - Use this for internal tables with inline 'VALUE' declaration so that the internal table will not be cleared every time in the LOOP.

CONV - No need separate declarations. CONV #( )
For a simple understanding, CONV will take the data type of the LEFT SIDE parameter to which we are passing the value.

CAST - Super class to sub-class conversion in-line

COND - Can be used in place of CASE
DATA(lv_var1) = COND i( WHEN input = 1 THEN 1
                                              WHEN input = 2 THEN 3
                                             ELSE 5 ).
Use COND inside COND to bring IF..ELSE inside the main COND statement.
We can fill internal tables using VALUE operation and can use COND inside to fill values based on the validations.

SWITCH - Uses WHEN and THEN, ELSE inside
Inline declarations take reference of the first value

LET -
Table expressions -
line_exists
SYST fields will not get updated while using these table expressions


Comments

Popular posts from this blog

EWM PPF Trigger the existing PPF Action through Custom Program

ABAP 7.5 - FILTER Statement

Get Packaging Material of a Product in EWM