Regarding background processing of the session
Hi Gurus
I have some records in my flat file.
While i am doing uploading the file using tc, in foreground it is processing correctly and no issues.
While in Background some of the records are not processing properly and in sm35 for those records I am getting the message :"InCorrect".
What may be the reasons I am not getting.
Can you please suggest me where may be the wrong exactly.
Your suggestions are highly encouragable.
Regards,
kumar
Hi Sree Ram,
This is a very common problem faced in Mass upload of data. This mainly happens if the current transaction is dependent on the previous transaction. For e.g. transaction 2 has a dependency on sucessfull processing of transaction 1.This is due to the time taken by the transaction to update the database table.
Put a commit statement after every transaction in your recording and this will ensure that the records are updated and you will not face any problem in background processing.
Regards,
Guru
Similar Messages
-
Submit Report (Regarding Background Processing)
Hi Guru's,
I want help regarding Background Processing.
I have developed a program which is running fine in forground but in Background mode no values are comming.
All values are becomig Zero.
Plz help.
*--- Submit Report for 'COGI' (Postprocessing of Error Records from Automatic Goods Movements)
SUBMIT coruaffw USING SELECTION-SCREEN '1000'
WITH r_cumul = 'X'
EXPORTING LIST TO MEMORY
AND RETURN.
*---- Get the List
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = it_list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
*--- Convert to Ascii
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listobject = it_list_tab
listasci = it_asci_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE i000 WITH 'Problem in converting LIST to ASCII'.
ENDIF.
DESCRIBE TABLE it_asci_tab LINES w_cogi.
w_cogi = w_cogi - 5.
CALL FUNCTION 'LIST_FREE_MEMORY'
TABLES
listobject = it_list_tab.Hi Arbind,
You have used return you need to add the addition with.Try this way hope it works
SUBMIT zreport EXPORTING LIST TO MEMORY
AND RETURN
WITH P_1 = P_1
WITH P_2 = P_2
WITH P_3 = P_3
WITH S_4 IN S_4
WITH S_5 IN S_5
WITH S_6 IN S_6. -
When will Apple allow background processes for the iPhone?
Can't find a suitable subforum so I'll post it here, please refer me to the correct Apple forum otherwise.
When will Apple allow background processes for the iPhone?
When will Apple allow Alerts from 3rd party apps?
Even my first Palm Pilot allowed developers to use Alert beeps.
Why is Apple crippling the iPhone?
If they continue this, Android will be the winner.
Or will the next SDK allow this?Background processing, simply won't. They already said they won't and explained why.
However, they are currently adding "Push" ability to developers (soon). Originally they did say they were shooting for Sept (but obviously that has passed). Nobody can say "why" it is late or when it will come. Just know it is coming.
Push in case you don't know will let a service (one service) run in the background that apple makes for the phone. that service will ping apple's servers. Apps that want to "run" in the background have to register with that service thus lets say AIM is on your phone, you send a message and close...somebody responds. AIM's servers will send notification to the push service...then the phone will alert you of a notification in the AIM app, you open (thus starts the app again) and it gets the message. -
Regarding Background processes
Hi,
I need information regarding the Oracle background processes how it works internally step by step process for all the Background Processes and kindly tell me is their any duration for all the processes and kindly tell me is their online site so that i can learn and tell me how do we manage the tablespaces and i do not know sql kindly tell me how to learn sql and pl/sql?if you provide me the link for all these i would be garteful.
regards,
sudhir... and specifically start the reading from Oracle Concepts.....In the paragraph(s) regarding the Oracle bkg processes , there are links that direct you to other more detailed docs....
Have a good reading.....
Greetings... -
Background processes of the app server
Hi,
We had setup one app server & database server. We would like to restrict the users to use the same server which they are assigned to. Currently it's happening with the logon groups for dialog users. When ever something is getting executed in background it's occupying the other servers background work process also which we don't want to.
Is there a way to control to use only that particular application server's processes when they are performing any activity or transaction running in the background.
Regards,
Krishna.Check SAP [Note 786412 - Determining execution server of jobs w/o target server|https://service.sap.com/sap/support/notes/786412]
The default server group has now been introduced (as of Basis Release 6.10) for these types of requirements.
Create a server group with the name 'SAP_DEFAULT_BTC' in transaction SM61 and assign the desired servers. As of now, the background jobs that do not have an execution goal are only executed on a (any) server that is included in the server group 'SAP_DEFAULT_BTC'.
Note that the 'SAP_DEFAULT_BTC' server group is analyzed at the start time of a job, but not at the definition time. This applies in general to background processing server groups.
Hope this helps.
Thanks,
Naveed
Edited by: Naveed Qureshi on Oct 11, 2010 11:41 AM -
AIR vs. Flex: image generator as a background process on the server
I am running into problems with an image generator running on
a headless server.
When I start up the server, it launches my java app. It reads
a list of report definitions from the data base. For each report,
it spawns a thread. Each thread launches my Flex application in a
browser window.
Flex draws the data in charts. Each time data is pushed to
the flex application from the java server side, Flex calls a remote
java method to save it's image to a file. This file sits in a
directory where it can be viewed in a regular old html page.
The problem is really the automated aspect. I want to have
this chart generated every few minutes as a .png file. It works
perfectly fine on my localhost machine, but the server deployment
is so far not working, I think because it is headless. We have
firefox installed on the server. Is there no way to launch it as a
background process to draw these images? Should I turn this into an
AIR app (I've never done anything with AIR up to this point) to
make it run more easily in the background?
Java programmers all seem to think that running an image
generating process in a web browser window on the server is "bad
practice". So I think I am thinking maybe I should turn it into an
AIR app. I'm not sure though how to deploy AIR apps though. Can
they go in a .war file?
If someone has any ideas about this or if going AIR is the
wrong approach here please let me know. Thanks!Not explicitly, as far as I know.
But you could always run it and then hide its window using Cmd+H, or the menu command "iCal" -> "Hide iCal". Click its dock icon to make it visible again. -
Regarding background processing
hi experts,
i have developed a report in which huge amount of data is involved so i decided to execute in the background,,,for this i created the variant and for back ground i wrote this code but when i execute this it gives an error plz help me to solve this problem sud i change something in the variant or in the function module....
report given here::::
REPORT ZBACKGROUND.
parameters:job(32) .
data:count like btcevtjob-JOBCOUNT,
teamit like TBTCJOB-AUTHCKNAM.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
DELANFREP = ' '
JOBGROUP = ' '
JOBNAME = JOB
SDLSTRTDT = NO_DATE
SDLSTRTTM = NO_TIME
JOBCLASS =
IMPORTING
JOBCOUNT = COUNT
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:/ SY-SUBRC.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
ARCPARAMS =
AUTHCKNAM = TEAMIT
JOBCOUNT = COUNT
JOBNAME = JOB
REPORT = 'ZRAW_PRODUCTION_REPORT'
VARIANT = 'ZRAW'
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:/ SY-SUBRC.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = COUNT
JOBNAME = JOB.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:/ SY-SUBRC.
error:::ShrtText
Exception condition "INVALID_JOBDATA" raised.
What happened?
The current ABAP/4 program encountered an unexpected
situation.
Error analysis
A RAISE statement in the program "SAPLBTCH" raised the exception
condition "INVALID_JOBDATA".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
Error in Job Data, See SYSLOG
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
Trigger Location of Runtime Error
Program SAPLBTCH
Include LBTCHU24
Row 308
Module type (FUNCTION)
Module Name JOB_SUBMIT
ource Code Extract
ine SourceCde
278 GLOBAL_STEP_TBL-AUTHCKNAM = AUTHCKNAM.
279 GLOBAL_STEP_TBL-STATUS = BTC_SCHEDULED.
280 MOVE-CORRESPONDING PRINT_PARAMS TO GLOBAL_STEP_TBL.
281 MOVE-CORRESPONDING ARC_PARAMS TO GLOBAL_STEP_TBL.
282 APPEND GLOBAL_STEP_TBL.
283
284 CALL FUNCTION 'BP_JOB_MODIFY'
285 EXPORTING
286 DIALOG = DIALOG_FLAG
287 JOBCOUNT = GLOBAL_JOB-JOBCOUNT
288 JOBNAME = GLOBAL_JOB-JOBNAME
289 NEW_JOBHEAD = GLOBAL_JOB
290 OPCODE = BTC_MODIFY_WHOLE_JOB
291 TABLES
292 NEW_STEPLIST = GLOBAL_STEP_TBL
293 EXCEPTIONS
294 CANT_ENQ_JOB = 02
295 INVALID_NEW_JOBDATA = 09
296 OTHERS = 99.
297
298 CASE SY-SUBRC.
299 WHEN 0.
300 *
301 * Stepnummer ermitteln
302 *
303 DESCRIBE TABLE GLOBAL_STEP_TBL LINES STEP_NUMBER.
304
305 WHEN 02.
306 RAISE LOCK_FAILED.
307 WHEN 09.
>>>>> RAISE INVALID_JOBDATA.
309 WHEN OTHERS.
310 RAISE JOB_SUBMIT_FAILED.
311 ENDCASE.
312
313 ENDFUNCTION.Refer to these sample programs
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
http://www.kabai.com/abaps/z05.htm
REgards,
Santosh -
Hi regarding parrelel processing of the program
Hi Experts,
1.I have 2 records in one file which are processing by one program.
2.This program is calling one function module ,this function module is processing the records.
3.In that function module,there is one user exit where we have written code to process the record.
4.The flow is like below ,
Program> RFC Function module>Userexit.
5.After control passed to function module, the program is processing another record.
but still the user exit in the function module may not complete the processing of first record.
Because of this , sometimes, 2 records are running the user exit at a time.
But the 2nd record processing depends on first record result.
Because of this sometimes 2nd record is getting incorrect result.
How can i let the user-exit code wait not to process the 2nd record before completion of first record.
Thanks&Records
Ramakrishna LThanks everybody for valuable suggestions.
Actually i used the functiuon module :
data : prg type INDX-SRTFD value 'ZTEST1_CHECJ'.
if count ne 1.
endif.
do.
CALL FUNCTION 'ENQUEUE_ESINDX'
EXPORTING
MODE_INDX = 'E'
MANDT = SY-MANDT
RELID = 'ZZ'
SRTFD = prg
SRTF2 =
X_RELID = ' '
X_SRTFD = ' '
X_SRTF2 = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
exit.
ENDIF.
like above till sy-subrc = 0. i can let the program wait .
I guess it will work.
Finally here they have changed the design itself, to avoid dependency records.
So no issues
Thanks
Ramakrishna L -
Supress warning message in Session background process
Hi All,
I am facing a problem while executing a session in background process. The OK_CODE will disappear while the warning message appears in the status bar and the session will error out.
Pl. help me in suppressing the warning message and continue the next screens to post the document succsessfully. The TCode I am working is 'C201'.
Thanks in advanceHi prakash,
1. While we run the session in foreground,
WARNING message will come on screen,
and then we have to press ENTER,
to proceed further.
2. But when this same session, run in background,
it does not get PAUSED,
bcos of WARNING message.
(it gets paused only due to ERROR Message, and not for Warning/Info message)
3. So not to worry about the warning messages, in background.
regards,
amit m. -
Background processes while starting the R/3 system
hi all
I have IDES R/3 4.7 installed in my hard disk,
and when i start the background processes normally the status has to be Wait , yes.
But these days when i started the processes, i'm getting the statuses as "Ended" with all the 12 background processes,
and i can't be able to get into the login screen.
can anyone tell how to get the processes states to wait and yes state.
ThanksHave a look at the dev_-traces located in /usr/sap/work directory. You should pay special attention to dev_w0 and dev_ms, and then look through the other dev_w files.
I guess, there you will find a hint leading you to the cuase of the issue -
SM35 - manual processing of the batch input session
Hello,
In SM35 I see that some batch input sessions were processed by user XXX-XXXX (user type:System) (in our case INT-3528) in N mode. The question is: how to determine the exact user who has really processed that session? We need to stop that - I guess - automatic processing of the sessions and process them manually.
Thanks for help,
SlawekHi,
also, you can check the logs directly in SM35. So if any documents were posted (or anyting updated in the system) information about what happened should be shown there.
If there were acounting documents (table BKPF), I think the user name will be the same system user "who" has processed the sessions.
I think that your basis team has set up the system in a way that batch input sessions are processed automatically. This is simialr when scheduled jobs are running under a pseudo user name (system user, IT user, not a real person behind). You can ask the basis team to switch off this automatic processing competely or only for selected sessions.
Hope that helps, points welcome
Csaba -
BDC (Background processing in call transaction )
Frnds how to go for background processing in " call transaction method"
We know that " NO display" mode is there but any other method is there in real time.
> in session method while data is getting uploaded suddenly server stops then how to upload the data from the last record where the server stopped.
plz help.
regards,
satyaHi
u have to use No Display mode in call transaction...there is no other go for this...
Otherwise opt for session method and using SUBMIT rstbdcsub. process in background.
When server stops mean while the processing of the session, u can get the processed records info by the log and you can process the failed / un processed records now by foreground in sm35 or u can process the entire file again or u can create the file with only failed records and process .
Regards,
kumar -
Hi all,
I've written a batch input data transfer program, into the internal table of which i upload some data from the presentation server using the GUI_UPLOAD function module . I am trying both session method and call transaction. I am being successful in uploading the data into the SAP system i,e into the database tables when i follow foreground processing for session method and 'MODE A' in call transaction. The problem arises when i try to use the background processing option , the data is not getting uploaded into the SAP system. When i use the foreground option the same data gets uploaded without problem.
For the case of call transaction i tried looking into the message internal table during successful uploads, it'll have success message type and for the PROBLEM case of mine the internal table will be empty.hi,
Yes. You can't run it in background if you are using GUI_UPLOAD.
If the data is in application server, you can read it using OPEN DATASET.. and upload it to internal table in background.
regards,
Beena -
Background Process doesn't work
Hi Everybody,
i want to change some data on a database table through a background process but the data will not be changed:
I am working on IDES ECC 6.0 (2005)
CALL FUNCTION 'MY_BACKGROUNDD_PROCESS'
IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION 'NONE'
EXPORTING
CALL FUNCTION 'START_OF_BACKGROUNDTASK'
EXPORTING
STARTDATE = SY-DATUM
STARTTIME = l_time
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
COMMIT WORK.
ENDIF.
If i call the function without: " IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION 'NONE' " it works fine.
What could be the problem?
regards,
SidHi Julius,
i am new to abap so i am trying to find a solution in SDN. I try it also without 'IN A SEPERATE UNIT' but without success. Is it necessary to call the function: 'START_OF_BACKGROUNDTASK' after it?
CALL FUNCTION 'MY_BACKGROUND_PROCESS'
IN BACKGROUND TASK DESTINATION 'NONE'
EXPORTING
Could you please give me an example how i can call my fuction 'MY_BACKGROUND_PROCESS' as a background task?
Thanks in advance!
Sid -
Background process for recovering database.
Dear Guru's,
Not sure whether this is the correct forum to post this thread.
Can anyone let me know, what is the background process that does the recovery of database (Instance recovery is done by SMON automatically).
I mean, when we go for PITR or refresh, we'll apply archive files to the backups. Which background process reads the archive files to the buffer cache, so that they are applied to the database.
Regards,
Kumar865747 wrote:
Dear Guru's,
Not sure whether this is the correct forum to post this thread.
Can anyone let me know, what is the background process that does the recovery of database (Instance recovery is done by SMON automatically).
I mean, when we go for PITR or refresh, we'll apply archive files to the backups. Which background process reads the archive files to the buffer cache, so that they are applied to the database.
why does answer matter since you have no control over it to begin with?
Maybe you are looking for
-
I have two Apple ID. How do I combine them?
I have two Apple ID. How do I combine them? I beleive that I have songs that I have gotten under each. I want to combine them into one.
-
Problem after balance carry forward with t-code: FAGLGVTR
Hi, I have run that t-code: FAGLGVTR for balance carry forward. Balance transferred correct according to GL Account but when I run t-code u201CS_ALR_87012082u201D for vendor balance for respective recon GL code its show difference. Please let me know
-
...here we go again!...just upgraded to Leopard and everything was fine, now mail won`t send and I can`t get Safari to open at all so can`t access my .mac account...help!!!...please remember I only speak English (and French) and don`t understand geek
-
I want to display a jpg image in a jsp I have added the line <img src = img/backImage.jpg> Into the body of my jsp page. I have placed the backImage.jpg into a folder called img which is in the WEB-INF folder. When I run the application the picture
-
No logical port to call web services
Hi all, Via MOPZ, after I selected files to my download basket, and reached Download Files steps, the following message is prompted and the Download button is disabled: No logical port to call web services What are the setting I should do to setup th