WTF Solution

New ABAP Syntax 7.5 with Example in SAP

Now, the modern SAP ABAP developers are using the new ABAP syntax 7.5 and inline declaration.

Variable Declaration using new ABAP Syntax 7.5

Before: Data lv_name(20) type char.
After: Data(lv_name) = 'WTF Solution'.

Count Internal Table line

Data: Num_lines TYPE i.
Before: Describe Table itab Lines Num_lines.
After: Num_lines = Lines( itab ).

Read the first row of data from an internal table

 Read Table PurchaseOrderItems into Data(min_entry) Index 1.

Split Statement

Syntax 1: Split lv_name at ',' into first last.
Syntax 2: Split lv_create_count at ',' into table data(itab).

Concat two fields

Before: CONCATENATE current_year current_month '01' '000000' INTO DATA(lv_start_date).
After: DATA(lv_start_date) = | '15' '01' { current_year } |.

Replace Statement

Replace 'WireBatchNo' IN lv_conditions WITH 'Batch'.  
This "WireBatchNo" is case-sensitive; use the proper singular and plural words.

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top