I have created a bdc program to create an SM35 session of CA02. The wierd thing is that the session will run in background with no errors, but the data is not updated. If I run the session in foreground the data is updated. Have I overlooked something simple?
Hi Andrew,
Try to check if sy-batch is being looked for in the standard program. You can then put a break-point there and debug.
You can also, when running in foreground, change sy-batch to 'X' from the debugger and see if it works or not.
Good luck,
John.
Check the session log. You will have some idea why it is going wrong.
May be some status messages which says, "Field doesnot exists on the screen XXXX".
Regards,
Naimesh Patel
Hi Andrew,
I understand your problem. For BDC session your giving flat file which is in local system ( i.e in presentation server) If the file in presentation server it will run in foreground only to run bdc in background make sure that your file is in application server. Then run the bdc your problem will be solved.
OPEN DATASET <file name> FOR INPUT IN TEXT MODE ENCODING DEFAULT.
Read dataset <file name> to itab.
Close dataset <file name>.
open dataset is used to open the file on application server. Press F1 on placing the courser on open dataset will get the required information.
hope it will useful to you.
<b>reward if useful</b>.
regards,
sunil kairam.
Hi Andrew,
Using which T-cod ur running in background. AFter running Go to SM37 give the job name as ' * ' (Astrick) and see is ur job status is <b>FINISHED</b> or <b>CANCELLED</b>. This can show is your background process is running succesfull or not. IF cancled check the job log what are the errors.
regards,
sunil kairam.
Add a comment