Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC upload program

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi ,

Thanks...Could you provide some sample code for checking whether the data exist in table.

0 Kudos

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