Types: Begin of ty_city_temp,
city_temp type ztemp,
longitude type zlongitude,
district type zdistrict,
END OF ty_city_temp .
Types: Begin of ty_city_temp_windy,
city_temp type ztemp,
END OF ty_city_temp_windy.
DATA: lt_city_temps TYPE TABLE OF ty_city_temp,
lt_city_temps_windy TYPE TABLE OF ty_city_temp_windy,
lv_windy TYPE ABAP_BOOL .
IF lv_windy = ABAP_TRUE.
LOOP AT lt_city_temps reference into data(lr_city_temp) .
lr_city_temp->city_temp = lr_city_temp->city_temp - 3 . "Only an assumption that temperature will be
"less by 3 degree celcius when windy
APPEND CORRESPONDING ty_city_temp_windy( lr_city_temp->* ) TO lt_city_temps_windy .
ENDLOOP.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |