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 problem

Former Member
0 Likes
312

I want to transfer 1000 data using bdc but if i wanna transfer 600 using session & remaining using call transaction how can I do that.Its urgent.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
291

Hiii...

<b>call function BDC_OPEN_SESSION.</b>

loop at itab.

<b>*fill the BDC table here...

.........................</b>

<u>if sy-tabix le 600.</u>

<b>call function BDC_INSERT.

tcode = 'SE--'

table = bdcdata..

...........</b>

<u>else.</u>

CALL TRANSACTION 'SE--' USING BDCDATA MODE '-' .

endif.

<b>call function BDC_CLOSE_GROUP.</b>

Here one session will get created for the whole 600 transactions.. then u can process it By going to SM35 transaction.

hope it solves ur problem..

reward helpful answers...

sai ramesh

3 REPLIES 3
Read only

Former Member
0 Likes
292

Hiii...

<b>call function BDC_OPEN_SESSION.</b>

loop at itab.

<b>*fill the BDC table here...

.........................</b>

<u>if sy-tabix le 600.</u>

<b>call function BDC_INSERT.

tcode = 'SE--'

table = bdcdata..

...........</b>

<u>else.</u>

CALL TRANSACTION 'SE--' USING BDCDATA MODE '-' .

endif.

<b>call function BDC_CLOSE_GROUP.</b>

Here one session will get created for the whole 600 transactions.. then u can process it By going to SM35 transaction.

hope it solves ur problem..

reward helpful answers...

sai ramesh

Read only

amit_khare
Active Contributor
0 Likes
291

Break the internal table in two chunks of 600 and 400.

Pass the first one to BDC_INSERT and do submit on it.

Pass the next 400 to call transaction.

Since they take recods from BDC TABLe you cant pass individual records each time by looping on it, this will create 600 sessions in SM35.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
291

Call the program RSBDCSUB using submit statement when you reach 601 record.