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

runtime anaylsis

Former Member
0 Likes
1,005

Can i submit a program name to SE30 (without actually going into it) and then execute the submitted program and get runtime analysis

for eg

I execute my program -> in the background runtime analysis(se30) of it should start -> as soon as my program execution stops i should get the runtime anaysis result.

but all this has to be done w/o running SE30 in the forground.

please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
983

yes , you can

9 REPLIES 9
Read only

Former Member
0 Likes
984

yes , you can

Read only

0 Likes
983

wats the process?

Read only

0 Likes
983

Hi Priya,

U can try BDC program. Check below sample code.


DATA: i_bdcdata TYPE STANDARD TABLE OF bdcdata,
      wa_bdcdata TYPE bdcdata.

CLEAR wa_bdcdata.
wa_bdcdata-program  = 'SAPMS38T'.
wa_bdcdata-dynpro   = '0100'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.

CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'BDC_OKCODE'.
wa_bdcdata-fval = '=START'.
APPEND wa_bdcdata TO i_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RS38T-COMM'.
wa_bdcdata-fval = 'Test'.
APPEND wa_bdcdata TO i_bdcdata.

CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RS38T-X_TRACE_R'.
wa_bdcdata-fval = 'X'.
APPEND wa_bdcdata TO i_bdcdata.

CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RS38T-REPO_NAME'.
wa_bdcdata-fval = 'Z756941'.  "Give ur program name here
APPEND wa_bdcdata TO i_bdcdata.

CLEAR wa_bdcdata.
wa_bdcdata-program  = 'SAPMS38T'.
wa_bdcdata-dynpro   = '0100'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO i_bdcdata.

CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'BDC_OKCODE'.
wa_bdcdata-fval = '/EBACK'.
APPEND wa_bdcdata TO i_bdcdata.

CALL transaction 'SE30' USING i_bdcdata MODE 'E'.
WRITE 'Test'.

Thanks,

Vinod.

Read only

0 Likes
983

THANX A LOT VINOD FOR UR HELP

Read only

Former Member
0 Likes
983

yes.

SET PARAMETER ID 'RID' FIELD '<Name of Z program>'.

Call TRANSACTION 'SE30' MODE 'N'.

rgds

rajesh

Edited by: RAJESH KUMAR on Aug 6, 2008 2:54 PM

Read only

0 Likes
983

Hii rajesh,

thanx for the help but after call transaction ' ' it is asking for a internal table name...

Read only

Former Member
0 Likes
983

http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617d12e68c11d2b2ab080009b43351/frameset.htm

1. GO to SE38.

2. PUT A COMMENT IN COMMENT FIELD

3. CHECK pROGRAM RADIO-BUTTON AND WRITE YOUR PROGRAM NAME

4. CLICK Execute Button.

5. Program will execute.

6. Hit Back and you will be in SE30,INITIAL: SCREEN again

7. click Analyze button.

Regards,

Anirban

Read only

Former Member
0 Likes
983

From se38 , give program name

follow menu path

System --> Utilities --> Runtime Analysis --> Execute (you can choose Switch ON / Swtich OFF and then execute the program).

Regards,

Mohaiyuddin

Read only

0 Likes
983

I WANT TO EXECUTE THE WHOLE SE30 IN THE BACKGROUND..