I'm facing a problem for a loop condition. Actually my requirement is to send an mail before two days to a user so for that it have to check the number of documents and it should send the data for that particular person with all document numbers
select BUDAT BELNR GJAHR BUKRS from BKPF into corresponding fields of int_BKPF where bukrs = 'GSEG' and BELNR = INT_BSEG-BELNR. lv_date1 = int_bkpf-budat. var4 = lv_date1+(4). var5 = lv_date1+4(2). var6 = lv_date1+6(2). concatenate var6 var5 var4 into lv_formatdate1 separated by '.'. endselect. if int_bseg-belnr = int_bkpf-belnr. read table int_bseg . loop at int_bseg. int_bseg-belnr = int_bkpf-belnr. it_message1 = lv_formatdate1. append int_bseg. endloop. endif.
<b>By using this code i'm getting the document number of last document but i want to get the details of all document numbers. Actually problem is the statement is not executed i mean after reading loop condition it is directly skipping to the next statement</b>
i have tried all possible conditions of loop as follows
loop at int_bseg into it_message.
Message was edited by: