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

FM not executing in background mode sometimes

Former Member
0 Likes
815

Hi,

I'm using one Z function module for Production order confirmations which inturn calls 'BAPI_PRODORD_COMPLETE_TECH'.

There is 'BAPI_TRANSACTION_COMMIT' and 'BAPI_TRANSACTION_ROLLBACK' also present.

My issue is, this functionality works perfectly fine when I execute the program in foreground mode, but does not go through sometimes when I schedule it in background.

Note : Its not completely skiping the entries in background mode. It works sometimes and sometimes doesn't.

Can anyone comment if they have faced similar issues ?

Regards,

Shiva

Hi,

I'm using one Z function module for Production order confirmations which inturn calls 'BAPI_PRODORD_COMPLETE_TECH'.

There is 'BAPI_TRANSACTION_COMMIT' and 'BAPI_TRANSACTION_ROLLBACK' also present.

My issue is, this functionality works perfectly fine when I execute the program in foreground mode, but does not go through sometimes when I schedule it in background.

Note : Its not completely skiping the entries in background mode. It works sometimes and sometimes doesn't.

Can anyone comment if they have faced similar issues ?

Regards,

Shiva

3 REPLIES 3
Read only

Former Member
0 Likes
670

Hi,

Create some error log using messages if the select fails

Some time if you are trying to select very large number of records then you may get dump for the select statement like DBIF_RSQL_INVALID_RSQL

Regards,

Shamma

Read only

0 Likes
670

Hi,

The entries passed through this selection are very few per execution. Maybe 3 - 4 orders going to this FM for execution. Moreover, if there is dump generated, it would stop program execution. It has never been so. Program works fine with processing other functionalities.

Can you think of any other possible reasons that might be cauing this problem ?

Regards,

Shiva

Read only

0 Likes
670

Hi !

In my opinion it fails, when there is a popup coming from the BAPI.

We have the issue that when we process in background the orders where a popup should be shown (e.g. the popup asking if setting TECO is OK although reprocessing records exist).

When we reprocess our IDOC (which are calling that BAPI) in BD87, the popup is even shown in BD87 !

Any idea how to tell the BAPI to ignore such messages and still set the TECO ?

Any other way to set the TECO ?

thx a lot !