Hi experts,
I have a requirement to call a FM inside the FOR Loop with the ABAP 750 syntax.
Basically what I want to know is how do I code the below requirement using a FOR Loop, if it is possible.
LOOP AT itab INTO wa.
CALL FUNCTION 'X'
EXPORTING
e_param = wa-field
IMPORTING
i_param = wa-field.
wa_range-sign = 'I'.
wa_range-option = 'EQ'.
wa_range-option-low = wa-field.
APPEND wa_range TO lr_range.
ENDLOOP.
I'm trying to do something like the below code. But, I want to pass wa-field to a conversion FM before creating the range table.
DATA(lr_range) = VALUE lr_range(
FOR wa IN it_tab (
sign = 'I'
option = 'EQ'
low = wa-field
)
).
How do I achieve this inside the FOR Loop?
Please advise. Thanks :)