This website is not affiliated with, sponsored by, or approved by SAP AG.

Control Framework

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Control Framework

Postby Diana » Wed Jun 24, 2015 3:33 am

Hi Gurus!

i am trying to execute a BDC in background. This BDC is a sinchronization for BP.
The way i do that is the following:
- From a report a call a function module
-This function module make a call transaction to a Customer transaction associated to another Report which the main dynpro is '9000' not the standard one.
- The call transaction has the parameters option NOBINPT = 'X' and DISMODE = 'N'.

The thing is that online runs OK. Online but simulating that is a background process by debugging runs OK. But if i run the process in background , I get the error Control Framework: error fatal, GUI not be reached.

Any idea about how to solve this?

Many Thanks.
Diana
 
Posts: 87
Joined: Sat May 10, 2003 12:52 pm

Re: Control Framework

Postby Gothmog » Wed Jun 24, 2015 4:26 am

One of the screens involved in your called transaction contains a custom container, and so needs the SAPGui.
You can't have it run in background.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1943
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Control Framework

Postby Diana » Wed Jun 24, 2015 9:31 am

This problem ocurrs using the dynpro 1000 (standard). This is the reason for the creation of dynpro 9000.
I supposed have to be a way to execute this BDC in background. Right now, I am working on a modulpool to try to solve this, but I am not sure it works.

Any idea?
Diana
 
Posts: 87
Joined: Sat May 10, 2003 12:52 pm

Re: Control Framework

Postby Gothmog » Wed Jun 24, 2015 9:43 am

Look at the dump in ST22.
Locate the incriminated line in the code to find the control that fails to be created due to the lack of GUI (is there some OO ALV there?)
Create a screen with the same functionalities WITHOUT using the control framework.

Or get rid of the BDC and use functions.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1943
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to ABAP

Who is online

Users browsing this forum: No registered users and 5 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.