Application Development 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: 

About BDC_CLOSE_GROUP

rajkumar_kandula
Active Contributor
0 Kudos

Hello Gurus,

Please let me know what happens when i dont write BDC_CLOSE_GROUP function module in session method ?

Regards,

Rajkandula

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HAI RAJ

Use the BDC_CLOSE_GROUP function module to close a session after you have inserted all of your batch input data into it. Once a session is closed, it can be processed

Function Module BDC_CLOSE_GROUP

BDC_CLOSE_GROUP needs no parameters. It automatically closes the session that is currently open in your program.

You must close a session before you can open another session from the same program.

You cannot re-open a session once it has been closed. A new call to BDC_OPEN_GROUP with the same session name creates a new session with the same name.

If you want to write your own program, proceed as follows:

1. Generate the batch input session using function module BDC OPEN GROUP.

2. The proceed as follows for each transaction that the session contains:

a. In the BDCDATA structure, enter the value for all screens and fields that must be processed in the transaction.

b. Use BDC INSERT to transfer the transaction and the BDCDATA structure to the session.

3. Close the batch input session with BDC CLOSE GROUP

4. Start to process the generated session.

7 REPLIES 7

former_member188829
Active Contributor
0 Kudos

Hi,

Session will not close until you use the BDC_CLOSE_GROUP.

former_member404244
Active Contributor

Hi,

BDC_CLOSE_GROUP needs no parameters. It automatically closes the session that is currently open in your program.

You must close a session before you can open another session from the same program.

You cannot re-open a session once it has been closed. A new call to BDC_OPEN_GROUP with the same session name creates a new session with the same name.

Regards,

Nagaraj

Former Member
0 Kudos

Hi,

If dont close the bdc group then all the sessions which u r creating will be stored with the previous session name, so generally it is suggested to close the group.

plzz reward points if it helps.

Former Member
0 Kudos

If the BDC_CLOSE_GROUP is used to close the session created. Ignoring this step will keep the session in Create mode and will not be processed through SM35. It will not be executed as it is in Create mode. Only Closed Sessions are processed in SM35.

Reward Points if useful.

Former Member
0 Kudos

HAI RAJ

Use the BDC_CLOSE_GROUP function module to close a session after you have inserted all of your batch input data into it. Once a session is closed, it can be processed

Function Module BDC_CLOSE_GROUP

BDC_CLOSE_GROUP needs no parameters. It automatically closes the session that is currently open in your program.

You must close a session before you can open another session from the same program.

You cannot re-open a session once it has been closed. A new call to BDC_OPEN_GROUP with the same session name creates a new session with the same name.

If you want to write your own program, proceed as follows:

1. Generate the batch input session using function module BDC OPEN GROUP.

2. The proceed as follows for each transaction that the session contains:

a. In the BDCDATA structure, enter the value for all screens and fields that must be processed in the transaction.

b. Use BDC INSERT to transfer the transaction and the BDCDATA structure to the session.

3. Close the batch input session with BDC CLOSE GROUP

4. Start to process the generated session.

Former Member
0 Kudos

Hi

Use the BDC_CLOSE_GROUP function module to close a session after you have inserted all of your batch input data into it. Once a session is closed, it can be processed

Function Module BDC_CLOSE_GROUP

BDC_CLOSE_GROUP needs no parameters. It automatically closes the session that is currently open in your program.

You must close a session before you can open another session from the same program.

You cannot re-open a session once it has been closed. A new call to BDC_OPEN_GROUP with the same session name creates a new session with the same name.

If you want to write your own program, proceed as follows:

1. Generate the batch input session using function module BDC OPEN GROUP.

2. The proceed as follows for each transaction that the session contains:

a. In the BDCDATA structure, enter the value for all screens and fields that must be processed in the transaction.

b. Use BDC INSERT to transfer the transaction and the BDCDATA structure to the session.

3. Close the batch input session with BDC CLOSE GROUP

4. Start to process the generated session.

Reward if usefull

Former Member
0 Kudos

Session will be created and you can see it in SM35 but you can't process it. It will never come into stage from which it can be processed.

So, Always include BDC_CLOSE_GROUP into report per session.