Skip to Content
-1
Aug 18, 2020 at 03:44 AM

Obsolete syntax and possible dynamic IF statement?

72 Views

Hi Experts,

I have two questions regarding ABAP:

1. I have read that EXPORT IMPORT is not totally obsolete, export/import without MEMORY ID is obsolete but if we use:

EXPORT itab FROM itab FROM MEMORY ID 'XXXXX'

IMPORT itab TO itab FROM MEMORY ID 'XXXXX'

I have read threads regarding this from 2013 and just wanted to confirm if this is still true?

2. Is there a way to make an IF statement dynamic? Requirement is I have operations maintained in a custom table field: GT/LE/EQ/LT/GE and want to use this field. Instead of explicitly writing IF lv_var1 EQ lv_var2, I want to use the table field: IF lv_var1 <table_field> lv_var2. Is this possible?

Thanks in advance for any inputs!

Regards,

Katherine Darunday