09-16-2008 2:59 AM
Hi
Anybody know How to get past 2years Zprograms Which is running and executed and backround Shceduled in SAP, i want to know all last 2 years Zprograms.
Regards
Raja
09-16-2008 4:05 AM
I think you cant make this, because based on my previous requirement we add a subroutine for all zprograms that make a logging on separate table when it was executed. That is only the time that we monitor all program that is used and not. Unless you already one with that kind of processing.
09-16-2008 4:09 AM
Hi,
Check the table TRDIR.
Pass the date in the Created On field and get the list of programs. You can also get the status of the programs.
Thanks,
Ruthra
09-16-2008 10:16 AM
Thanks Ruthra,
i AM asking abt Zprograms, i think we can get standard Sap program from TRDIR. I am Not sure but i didnot get any Zprograms fromTRDIR.
Actually i want to get the Zprograme list from 15/09/06 to 15/09/08.
If you know any other solution for this
Kindly let me know
Thanks
Raja
09-16-2008 10:21 AM
hi,
if u want background job details use TBTCP,TBTCO tables.
if u want zprograms created in system then use TADIR table.
09-16-2008 10:29 AM
I deleted your "what is STAT" post because it relates to the same.
> Actually i want to get the Zprograme list from 15/09/06 to 15/09/08.
There are a number of ways of doing this, but for any of them tto produce a reliable result, you should have asked this question on 15/09/06 and not 15/09/08 to set it up.
Some of them:
- STAD: but aggregated and limited in file size (which is configurable).
- SM20: but needs to have been activated.
- Object History: But the user can turn it off and would be unreliable.
- Transaction (code) contexts of all transaction and master data changes since then (but what about SA38, etc?)
- ...
Cheers,
Julius
09-16-2008 10:34 AM
deleting questions is not sufficient removing points will make users not answering them think about it
09-16-2008 11:06 AM
>
> deleting questions is not sufficient removing points will make users not answering them think about it
Okay, lets try intensify it (removing points) for a while and see.
But I will only do this in the case of extreme "no brainer" questions which do not subsequently develop into something interesting.
Cheers,
Julius
09-16-2008 11:11 AM
I think it will work when you tell them that their points have been removed because of blah blah blah.
Also you can tell them its their last chance to pull up their socks.
Repeat offenders can be Guestified.
pk
PS: 10 points earned by [Karthikeyan|; from 3 different posts have all been deleted, but the points remain. IMO the points should go too.
Edited by: prashanth kishan on Sep 16, 2008 3:45 PM
09-18-2008 7:15 AM
thanks for your answer, i need to check the backround schedule job whether it is running once in a day or once in an hour. which field i have to check from TBTCP,TBTCO
09-16-2008 10:20 AM
09-16-2008 10:29 AM
09-16-2008 10:53 AM
Hi ...
Please look at the sample code
REPORT z_test_subha3.
TYPES:
BEGIN OF x_trdir, " Structure for program name
progname TYPE progname, " Program Name
END OF x_trdir.
data: i_trdir TYPE STANDARD TABLE OF x_trdir,
wa_trdir TYPE x_trdir,
r_prog TYPE RANGE OF progname,
wa_prog like LINE OF r_prog.
wa_prog-sign = 'I'.
wa_prog-option = 'CP'.
wa_prog-low = 'Z*'.
APPEND wa_prog to r_prog.
SELECT name
FROM trdir
INTO TABLE i_trdir
WHERE name in r_prog AND
subc = '1' and " Report program
CDAT >= '20060915' and
CDAT <= '20080915'.
IF sy-subrc = 0.
LOOP at i_trdir INTO wa_trdir.
WRITE: / wa_trdir-progname.
ENDLOOP.
ENDIF.
09-16-2008 11:02 AM
09-16-2008 11:06 AM
>
> Hi ...
>
> Please look at the sample code
> SELECT name
> FROM trdir
> INTO TABLE i_trdir
> WHERE name in r_prog AND
> subc = '1' and " Report program
> CDAT >= '20060915' and
> CDAT <= '20080915'.
> IF sy-subrc = 0.
> LOOP at i_trdir INTO wa_trdir.
> WRITE: / wa_trdir-progname.
> ENDLOOP.
> ENDIF.
Questioner asked
Anybody know How to get past 2years Zprograms Which is running and executed
I think this query would give you the list when program were created if beetween (CDAT >= '20060915' and
> CDAT <= '20080915'.)
but Questioner were expected the list when prg were actually executed?
09-16-2008 11:35 AM
Hi ,
Have you seen the total thread.
I answer any question after reading the requirement.
Just look at the line below
"Actually i want to get the Zprograme list from 15/09/06 to 15/09/08."
09-16-2008 11:44 AM
Did you read the whole trail of replies?
Anybody know How to get past 2years Zprograms Which is running and executed and backround Shceduled in SAP
Actually i want to get the Zprograme list from 15/09/06 to 15/09/08.
what you understand from these two lines?
creation date? if yes
than infact MODS(Julius) should give you full marks for your program code.
Cheers