How to run GR55 reports in background for cost center hierarchies
1. I have been asked by our users to create batch jobs to run in the background for some GR55 reports, that can then be sent directly to cost center managers via email.
I have figured out the process to do this as long as the cost center manager only needs to see a single cost center at a time. However, if they are in charge of multiple cost centers, we also want to send them a summarized report using the hierarchy we have set up. I can't seem to make this work, as the job only seem to recognize the last cost center in the group and the report is for that cost center.
Example. cost centers 100, 200 and 300 belong to hierarchy abc. If I run the job just for cost center 100 it is fine. But if I have a variant to run hierarchy abc, or even if I use the range 100 to 300, all I get is a report for cost center 300.
We cannot use BW because we only have revenue in BW. I am being asked to make this work from standard R/3 within the GR55 realm of reporting.
2. In addition, the report selection criteria includes two separate plan/forecast versions. They need to update these each month prior to running the reports and sending them out. I looked at the variables associated with the versions and tried to set them up with default values that I hoped would update automatically so that they don't have to manually change 50 or so variants each month. But I don't see any dynamic variables that I can use to have the system make that change without going into each variant individually.
3. There is another piece to this equation as well. There is another report they want sent out in batch, but it is several pages wide in SAP and several pages long. So when you run it in batch and either spool it or get it sent as an email, it is very ugly in the formatting due to all the page splits horizontally and vertically. If anyone knows how to get the report to stay together like it would if you had excel integration turned on, it would be very helpful. I have tried running it with that integration turned on, but the jobs are set up with user batch_mgr and not my id, so it isn't working well. The batch_mgr id is just a system id, not a dialog id. We also don't want the jobs set up with a regular user id because if people leave, then the jobs all need to be changed.
Kim,
I may have options for issues 1 and 2. In case of 3, what I can tell you is I understand the concern, but this is what typically happens in some standard CO reports that are not ALV compatible, I don't think there is not much there to do unless you add some custom code for the output.
In regards to point 1, yes, I have noticed that this happens in some standard and custom reporting, not sure what is going on. I came up with a work around that made the trick for my client in a similar scenario; which is editing the cost center groups. For instance, instead of having the group set as a range from 100 to 300, the groups are have listed the cost centers, 100, 200 and 300. Obviously, the disadvantage of this option is that it would require a bit of more cost center group maintenance.
In regards to point 2, I understand from your note that your users already have set up selection variants for the report. One option for you is to get the help from a developer to create a custom period variable and tiny program that runs in batch every month that would update that variable accordingly. Once that's done, you may have to update at least once, the selection variant attributes to change the period to a selection variable, so everytime from that point of time forward that the variable gets updated, it will be ready with the right value for every selection variant that uses it.
Hope this helps.
GG
Similar Messages
-
[REPORT][How to run a report in background?]
Hi there!
I'm with a problem here. How do I make a report run background always, without the interaction of the user to select this type of execution?
Thanks in advance.Hi
U can create a new report to run it in background mode:
- Open the job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = VA_JOBNAME
IMPORTING
JOBCOUNT = VN_JOBCOUNT
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
- Run the report
SUBMIT <REPORT> USER SY-UNAME
VIA JOB VA_JOBNAME NUMBER VN_JOBCOUNT
WITH ....... = .......
WITH ....... = ........ AND RETURN.
- Close the job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = VN_JOBCOUNT
JOBNAME = VA_JOBNAME
STRTIMMED = 'X' " start immediatly
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.
Or you create a periodic job by SM36
Max -
How to run Various Reports in background.
I want ro run the various MM MIS reports in Background.
Hi,
In the Selection Criteria of the report, Press F9 to run the reports in the background.
Set the Parameters for the Background job (Print Options & Time) and save.
To view the output of the reports executed in the background, Select from the SAP Easy Access System --> Own Spool Requests
To view the details of one of these report, simple click in the check box on the left hand side of the report you wish to view, and click on the icon in the type column.
Hope it helps.
Regards,
Bijoy Kumar -
PI 2.0 - How to run a report on Clients for an SSID
I'm trying to run a report to find out the client count and information (MAC, Username, etc..) per SSID in a set location over a set period of time.
Example:
SSID: IPVOICE
Location: Main Office, All Floors
Time Period: Last 2 weeks
I want Client MAC, username, AP used, Map Location, Date/time
I have found the "Client Sessions" report, and this provides all of the data I want except it gives me the same client over and over for every session in the time frame.
Is there a similar report that only shows the client information once if it accessed the network in that timeframe?
Thank youHi
You can run " Unique Client Detail" report & you can get what you want
Reports > Report Launch Pad > Client > Unique Clients > Unique Clients Report Details
Here is a snapshot of that in PI report, you can choose whatever field you want to include in the report -
How to run a report in back ground
how to run a report in background with out using job open, submit , close is there any other function module to run report in background.
Hi,
There are two ways for you to handle,
one manually setting up the job through SM36 which is better and convinient,
secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
Find below steps in doing both:
Procedure 1:
1. Goto Trans -> SM36
2. Define a job with the program and variant if any
3. Click on start condition in application tool bar
4. In the pop-up window, click on Date/Time
5. Below you can see a check box "Periodic Job"
6. Next click on Period Values
7. Select "Other Period"
8. Now give '15' for Minutes
9. Save the job
Procedure 2 via Program:
Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
L_RELEASE(1) TYPE c.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = 'ZTEMP2'
IMPORTING
JOBCOUNT = P_JOBCNT
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH DESTINATION = 'HPMISPRT'
WITH IMMEDIATELY = SPACE
WITH KEEP_IN_SPOOL = 'X' AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = P_JOBCNT
JOBNAME = 'ZTEMP2'
STRTIMMED = 'X'
PRDMINS = 15
IMPORTING
JOB_WAS_RELEASED = L_RELEASE
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope the above helps you.
<b>Reward points</b>
REGARDS -
Copy planning for cost center Runtime error
Dear Gurus,
I am running KP97 to copy planning for cost center.
but I got following runtime error:
===================================================================
Runtime Errors DYN_CALL_METH_CLASS_NOT_FOUND
Exception CX_SY_DYN_CALL_ILLEGAL_CLASS
Occurred on 07.01.2009 at 13:21:25
What happened?
Error in ABAP application program.
The current ABAP program "SAPLGUMD " had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_CLASS',
was neither
caught nor passed along using a RAISING clause, in the procedure
"USER_REFRESH_RE_EA" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
Class "CL_REEX_COPL_MASTERDATA_CHECK" was chosen during dynamic method call,
but could not be found.
=====================================================================
can anybody give me a hint how to solve the problem?
B.R.
George
Hi all, I searched the SAP notes, and found there is one note NOTE_0000632335 related to copy planning, I installed the note by TCode snote. the KP97 can run now, but for the IDES controling area 1000, I tried to test run copy version 0, period 1 to 12 from Fiscal year 2003 to 2004.
there are many records with error.
shall I ignore the error , unselect the test run and continue?
does anyone have similar experience with IDES R/3 4.71? why cannot I carry out all steps in online document for IDES?
B.R.
George
Edited by: George Pan on Jan 7, 2009 11:39 PMHi I checked the error with copying plan data. it's all because of 'plan data already exists'.
so I just ignore the error and continue.
thanks!
George -
Activity Type set up for cost center
Hi All ,
While creating a task list i m getting a message
Activity type is not set up for cost center in the year 2008
Message no. CR062
How could i set the activity type for cost center? Plz tell the procedure.
regards
sunil
Edited by: sunil gupta on Sep 19, 2008 10:12 AMDear Sunil,
Check out this,
1.Create a Cost center using T code - KS01.
2.Create an activity type using T code - KL01.
3.Assign the Rates for an activity type & cost center combination using T code KP26.
4.In the input screen of T code KP26 ,enter version as 0, from period 1 and to period as 12 and the Fiscal
Year as 2008,enter the cost center, activity type click on overview screen (F5)---> enter the per hour Rate
under Fixed price and set value as 2 for distribution key and plan price indicator as 3.
5.After performing this ,while creating the work center ,this combination of activity type & cost center
should be assigned.Then while creating routing/task list this work center can assigned for performing
operations.
Check with this & revert back if you need any further help.
Regards
Mangalraj.S -
How to Run a Report automatically in Background for every night
Hi,
How to run a report program in Background automatically for every nigh.
Thanks
RameshHi Ramesh,
You can use SM36 and use the "Job Wizard" to define a background job in simple step by step procedure
Or
Goto SM37 and specify a job name.
Next specify the ABAP Program Name of the report you want to execute under Job Step.
Then click on "Extended Job Selection" and goto the Period Tab.
There select "Only Periodic Jobs" and then specify the frequency of execution based on Months, Weeks, Days, Hours or Minutes.
Hope this helps,
Regards,
Madhur
Message was edited by: Madhur Chopra -
Running GR55 reports for special periods
When running GR55 reports, the selection field for "Period" only lists periods 1 to 12. We are using the standard K4 FI year variant.
Can someone tell me how to get the 4 special periods displayed for selection?
Thank you,
HakizaThe drop down in the "To" field only lists periods 001 to 012, but it lets you manually enter other periods such as 14 or 16.
So you are not limited by the periods displayed in the drop down box.
I hope this solves your problem. Thanks,
Hakiza -
Authorization object for running a report in background
Good day experts,
I tried running a report in background, I choose immediately so that it doesn't have to be scheduled. But when I checked it in my own jobs, It remains at scheduled status. When I tried it on my admin account, It works and with status finished. It seems to be an authorization problem. What object could I be missing with my user account? I tried S_TCODE SMX and SP02 but still not working.
Thanks in advance!Hi karshbax,
What you're looking for is authorization object S_BTCH_JOB. You need authorization for field JOBACTION = RELE.
In future use transaction SU53. It shows last error authorization error, so if this is authorization problem then after try of manual releasing of job you'll find in SU53 precise info what went wrong.
Best Regards
Marcin Cholewczuk -
Is it possible to run ALV report in background if Yes how?
is it possible to run ALV report in background if Yes how?
Hi,
Why not?Through se38 only you create ALV report. there you can give your report name and go to program on menu bar - click - execute buton- click-Background . You will get new screen there you can choose Execute immediate or schedule.
<REMOVED BY MODERATOR>
Cheers,
Chandra Sekhar.
Edited by: Alvaro Tejada Galindo on Mar 4, 2008 2:12 PM -
How run a report in background process ?
Hi Experts,
I wrote a code in which I am have multiple selection screens....means in first screen there will 3 radio buttons.
So, depending upon the radio button selected, the other selction screen will be displayed...
So, here i want to run a report in background process...But in menubar im not able to find 'program'.
So, please help me this to run my report in background process.. with any simple code...
Thanks,
Rocky.Hi,
Try to see this example and adapt it for your case:
constants : c_jobname like tbtcjob-jobname value 'ZRFC_CM_38',
c_jobclass like tbtcjob-jobclass value 'A',
c_x type c value 'X',
c_msgclass type arbgb value 'ZXXXSD',
c_error type bapi_mtype value 'E',
c_status type bapi_mtype value 'S',
c_msg1 type msgnr value '177',
c_msg2 type msgnr value '178'.
data : v_jobcount like tbtcjob-jobcount.
ranges:
r_auart for vbak-auart,
r_wbstk for vbuk-wbstk,
r_mtart for mara-mtart,
r_reswk for ekko-reswk,
r_vtweg for vbak-vtweg.
call function 'JOB_OPEN'
exporting
jobname = c_jobname
importing
jobcount = v_jobcount
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.
if sy-subrc = 0.
Assignment of Ranges
append lines of:
distribution_channel to r_vtweg,
order_type_range to r_auart,
status_range to r_wbstk,
material_type_range to r_mtart,
plant_range to r_reswk.
Submit program in background
submit z_beve_salesorder_list
with p_spart = division
with p_file = file_name
with p_land1 = country
with s_vtweg in r_vtweg
with s_auart in r_auart
with s_wbstk in r_wbstk
with s_mtart in r_mtart
with s_reswk in r_reswk
via job c_jobname
number v_jobcount
and return.
Close the Job
call function 'JOB_CLOSE'
exporting
jobcount = v_jobcount
jobname = c_jobname
strtimmed = c_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
invalid_target = 8
others = 9.
if sy-subrc = 0.
Status Message
return-type = c_status.
message id c_msgclass
type c_status
number c_msg1
into return-message
with c_jobname
sy-datum
sy-uzeit.
else.
Error Message
return-type = c_error.
message id c_msgclass
type c_error
number c_msg2
into return-message
with c_jobname.
endif.
endif.
Regards. -
How to run a job in background programatically after 10 sec
Hi Forum,
Can anyone tell me How to run a job in background programatically after 10 sec..
Thanks in advanceHi,
Here is the example code
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
* Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum " You need to give the Date for execution the Job
sdlstrttm = sy-uzeit " You need to give the Time for execution the Job
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
* Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
* Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
Regards
Sudheer -
How to run a report from oracle 10g form in .csv format
dear all,
how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
i'm using
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
Please Help..i have already tried.
but the report show in htm or html format. that file will not save into csv. please help. -
How to schedule a report in background
could anybody inform me
how to schedule a report in background
if possible plz send the entire step by step process
thanx
regards
kals.HI,
Use transaction SM36
For step by step process refer this link...
http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
Hope this helps!!
Cheers
Alfred
Maybe you are looking for
-
Where can I find step-by-step instruction on setting up wireless printing on HP 400 M451nw? Is it possible to have both printing service via the USB port as well as Wireless connection? This question was solved. View Solution.
-
ADF DataControl on a Business Service taking a request parameter through url.
Hi, Use Case: I have a business service that contains a method String getPayoad(int b2bMessageId), and then created a data control based on this method. It is not based on BC4J I have a jsf page and dropped this data control on the jsf page (payload
-
Hi, In my HTTP Receiver Scenario I need a Dynamic Epilog. What i mean is, I have to put some value from the mapping inside the epilog part. I searched the Help documentation but without any luck. Any ideas? Thanks, Best Regards, Arman
-
Hi, I am using EP7 SP9. I want to create a JDBC System for the Query iView. I got the problem while setting DQE properties in the system properties. I have check DQE service in our Visual admin. It is running properly. Reply soon. Its very urgent.
-
Ramp contraction/combination of chart&graph
Hi all In an experiment, subjects should apply a force with their arm which is measured by a force transducer and imported into LabView via the serial port. They can see their exerted force on the screen at each moment and should vary its intensity a