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 error when uploading material master

Former Member
0 Likes
1,088

Hi All,

If you could please help ...

I am uploading Material Master (MM01) records using BDC Session Method. My problem is when I am running the program I get the error that with BDC_OPEN_GROUP the last session is still active.

I used SM35 to delete all MM entries znd then ran the program again - still the same error.

The thing is, when I create/ maintain a single part I don't have any problems.

Your help is much appreciated.

Maré

8 REPLIES 8
Read only

Former Member
0 Likes
1,059

Hi,

Have you used the BDC_CLOSE_GROUP Fm after open_group?

if yes then can you Copy your code here...

Regards,

Rohan.

Read only

Former Member
0 Likes
1,059

Hi,

You need to use BDC_CLOSE_GROUP after call BDC_OPEN_GROUP fm.

Please check whether you have defined them in the same order.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,059

use BGC close group

CALL FUNCTION 'BDC_CLOSE_GROUP'

EXCEPTIONS

not_open = 1

queue_error = 2

OTHERS = 3.

Read only

0 Likes
1,059

Me again,

I have used the FM BDC_GROUP_CLOSE in my program ...

The order in which I'm using the fm's are :

BDC_OPEN_GROUP

BDC_INSERT

BDC_CLOSE_GROUP

Read only

0 Likes
1,059

hi,

i think you might have used the BDC_OPEN_GROUP function module inside loop.

remove it from loop,only bdc_insert should be there in loop.

Read only

0 Likes
1,059

Hi ,

Can i have ur piece of code here?

Regards,

Rohan.

Read only

0 Likes
1,059

Gautham,

Will check my code - thanx. Will let you know.

Rohan,

Going to check for the loop-scenario and if I still get the error I'll make use of your offer. It's a massive program sir !

Read only

Former Member
0 Likes
1,059

Thanx for all your input - eventually I got the problem. My program was calling a FM in which a BDC_OPEN_GROUP is used.