Regarding Background execution
Hi Experts,
I need to run some standard SAP program in my report, get the data from the output in the list format and then email it to the user. I have implemented this application using the SUBMIT AND RETURN with EXPORTING TO LIST MEMORY. However it takes a lot of time to execute that standard report. Is there any way where this report can be run in background and the output is mailed to the user and thereby reduce the execution time?
Please let me know your views regarding this isssue.
Thanks.
Warm regards,
Harshad.
Hi Harshad,
Simply, Try to change your code a little modifications,,,
Like, if no inputs are given then make some default values,,, and try to selct in that range,
This will be convinient to select the data when send in a background process..
Now in SM36 Assign your program to a Background Job..
Start Condition>Date/Time>Periodic Time> Periodic Values>Give Daily or Hourly or Your choice,,, and
Enter a Time or date,, And save the Job,, It runs backgound automatically and do's the operation you need,
You just remember to assign the default values as required for the background Job if no variants passed.
Thanks & regards,
Dileep .C
Similar Messages
-
Hi,
i want to know the procedure for background execution for reports with example ,
Thank u,
Regards,
Sivaram.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Apr 20, 2011 2:26 PMHello Ambichan,
The normal Execute Button has the Function Code <b>ONLI</b>. you will just have to set this to <b>SJOB</b> in the PAI to make the same button trigger the Background job.
Look at this code...
tables sscrfields.
parameters p_test.
at selection-screen.
if sscrfields-ucomm = 'ONLI'.
sscrfields-ucomm = 'SJOB'.
endif.
start-of-selection.
write p_test.
Get back if you have any doubts.
Regards,
Anand Mandalika. -
Wait in Background execution Co
Hi,
Can a background execution co put to wait?
My requirement is to put an action on wait i.e. it should not be completed {should be in background}
I tried using background execution co.
on satisfying the condition I am setting the result state and completing the step by "executionContext.processingComplete();".
If condition is not satisfied,neither any result state is set nor this step is completed. It was found that background execution gets completed without any result state.
How to avoid this.
How to implement so that it should wait whenever condition is not satisfied?
Web dynpro CO completes on calling processingcomplete().
If we do not call this method it stays there.
Regards,
Pratik
Edited by: Pratik Khandelwal on Jul 16, 2009 9:30 AM
Edited by: Pratik Khandelwal on Jul 16, 2009 9:35 AMHi Ankur,
I have already tried this way.
As we are using background execution callable object, it gets executed automatically.
Automatically means it gets into Queue and server will take care of it's execution I think.
According to my understanding, all the background activities is filled in Queue and from there it gets executed after certain period of time.
I used a loop as described above. Due to continuous loop, the background activities of other processes stops or hanged.
The background activity is on continuous check (loop). So, in a Queue it got stuck in processing of this activity.
If I summarize, Due to continuous loop background execution is not getting completed. this is affecting other background activities also.
Correct me if I am wrong.
Or do I have to do something more.
Regards,
Pratik Khandelwal -
ALV GRID with two Containers Background Execution
Hi Friends,
I have to display two ALV GRIDS on two Container one below another in one screen.
I tried with 'DOCKING CONTAINER' - it works fine in foreground and not in BACKGROUND exection.
In background execution (F9) only one grid is getting displayed.
Please suggent whether I can go for CUSTOM CONTAINER or SPLITTER or some other way.
But I should use GRID DISPLAY and it should work in BACKGROUND EXECUTION also.
Regards,
VijiHi Vijaya,
It should work. I am giving you a sample code. Try this and let me know.
REPORT TEST.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " DISPLAY_LFA1
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " DISPLAY_KNA1
copy and paste the code and create a program. Activate it and come back to SE38 screen.
Now, in program name give the name of the report created and then
select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
This will generate two separate spools . One for KNA1 data & one for LFA1 data.
Let me know how it goes.
Thanks,
Abhishek -
GP Mail: Unexpected internal exception during background execution
Hi,
I have designed a process in Guided Procedures which send mails when Approved or Rejected. I get an exception for users who have yahoo or gmail IDs.
Technical Exception:
Unexpected internal exception during background execution: The message contains non-trusted or invalid receivers
Is there any setting /configuration for sending mails to these.
Pl help
Thanks,
Vasu
Message was edited by:
Vasu MullapudiHi,
are you using the Bounced Mails Framework to manage you mails? If so, one possible explanation is that BMF blocks untrusted messages.
To configure BMF options, go to the Administration workset and edit the list of trusted addresses in BMF.
More info:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/450862f1f014bce10000000a155369/frameset.htm">Administering the BMF</a>
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/4491dafaab0597e10000000a155369/frameset.htm">Managing Trusted Addresses</a>
HTH
Regards, Petja -
RM07DOCS Layout for background execution
Hi,
I'm executing RM07DOCS, in foreground execution, the layout can either be graphical(detailed) or List(overview list of mat docs). In background execution, the only display available is the graphical(detailed list of Matdocs).
Is there a way to setup the program to output in list (overview list of mat docs) view in background execution?
please advise if this can be done and how can it be done.
thanks,
NCDear expert
this link might be help you
http://www.****************/Tutorials/ALV/ALVLayout/Variant.htm
http://help.sap.com/saphelp_470/helpdata/en/6b/2f13439c9f11d194da00a0c930328a/content.htm
Regards
Ajeesh.s -
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. -
Hi guys,
does anybody know what's going on with the bug described in the subject? The original notice was:
3632886: [Background Execution][Mobile] Error 3768 is coming when executeInBackground is set to false with notification center pulled down, incoming call, double tab on Home button..
I cannot find anything about a solution or something else. I cannot find it in the Adobe Bug database as well. I think the bug still exists in the latest AIR 3.9 SDK but, I'm not pretty sure. Maybe someone knows a workaround?
Thanks in advanceHi Nimit,
thank you for your fast reply. I tested an empty app on iOS 7.0.2, compiled with the Air 3.9 release from 10.12.13 (yesterday). The app restarts, when I switch between Safari and the app. Is this a feature or a bug? -
OBJECTS_OBJREF_NOT_ASSIGNED error in a background execution
Hi,
I have a problem at the background execution of my program. I have this error : "OBJECTS_OBJREF_NOT_ASSIGNED"
Information on where terminated
Termination occurred in the ABAP program "SAPLCNDP" - in
"DP_CONTROL_ASSIGN_TABLE".
The main program was "ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ".
In the source code you have the termination point in line 1
of the (Include) program "LCNDPU10".
The program "SAPLCNDP" was started as a background job.
Job Name....... "ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD"
Job Initiator.. "COULOUMIESXA"
Job Number..... 15580300
Source Code Extract
Line SourceCde
>>>>> FUNCTION DP_CONTROL_ASSIGN_TABLE.
2 *"----
3 ""Lokale Schnittstelle:
4 *" IMPORTING
5 *" REFERENCE(H_DP) TYPE CNTL_HANDLE OPTIONAL
6 *" REFERENCE(H_CNTL) TYPE CNTL_HANDLE
7 *" VALUE(TABNAME) LIKE X030L-TABNAME OPTIONAL
8 *" VALUE(MEDIUM) TYPE C OPTIONAL
9 *" VALUE(PROPERTYNAME) TYPE C
10 *" VALUE(DATE) LIKE SY-DATUM OPTIONAL
11 *" VALUE(TIME) LIKE SY-UZEIT OPTIONAL
12 *" VALUE(DESCRIPTION) TYPE C OPTIONAL
13 *" TABLES
14 *" DATA
15 *" TABFIELDS STRUCTURE RFC_FIELDS OPTIONAL
16 *" COLUMNS_TO_STRETCH TYPE TABLE_OF_STRINGS OPTIONAL
17 *" EXCEPTIONS
18 *" DP_ERROR_CREATE
19 *" DP_ERROR_SEND_DATA
20 *" DP_ERROR_ASSIGN
Active Calls/Events
No. Ty. Program Include Line
Name
6 FUNCTION SAPLCNDP LCNDPU10 1
DP_CONTROL_ASSIGN_TABLE
5 METHOD CL_GUI_FRONTEND_SERVICES======CP CL_GUI_FRONTEND_SERVICES======CM007 63
CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
4 FORM ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ZFI__SAPHIR_ES_SPLIT_INTERFACE 141
DIRECTORY_LIST_FILES
3 FORM ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD 165
%_SEL_SCREEN
2 MODULE (PAI) ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD 805
%_END_OF_SCREEN
1 EVENT ZFI__SAPHIR_ES_SPLIT_TRIP_HEAD <SYSINI> 20
SYSTEM-EXIT
Thanks for help.How do I retrieve a file list in background without use directory_file_list method?? I try this code of the RSWATCH0 program:
CALL 'C_DIR_READ_START' ID 'DIR' FIELD a_dir_name
ID 'FILE' FIELD a_generic_name
ID 'ERRNO' FIELD file-errno
ID 'ERRMSG' FIELD file-errmsg.
DO.
CLEAR file.
CALL 'C_DIR_READ_NEXT'
ID 'TYPE' FIELD file-type
ID 'NAME' FIELD file-name
ID 'LEN' FIELD file-len
ID 'OWNER' FIELD file-owner
ID 'MTIME' FIELD file-mtime
ID 'MODE' FIELD file-mode
ID 'ERRNO' FIELD file-errno
ID 'ERRMSG' FIELD file-errmsg.
ENDDO.
But, I retrieve files of SAP server random... I don't retrieve my files! -
Way to get alv grid varients info during background execution
I have used the function module 'REUSE_ALV_GRID_LAYOUT_INFO_GET' to get info alv grid varients i.e already created layout info. Is there any other way of getting this info as this is not giving the exact layout during background execution.
Hi Vijaya,
It should work. I am giving you a sample code. Try this and let me know.
REPORT TEST.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " DISPLAY_LFA1
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " DISPLAY_KNA1
copy and paste the code and create a program. Activate it and come back to SE38 screen.
Now, in program name give the name of the report created and then
select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
This will generate two separate spools . One for KNA1 data & one for LFA1 data.
Let me know how it goes.
Thanks,
Abhishek -
Hi Basis Gurus,
I have a small doubt regarding Background jobs.
Can we edit a job which is in the Scheduled status. .
If that can be done , i am unable to edit a job . When i am trying to edit the job
the message i am getting is ---
" Definition of job Z_MM_MMPV is incomplete. Operation is not
possible "
Please guide me how i can resolve this issue,
Thanks in Advance,
Vikram krishna.Hi Vikram,
Yes, this is possible.
Goto SM37 and display the Job, then select the job and from the menu: Job->Change, and click on Steps. Again select the Job and click on the change button to change whatever you want.
Hope this helps.
Thanks,
Srinivasa -
Dynamic Actions: background execution
Hi
here below the Dynamic Action that I have customized:
0000 04 310 P T001P-MOLGA='15'
0000 04 315 P PSPAR-MASSN='Z1'/X
0000 04 316 P PSPAR-MASSN='Z2'/X
0000 04 317 P PSPAR-MASSN='Z3'/X
0000 04 318 P PSPAR-MASSN='Z7'/X
0000 04 319 P PSPAR-MASSN='ZC'/X
0000 04 320 I INS,0016,,,(P0000-BEGDA),(P0000-ENDDA)/D
0000 04 325 W P0016-EINDT=P0000-BEGDA
The background execution works correctly for Action Types Z3 and Z7 which are not linked to Recruitment.
The execution of Dynamic Action DOESN'T WORK in the background mode but it works in foreground (even if in the dynamic action I've wrote /D) for Z1-Z2-ZC: these actions are linked to Recruitment.
Can you help me?
Paola
Edited by: Pizeta on Mar 2, 2012 10:59 AMAll the Actions are for Personnel Administration.
Actions:
Z1-Z2-ZC in T529A-FUNCH are customized like "7 Initial hiring and transfer of data from Recruitment" --> the dynamic action works but in foreground
Z3-Z7 in T529A-FUNCH are customized like "0 Other actions" or "1 Initial hiring" --> the dynamic action works correctly in the background
P. -
Hi,
We really appreciate the new execute in background function in direct mode, but we have gotten some unforeseen problems with it.
Many things that didn't dispatch events in the background like Loader does that now, and in that event chain we have some OpenGL calls.
We will fix that issue, but its a massive job and we need to submit a new version ASAP.
Is it possible to disable background execution so it behaves like Air 3.8 ?
-SimonHi could you please share a few more details -
1. What AIR version are you using. Could you please try the latest beta available here - http://labs.adobe.com/downloads/air.html
2. Backround execution is 'off' by default for iOS, unless you opt-in using UIBackgroundModes or nativeApplication.executeInBackground. Did you use either of these? If yes, removing them would disable all background execution for iOS apps.
Hope that helps. -
Implementation callable object for background execution
Hi experts,
I am Using NWDS 7.0
while i am trying to create background execution callable object , i didnt find the DC :caf/eu/gp/api.
so i followed the pdf "How to Get NW04s SP7 Guided Procedure APIs for Local Development" and added the required DC's.
The problem is that while i am selecting the dc "caf/eu/gp/api" the following message is displaying
"illegal dependency: Acess list does not allow use of sap.com/caf/eu/gp/api for sap.com/bckg_co(MyComponents
Is there any other way to add DC's ?
pls help me out
Thanks in advance
kiranHi Kiran,
1. go to development Infrastructure --> select ur Software component --> in the component properties Tab > select dependencies Tab->click on Add Button.
2. in the pop up window , select the Software component (Gp - Core) which has the caf/eu/gp/api component and give the dependency details and click Finish.
3. Ensure that Unrestricted acesss is granted for this component. this u can check, by selecting caf/eu/gp/api and select permissions tab in component properties.
hope it helps,
Thanks and Regards -
I am unable to access iTunes. Receive error regarding data execution prevention. I've changed the Performance Options to exclude DEP for iTunes and I've tried unloading/reloading. Still no success. Suggestions?
Try updating your QuickTime to the most recent version. Does that clear up the DEP errors in iTunes?
Maybe you are looking for
-
GR/IR Clearing account query
Hi SAP Gurus, We have business scenarios where GR/IR account gets debited and credited with different amounts. We want to clear even those cases using program SAPF124 by maintaing the required tolerances. Also in SPRO we can maintain the GL to which
-
How do I open pdf's in Safari 5.0.5? Just a black screen
Each time I try to open a pdf file when using Safari all I get is a BLACK SCREEN. Moving the cursor all over the screen produces nothing. This is a consistent problem with any pdf that I encounter on any site. Anyone else experience the problem or be
-
Objects for deletion included in support package are not deleted
Hi experts, How can i create a support package using Add-on Assembly Kit that deletes several objects? This is the case: We have DEV, QA and PROD systems. The objects are deleted on DEV and the transports are released. The transports are automaticall
-
I have a i7 notebook with nvidia geforce 740M, 8gb de ram. On the last days, with some files, every time I do an action, like deleting somethin, saving a file or moving, the illustrator CC stops for a few seconds and doesn't respond at all. Does anyo
-
Adjustments made in LR 2.1 are not Showing up in Bridge CS4
I thought that I had read somewhere that LR2 and Bridge CS4 were aware of each other and photo settings made using one application would be seen by the other. I can tell you that CS4 is not reading ratings, color labels, and ACR settings made using L