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

Fatal error while executing BDC in background for PFCG transaction

Former Member
0 Likes
1,331

Hello,

I have requirement where I have to create or modify roles in PFCG transaction.
I used BDC to do this. While executing in foreground it works fine but in
background mode it is giving me runtime error as

"Control Framework: Fatal error - GUI cannot be reached". What
could be the reason behind it.

Is there any BAPI available to meet this functionality where I can modify or
create new roles in PFCG Transaction code.

Thank You.

Regards,

Dipak

Hi,

Redo your recording with Background Mode checkbox ticked.

Regards,

Ashish

6 REPLIES 6
Read only

Former Member
0 Likes
1,267

Hi Dipak,

Try this FM searching starting with PRGN* in SE37.

You will have to use combinations of FM (enqueue, maintain,dequeue etc) to get result.

regards,

Archer

Read only

0 Likes
1,267

Hi Dengyong,

I tried searching with that. But did not get any suitable BAPI or FM to meet this functionality.

Regards,

Dipak

Read only

Former Member
0 Likes
1,267

Hi Dipak,

This might be due to the reason that some GUI controls cannot be accessed in the background.

There are no BAPIs available to create roles in PFCG as they are related to Security.

Read only

0 Likes
1,267

Hi Sharmila,

Thanks for reply.

How will I get to know that which perticular GUI controls are not accessible?

Regards,

Dipak

Read only

Former Member
0 Likes
1,267

Hi,

Redo your recording with Background Mode checkbox ticked.

Regards,

Ashish

Read only

0 Likes
1,267

Hi Ashish.

As you said, I did recording with background mode check, still it is giving me same error in background.

Regards,

Dipak