Application Development and Automation 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: 
Read only

STAD - get the 'transaction code' and 'program name'

fabian_nelis
Explorer
0 Likes
853

Hi, I was wondering if someone knows about a bapi with which I can get only the "transaction code" and "program name".

I need to get those for a specified user, but I don't want to set on a trace, that's why I'd like to use the transaction STAD.

If anyone can help, thanks in advance

Grtz,

Dragovian

2 REPLIES 2
Read only

Former Member
0 Likes
586

SWNC_STAD_READ_STATRECS

Read only

0 Likes
586

ok, so I go like this

TYPE-POOLS sapwl .

DATA: all_stats TYPE sapwl_allstats.

CALL FUNCTION 'SAPWL_READ_STATISTIC_FILES'

EXPORTING

read_client = '*'

read_time = '200000'

read_start_date = sy-datum

read_start_time = '000000'

read_username = sy-uname

read_workprocess = 'FFFF'

wait_factor = 150

CHANGING

all_stats = all_stats

.

how'd I get "start-time" "report-name" "date" "username"?