02-22-2007 12:20 PM
Hi ABAP Gurus,
I have recorded and written a program for BDC (Session method) for Transaction code ABAW. It is working fine for one record only. When I give an input file with multiple records, it is taking only one record and program is getting exit even thought there are multiple records in BDCDATA table. Can any of you put some light on how to solve this issue.
Thanks in advance.
Regards
Sudhaker
02-22-2007 12:25 PM
Hi,
in the loop in the BDC program, i can see that you are not refreshing the T_BDCDATA table after every bdc_insert. do that everything will be working
santhosh
02-22-2007 12:24 PM
02-22-2007 12:25 PM
Hi,
in the loop in the BDC program, i can see that you are not refreshing the T_BDCDATA table after every bdc_insert. do that everything will be working
santhosh
02-22-2007 12:27 PM
santhosh,
How do you now that then. Where is the code.
Also we have the same number of posts and points. I have one more post now though due to this one.
02-22-2007 12:33 PM
u should do this way...
loop at itab...
refresh bdcdata internal table....
<fill relevant fields of bdcdata table>
call transaction .......
endloop.
02-22-2007 12:39 PM
Santosh,
You are amazing. Thank you very much for quick response and also saved me. I have awarded you full points.
Regards
Sudhaker
02-22-2007 12:42 PM
How obvious is it that you are taking the p1ss and awarding points to yourself?!
How could you have solved the problem without seeing the code? Unless you are psychic.
Pathetic.
Gareth.
02-22-2007 12:54 PM
IS THIS A FORM OF STAT PADDING.
HOW CAN YOU COME UP WITH THIS ANSWER WITHOUT POSTING THE CODE. DO YOU WORK IN THE SAME OFFICE OR ARE YOU THE SAME PERSON.
CONSIDER THIS THREAD BEING REPORTED!!!!!!!!!!!!!!!!!!
02-22-2007 1:53 PM
Hi Martin/Gareth,
please see santhosh response again. My understading from his response is that he is asking me to refresh t_bdcdata (Internal table to store BDCDATA) and re-populate for every loop and call bdc_insert. I have done exactly same and my program is working fine.
Regards
Sudhaker
02-23-2007 4:53 PM
Hi Martin/Gareth,
Its so sad that you couldnt see that, I could have faced the same problem many times. Why would I need SDN points mate, I should be greatful for this place it helped me many times. I would post even if there weren't no points awarded.
sorry if i troubled you guys...May be u are true I am physcic
santhosh