12-11-2007 8:41 AM
Hello Gurus,
Please let me know what happens when i dont write BDC_CLOSE_GROUP function module in session method ?
Regards,
Rajkandula
12-11-2007 9:10 AM
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.
12-11-2007 8:45 AM
12-11-2007 8:57 AM
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
12-11-2007 8:58 AM
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.
12-11-2007 9:01 AM
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.
12-11-2007 9:10 AM
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.
12-11-2007 9:10 AM
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
12-11-2007 9:11 AM
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.