How to check frequency of ABAP program usage
Dear Experts,
How to find out the frequency of ABAP programs executed by users? the reason is because we want to do a housekeeping on all the ABAP reports that we have developed over the years, we want to deactivate those reports that are no longer executed by the user within 1 year. Anyone can give suggestion?
I already tried using SM36, but this is only for those programs scheduled in background or immediate, how about those programs running on foreground?
Hello,
You can use the trxn SM20N. But bear in mind some prior config needs to be in place for the logging to be active (trxn SM19).
For further details on SM20 read this: [Security Audit Log|http://help.sap.com/SAPhelp_nw70/helpdata/en/2c/c59d37d373243de10000009b38f8cf/frameset.htm]
@Sap Fan: STAD can be used in case the audit log is not available (e.g., due to missing config) but afaik there is a limitation on the date range you can provide.
BR,
Suhas
Edited by: Suhas Saha on Sep 7, 2010 9:39 AM
Similar Messages
-
How to copy/download all ABAP programs in a text with a single report ?
How to copy/download all ABAP programs in a text format with a single report/TC ?
How to copy/download ABAP source code with all include programs ?....
we need to search & copy all include programs everytime....Hi,
check this link
downloading programs
Regards -
How to find hardcoded in ABAP programs
Dear Experts,
Please tell me how to find hardcoded in ABAP programs.Hi Sam,
Generally in Abap program hardcoded strings are declared in single quotes ' .
for ex :
write : 'Report heading'. " search for ' in the entire program.
press FIND button in menu bar and type single quote ' . and select radio button ' IN MAIN PROGRAM '
Regards,
Aby. -
How to check the memory and CPU usage on NPU
Hi expert ,
Could you tell me how to check the memory and cpu usage on NPU?
I think ASR1000 has this command (show platform hardware qfp active...) , but I coudn't find the same command on ASR9001.
I checked " show controllers np counters all" command, but I did not find it.
Platform: ASR9001
version: 4.3.2
NP: Tyhoon
Thanks,Hi Kanako,
understand your question, but something like that doesnt exist for the trident/typhoon NPU's for the asr9k.
in fact cpu usage is not really applicable for parallel/serialized hardware forwarders, but mainly the KPI is here
the PPS it handles.
The max pps it can handle is dependent on feature set.
What you could do is measure the rates on the PARSE_FABRIC_RECEIVE count (packets received from fabric, so egress direction), PARSE_ENET_RECEIVE count (packets received from the interface to the fabric, so ingress) and the LOOPBACK count, that is packets that are recirculated for extra processing. The sum of these 3 gives an idea of the PPS rate the NPU is working on.
Memory consumption is something tricky also, there are many memories attached to the NPU, notably:
TCAM used for vlan matching, ACL and QOS matching
Search memory for L2 and L3 (shared on Trident, separated on Typhoon)
Frame memory for packet bufferin in QOS
Stats memory, for all kinds of counters of QOS maps, interface stats etc
their usage is rather dynamic also.
The few things you want to verify on these are:
- ACL usage (in terms of Tcam entries)
- MAC table size (2M max on typhoon)
- FIB size (4M max on typhoon)
frame memory is dependent on the buffering, which is a sum of all the packets instant queue length and size of all pmaps attached to interfaces served by the same NPU. there is no good overview as to how much you have available of that, but it has a rather significant size 1G or 2G depending on the TR or SE cards (typhoon specific).
regards
xander
Xander Thuijs CCIE #6775
Principal Engineer
ASR9000, CRS, NCS6000 & IOS-XR -
How to copy wd for abap program?
Hi SAP GEARS!
I'm developing a program (wd) in Minisap when i have not a net connection. How can i copy the wd program from this minisap to a real workplace?
A solution is caching data and cofile files but in standard minisap instalation the transport layers are not configured
so, there is someone with enough goodness to help me with this thread?
Tanks!Hello,
If you want to download a Web Dynpro Component to your PC for moving between systems that aren't connected via transport, then I suggest that you look at SAPLink: http://saplink.org
SAPLink is an Open Source community project for downloading and uploading ABAP development objects in XML format via simple report instead of the transport system. There is a plug-in for SAPLink that supports Web Dynpro Components.
Hope this helps!
Regards,
Srilatha M -
How to use RSAN_PROCESS_EXECUTE in abap program
Hi all,
Does someone know how to use RSAN_PROCESS_EXECUTE in a abap program to execute an analytical process created in the transaction RSANWB?
I create a variant 'ZPC_ALIM_DL' for RSAN_PROCESS_EXECUTE. I would like to execute this program with this variant in a background job, but it seems that the job executed but it does nothing.
See below a part of the code.
SUBMIT RSAN_PROCESS_EXECUTE
WITH VARIANT = 'ZPC_ALIM_DL'
USER SY-UNAME VIA JOB L_JOBNM1 NUMBER L_JOBCOUNT1
AND RETURN.
Thanks in advance,
L.Hi Ludovic,
I am using RSAN_PROCESS_EXECUTE with a variant in process chain. simply include 'abap program' type in process chain mention RSAN_PROCESS_EXECUTE as the program name and mention the variant you created for your apd process and run. I have tested it in dev and it has worked for me. let me know if this helps!
Thanks
Suresh R Kovvuru -
How to set a Executable ABAP Program to run as a Background Batch Job
Hi
Currently I had a Executable ABAP Program which when executed prompts for user to enter selection once entered and executed it will delete user entered selections from a Table.
Now my requirment is to enhance that program to run it as a BACKGROUND BATCH JOB so that there will be an entry in SM37 when the program is executed
How can i achieve thisHi,
Please refer this link .
It has the steps.
http://sapient.wordpress.com/2007/06/19/how-do-you-set-up-background-jobs-in-sap/
Regards,
SuryaD. -
How to check email in abap?
Hi experts,
I want to check email (xxx@ company.com,MS exchange server) in my ABAP program. If there are 3 new emails, I need to loop to read the sender/subject/body information.
Can ABAP do this?
Thanks.Hi Michaeltrans
Please go through the following
*& Report ZRS_WEBPAGE
*& Author : Renuka
*& Title : HTML Viewer using Class
REPORT zrs_webpage.
DATA : html_control TYPE REF TO cl_gui_html_viewer,
web_container TYPE REF TO cl_gui_custom_container.
DATA : t_events TYPE TABLE OF cntl_simple_event.
DATA : x_events TYPE cntl_simple_event.
DATA : ok_code TYPE sy-ucomm.
DATA : v_code TYPE sy-ucomm,
v_url(2048) TYPE c.
*--Event Handler Dfinition For Web page Navigation--
CLASS cl_events_handle DEFINITION.
PUBLIC SECTION.
METHODS navigation
FOR EVENT navigate_complete OF cl_gui_html_viewer
IMPORTING url.
ENDCLASS. "cl_events_handle DEFINITION
DATA: event_receiver TYPE REF TO cl_events_handle.
START-OF-SELECTION.
SET SCREEN 200.
*& Module STATUS_0200 OUTPUT
text
MODULE status_0200 OUTPUT.
SET PF-STATUS 'WEBPF'.
SET TITLEBAR 'WEBTT'.
IF web_container IS INITIAL.
CREATE OBJECT web_container
EXPORTING
parent =
container_name = 'HTML'
style =
lifetime = lifetime_default
repid =
dynnr =
no_autodef_progid_dynnr =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
RAISE cntl_error.
ENDCASE.
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
RAISE cntl_error.
ENDCASE.
ENDIF.
IF html_control IS INITIAL.
CREATE OBJECT html_control
EXPORTING
shellstyle =
parent = web_container
lifetime = lifetime_default
saphtmlp =
uiflag =
name =
saphttp =
query_table_disabled = ''
EXCEPTIONS
cntl_error = 1
cntl_install_error = 2
dp_install_error = 3
dp_error = 4
OTHERS = 5
IF sy-subrc <> 0.
RAISE cntl_error.
ENDIF.
x_events-eventid = html_control->m_id_navigate_complete.
x_events-appl_event = 'X'.
APPEND x_events TO t_events.
CALL METHOD html_control->set_registered_events
EXPORTING
events = t_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->navigation
FOR html_control.
PERFORM home_page.
ENDIF.
ENDMODULE. " STATUS_0200 OUTPUT
text
--> p1 text
<-- p2 text
FORM home_page .
DATA: doc_url(80).
CALL METHOD html_control->load_html_document
EXPORTING
document_id = 'HMPG'
document_textpool =
document_url =
as_compressed_data = 'X'
language =
IMPORTING
assigned_url = doc_url
CHANGING
merge_table =
EXCEPTIONS
document_not_found = 1
dp_error_general = 2
dp_invalid_parameter = 3
OTHERS = 4
doc_url = 'www.applexus.com'.
IF sy-subrc EQ 0.
CALL METHOD html_control->show_url
EXPORTING
url = doc_url.
ENDIF.
ENDFORM. " HOME_PAGE
*& Module USER_COMMAND_0200 INPUT
text
MODULE user_command_0200 INPUT.
v_code = ok_code.
CLEAR ok_code.
CASE v_code.
WHEN 'REFRESH'.
CALL METHOD html_control->do_refresh.
CALL METHOD html_control->get_current_url
IMPORTING
url = v_url.
WHEN 'BKWD'.
CALL METHOD html_control->go_back.
CALL METHOD html_control->get_current_url
IMPORTING
url = v_url.
WHEN 'BACK'.
IF NOT html_control IS INITIAL.
CALL METHOD html_control->free.
FREE html_control.
ENDIF.
IF NOT web_container IS INITIAL.
CALL METHOD web_container->free
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE E002 WITH F_RETURN.
ENDIF.
FREE web_container.
ENDIF.
LEAVE PROGRAM.
WHEN 'NEXT'.
CALL METHOD html_control->go_forward.
CALL METHOD html_control->get_current_url
IMPORTING
url = v_url.
WHEN 'REFRESH'.
CALL METHOD html_control->do_refresh.
CALL METHOD html_control->get_current_url
IMPORTING
url = v_url.
WHEN 'OK'.
IF NOT v_url IS INITIAL.
CALL METHOD html_control->show_url
EXPORTING
url = v_url
EXCEPTIONS
cnht_error_parameter = 1
OTHERS = 2.
IF sy-subrc GE 2.
RAISE cntl_error.
ENDIF.
ENDIF.
WHEN 'CANCEL'.
IF NOT html_control IS INITIAL.
CALL METHOD html_control->free.
FREE html_control.
ENDIF.
IF NOT web_container IS INITIAL.
CALL METHOD web_container->free
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE E002 WITH F_RETURN.
ENDIF.
FREE web_container.
ENDIF.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
CLASS cl_events_handle IMPLEMENTATION
CLASS cl_events_handle IMPLEMENTATION.
METHOD navigation.
v_url = url.
ENDMETHOD. "on_navigate_complete
ENDCLASS. "cl_events_handle IMPLEMENTATION}
Edited by: renu1ece on Dec 30, 2010 8:00 AM -
How do I open an ABAP program from SAP in Eclipse?
Hiya,
Sorry for the newbie question but I've only ever used SE80, but I saw eclipse, liked it, installed it (based on the ADT Installation guide) but now I'm stuck. How do I connect Eclipse to an SAP instance so that I can view and amend ABAP programs?
Thanks in advance for any advice.Hi Robert,
if you installed everything correct, you have to create a new ABAP-Project. This links your sap-logon with eclipse and you are able to connect to a system if everything is fine...
Working with ABAP Development Tools (Quick Launch)
Hope this helps you out, otherwise your in the correct space and here are a lot of documents and blog-posts how to handle eclipse at all (including the installation)
Regards
Florian -
How to crete Button through ABAP programming
Hello Friends,
I am creating 2 selection screens through ABAP code and using them in my Tabstrip control also created through ABAP programming.
Can I also create button on the selection screen through abap programming. If yes then how, and how to assign funtion code and capture the Function Code???
Moderator Message: Read the below advice.
Edited by: kishan P on Dec 30, 2010 7:44 PMHave a look at F1 help on SELECTION-SCREEN. There should be an example as well.
-
How can we delete a ABAP programe
Hi,
How can we delete a ABAP programme which is no longer in use.?
Regards,
kranthiHi
You can delete ABAP programe in tcode SE38 select the programe name and select Delete from application tool bar
But please put ABAP related threads in ABAP forum
Regards
Amiya -
How to call view in abap program
HI,
Is that possible to call & display view in the abap program.
Thanks & Regards
GuhapriyanHi,
You can declare a view using the tables statement itself.
For example -
tables AUFKV.
Regards,
Anand Mandalika. -
How to call Webservice in abap Program
Hi Guys,
How can i call a abap webservice located in another server(CRM) in Bpc BADI.Is this web service is thing is possible??Hi,
For calling a web service first you have to Create Proxy object using web service URL or WSDL file.
and create logical port for that URL.
This will generate Class and method in your system.
After that you can use this class and method to call this web service.
Regards,
Arpit -
How to get data in ABAP program from multicube in external BW system
Hi friends,
I want to get data from one multicube which resides in an external BW system, in my ABAP program internal table. Is there any SAP standard RFC / BAPI for this or is there any other way around or I have to design my own program to get the data ?
To make my requirement clearer, my ABAP program is in one BW box and the above mentioned multicube in another BW box. I want to get data from the multicube into my program.
Any help is appreciated with points.Look at the following FM; you may find the FM RSDRI_INFOPROV_READ_RFC useful.
Call the FM in your program and read data and update.
RSAD_INFOCUBE_READ_REMOTE_DATA
RSDRI_INFOPROV_READ_RFC
Ravi Thothadri -
How to use structure in ABAP program
I developing a report in smartforms but i want some fields to be display on the report but unable to find the relvent table as the field is show in structure.i can not find the actual table . is there any specfic way to find the table .or is there any way to use the fields defind in structure in my ABAP program.
Hi,
May be iam not clear with the question. But why you want to use structure. In report you can define your own structure, also you can declare your fields directly using standard datatypes.
Hope this will help!!!
Amol
Maybe you are looking for
-
PTP camera - how to retain date/time stamp on photos [Gnome]
I have a USB PTP Camera that comes up in Nautilus under "gphoto2://[usb:001,007]/DCIM" I can copy/paste the photos off the thing to ~ but the date/time stamp gets changed to the present. How can I copy them over retaining the original date/time sta
-
No one knows how to fix! Help me!
I'm posting this after a couple of days running around on the net and several calls to the "apple call center" with no answers. Here is the problem: My 2gig iPod Nano's screen never changes off of the language screen. This is what I've done: Pressed
-
What can I safely recover from Time Machine if I have the Flashback Trojan?
I have recently found out that my iMac has been infected with the Flashback trojan. I followed the commands from F-Secure to remove it from my computer however I'm not happy with this solution. I am going to erase my hard drive and re-install the o
-
Every time I try to import an asset into DVD SP, it unexpectedly quits. I tried restarting the computer and reinstalling the software but that hasnt helped. Any ideas???
-
Calyear with quarter restriction
hi i have 3 key figures 5% of female 5% of disability 5% of ehinic orign now i want show at report these 3 kf with present year 4 quarters and previous year 4 quarters and 2 yrs back with 4 quarters so i am going drag these kf restricted with year an