2007 Jan 08 10:51 AM
hi to all,
help me in this issue.
IF MAIL= 'X'.
PERFORM SEND_MAIL.
ENDIF.
the above one i need to send after collecting all error files.presently it is going for each error file. my internal table is it_itab.in this there will be no of batches i want to send after all batches r checked .
thanks in advance
kiran kumar
2007 Jan 08 10:52 AM
U can use like
AT END OF batches.
IF MAIL = 'X'.
Perdorm send_mail.
ENDIF.
END AT.
hi to all,
help me in this issue.
IF MAIL= 'X'.
PERFORM SEND_MAIL.
ENDIF.
the above one i need to send after collecting all error files.presently it is going for each error file. my internal table is it_itab.in this there will be no of batches i want to send after all batches r checked .
thanks in advance
kiran kumar
2007 Jan 08 10:52 AM
U can use like
AT END OF batches.
IF MAIL = 'X'.
Perdorm send_mail.
ENDIF.
END AT.
2007 Jan 08 10:55 AM
hi in table i am having field kt_s for batch .but i dont need mail for every bactch i need after all the batches r performed.
for exp
batch 1
batch 2
batch 3
i need mail after all the 3 batches r compled not after first batch
thanks in advance
kiran reddy
2007 Jan 08 10:56 AM
loop at itab.
AT LAST.
*perform send mail
ENDAT.
endloop.Message was edited by:
Chandrasekhar Jagarlamudi
2007 Jan 08 10:53 AM
Whats your internal table entries. explain me some more details
2007 Jan 08 10:53 AM
Hi,
You need to use AT LAST instead of AT END. Pls try using this.
Regards,
Jayaram...
2007 Jan 08 10:55 AM
2007 Jan 08 10:57 AM
HI,
I am Assuming that your Error reocrds will be stored in the internal table <b> it_itab</b>, so do not delete any record before the AT LAST statment, and put the X for MAIL field for error records and move those records in to a same internal table structure <b>it_itab</b>. at the lat use this one.
AT LAST.
PERFORM SEND_MAIL.
ENDAT.
in the perform you use the new internal table which is having only the error records, so the mail will go only once with all the error records
Regards
Sudheer
2007 Jan 08 10:58 AM
2007 Jan 08 11:00 AM
HI,
Use AT Last, before the loop sort the table by batches and this field should first place in table.
Reward if useful.
2007 Jan 08 11:00 AM
Hi Kiran,
Insted of AT END go for AT LAST.
when you are writing these events it should be in <b>LOOP.....ENDLOOP</b>
Syntax :
<b>AT LAST.</b>
IF MAIL= 'X'.
PERFORM SEND_MAIL.
ENDIF.
<b>ENDAT.</b>
Difference Between AT END & AT LAST
<b>AT END</b>
The beginning or end of a group of lines with the same content in the component field and in the component links of field. The component field must be part of the field group header. Components whose content is hexadecimal 0 are not included as a control break criterion.
<b>AT LAST</b>
The last line of the extraction dataset.
Thanks
Vikranth khimavath
Message was edited by:
Khimavath Vikranth
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |