Skip to Content
author's profile photo Former Member
Former Member

bdc problem

hi all,

i am session method !!

Uploading my internal table through a flat file and passing updating the database table.

the problem is after executing the program when i go to sm35 i can see 3 sessions for indivdual records of my internal table.

i dnt know how come 3 sessions are getting generated

any idea?ideally it should generate only 1 session for all the 3 records of my internal table??

thnkx

bhanu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 07:09 AM

    Hi Bhanu,

    you are using BDC_OPEN_GROUP, BDC_INSERT and BDC_CLOSE within the loop in your program.

    you should use BDC_OPEN_GROUP, then loop at internal table.

    use BDC_INSERT.

    ENDLOOP.

    Use BDC_CLOSE after this.

    Regards,

    Mohaiyuddin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2008 at 07:11 AM

    Hi,

    It seems u have looped both PERFORM BDC_OPEN_GROUP AND BDC_CLOSE_GROUP...don't use these performs inside loop...

    do like this

    PERFORM BDC_OPEN_GROUP

    Loop at itab.

    Perform BDC_INSERT_TRANSACTION

    ENDLOOP.

    PERFORM BDC_CLOSE_GROUP..

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.