Application Development and Automation 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: 
Read only

BDC Multiple Sessions

Former Member
0 Likes
564

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.

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
494

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.

Read only

Former Member
0 Likes
494

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.....!!!!!

Read only

Former Member
0 Likes
494

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