‎2008 Dec 08 11:33 AM
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é
‎2008 Dec 08 11:35 AM
Hi,
Have you used the BDC_CLOSE_GROUP Fm after open_group?
if yes then can you Copy your code here...
Regards,
Rohan.
‎2008 Dec 08 11:36 AM
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
‎2008 Dec 08 11:37 AM
use BGC close group
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
not_open = 1
queue_error = 2
OTHERS = 3.
‎2008 Dec 08 11:40 AM
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
‎2008 Dec 08 11:45 AM
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.
‎2008 Dec 08 11:46 AM
‎2008 Dec 08 11:53 AM
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 !
‎2008 Dec 09 7:45 AM
Thanx for all your input - eventually I got the problem. My program was calling a FM in which a BDC_OPEN_GROUP is used.