06-29-2007 9:31 AM
Hi Experts,
Im creating an upload BDC program.
I have done all the recording....and it's able to run.
How i can checking the data in upload file before it creating the BDC session.
1) check whether the Student Name exist before proceed to BDC. (Student Name is locate at first column of upload file)
2) if Not exist....display out the student name.
DATA : BEGIN OF i_file OCCURS 0,
a like Student-Name,
b like Student-Class.
END OF i_file
Thanks in advance.
06-29-2007 10:08 AM
Hi,
Befire passing the data to the bdc table make a check wiht the field value in the table and separate them that alredy exits according to your logic.
And for remaining data you cna run BDC.
Regards,
sasi
06-29-2007 10:11 AM
You have check it in the debug mode ... so the file uploaded to internal table i_file .
when you see the i_file it will be placed under the headingas the fields decalraed in the internal table ..
this before creating Session and after uploading th fiel in the program ...
reward points if it is usefull ...
Girish
06-29-2007 10:16 AM
Hi ,
Thanks...Could you provide some sample code for checking whether the data exist in table.
06-29-2007 1:03 PM
Hi,
you r having data in ur internal table
Pass ur input data in table level ,u can chek already is there or not,
if it is there ,delete that record becoz alredy exit.
this input should be key field.
it may be helpful