SAP Abap da loop ile where koşulu kullanımı

Paylaş.

SAP abap ipuçları :

 

TYPESBEGIN OF mailler
oda TYPE string
email TYPE string,         
END OF mailler

data lv_mailler TYPE TABLE OF mailler
data ls_mailler type mailler

ls_mailleroda   ‘1’ .
ls_mailleremail ‘fake31@domain.com’ .
APPEND ls_mailler TO lv_mailler

ls_mailleroda   ‘1’ .
ls_mailleremail ‘fake1@domain.com’ .
APPEND ls_mailler TO lv_mailler

ls_mailleroda   ‘5’ .
ls_mailleremail ‘fake5@domain.com’ .
APPEND ls_mailler TO lv_mailler

LOOP AT lv_mailler  INTO ls_mailler where oda l_oda.

mail_adrs ls_mailleremail.
ls_RECEIVERreceiver mail_adrs.
ls_RECEIVERrec_type ‘U’.
ls_RECEIVERcom_type ‘INT’.
ls_RECEIVERnotif_read   ‘ ‘.
ls_RECEIVERnotif_del ‘ ‘.
ls_RECEIVERnotif_ndel ‘ ‘.
APPEND ls_RECEIVER TO receiver.
CLEAR ls_RECEIVER .

ENDLOOP.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)