Control frame works in background
Hi all,
I am trying to run a report program that displays data in the ALV using oops.
So when i schedule the job in background, job is cancelled and it throws error saying "Control Framework: Fatal error - GUI cannot be reached"
so in order to avoid this problem , i am calling the offline method of the cl_gui_alv_grid method and instantaiting another object of type cl_gui_docking_container if the offline method returns me '1'.
still the problem is persists.
Any sugestions as to whether we can schedule the jobs that make use of control frame works in background or bacth mode or pointers to the problem is appreciated.
Thanks.
Hello,
Try when background process instead of creating an ALV, send the info to a file (flat or csv) and donwload it on the server.
Bye
Gabriel.
Similar Messages
-
Reg: Control Frame Works material...
Hi All,
Can Any one of you please send me some info in detail regarding <b>Control Frame Works</b> in ABAP.I need to work on this area.I dont know the concepts of OBJECTS in ABAP point of view ,i need some help in working out the topic practically.
Thanks in Advance,
Regards,
Vijay Penumakarefer sap help.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/147a36c
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/147a36c70d2354e10000009b38f839/content.htm -
Hi experts,
Can anybody give some information about the control frame work in report....it would be gr8 helpful to me...Generally what is the diff. between normal reports ,alv,and control frame work.....
Thanks
KRISNAHello Krisna
a very important difference between a "classical" report and an (OO-based) ALV list is that we have a <b>frontend</b> and a <b>backend</b>:
- backend = ABAP program
- frontend = control (e.g. grid control)
The control framework takes care of the <b>synchronization</b> between backend and frontend. For example, when the application passes PBO of a dynpro holding a control the control framework automatically executes <b>CL_GUI_CFW=>FLUSH</b> .
Sometimes we have to call specific methods to trigger this synchronisation. If you have an editable ALV grid you have to call method go_grid->CHECK_DATA_CHANGED in PAI of the dynpro holding the grid control otherwise you will not see the changed values (of the ALV list) in the internal table of your ABAP program.
Another important method of the control framework is <b>CL_GUI_CFW=>SET_NEW_OK_CODE</b>. If the user executes an ALV toolbar function we never pass PAI of the dynpro. However, sometimes you would like to do that. In this case you can call CL_GUI_CFW=>SET_NEW_OK_CODE which will set a new ok-code and trigger PAI after finishing execution of the toolbar function.
For more details please refer to the SAP documentation
<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d2/147a36c70d2354e10000009b38f839/content.htm">SAP Control Framework</a>
Regards
Uwe -
What is Advantage of Control Frame work architecture
can i know the advantage of control framework architecture over normal architecture ?
Welcome to SDN!!
The Follwoing docs explains in details in using TREE (which is of CFA) in SAP.
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/147a36c">SAP's CF</a>
Thanks
Jack
<b>PS: Allot points if it helps !!!</b>
Message was edited by: Jack -
Crystal report 9 supports frame work 2.0
Hi experts,
we are using Crysatl report 9 and build the reports using VS2003 with the frame work 1.1.4322.
We are fetching the online report by deploying the same in the IIS server which has the frame work [1.0,1.1,2.0].
When we use Asp.net frame work 1.1.433 in the virtual directory, we have are not getting any issue.
If we go for Asp.net frame work 2.0.50727 in the virtual directory, we are receiving an error message in the event log as below:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/19/2011 10:44:31 AM
Event time (UTC): 12/19/2011 5:14:31 AM
Event ID: 3099bcd049ab452cab409d38c750f222
Event sequence: 6
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/Solitair-Reports-2-129687452447349006
Trust level: Full
Application Virtual Path: /Solitair-Reports
Application Path: C:\SOLITAIR\KAReportingSystem-Solitair\
Machine name: AAA
Process information:
Process ID: 3936
Process name: w3wp.exe
Account name: NT AUTHORITY\SYSTEM
Exception information:
Exception type: SqlException
Exception message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Request information:
Request URL: http://localhost/Solitair-Reports/Main.aspx
Request path: /Solitair-Reports/Main.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\SYSTEM
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\SYSTEM
Is impersonating: False
Stack trace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at KAReportingSystem.MainForm.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\KAReportingSystem\Main.aspx.vb:line 28
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Kindly advice me
Thank you
Deepan
Edited by: Deepan1 on Dec 19, 2011 2:20 PMHi,
As you must have guessed, Crystal reports 9 is not compatible / tested / supported with .NET 2.0.
Take a look at below wiki.
[http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567]
- Bhushan. -
SUBMIT does not work in background...
Hi guys,
We have a copy program of a standard transaction and once we use this copy program in the main program via SUBMIT... it does not work in background...
Why is this so,,, Please advice...
THanks!Hi,
When executing some program using the statement like SUBMIT prog_2 WITH parameters and RETURN.
In foreground PROG_2 is executed, and once you click on the BACK button the code written after this SUBMIT statement will be executed.
If you are executing the same in the BACKGROUND mode, no feasibility of clicking on BACK button, hence control will remain in the PROG_2 only after executing its logic.
Please code accordingly. -
Program not working ib background
Moderator message: background/foreground/GUI problems = FAQ, please search before posting.
Hi All,
I have a program which is not working in background.It actuly takes the file and using GUI_upload i upload it into ITAb and then modify the database table based on this. But when i process this in foreground it working and updating the table.But when i scedule in background the job is getting over in 1-2 sec and not updating the table.
Please help me. below is the code for your refrence:
data:begin of i_tab occurs 0,
Bp1 like DATAbase table,
Bp2 like database table,
trf1 type string,
trf2 type string,
status type string,
end of i_tab.
data: BP_ver type STANDARD TABLE OF DATAbase table with header line ,
w_ver type ZVERS_BUT050_CUR .
DATA: it_tab type filetable,
gd_subrc TYPE i,
file_name TYPE string,
path TYPE string.
DATA : lw_file TYPE file_table.
DATA: LIN TYPE I.
*Input File
SELECTION-SCREEN begin of block blk with frame title text-100.
SELECTION-SCREEN SKIP 2.
parameters : p_file like rlgrap-filename .
SELECTION-SCREEN end of block blk.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR: file_name.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select only Text File'
default_filename = '*.txt'
multiselection = ' '
CHANGING
file_table = it_tab
rc = gd_subrc.
READ TABLE it_tab INTO lw_file INDEX 1.
file_name = lw_file.
p_file = file_name.
START-OF-SELECTION.
*Upload the file
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILE_NAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
TABLES
DATA_TAB = i_tab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at i_tab.
if i_tab-status = 'Yes'.
i_tab-status = 'V'.
else.
i_tab-status = 'I'.
endif.
modify i_tab.
endloop.
if i_tab is not INITIAL.
select * from DATAbase table into CORRESPONDING FIELDS OF TABLE BP_ver FOR ALL ENTRIES IN i_tab
where PARTNER1 = i_tab-Bp1 and PARTNER2 = i_tab-bp2 .
endif.
*Update the table
loop at BP_ver .
clear i_tab.
read TABLE i_tab with key bp1 = BP_ver-PARTNER1 bp2 = BP_ver-PARTNER2 .
if i_tab-bp1 = w_ver-PARTNER1 and i_tab-bp2 = w_ver-PARTNER2.
BP_ver-PARTNER1 = i_tab-bp1 .
BP_ver-PARTNER2 = i_tab-bp2 .
BP_ver-Z_CURRENTLY_VALI = i_tab-status .
modify BP_ver TRANSPORTING Z_CURRENTLY_VALI .
endif.
endloop.
update DATAbase table from table bp_ver[] .
if sy-SUBRC eq 0.
commit work.
message 'Table DATAbase table Updated Sucsussfully' type 'S'.
else.
message 'Table Not Updated !!! Check the file data or input' type 'S'.
endif.
Edited by: Thomas Zloch on Nov 12, 2010 11:03 AMHi,
Look at the coding in FM GUI_UPLOAD ... This does not work in background ....
Batch mode is not supported
IF sy-batch = 'X'.
MESSAGE ID 'FES' TYPE 'E' NUMBER '002' RAISING NO_BATCH.
ENDIF.
Regards,
Srini. -
Hello Friends,
we want clarify that why we need approval for Frame work PO .?
Scenario is :- while creating the PO we already take approval from the Managers or any responsible person.But while booking the IR in Miro we have to take approval for each invoice booking in this lot of time is getting waste so can any help us in this please.
thanksHi Ranjeet singh ;
If you take approval for PO , you should not need any approvel in invoice verification (miro) .
I quess that you take approval in miro so inconsistency option in invoice.
You can control po and miro consistensies with m8 system messages and tolerances.
Please look at document --> M8 messages for incoming invoices with tolerances
Regards.
M.Ozgur Unal -
Stopping invoice Parking for Second time Parking for a frame work PO...
Hi SAP Guru's..
there is a Requirement from Client site that ..
for a Frame work PO which comes with a Invoice plan ..
we should be able to Stop Second time invoicing Maintained in Invoice Plan...
How to Go for this ...
Any workable suggestion would be Rewarded with Points ...
Thanks and warm Regards..
Adarsh Srivastava..You can control the changing of PO in the enhancement which name you can search here. There are three kinds of enhancement: check, change and save. You need select the kind of 'change'.
-
Guys,
I have a issue with sharing data control frame.
I have a search page. From the search results, if the users clicks on a result row, i have to open a NEW TAB providing details of the row. So everytime the user can go back to search tab, and click on the row to open in a new tab.
For that, I'm launching a new Taskflow everytime the user clicks on the row in the serch rsults table. That taskflow is set to Transaction : <No Controller Transaction>. so each time you gonna lauch a new tab, it gonna consume a new data control frame. (and use as many DB connections)
But i dont want that. so i set the Transaction to 'share the data controls with the calling taskflow' and '<always use existing transaction>'. But the problem is all the tabs showing the same information, which i dont want.
How can i overcome the issue without using multiple Data source connections(i mean holding multiple data control frame)?
Any help appreciated...@shay, we can't use that configuration. When using <always use existing transaction>, we need to share data control.
otherwise, we will endup in this error, "Existing transaction is required when calling task flow"
@amseth -> which means it shows the data for last selected row in the search results.
I'm working to find a solution. Any help, appreciated.. -
Is this how i control frame rate with IMAQdr property node?
Is this how i control frame rate with IMAQdr property node? if not, can someone point me in the right direction? for some reason, it doesnt work..
Attachments:
pic.JPG 75 KBPlease see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-Node/m-p/1642950/highlight/false#M590168
Matt
Product Owner - NI Community
National Instruments -
Hi SAP Gurus
While creating a frame work order system is providing an error "Enter free of Charge" and message number ME083. The material in concern is procured against cost center and it is not FOC material.
I've checked in "Invoice Tab" the selection is there for Inv. receipt and in field selection for "FOF" there is no mandatory
field selection GR/IR control. Pls help me solve this error.
Thanks
RajeshRajesh,
See OSS note 167535.
Symptom
In Customizing, field "GR/GI indicator" is set as a required field. If you create a purchase order and enter an item on the table control overview screen and subsequently choose 'Enter', the system generates error message ME083 "Please enter free of charge". The cursor is placed on checkbox "Free item" in this case.
Cause and prerequisites
Field "Free item" has the same modification group as the GR/IR indicator.
Regards,
Nick -
Hi all,
I am new for parsly frame work , and i want to learn this frame work as soon as possible , can any one please give me references book links or any video tutorial sites with small examples....
thanks
-BaluHere
<http://joelhooks.com/2009/07/14/inversion-of-control-and-dependency-injection-with-flex-us ing-the-parsley-application-framework-part-2/>is
an exemple made with parsley framework, but I'm sure if you google for
parsley exemples you will find more of them. -
CRM 5.1 New UI - ICWebClient Frame work
HI,
Could someone please help me for the following in CRM 5.1 new UI
1) Add a new tab (View) in One Order transaction (i.e Finance Quotation BUS2000114)
2) This new Tab (View) will have a table control which needs to read and save data in Z table.
It will be a great help if you could tell me the steps need to be followed in CRM 5.1 new UI ICWC frame work.
Thanks and Regards,
prasadHi Srikrishna,
Your post was in the wrong forum. I moved it to the correct one where the chance of an answer is much higher.
Hope you understand and good luck.
Best regards
Patricia
SDN Moderator -
The remote controls stopped working
I bought with an official Apple dealer the new i Pod Shuffle (generation 3) to use during my bike rides. After the first ride the remote controls stopped working and the voice over feature spontaneously started repeating the songs title. As well the volume control stopped working altogether. I didn't have time to return the Shuffle after only a week so I disable the voice over feature and keep on using my Shuffle with no volume adjustment, fast forward etc ….
After a visit to the Apple website I saw that several owners complained about this problem and assumed Apple would know about it and be ready to offer a fast solution. So picked an official Service Center as close as possible from my location.
First shock the Service Center was dirty, the paint obviously several decades old and faded, the light kept to the minimum.
Second shock not Tech on duty to check something as simple as a headsets. I realized there was no way to have a fast resolution to my problem. The Shuffle will be send to a regional repair center, I could have save the trip and just go to an Apple dealer. What the use to have Service Centers if they don't provide service?
Now when a product is returned, after 25 days of ownership (can't say use), a product designed by a company with the reputation of Apple you expect some kind of sign that the company is sorry, stands behind it's product and will do all possible to solve the problem. WRONG.
Third shock. The person who took my Shuffle obviously never saw a Shuffle generation 3 before or even knew it existed. She explained over and over that I may (but it sounded more like I will) be charge for the repair. Even asked me to pay upfront a basic fee to cover the time of a Tech checking on the product. And that the Tech will give me a quote if I am to be charged. Furthermore She found tons of reasons why eventually I would be charged to repair the product, however no technical person ever checked on the product. Well I guess only users read messages on Apple website not employees of Apple.
So what now? I am suppose to receive an E-mail in 24 hours to 5 working days, in which I'll be explained the result of the Tech investigation.
I guess most owners of Apple products have a better experience with the Customer Service or where the reputation of Apple being a “cool” company comes from? But based on my experience it looks like Apple's products and Apple's Customer Service may not meet Apple's reputation or customer's expectations. Or am I asking for too much?I seriously doubt you were at an Apple Store and you were not dealing with Apple employees. You were dealing with a 3rd party shop that does work on Apple products.
Don't know where you are located but you could contact Customer Service at Apple and complain but they are somewhat limited it dealing with a 3rd party company. But they will at least have you complaint on file. Or you could attempt to find an actual Apple Store and take your Shuffle there. Or you could try one of the workarounds listed on the threads here.
Maybe you are looking for
-
When I render Max files, I use an older computer with Adobe CS3. While the other computer is working, I use my old, which have Mastercollection CS3. In the help file, I am told to "import" the images, but if I follow the explanation, I can see its fo
-
Oracle taking 3 times more disk spaces than MySQL for BLOBs?
Hello there, We have been migrating one big about 8 TB MySQL table into Oracle 11g R2. The table contains biometric data in 18 BLOB columns - it's a kind of storage table for all biometric information in the form of BLOB. The avg. row length is about
-
How, and which abobe flashplayer do you use with Macbook pro : Mac os x version 10.7.2
-
How can I export image column from SQL Server 2000
Hi everybody,could someone tell me how can I export an entire column( pictures type) to a folder on disk?I've tried the textcopy.exe under the SQL installation's binn folder,it can only export one picture a time,I'm trying to find an automated way to
-
Buscamos Desarrolladores Coldfusion
Santex America S.A. Empresa Internacional dedicada al desarrollo de Software Buscamos Desarrolladores Coldfusion Descripcion: Programador avanzado ColdFusion con conocimientos en instalación y configuración de entorno de desarrollo para esta tecnolog