Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

History of Zprograms

Former Member
0 Kudos

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

16 REPLIES 16

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

hi,

if u want background job details use TBTCP,TBTCO tables.

if u want zprograms created in system then use TADIR table.

0 Kudos

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

0 Kudos

deleting questions is not sufficient removing points will make users not answering them think about it

0 Kudos

>

> 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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

Can you please check in this table : TADIR

Hope it will helps

0 Kudos

contact ur basis administrator.

Subhankar
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Please read the question!

Does your code answer it => No.

0 Kudos

>

> 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?

Subhankar
Active Contributor
0 Kudos

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."

0 Kudos

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