Sceduling of report of previous monthe in background job
Hello Techies,
I have 2 issues.
1. i want to scedule bacground job of some previous months dates . How to do that?Please tell me step by step. And also i want content of that report should be visible to me.
2. I want to do some chanes in Single Role which has been assigned to various user. That role containes the profile which is copy of SAP_ALL profile. Now i want to remove some specific Transactions from itlike CJ20N,VA02,FB08 ETC.
NOTE: Menu tab is unmainted int it. And I also gone with Tcode Ranges BUT ITS NOT WORKING.
Expecting reply on early basis.
Renu.
Answer for the first point
1.Make a transaction which fetches the required data from ECC(O any data source), i suppose you must be having some data source where the past records are stored.
2.In this transaction you must be using some Action Block to fetch the data (Eg BAPI or FM), this BAPI or FM must have some input on which you want to fetch the data , and i guess there must be some start and end date i/p field on which you want the data.
3. In this start and end date field map two transaction variable like Start_Date and End_Date.
4. Now from the schedular you can pass the start and end date to this BLS and in the BLS before mapping these dates you can use date functions which converts the date passed by you to one month back or so according to your requirement.
I guess this will resolve your first query.
Similar Messages
-
How to show a report for 'Previous Month' Data
Hi Gurus,
I have a requirement, where i have to default my report to show previous month data.
Scenario:
My prompts by Default are set to CURRENT (current year,quarter,month). once the user logs in, the report should display data for month 'Nov' instead of 'Dec'.
I tried using TIMESTAMPADD() in the formula , but it didn't work, though i don't see any error. Not sure if i 'm missing something.
Is there a way to achieve this.I 'm using OBIEE 11.1.1.6.
Any help is highly Appreciated ! Please.
Thanks,
RamyaFrom what you wrote I am assuming the user can manually save the report results to the Excel file.
If your report uses ALV Grid it is possible to export the data to a spreadsheet (one of the functions available in the ALV tool bar).
If you have used WRITE statements it is also possible to save the output as a spreadsheet (menu System -> List -> Save), but the latter will not produce as nice a spreadsheet if the data don't form a matrix. In other words, some work may be necessary in the spreadsheet afterwards before it has the format your user wants. -
Reporting on Previous Month/Current Year - Jan 09 fix
I currently have about 10 reports that are being filtered to only show data on the repository variables for :
PreviousMonth and Current Year.
When Jan 1, 2009 comes around, these reports will be kicked off to show Decemeber of the Current Year, so December of 2009.
What is the best/easiest way to fix this problem for the future?What Shiva meant was to let YEAR be a Presentation Variable that the user can select from, say a drop down list of "years."
But consider this. Whenever the month of the "system date" is January, you want the year to be one less than the "current year." For all other months, you want the year of the "system date."
PrevYear = CASE WHEN MONTH(Calendar."System Date")=1 THEN YEAR(TIMESTAMPADD(SQL_TSI_YEAR, -1,Calendar."System Date")) ELSE YEAR(Calendar."System Date") END
And since you weren't sure about how to do the previous month...
PrevMonth = MONTH(TIMESTAMPADD(SQL_TSI_MONTH,-1,Calendar."System Date")) -
HP Officejet G85 - how do i print a fax report for previous month?
When I select "Print Fax Report" from menu, prints only last 30 faxes. Can I print fax report of a longer period, such as the previous month?
Hi there,
Unfortunately I do not see any options availble like that for the G85. There does not seem to be a readily available option sorry.
Best of Luck!
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
Is it possible to save a report to a file in background job?
Hi,
I want to save a report as a file every day, is it possible to do it by background job?
Thanks.thanks all of you,
I don't went to save the file manually.
I only want to a function just like archiving function which can save file in background job.
I can develop a program to save a report as file in background job,but I have to develop a program for every report,I want to know is there any standard function for it, just like throwing the report to spool. -
Report program when run in background job getting cancelled immediately
Hi
When i run a program in foreground i am able to see the output. But when run in background not able to run the job successfully. The job is getting cancelled immediately.
I am using the below function module for output display. Should i need to pass any parameters in the below function module so that i can run the program in background successfully.
CALL METHOD DETAIL_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = IS_LAYOUT
I_SAVE = 'A'
IS_VARIANT = GS_VARIANT
CHANGING
IT_FIELDCATALOG = IT_FIELDCATALOG
IT_OUTTAB = BLOCKED_STOCK_TAB_ALV[].
Please suggest.
Thanks and regards
Rajani YeluriHi Rajani.
ALV require the DRYPOR(screen) for display but incase you run in back ground which have to write to spool but in spool we can only write in format of LIST REPORT not inter-active report like ALV. That why
system cancelled your process immediately.
Hope it helps.
Sayan. -
Report giving a error in background job
Hi all ,
I am facing a major issue , I have a normal executable report which when i run in foreground
works fine , but when i go to option in menu bar and choose the option to run the report in background
it , i choose to start the job immediate , then i go to SM37 and execute , i see the job is cancelled .
I checked in ST22 dump is like "OBJECTS_NOT_CHARLIKE" this is in standarad SAP program.
Have anybody faced this kind of issue ?
I dnt think i need to write any code (job_open , close) in my program .
Please provide with useful solutions?Hi Bhanu,,
Here is the solution....
ls_fieldcat-fieldname = 'VERSN1'.
ls_fieldcat-outputlen = '02'.
ls_fieldcat-seltext_l = text-u06.
ls_fieldcat-seltext_m = text-u06.
ls_fieldcat-seltext_s = text-u06.
ls_fieldcat-reptext_ddic = text-u06.
append ls_fieldcat to lt_fieldcat.
clear ls_fieldcat.
ls_fieldcat-fieldname = 'QTY01'.
ls_fieldcat-datatype = 'QUAN'.
ls_fieldcat-outputlen = '13'.
ls_fieldcat-seltext_l = w_wkhdr01.
ls_fieldcat-seltext_m = w_wkhdr01.
ls_fieldcat-seltext_s = w_wkhdr01.
ls_fieldcat-reptext_ddic = w_wkhdr01.
append ls_fieldcat to lt_fieldcat.
clear ls_fieldcat.
use Fieldcat-DATATYPE.
Thanks & Regards,
Dileep .C -
PASS DATA TO A REPORT BEING SCHEDULED AS A BACKGROUND JOB
Moderator message: please do not use ALL CAPITALS in your subject
Hi All,
I need to pass some data to a Zreport_submit which I would be calling using SUBMIT statement from another Zreport_main. The report being called through the SUBMIT statement i.e. Zreport_submit will be scheduled as a backgroung job i.e. using addition VIA JOBNAME xx JOBNUMBER yy.
How can I pass data from Zreport_main to Zreport_submit. There are 2 values that are required to be passed.
Thanks-
Harmeet,
Edited by: Matt on Dec 16, 2008 11:26 AMHi Harmeet,
What I get from your question is
is that u need to call a program using SUBMIT statement in the background and u need to feed some values into the program may be into the selection-acreen so u can use
SUBMIT <prog name>
with parameter1 = value1 .
where parameter1 is the part of selection-acreen of the prog which was calld.
Thnks
Sahil -
To retrive previous month based on month prompt
Hi,
My universe is based on SAP BEX query. I have a requirement to report the previous month data based on a month prompt. Since the universe is based on the MDX, could anyone suggest a way to calculate previous month from universe.
Appreciate your responses.
Regards,
VyshBOpvinesh wrote:
Hi VyshBO,
>
> You can refer below syntax and prepare a filter object in universe to get Previous Month.
>
>
<FILTER KEY="[ZMONTH].[LEVEL01].[[ZMONTH]].[Value]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="-1"/></CONDITION></FILTER>
>
>
> Regards,
> Vinesh
Can you explain that syntax, Vinesh? In particular, what does the [[ZMONTH]] imply? -
Hi Guru's,
I want to view the report in Previous Month.
Thanks
cmrHi,
You can create a logical column in repository BMM Layer in that Fact table using AGO function so that you can display previous month\qtr\year level values.
Refer : http://sandybi.wordpress.com/2009/12/08/time-series-caclulations-in-obiee/
Example : AGO("Sample Sales"."F0 Rev Base Measures"."1-01 Revenue (Sum All)", "Sample Sales"."H0 Time"."Month", 1)
AGO(Measure,Level(like..Month,Qtr,Year),Number(like..1,2,3..))
Regards,
Srikanth
http://bintelligencegroup.wordpress.com -
Download alv report using layout variant in background
Hi All,
I want to download an Alv report using layout varaint in background job.
can any one please help me.
i.e...
I am facing a problem in downloading a text file to the Application server.
My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.
Will rewards to helpfull ans
regards
Chetanhey seshu,
I am facing a problem in downloading a text file to the Application server.
My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant. -
Emailing the report to external email - Background job
HI
We are creating background job for running the report in background...but i want the output(report) to send an email in Excel format after the job run successfully...
Here the email is External email not SAP inbox..
Do you have any idea how to achieve this? any user-exit or even handling will help this?
Please let me know
Thanks
GoviIam not using custom program to send the email...I know about the FM SO_DOCUMENT_SEND_API1...to send email.
My requirement is to send email to user the report in Excel after the background job runs.
we will define the job in SM36 with variant for the report with program name and variant.
after the job runs the spool request will be created and we can also setup the output of the report to be sent to SAP inbox.
my question is to how to send the output of this report in Excel format to external email i.e. Gmail, yahoo etc...
I hope u r clear now...
Please let me know if you know the answer.
Thanks -
How to schedule the background job daily twice?
Hi,
How to schedule the background job daily twice? any conditions?
Regards,
Srihithasee the step by step procedure.
Scheduling Background Jobs:
1. Background jobs are scheduled by Basis administrators using transaction SM36.
2. To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
company codes).
3. While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
to find the spool request. The following parameters needs to be maintained:
a. Time of printing: set to Send to SAP spooler Only for now
b. Name abbreviated name to identify the job output
c. Title free form description for the report output
d. Authorization a value defined by Security in user profiles to allow those users to access
this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching
authorization value in their profiles will be able to see the output.
e. Department set to appropriate department/functional area name. This field can be used in
a search later.
f. Retention period set to Do not delete if the report output needs to be retained for more
than 8 days. Once the archiving/document repository solution is in place the spool requests could
be automatically moved to the archive/repository. Storage Mode parameter on the same screen
could be used to immediately send the output to archive instead of creating a spool request.
Configuring user access:
1. To access a report output created by a background job, a user must have at
least access to SP01 (Spool requests) transaction without restriction on the user
name (however by itself it will not let the user to see all spool requests). To have
that access the user must have S_ADMI_FCD authorization object in the profile with
SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
2. To access a particular jobs output in the spool, the user must have
S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
in the Print Specifications of the job (see p. 3.d above).
3. Levels of access to the spool (display, print once, reprint, download, etc) are
controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
BASE access (display).
On-line reports:
1. Exactly the same configuration can be maintained for any output produced
from R/3. If a user clicks Parameters button on a SAP Printer selection dialog, it
allows to specify all the parameters as described in p. 3 of
Scheduling background jobs section. Thus any output created by an online report
can be saved and accessed by any user authorized to access that spool request
(access restriction provided by the Authorization field of the spool request
attributes, see p. 3.d of Scheduling background jobs section).
Access to reports output:
1. A user that had proper access (see Configuring user access above) can
retrieve a job/report output through transaction SP01.
2. The selection screen can be configured by clicking Further selection
criteria button (e.g. to bring Spool request name (suffix 2) field or hide other
fields).
3. The following fields can be used to search for a specific output (Note that
Created By must be blank when searching for scheduled jobs outputs)
a. Spool request name (suffix 2) corresponds to a spool name in p. 3.b in
Scheduling background jobs section above).
b. Date created to find an output of a job that ran within a certain date range.
c. Title corresponds to spool Title in p. 3.c in Scheduling background jobs
section above).
d. Department - corresponds to spool Department in p. 3.e in Scheduling
background jobs section above).
4. Upon entering selection criteria, the user clicks the Execute button to
retrieve the list of matching spool requests.
5. From the spool list the user can use several function such as view the
content of a spool request, print the spool request, view attributed of the spool
request, etc. (some functions may need special authorization, see p.3 in
Configuring user access)
a. Click the Print button to print the spool request with the default attributes
(usually defined with the job definition). It will print it on a printer that was
specified when a job was created.
b. Click the Print with changed attributed button to print the spool request
with the different attributes (e.g. changing the printer name).
c. Click the Display contents button to preview the spool request contents. A
Print and Download functions are available from the preview mode. -
What is the spool, what is its role in background job scheduling
Hi,
I want to know what is meant by Spool request and spool number generated.
Tell about transaction SP01.
How it is linked to Background job scheduling.
thanks.
sam.Hi,
Refer this link.
https://www.sdn.sap.com/irj/sdn/inf?rid=/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438
About SP01.
Printing does not work in SAP. There is a printer definition for your local printer, but it does not work. Presuming that you use the program SAPLPD on your computer.
Boot your computer and start only the SAPLogon and the SAPLpd program.
Delete all of your old print jobs in the SAP system (Transaction SP01).Generate only one new print job.
Check that there is enough resource in your computer. Check the free memory (Win 3.1x) and the free disk space (The lists are temporarily saved on your disk).
Open the SAPLPD and read the print log in the window. The printer definition must correspond with the parameters shown here.
Check that the standard printer is on the same lpt (Win 3.1: Control panel, Printer) as defined for the printer (usually lpt1).
In Transaction SP01 read the protocol of your print job. Do not generate new print jobs! Wait till the SAP system changes the status of the print job.
If you can not find the print job in SP01 anymore, then the print job was successfully printed out. If it didn't come out on your printer and the SAPLpd didn't indicate an incoming print job, then the connection was realised with another PC. Then SAP printer definition you used, does not correspond with your computer.
Scheduling Background Jobs:
1. Background jobs are scheduled by Basis administrators using transaction SM36.
2. To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
company codes).
3. While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
to find the spool request. The following parameters needs to be maintained:
a. Time of printing: set to u201CSend to SAP spooler Only for nowu201D
b. Name u2013 abbreviated name to identify the job output
c. Title u2013 free form description for the report output
d. Authorization u2013 a value defined by Security in user profiles to allow those users to access
this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching
authorization value in their profiles will be able to see the output.
e. Department u2013 set to appropriate department/functional area name. This field can be used in
a search later.
f. Retention period u2013 set to u201CDo not deleteu201D if the report output needs to be retained for more
than 8 days. Once the archiving/document repository solution is in place the spool requests could
be automatically moved to the archive/repository. Storage Mode parameter on the same screen
could be used to immediately send the output to archive instead of creating a spool request.
Configuring user access:
1. To access a report output created by a background job, a user must have at
least access to SP01 (Spool requests) transaction without restriction on the user
name (however by itself it will not let the user to see all spool requests). To have
that access the user must have S_ADMI_FCD authorization object in the profile with
SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
2. To access a particular jobu2019s output in the spool, the user must have
S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
in the Print Specifications of the job (see p. 3.d above).
3. Levels of access to the spool (display, print once, reprint, download, etc) are
controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
BASE access (display).
On-line reports:
1. Exactly the same configuration can be maintained for any output produced
from R/3. If a user clicks u201CParametersu201D button on a SAP Printer selection dialog, it
allows to specify all the parameters as described in p. 3 of
u201CScheduling background jobsu201D section. Thus any output created by an online report
can be saved and accessed by any user authorized to access that spool request
(access restriction provided by the Authorization field of the spool request
attributes, see p. 3.d of u201CScheduling background jobsu201D section).
Access to reportu2019s output:
1. A user that had proper access (see Configuring user access above) can
retrieve a job/report output through transaction SP01.
2. The selection screen can be configured by clicking u201CFurther selection
criteriau2026u201D button (e.g. to bring u201CSpool request name (suffix 2)u201D field or hide other
fields).
3. The following fields can be used to search for a specific output (Note that
Created By must be blank when searching for scheduled jobu2019s outputs)
a. Spool request name (suffix 2) u2013 corresponds to a spool name in p. 3.b in
u201CScheduling background jobsu201D section above).
b. Date created u2013 to find an output of a job that ran within a certain date range.
c. Title u2013 corresponds to spool Title in p. 3.c in u201CScheduling background jobsu201D
section above).
d. Department - corresponds to spool Department in p. 3.e in u201CScheduling
background jobsu201D section above).
4. Upon entering selection criteria, the user clicks the Execute button to
retrieve the list of matching spool requests.
5. From the spool list the user can use several function such as view the
content of a spool request, print the spool request, view attributed of the spool
request, etc. (some functions may need special authorization, see p.3 in
Configuring user access)
a. Click the Print button to print the spool request with the default attributes
(usually defined with the job definition). It will print it on a printer that was
specified when a job was created.
b. Click the u201CPrint with changed attributedu201D button to print the spool request
with the different attributes (e.g. changing the printer name).
c. Click the u201CDisplay contentsu201D button to preview the spool request contents. A
Print and Download functions are available from the preview mode.
Exporting the Contents of a Spool Request
Use
You want to export the contents of a spool request as a text file to the SAP GUI working directory or to a directory of your choice. The content of the spool request is downloaded as plain text without, for example, graphics, images, or specific fonts.
The following procedures are irrelevant for the PDF-based form printing integrated as of SAP Web Application Server 6.40, since the print data can be opened and stored as a PDF. See also Displaying and Printing PDF-Based Forms.
Procedure
Exporting to the SAP GUI Working Directory:
Choose Spool Request ® Forward® Export as Text.
The entire text is stored in your SAP GUI working directory in ASCII format.
A file of this type is named using the following pattern:
.txt
Example: ABC0000004327.txt
You require appropriate authorization for this function.
Exporting to a Directory of Your Choice:
With this method of exporting a spool request, the content of the spool request is first displayed and you then download the screen list as a text file to the directory of your choice.
1. Select the spool request to be exported and choose Display Contents.
2. In the case of SAPScript/Smart Forms documents, activate list display by choosing Goto.
3. Choose System ® List ® Save ® Local File.
4. Choose one of the available formats and confirm your choice.
5. Choose a directory and save the spool request.
By default, only the first 10 pages of a spool request are saved in a file. You can increase the number of pages to be saved by choosing Goto ® Display Requests ® Settings and making the desired entries in the Display Area group box. -
Background Job Processing/Spool List Recipient
When setting up a report to run as a background job and setting it up to e-mail the results via the Spool List Recipient button, it always sends the results in htm format. Is there a way it can be e-mailed in Excel?
hi swapna.
in scot it is not configured as excel how to do it.to get an attachment in excel format
thanks in advance
Maybe you are looking for
-
I've tried 3 UPS's (2 APC and one TripLite) that state they are OSX compatible, however, they do not fully respond to the native osx setting in (system Preferences/ Energy Saver/ UPS/Start up automatically after a power failure). This is what happens
-
Oracle 8.1.5 & Solaris 8
Hi, We are upgrading from solaris 7 to 8 and I was told 8.1.5 release is the only one that is supported by this OS. Can someone tell me where to look for or find installation documentation? Thank you for your help. Mary null
-
I synced a new 4S to iTunes and discovered not everyting was saved from my old 3G. How do I get everything off the 3G so I can sync it to my new 4S?
-
Planning application stoped working
While showing one of the forms to a coworker on devlopment we got the following error: An error occurred while processing this page. Check the log for details. Please close the current tab and open application again. So we first restareted everything
-
MacBook LCD as Extended Desktop for I Mac
I have the 20 inch Intel iMac at home, and the 13 inch Intel MacBook for the road. When I have both at home, can the the MacBook be connected to the iMac and serve as an extended desktop?