2008 Jan 30 5:23 PM
Hi Peers,
I am using call transaction method. After executing the program and data is uploaded, i want to display i) number of records processed ii) no., of error records iii) no., of success records on the same screen. So where do i capture this no., of records field. Any help is appreciated. Thank you.
2008 Jan 30 5:26 PM
Every time you call the transaction, check the messages. If the call was successful, add 1 to the success counter; otherwise add 1 to the failed counter. At the end, display both.
Rob
2008 Jan 30 5:26 PM
Every time you call the transaction, check the messages. If the call was successful, add 1 to the success counter; otherwise add 1 to the failed counter. At the end, display both.
Rob
2008 Jan 30 10:47 PM
After Call transaction, check the sy-subrc value or check the message type in the bdc message table.
If it is a success increase the success counter with 1 otherwise increase the error counter.
2008 Jan 31 3:54 AM
Hi csr
Using describe statement you can get the number of records in a table.
set a counter for error records.
total - errors = success records.
2008 Jan 31 4:17 AM
Hi Jay,
Could you please provide me with some sample code......thank you.
2008 Jan 31 4:42 AM
Hi CSR
data: lv_error type i,
lv_count type i,
lv_succ type i.
loop at itab.
code....
....
...
"increment error variable when ever you have a error...
lv_error = lv_error + 1.
endloop.
describe TABLE itab LINES lv_count.
lv_succ = lv_count - lv_error.
write:/ 'total number of records:' , lv_count.
write:/' Number of errors :',lv_error.
write:. ' procdes records: ' , lv_succ.
Award points if helpful