‎2008 May 02 4:49 AM
Hi all,
Pls help
I want to generate multiple sessions with a single bdc.
Eg. In my bdc's internal table.it contains about 1200 record now my requiremt is to generate a new session after every 400 records gets uploaded (processed).that means in this case 3 different sessions should be created in SM35
like
ZMAT1
ZMAT2
ZMAT3.
Can u guys gave me any idea how to do it ...!!!
Thankz in advance.
‎2008 May 02 7:35 AM
hi,
first of all why do u require 3 sessions seperately.
if u want to take 400 records per session ,then
take 3 flat files with 400 records each. so whenever
u execute ur program one session will be created and
for each session u give 1 flatfile.
‎2008 May 02 8:03 AM
Thnaks for a reply,
actully itz a client's requirement to have a different session for a single flatfile to be uploaded and ya records in a file can be of any numbers,it can be 1000-2000 or anything,what they guys only know is that they want a sprate session for each 300 records uplaoded in sm35.
(So,i cant devide them into seperate flatfiles)
any other idea.....!!!!!
‎2008 May 02 8:04 AM
Hi Sidharth,
First try and find out a way to find the record count in your code, and then check for a condition, such that a flag is set for the case where when the count reaches (400*n) times where n is the variable taking values 1,2,3,.... so on. When the faleg is set, take a new group to generate a new session. In this way you can generate as many sessions as you want depending on the number of records.
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T