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

Regarding Session

sreeramkumar_madisetty
Active Contributor
0 Likes
602

Hi Gurus

I need your kind suggestions on the following issue:

I have a flat file consisting of 100 records.

I am uploading that file using BDC session method.

My requirement is I have to create a batch input session for every 10 records.

How to handle this.

I need detailed explanation with sample code.

Your views and suggestions are highly encouragable.

Regards,

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
586

hi,

schedule your job in sm36 with the periodicity as 10 sec this would run your program every 10 secs.

santhosh

5 REPLIES 5
Read only

Former Member
0 Likes
587

hi,

schedule your job in sm36 with the periodicity as 10 sec this would run your program every 10 secs.

santhosh

Read only

Former Member
0 Likes
586

*store all the values of flat file in internal table

loop at itab.
   v_mod = sy-tabix mod 10.
  if v_mod eq 0.
   *here write the code toopen a new session
  endif.
endloop.

Message was edited by:

chandrasekhar jagarlamudi

Read only

Former Member
0 Likes
586

when ur passing data to session

loop at itab.

move data from itab to itab1.

if (sy-tabix/10 eq <wholenumber>).

open a session & trnasfer the data to session & close the session

endif.

endloop.

Read only

Former Member
0 Likes
586

Please refer to this thread on similar topic:

Kind Regards

Eswar

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
586

Hi

It's Answered.