i have a file which consists of 1000 records,i want to create seperate idoc for every record in the file?
You mean to say your file has 1000 records now you want 1000 IDOCs to be created at the reciever end.
What you can do in this case is:
Change the occurance of IDOC to 0 to Unbounded and import it as a expternal definition. Now map the Detail records to IDOC root node so as many as 1000 detail records arrived in file it will create 1000 IDOCs at the RX.