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

Error while executing BDC in background.

Former Member
0 Likes
707

Hi

I have written a program that creates a background job to execute a BDC on Transaction CKMPRPN. This transaction is used to update future price of Materials. When this program is executed in foreground it works perfect. But when it is executed in background it throws these error messages. Same error messages are displayed when I process the BDC recording in background.

Enter at least one plant

Enter at least one plant

Spool request (number 0000023938 ) created without immediate output

No batch input data for screen SAPMSSY0 0120

Can anyone tell me why this problem is occuring only during background execution?

Or Do I need to find out a Function Module to update the future price of materials?

2 REPLIES 2
Read only

Former Member
0 Likes
438

It happens that batch input programs behave differently in foreground then in background.

When you create a recording, you can switch on the flag: "Simulate background mode". In this way, the recording will behave as in background mode.

( transaction SM35, menu 'go to -> recording' , create recording, switch on flag 'simulate background mode')

Read only

0 Likes
438

Thanks Kris,

Its a useful answer.. But unfortunately in 4.6C version we dont have this option of 'simulate background mode'.

Anyways.. I was able to find the solution.. I used call transaction and executed the BDC program in background and it worked. Earlier I was executing a single transaction for set of materials. But now I m executing separate transaction for each material. It gives these messages at every execution but it also updates the database. Dont know how..