‎2007 Mar 18 5:14 AM
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.
‎2007 Mar 18 12:32 PM
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
‎2007 Mar 18 12:32 PM
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
‎2007 Mar 18 12:36 PM
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.
‎2007 Mar 19 6:10 AM
Call the program RSBDCSUB using submit statement when you reach 601 record.