Job Name of a Program scheduled as a Background Job
Hi,
In our production system. We have a program which is scheduled to run in the background by various job names. At runtime, I need the program to figure out under which Job Name is it running. I dont think there is any system field which stores the Job Name of the background job.
Any inputs?
Hi,
It will run in default with <b>the name of the program</b>.
Goto SM36 and put a * in job name u will see all the jobs that are schedule, if u specify the program name for the job schedule u will get that list alone.
U can differentiate by seeing the time the job was scheduled.
http://www.sap-img.com/ab007.htm
Please reward and close the thread if u got the info.
Message was edited by: Judith Jessie Selvi
Similar Messages
-
How to Change the name of the Job scheduled in the background.
Hi,
I hava a program that has can run many reports based on the selection screen report selected. and this program runs in the background.
When I run the program in the background for seprate report selected in the selection screen.. the background job name is same(as it is the same program) .
I would like to have difrent job name based on the report id selected in the background
Is it possible..if yes then do guide me.
Regardd
SenthilHi
You can change the Job names based on the selection screen.Check in ur program where they are naming the background Job.
For Eg:In FM JOB_OPEN.
That would be something like
If REPID = '1'.
Background Job name = '1'
ELSEIF REPID = '2'.
Background Job name = '2'
ELSEIF REPID = '3'.
Background Job name = '3''
ENDIF.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = Background JOBNAME
IMPORTING
JOBCOUNT = JOBNUMBER
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03
Thanks & Regards
Jyo -
Getting the variant name when the report program is run in background
Hi All,
How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
Any pointers to this will be highly appreciated.
Thanks and regards,
Nilesh.Hello Nilesh,
Please find the algo:
1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
2. Select data from TBTCP using these details:
DATA:
FP_EVENTID TYPE BTCEVENTID
FP_EVTPARM TYPE BTCEVTPARM
FP_ACTIVE TYPE BTCXPGFLAG
FP_JOBCNT TYPE BTCJOBCNT
FP_JOBNM TYPE BTCJOB
FP_STEPCNT TYPE BTCSTEPCNT.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = FP_EVENTID
EVENTPARM = FP_EVTPARM
EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
JOBCOUNT = FP_JOBCNT
JOBNAME = FP_JOBNM
STEPCOUNT = FP_STEPCNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Error calling FM: GET_JOB_RUNTIME_INFO
ENDIF.
DATA: FP_VARIANT TYPE BTCVARIANT.
SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
FROM TBTCP
INTO TABLE L_IT_TBTCP
WHERE JOBNAME = FP_JOBNM
AND JOBCOUNT = FP_JOBCNT
AND STEPCOUNT = FP_STEPCNT.
IF SY-SUBRC = 0.
SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
IF SY-SUBRC = 0.
FP_VARIANT = L_WA_TBTCP-VARIANT.
ENDIF.
ENDIF.
Hope this helps.
BR,
Suhas -
Oracle Apps -Concurrent program schedule details
From which table that I can find concurrent program schedule details .
NB:-
I know select RESUBMIT_TIME, RESUBMIT_INTERVAL from FND_CONCURRENT_REQUESTS ,
RESUBMIT_TIME, RESUBMIT_INTERVAL will be the schedule details .
But the table FND_CONCURRENT_REQUESTS is get purged periodically , how can i find the master details of scheduling the concurrent.
Thanks in advance,
Arya Sreedhar.Give this a whirl ...
Regards,
Jon
SELECT req.request_id
, decode (prg.user_concurrent_program_name, 'Report Set', 'Report Set:' || req.description, prg.user_concurrent_program_name) AS name
, argument_text as parameters
, req.resubmit_interval
, nvl2 (req.resubmit_interval, 'Periodically', nvl2 (req.release_class_id, 'On specific days', 'Once')) AS schedule_type
, decode (nvl2 (req.resubmit_interval, 'Periodically', nvl2 (req.release_class_id, 'On specific days', 'Once')),
'Periodically', 'Every ' || req.resubmit_interval || ' ' || lower(req.resubmit_interval_unit_code) || ' from ' || lower(req.resubmit_interval_type_code) || ' of previous run',
'Once', 'At :' || to_char (req.requested_start_date, 'DD-MON-RR HH24:MI'), 'Every: ' || crc.class_info) as schedule
, fus.user_name as owner
, to_char(requested_start_date,'DD-MON-YYYY HH24:MI:SS') as next_submission
FROM
apps.fnd_concurrent_programs_tl prg
, apps.fnd_concurrent_requests req
, apps.fnd_user fus
, apps.fnd_conc_release_classes crc
WHERE 1=1
AND prg.application_id = req.program_application_id
AND prg.concurrent_program_id = req.concurrent_program_id
AND req.requested_by = fus.user_id
AND req.phase_code = 'P'
AND req.requested_start_date > sysdate
AND prg.language = 'US'
AND crc.release_class_id(+) = req.release_class_id
AND crc.application_id(+) = req.release_class_app_id
ORDER BY name -
Name of the program generating the spool request
Hi,
i want to know the name of the program due to which a particular
spool request has been generated
thanksHi Anirudh,
Is this what you are looking for:
Re: Finding the Background job name from Spool request number
Regards,
Swarna Munukoti -
Can I retain my concurrent program schedule During R12 Upgrade ?
Hi,
We are approaching Oracle R12 Upgrade go live. We have large number of concurrent programs scheduled by various users. We are planning to put these programs on hold before upgrade. When we upgrade, do upgrade driver removes all schedules from concurrent program schedules? Is it wise to cancel all scheduled programs and reschedule them after upgrade?
Please help!
Best Regards,
Dhaval KhamarWhen we upgrade, do upgrade driver removes all schedules from concurrent program schedules? No.
Is it wise to cancel all scheduled programs and reschedule them after upgrade?No, just put them on hold before the upgrade then resume those jobs after the upgrade.
Thanks,
Hussein -
How to get the VARIANT name in the program
Hi Guys,
Can somebody tell me how to get the VARIANT name in a program.
I have to perform some code with specific variant only. So I want to check in program which variant has been used to call the program.
Thanks,Hi,
Variants are stored in table VARI and VARID.
You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.
please check out the link below it will be helpful to you
Re: Programs for a transaction variant
Hope this helps.
ashish -
I cannot install iTunes 10.5. I can download it, but when I go to install it says that a program cannot be run and it won't give the name of the program. I have the Windows Vista 64-bit system.
That would be my first guess. You might be trying to install the 32 bit version of the program.
Update the thread with more info on your apple software etc if its a 64 bit install you're trying to perform. -
How to increment GL Period using Oracle Application concurrent program scheduler
Hi All,
In R12, I came to know that we can increment GL Period also using Oracle Application Concurrent Program scheduler.
We have a requirement to schedule 'Account Analysis Report' for different legal entities. We would need to increment GL Periof for each department.
In 11i, we can not increment GL Period.
Is there a way, to increment GL Period to schedule 'Account Analysis Report'
Please advise.
Appreciate your time and help.
Oracle Application Version: R12.1.2
thanks in advance,
GaneshHi,
could you please help me?
thanks. -
I want to know the name of bapi for schedule agreement
hi,
please give me the name of bapi for schedule agreement (mm module) .
ok bye
sreenu.Hi,
As Rich Mentione there is no BAPI for Schedule Agreeement.
You can Try : ME_UPDATE_AGREEMENT_PO -Update Pur Document
ME_READ_OUTLINE_AGREEMENT_DISP --Read outline agreement item (From Agreement no and item no)
Lanka -
How can I get the infoset name by giving the name of a program of a query?
How can I get the infoset name by giving the name of a program of a SAP Query?
Regards,
SubhoUse FM RSAQ_DECODE_REPORT_NAME.
You can also use AQLQCAT table. -
How to find Screen element names in a program programatically
Hi Experts,
I have to find out all the table control names in a program. I am able to find all the screen numbers for a program from the table D020S. Is there any functionality to find out the table controls in a program or atleast screen elements in a program?
Thanks and regards,
venkat.Hello
You can get the information by calling the below two FM's. First call the FM IAC_GET_DYNPRO_INFO by passing the program name and screen number. This will return an internal table with all the screen elements of structure D021S.
Next loop through this internal table and pass the structure to FM RS_SCRP_GET_FIELD_TYPE_TEXT to know what kind of screen element it is.
Also, if the FILL parameter of the first FM is 'T', then it is a table control.
Regards
Ranganath -
Hi all,
How to find the BDC name in a program? I have a program and couldnt find which BDC it is using. Can anyone tell me the way to find it. Thanks.Hi,
Once you plan for a BDC with a given transaction, first you will do the recording using SHDB and you can generate an ABAP program code using that recording and modify it accordingly or you can write your own code based on the screen numbers, technical field names, and okcodes for the data transfer to take place. So you cannot look in for a SHDB recording name in your program name as it is not required anywhere in the program. If you want you can search for the user who created the program and recording and the relevant transaction code from the SHDB list.
Reward points if useful.
Best Wishes,
Sekhar -
Names of the programs which Extend Materials, Load Materials and Load maste
Hi ,
Could you please give the names of the programs which Extend Materials, Load Materials and Load master data settings for auto replenishment.
With regards,
Pritee.HI,
As per your needs programs list as follows.
1) Material Extended T-codes(program) :
a) LSMW - Legacy System Migration Workbench
b) BDC - Batch data communication
c) MM17 - Mass Maintenance Materials and
d) MM01 - Create Material also extended material one by one.
2) Load Materials
a) LSMW - Legacy System Migration Workbench
b) BDC - Batch data communication
3) Load Material Master
a) MM01 - Create Material.
Hope, it is useful for you.
Regards,
K.Rajendran -
Dear user,
I want to find out who has changed the setting of the Variant Name of the program.
Is there any table that captured the changes as well as the original setting before the new changes?
Thank you.Hi,
Thank you. This is what I want. By the way, is there any table that capture the original value before the changes?
Eg CDHDR
Thank you.
Maybe you are looking for
-
Not the upper right the center one when you click on new tab
-
Screwed up the "fixed" font, and X wont start with
Hello everyone. Somehow, after installing a font package (xserver-terminus-fonts), I somehow deleted the default font in X - "fixed", and now, X wont start. I've tried to locate the file(s), but I haven't figured out where it is, what name it has, an
-
Adobe Reader isn't working to print from quickbooks!
Everything worked great yesterday, I printed several invoices with no problem but today I'm having all sorts of issues. I uninstalled Adobe and reinstalled it and still can't print from Quickbooks- there is no print bar or printer icon like there was
-
Complete description of the mapi stack
where can I find the complete documentation to the Exchange MAPI interface. I'm looking to assist the guys at openchange to implement a wroking port for other operating systems. PDF or Word and code samples would be helpfull
-
Yet another User Name or password incorrect
Like thousands (tens of thousands?) of users I simply cannot get FaceTime to work. I keep getting the "user name or password is incorrect" message. Initially I wondered if the problem was the discrepancy in Apple's password protocol - on iTunes my pa