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 session method is not running in background

Former Member
0 Likes
1,362

Hi,

I have developed BDC using session method..whenever i will execute foreground it is working fine and generating ALV report also.But whenever i will execute in background,it is cancelled.Can any one tell me...Why it is happening like this.

SUBMIT RSBDCSUB WITH MAPPE = session_name
                WITH VON   = SY-DATUM
                WITH Z_VERARB = 'X'
                WITH BIS   = SY-DATUM
                WITH FEHLER = ' '
                    EXPORTING LIST TO MEMORY
                                    AND RETURN.

Thanks

Hi,

I have developed BDC using session method..whenever i will execute foreground it is working fine and generating ALV report also.But whenever i will execute in background,it is cancelled.Can any one tell me...Why it is happening like this.

SUBMIT RSBDCSUB WITH MAPPE = session_name
                WITH VON   = SY-DATUM
                WITH Z_VERARB = 'X'
                WITH BIS   = SY-DATUM
                WITH FEHLER = ' '
                    EXPORTING LIST TO MEMORY
                                    AND RETURN.

Thanks

10 REPLIES 10
Read only

Former Member
0 Likes
1,233

Hi,

Please check whether you are using gui_upload or gui_download function modules in your program. They will work only in foreground mode and not in background mode.

Also condense the currency quantity data before passing it to bdc table.

You could also check for error message or warning messages displayed in status bar which you would have excluded in foreground mode.

Best Regards,

Abirami

Read only

0 Likes
1,233

Hello

You need to check that ALV custom control will not run in the background mode

After making sure that ALV code is disabled in the background mode

if sy-batch eq 'X'

do not create the ALV

endif..

Then run it again to test

that should work

Read only

0 Likes
1,233

Hi Solen,

Thnaks for your reply,but i didn't understand what you are telling..I want to display ALV report for BDC even i will run in Background.Before i have developed ALV report for BDC call transaction for MR21.But now it is not possible for LT12 using session method.

Thanks

Read only

0 Likes
1,233

Hi Sai

Can you please elaborate what exactly you are trying to achieve?

Nabheet

Read only

0 Likes
1,233

Hi Madan,

Thanks for your reply,I want to execute my BDC in background using Call transaction method.

Filename is my Input.

Thanks

Read only

0 Likes
1,233

and that will you are picking from presentation server? If yes i dont think its possible

Read only

0 Likes
1,233

Can you please tell me how to do that...I think using Open dataset,Read dataset,closse dataset right..

but where i have to use?

Read only

0 Likes
1,233

Hello Sai,

OPEN DATASET and Close DATASET are commands to read a file present in the Application server.

For reading files in the Presentation Server, you can use function modules like GUI_DOWNLOAD GUI_UPLOAD etc.

Best Regards,

Jagraj Singh.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,233

Remember that BDC can trigger an ALV execution  but wont be able to interact with it (ref: 311440  - Batch input and controls) also in background mode most ALV will convert to old ALV list and not Grid which requires an actual GUI session.

Regards,

Raymond

Read only

ramkumar007
Participant
0 Likes
1,233

check your flow of bdc.

1.upload a flat file to internal table
2.open_group
3.loop inside the bdc with five parametrs(program,dynbro,dynbegin,fnam,fval).
4.endloop
5.bdc_insert
6.close_group