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: 

BDC running in foreground not in background f.61 transaction code

abdulgaffarmohd
Participant
0 Kudos
1,595

Hi All,

I am executing F.61 using BDC, FOREGROUND its working fine and its generating spool request number.

when i keep same bdc program its not generating spool request.

Regards,

Abdul Gaffar M.

2 REPLIES 2

raphael_almeida
Active Contributor
0 Kudos
431

Hi abdul,

When you mentioned that in the background does not generate the expected result, you say that this is a process that will run from a job (SM36/SM37) or not show the user the input dialogs (mode "E" or "N") ?


Why I ask this ... In some cases (if appropriate background via CALL TRANSACTION), when using the "A" mode (Shows Windows) you can fix the input of the BDC when it is wrong. When allowed to in "E", the program will stop so finding some input error. The mode "N" will not stop, but will return error messages in the table that you mention in the MESSAGES parameter, except when found a break-point.

My advice is that if you are using parameters before calling the CALL TRANSACTION ("A" for Online, "E" or "N" for background) leave as "E" to the background mode and run the test again.

Now, if it's a job, there are probably some variable with default settings, check that it is sending data correctly for your program.


BR,


Raphael Pacheco.

0 Kudos
431

Hi Raphael,

Thank you for suggestion.

Initially i tried with "E:" then changed to "N".

But there was no change in the process.

One thing strange is that, when i am running this F.61 in the background, while doing debugging for background job means its just creating endless loop.

Here in image you can see that when sy-batch is initiated means contains 'X' means it just passing message as information,

if i am overwriting with debugging means it's perfectly working.

could any one suggest me how to over come.

In bdc i changed value from sy-batch = ''.

but while calling this report "SAPF140" its over written.

Kindly help me to sort this issue.

Regards,

Abdul Gaffar M.

Message was edited by: abdul gaffar