Background execution of report
With same output device and format (X_65_512/2)
, the report when executed in background , the spool output is fine, in development server. However as I do the same in quality server, the last few columns are chopped off(not displayed)
what can be the likely reason?
Hi,
is the list ALV? any layout active but not transported latest version?
... just o n e possibility.
Regards,
Clemens
Similar Messages
-
Background execution of reports
Hi Experts,
I have a report the output of which is an ALV.
Now If the report is run as such, the o/p is correct.
But if I run the same report in background, the layout is coming incorrect.
Although the titles of ALV (eg. article, site, storage loc ) are coming correct,
the values of these are being skipped.
The o/p is perfectly correct in foreground.
Thanks,
RaviRavi,
I think u got this problem in standard report or in any z-report that is copied from standard one.
It happens in some standard reports while we run it in background. If we run it in foreground, it will give the expeted results, if its run in Background, it will hide some fields while its begin displayed on the screen.
<b>if u observe the difference between these two runs, one flag will be set, that depends on the standard program.If u can make the flag value to get fixed( with the value when it is run in the foreground), then the report vl be having no difference for foreground and backg</b>round.
for example, I handled CJI3 (Project Actual Cost Line items), if u run it in backgound, it will hide some fields from display, if u runit in foreground, it will disply all the fields. For this, I have a flag, which is causing the report to hide some fields from display, when its run in background.
Hope this hint may help u.
Regards,
Sujatha. -
Execution of report in background and foreground
Hi all,
I have a report in which i have two radio buttons on selection screen.
1, Foreground
2. background
could you please tell how to do foreground and background execution of report depends on user selection.if you could send some sample code its really helpful.
thanksIf the Background radio button is selected the you need to use the SUBMIT command to submit your program in background.
Example
Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately providing the user has the relevant authorization.
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
Cheers
VJ
Message was edited by:
Vijayendra Rao -
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. -
Execution of Reports phase error during SAP EHP4 upgrade with EHPi
I started getting an error message in the "Execution of reports after put" phase
(within the Downtime phase) during the SAP EHP4 upgrade with Enhancement
Package Installer.
***** LIST OF ERRORS
AND RETURN CODES *****
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~XPRA ERRORS and RETURN CODE in SAPRB70104.OPQ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1AETR012XProgram terminated (job: "RDDEXECL", no.: "09064300") Long
text: Cause Program "&V#&", which was started in the background, was
terminated abnormally. System Response The system created a job log for
the terminated program. What to do Proceed as follows: Log onto the
system in which the program was executed. The system is specified at the
beginning of the transport log. Then call transaction SM37 to display the
job log. Enter "&V#&" as job name and "DDIC" as user name. Restrict the
starting date to the starting date specified in the transport log. For
the other selection criteria, select only jobs with the status
"cancelled". Then press <LS>Execute</>. A list of the jobs satisfying the
selection criteria is displayed. You can display the log by pressing
<LS>Job log</>. If the list contains several jobs, you can select the job
with the ID " &V#&" with <LS>Display</> -> <LS>Job details</> or define
further details for the selection criteria in the initial screen of
transaction SM37. If the ABAP processor reports cancellation,
double-clicking on the corresponding message in the job log branches to
the display of the corresponding short dump. 1AEPU320 See job
log"RDDEXECL""09064300""OPQ" 1 ETP111 exit code : "12" >>> PLEASE READTHE REPORT DOCUMENTATION OF THE REPORTS MENTIONED ABOVE <<< XPRAs are
application reports that run at the end of an upgrade.
Most XPRA reportshave a report documentation that explains what the report does and how
errors can be corrected. Call transaction se38 in the SAP system, enter
the report name, select 'Documentation' and click the 'Display' button.
>>> The problematic XPRAs are mentioned in messages of type PU132 above
<<<
I tried to follow the instructions in note 1269960, but the enhancement spot
CLASSIFICATION_TOOL was already active. I activated it again and reran the phase
but got the same error. Also, I couldn't implement the note using SNOTE because it is
the middle of the upgrade process.
I also found the following long text in ST22
"Internal error during syntax check: ("//bas/710_REL/src/krn/gen/scsymb.c#11"
Processing had to be terminated because an internal error
occurred when generating the ABAP/4 program
"CL_CLS_BADI_CHARACTERIZATION==CP".
The internal system error cannot be fixed by ABAP means only."
I am on a 64 bit System with CentOS Linux. 8 GB RAM, 250 GB HD with 20 GB free space.
So far, I could not find any information on this. Any help would be greatly appreciated!
Thanks,
VictorHi Victor,
Go to SM37 and put in the username as DDIC and see the job log.
Also check Sm50 and see whether you have BTC processes available.
Last but not the least check your filesystem space usage too.
Gerard -
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 -
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 -
How to schedule the background job if report have Presentation server files
Hi All,
I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
1. Using the Open data set method.
And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
Thanks and Regards,
BharaniHi,
As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
- as ALV Grid
- in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
- with use of webdynpro
BR
Marcin Cholewczuk -
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! -
Xpra_execution phase error execution of report return code 12
Hi,
i am installing BI_CONT add on my ides system.
At phase xpra_execution its giving error "Execution of reports after put finished returncode 12". I have tried continuing 3 times.
Program terminated (job: RDDEXECL, no.: 00174500
See job log
Execution of programs after import (XPRA)
End date and time : 20081017002051
job entries for RDDEXCEL:-
Job started
Step 001 started (program RDDEXECL, variant , user ID DDIC)
All DB buffers of application server idesminda were synchronized
Error Building the ENH TreeObject Type:XHObject Name:/POSDW/COND_TRANSBAL
Function module CMMATGRP_O_WRITE_DOCUMENT deleted
Saved
ABAP/4 processor: CALL_FUNCTION_PARM_MISSING
Job cancelled
Along with that , it also giving an dump
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
not caught in
procedure "OSOA_UPLOAD" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
When calling the function module "RSA1_DSOURCE_ALL_D_GET", one of the
parameters
needed according to the interface description was not specified.
This parameter was "E_T_OHIECOM".
Kindly provide the solution
Regards
VikasHi
XPRA_EXECUTION terminates due to the following reasons:
○ TP_INTERFACE_FAILURE: The tp interface could not be called.
○ TP_FAILURE: The tp program could not be executed. For more information, read the SLOG or ALOG log files.
○ TP_STEP_FAILURE: tp step XPRA_EXECUTION could not be performed successfully. To find the cause of the error, read the method execution log. To view the cause of the error in the log, choose Goto ® Log ® Queue.
○ CANNOT_READ_BUFFER: The tp program could not open the corresponding buffer file. For more information, read the SLOG log file.
○ CANNOT_MODIFY_BUFFER: The tp program could not change the corresponding buffer file. For more information, read the SLOG log file.
For more details on this,please refer to the link :
http://help.sap.com/erp2005_ehp_04/helpdata/EN/7e/c6c2ad98a711d2b429006094b9ea64/frameset.htm
Alternately, you have to follow the following steps:
unlock the shadow instance (cd /usr/sap/put/bin && ./SAPup unlockshd)
logon as DDIC
copy DDIC to a different user
logon with the other user
start transaction SE06 and make the system "changable"
start transaction OSS1 -> Technical settings - Change - Save
use SNOTE
Apply SAP Note 1153235.
Regards
Chen -
Background image in reports?
can we place a background image in reports and alv's?
if so, tell me the process.Hi Shahid,
go through the following links :-
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/abap/how%20to%20generate%20and%20display%20svg%20graphics%20in%20abap%2c%20part%201.article
I think it will be helpful.
Reward points if helpful
Regards.
Srikanta Gope. -
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. -
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 -
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.
Maybe you are looking for
-
Photosmart D7260 photo colors seem off
HI! I've been happily using my Photosmart D7260 for many years and have always been thrilled with the quality of the photo printing. All of a sudden the pictures are either too dark or muddy, or too green - nothing like the image in my iPhoto. Even
-
PAT pool IP allocation on FWSM
Hi all I am using a FWSM firewall and have set up a Dynamic policy to PAT a /8 network into a /30 network... Problem I see is that the PAT is only using the first address in the pool for mulitple connections , I need it to use all 4 availa
-
Can you tell me how I can have my notes page (view presenter tool) on my screen while the full screen view of the powerpoint slide is visable to the audience on the projector screen? John
-
When you are loading a CD in iTunes why does the artist scrolling jump around
With every version of itunes: While I am adding a CD into my iTunes Library, I like to scroll through the artists names and sometimes cleaning up my library. But everytime I am adding in a CD the arists names jump around. Basically if i am scrolling
-
Do Keyboard have English and Russian Fonts?
Are keyboards of Macbook Air and 13-inch Macbook Pro with Retina display integrated English and Russian fonts?