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 running bdc session in background

Former Member
0 Likes
1,794

hi guys

happy new yr..

i need ur help ..ver urgent....

my bdc session program is working fine in foreground,giving the following output';

_TRANSACTION MIR4 returncode: 0 RECORD: 0

I Document 2007 is being reversed

W Document date and posting date are in different fiscal years

W Net due date on 19.09.2006 is in the past

*S Document 5106733906 2007 was deleted and created again under 5107082600 2008

but wen i run the same in background with the same variant,I am getting the following error

CALL_TRANSACTION MIR4 returncode: 1.001 RECORD: 0

I Document 2007 is being reversed

S Control Framework: Fatal error - GUI cannot be reached

A Runtime error RAISE_EXCEPTION has occurred

I am new to debbuging session in backgroung,so do tell me steps to debugg session in backgroung ,so that i can close this issue soon...

let me know wat is the reason for the above error..

thanks in advance..

minu

6 REPLIES 6
Read only

Former Member
0 Likes
1,319

Hi Madhavi,

Wish you the same and welcome to SDN family.

Now the thing is while debugging in call transaction when ever controller reaches to call transaction syntax then double click on MODE. It will display the mode(either A/N/E) Make it as A and press F6. Now check the data.

Remember mode should be declared as DATA.

Hope this helps you. Reply for queries, shall post the updates.

Regards.

Kumar.

Read only

0 Likes
1,319

Hi,

Actually my bdc session program was written in ECC5.0, for MIR4 transaction,

now when i am running the same program in ECC 6.0 in frontend I have no issues,but when running in Background i.e in mode 'N'.I am getting error that, " Batch input is unable to take the data".

I think there is some variation of screens of MIR4 in ECC6.0 when compared to ECC 5.0,

so do sujjest a solution or a SAP note.

Read only

rthoodi
Active Participant
0 Likes
1,319

Hi Madhavi,

This error RAISE_EXCEPTION is due to custum containers used in transaction, Thisa can't be handle in BDC seesion method in background.

This can be handle in Call Transaction method only. try call transaction method.

Reward points if helpful

Thanks & Regards

RK

Read only

Santosh_PSN
Participant
0 Likes
1,319

MIR4 is a ENJOY transaction, so BDC (Call Transaction) will not work in background mode.

If ran in background mode you will end up getting following error message :

"Control Framework: Fatal error - GUI cannot be reached"

Read only

omar_mata
Discoverer
0 Likes
1,319

Is there a BAPI that performs the accounting of the MIR4 to be able to invoke it in an ABAP program and to be able to execute it in the background?

Read only

0 Likes
1,319

Could someone please tell me if, despite the fact that this bapi "MRM_INVOICE_PREPARE_AND_POST" is not released, it works correctly? please a person with experience in use.