Is it possible to create a background job without a variant
Hi all,
Is it possible to create a background job without a variant ?
If Yes ..How ?
Thanks in advance
KR
Hi KR,
if you have any selection-screen in your programm it is not possible otherwise it is possible.
Plzz Reward if it is useful,
Mahi.
Similar Messages
-
How to create a background job without a variant ?
How to create a background job without a variant ?
Hi,
Go to se38.. specify the program name and execute Or use Tcode
On the selection screen specify the variant...
Then from the menu options choose program->excute in background...
In this way we can crate a backgroup job with out crateing any varinat for the report...
Satya. -
Creating a background job with out Variant.
Hi Experts,
I'm developed one ALV report which is not having any selection-screen and Variant.
We can execute the program in fore ground but the user wants to be run in back ground and he wants to be created a spool requet for that report.
My Question is ...the above requirement is possible or not.
if your answer is yes then
How to create a variant for a report which is not having any selection-screen?
Can we creat a spool request manually ..means with in the report only through coding?
Thank you ,
Venky.try this one...
you can submit your report in background and create spool...
An ALV report can be executed in background.. but if its an ALV Grid then spool will contain ALV list output. You can directly select execute in background even if you dont have any parameter on selection screen. or try below code...... if you want to create a spool from the report itself.....
I hope its useful
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 report 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. -
How to identify what are all the events are created in background jobs?
Hi all,
how to identify what are all the events are created for background jobs. And what events gets triggered for a particular job.
thanxs
harithaHi Haritha,
JOB is a program which starts to a determined point of time and executes some standard programs in the system. JOBs can be planed to a determined point of time on the regular basis (every night, for example) or to some discret time moments. So, the JOB can be planed and then will be started automatically without the manual start.
Realtime programs are understood in the most cases as actual program execution which is started by somebody to the actual moment of time.
Typically per JOBs some special processes will be started that should be executed automatically and regularly: for example, IDOC application, some correction reports, statistic updates etc.
Standard jobs are those background jobs that should be run regularly in a production SAP System These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests.
Use
As of Release 4.6C, the Job Definition transaction ( sm36 ) provides a list of important standard jobs, which you can schedule, monitor, and edit.
Standard jobs are those background jobs that should be run regularly in a production SAP System. These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests.
for more information you can go thru the following thread:
http://help.sap.com/saphelp_nw70/helpdata/en/24/b884388b81ea55e10000009b38f842/frameset.htm
About Events:
Events have meaning only in the background processing system. You can use events only to start background jobs.
Triggering an event notifies the background processing system that a named condition has been reached. The background processing system reacts by starting any jobs that were waiting for the event.
Types of Events:
There are two types of events:
1.)System events are defined by SAP. These events are triggered automatically when such system changes as the activation of a new operation mode take place.
2.)User events are events that you define yourself. You must trigger these events yourself from ABAP or from external programs. You could, for example, signal the arrival of external data to be read into the SAP system by using an external program to trigger a background processing event.The event scheduler processes an event if the event is defined in the system.
For example, if a system (System 1) receives an event from another system (System 2), the event scheduler of System 1 processes the event only if it is defined in System 1. That event does not need to be defined in System 2 (the sending system).
You define an event by assigning a name (EVENTID) to it. When defining an event, you do not define the event arguments.
for more information you can go thru the following thread:
http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e2a543b11d1898e0000e8322d00/frameset.htm
When you schedule the process chain or infopackages the jobs associated with it run in the background mode. In case you want to create a job for a specific activity you can do so in SM36. You would be creating jobs that would get executed in any one of the options:
1. Immediate
2. Date & Time
3. After event.
4. After job.
5. At Operation mode.
In case you want to view the job logs go to sm37.
Also Pls check DB02 for database performance and ST03 for workload .
Analyse u will have an idea ,
*pls assign points,if info is useful**
Regards
CSM reddy
null -
How to create a background job for call transaction
hi gurus
can any one suggest me
how to create the background job for call transaction.
thank you
regards
kals.Hi,
Refer
https://forums.sdn.sap.com/click.jspa?searchID=10926107&messageID=889652
Regards
Kiran Sure -
Schedule background job using system variant
Dear gurus,
We're planning to schedule background job using system variant, for example, current fiscal year and current posting period (transaction AFAB). Is it possible? So for example, for this month, "Posting Period" value will be 6, and then next month will be 7.
Can you tell me how to do this, if I want to set up the schedule only once?
Thanks for your help.
Best Regards,done using abap
-
Is it possible to create a javafx class without extending Application class ? If yes, how ?
There is no such thing as a javafx class. It is a regular java class. The Aapplication class is the entry
point for JavaFX application. You have to extend the Application class to create Javafx application . -
Is it possible to create service entry sheet without PO
Hi,
Is it possible to create service entry sheet without PO?
regaHi,
It is not possible in standard SAP to create Entry Sheet without Ref. to PO.
You can copy the Entry sheet from another one.
PO> Entry Sheet-> Invoice.
This the Std. Process developed by SAP to take care of Service render by Vendor to company.
hope it helpss.
manoj singh -
Is it possible to create a control file without the datafiles
Hi All,
Is it possible to create a control file without the datafiles?
on any OS or DB version
regards,
sachinif I understand properly:
- you have a script to recreate the controlfile
- you have all of your database files backed up except your controlfiles
This should work as this is how we sometimes refresh dev databases:
1) restore the copies of the database files
2) recreate the controlfile
3) recover the database files to the desired point in time (if hot backup or archivelogs are available, otherwise, it would be as of the time of the backup)
4) add temp files to temporary tablespace(s)
The simpler solution would be to backup your controlfile at the same time as your datafiles (RMAN or o/s copy).
I hope I understood your question properly. -
Retain background jobs and its variants before system refresh activity
Hello All,
I am going to perform system refresh activity on quaity system on monday. Customer wants to retain the background jobs and its variants in the quality system. Please guide me and let me know the steps to retain the background jobs and its variants before starting the system refresh activity.
Regards
SubbuDear Subbu,
You have to export the TBT* Tables to retain the jobs. You can do this with R3trans:
1. Make Export file
2. Make Import file
3. Make Export in Q System before Systemcopy
4. Start Database and not SAP
5. Make Import in Q after Systemcopy
6. Start sap
1. Make Export file /tmp/export_cmd
export
file='/tmp/export_Q.dmp'
client=<your client>
delete from TBTCA
delete from TBTCB
delete from TBTCCNTXT
delete from TBTCCTXTT
delete from TBTCCTXTTP
delete from TBTCI
delete from TBTCJCNTXT
delete from TBTCJSTEP
delete from TBTCO
delete from TBTCO_V01
delete from TBTCP
delete from TBTCPV
delete from TBTCR
delete from TBTCS
delete from TBTC_SPOOLID
delete from BTCEVTJOB
select * from TBTCA
select * from TBTCB
select * from TBTCCNTXT
select * from TBTCCTXTT
select * from TBTCCTXTTP
select * from TBTCI
select * from TBTCJCNTXT
select * from TBTCJSTEP
select * from TBTCO
select * from TBTCO_V01
select * from TBTCP
select * from TBTCPV
select * from TBTCR
select * from TBTCS
select * from TBTC_SPOOLID
select * from BTCEVTJOB
2. Make Import file /tmp/import_cmd
import
file='/tmp/export_Q.dmp'
3. Make Export in Q System before Systemcopy
R3trans -w /tmp/Q_export.log /tmp/export_cmd
4. Start Database and not SAP
sqlplus "/as sysdba"
SQL> startup
or
startsap
stopsap r3
5. Make Import in Q after Systemcopy
R3trans -w /tmp/Q_import.log /tmp/import_cmd
If you want to undo this, start the export script in P system and the Import script in Q system.
Don't be afraid of the delete statement but without delete it doesn't work!
6. Start sap
startsap
Best regards
Willi Eimler -
How to Create event, background Job & Assing event to backgroud job to trig
Hi Experts,
I want to trigger events in Backgroud for data scheduling purpose to automate.
I can able to create event in SM62. then i want to create background job in SM36 then how to assign to event in Background to trigger.
can anybody give some suggestion on this.
Best Regards
SiriHi,
There are two cases
1) to raise an event after the completion of a job
This can be done by using ABAP coding, trigger the event using a program by the 'RAISE' statement. The job can be scheduled to run in the background daily or weekly(or anything as per the requirements)
2) to run a job after an event
in the start condition of the job, give the event name which should trigger that job in the after event field.
or if you want to run multiple jobs after one event completes, give that event in the start condition of all the jobs.. or model a process chain which will run this jobs..
I hope this clrifies your doubt...
Regards
Shilpa -
How to create a background job in CE and assign a Web Service to it?
Hi,
We have a specific requirement here.
We have an application service which perform some updates based on timestamp etc, it will be exposed as a Web Service.
The requirement here is that a background job should invoke this Web Service everyday at Midnight.
But here I don't know how to implement this functionality in SAP CE 7.1.
Please reply ASAP.
Regards,
ManishHi Manish,
Job Scheduler is available as part of the app server,
Create a class and extend MDBJobImplementation override the method onJob in this method trigger your webservice.
for more details please go through this document
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10fed553-0e01-0010-9bb8-ed55659e1236
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90a95132-8785-2b10-bda5-90d82a76431e
Regards
Ayyapparaj -
How to create a Background Job?
Hi All,
A ABAP List report is taking too long to run. It takes nearly 5 mints sometimes it is halted by a timeout. I would like to run this report as a background job. What's the transaction I should use & could U give me the steps. Also is it possible to schedule the Job to run on 1st of every month.
Thanks,
Kishan1.programatically ( job_open , job_close)
2.thorugh sm36 ( defining a job & scheduling)
doing something programmatically certainly has an advantage of automation... there may be cases wherein depending on certain conditions u need to run different programs in the background.. so this can be incorporated in the program itself using if/else or other condition commands..
there may be numerous other differences too.
SM36 option is more of static one and programmitaclly is more on the fly scheduling a job.
Using SM36, it not a one time thing. If you want program to run at a specific frequency, say every 24 hrs, that also can be done.
1)data: sdate type sy-datum,
stime type sy-uzeit,
l_valid,
ls_params like pri_params,
l_jobcount like tbtcjob-jobcount,
l_jobname like tbtcjob-jobname.
start-of-selection.
Get Print Parameters
call function 'GET_PRINT_PARAMETERS'
exporting
no_dialog = 'X'
importing
valid = l_valid
out_parameters = ls_params.
Open Job
l_jobname = 'ZRICH_0005'.
call function 'JOB_OPEN'
exporting
jobname = l_jobname
importing
jobcount = l_jobcount.
Submit report to job
submit zrich_0005
via job l_jobname
number l_jobcount
to sap-spool without spool dynpro
spool parameters ls_params
and return.
Kick job off 30 seconds from now.
sdate = sy-datum.
stime = sy-uzeit + 30.
Schedule and close job.
call function 'JOB_CLOSE'
exporting
jobcount = l_jobcount
jobname = l_jobname
sdlstrtdt = sdate
2)Use transaction SM36.
http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
sdlstrttm = stime
strtimmed = 'X'
Please use T/code SM36> enter your Job name Starts with Z or Y Ex: ZTEST> STEP>ABAP Program> Define your Report /Variant--> Save.
Start condition--> Press Date and Time > Enter your start date and time> Save
Then Use SM37--To execute ur job
Lanka -
Spool list is not getting created for background job
I am creating background job using JOB_OPEN and then submitting my z-report using submit statement and then closing job using JOB_CLOSE. for this job is getting creating in sm37 and also gets finished but it does not create spool list showing output.
Any idea how to do this?
Thanks in advance.DATA: lv_jobname TYPE tbtcjob-jobname,
lv_jobcount TYPE tbtcjob-jobcount,
lv_variant TYPE variant,
wa_var_desc TYPE varid,
wa_var_text TYPE varit,
it_var_text TYPE TABLE OF varit,
it_var_contents TYPE TABLE OF rsparams.
REFRESH: it_var_contents, it_var_text.
CLEAR: wa_var_desc, wa_var_text.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-cprog
TABLES
selection_table = it_var_contents
EXCEPTIONS
not_found = 1
no_report = 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.
ENDIF.
CONCATENATE sy-datum sy-timlo INTO lv_variant.
wa_var_desc-mandt = sy-mandt.
wa_var_desc-report = sy-cprog.
wa_var_desc-variant = lv_variant.
wa_var_desc-transport = 'F'.
wa_var_desc-environmnt = 'B'.
wa_var_desc-version = '1'.
wa_var_desc-protected = 'X'.
wa_var_text-mandt = sy-mandt.
wa_var_text-langu = sy-langu.
wa_var_text-report = sy-cprog.
wa_var_text-variant = lv_variant.
lv_jobname = lv_variant.
CONCATENATE 'Batch Job Variant -'(006)
sy-uname INTO wa_var_text-vtext.
APPEND wa_var_text TO it_var_text.
Create the varaint for the back ground job.
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
curr_report = sy-cprog
curr_variant = lv_variant
vari_desc = wa_var_desc
TABLES
vari_contents = it_var_contents
vari_text = it_var_text
EXCEPTIONS
illegal_report_or_variant = 1
illegal_variantname = 2
not_authorized = 3
not_executed = 4
report_not_existent = 5
report_not_supplied = 6
variant_exists = 7
variant_locked = 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.
Open the job.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
IMPORTING
jobcount = lv_jobcount
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.
submitt the job in background mode.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = sy-uname
jobcount = lv_jobcount
jobname = lv_jobname
report = sy-repid
variant = lv_variant
EXCEPTIONS
bad_priparams = 1
bad_xpgflags = 2
invalid_jobdata = 3
jobname_missing = 4
job_notex = 5
job_submit_failed = 6
lock_failed = 7
program_missing = 8
prog_abap_and_extpg_set = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
close the job.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
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
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 this will be helpful.. -
Configuration for creat auto background job to create outbound delivery
Dear Experts,
Kindly let me know where and how can I configure auto background job for creating outbound delivery, TO and Print picking list
Thanks in advance
Shetty< Job for delivery creation:>
1. you can run tcode vl10batch to schedule a job with your own variant.
2. alternatively, you can directly schedule a job in SM36 -> program RVV50R10C, variant
When define variant for background delivery creation, please make sure:
- "Select rule" must be set to '2'.
- "F code profile" should be '5001' (Fcodes GET, PREPARE, SAMD should be included.)
<Job for TO creation>
1. Run tcode VL06p with your own varinat -> click button "create TO in background"
2. Alternatively, you can directly define a job in SM36. -> program name WS_MONITOR_OUTB_DEL_PICK.
<Job for printing pick list>
1. run tcode VL70 with your own variant -> goto menu bar / program / execute in background -> then a job is created.
2. Alternatively, you can schedule a job in SM36 -> program SD70AV4A.
Maybe you are looking for
-
i am writing a stored procedure in which i have made use of if statement my requirement is that in the if statement if a certain record exists then go inside the if condition otherwise else condition i am getting error my SQL Statement is this create
-
Unable to download itunes 10.5 for windows 7. multiple errors
I get multiple errors while downloading itunes 10.5 during set up: 1. apple mobile device failed to start. Verify you have sufficient privileges to start system services. 2. An error occured during installation of assembly "Microsoft.VC80.CRT error w
-
Inserting a record in database using Java
Hello All, i have connected a Java Application to the SAP BO Database using DI API and would like to insert a record in the demo database without using an SQL Query "Insert into table1...." but using the following snippet though i dont know if am usi
-
Messages are stuck in "delivering" status
Hi We are doing Async RFC to JDBC Scenario. Messages are successful from R/3 to XI but getting stuck at receiver jdbc adapter . subsequent message are also stuck because of this Below is the audit log of the message 2007-06-29 10:33:08 Success The me
-
Can I use verizon iphone5 in china ?
We are about to purchase an Iphone 5 and will be spending 4 months in Shanghai, can we use the Iphone 5 in China ? If 'yes' , what do we need to do to enable use in Shanghai.