List of unused custom report programs
Hello,
I have to develop a report though which we can find the list of unused program based on the selection date given in the selection screen. So, Is there any way through which we can find when was the Z* programs executes last time???
I checked with the transaction STAD and ST03N.. but I didnt find it helpful.. because I want to see the list of programs for the past 1 year.
Any suggestion will be helpful..
Thanks,
Regards,
Jhings.
Edited by: Jhings on Dec 1, 2011 1:31 PM
Moderator message: FAQ, please search for previous discussions of this topic.
Edited by: Thomas Zloch on Dec 1, 2011 12:20 PM
Hi Sandeep,
Thanks for the reply... I checked that table and it is having last change date of the code.. But my requirement is to find out the last execution date of the program.. Means.. when was the Z* programs runs last time.
Hope u understand my problem..
Thanks,
Regards,
Jhings
Similar Messages
-
Runtime Error CALL_FUNCTION_PARM_MISSING in a custom report program
Hi All,
I've created a custom report program to create parameters for a user in a system. I'm getting a runtime error in the code.
The code snippet as below.
I'm getting that error at line no 161. I'm not able to figure it out. Please help me to correct it.
Regards
Mandeep ShresthaHi Glenn,
I'm not creating a user. My requirement is to add a parameter
CRM_THTMLB_IE_COMP with value 'IE8'. I've written the below set of code to achieve that. Can you please help me further.
:i_userlist,i_return,l_errorrole,lv_rows,i_error,i_final,
l_e,lv_rows,l_s.
REFRESH i_bname1.
IF u_name IS NOT INITIAL.
SELECT bname FROM usr01 INTO TABLE
i_bname1 WHERE bname IN u_name.
IF sy-subrc = 0.
LOOP AT i_bname1 INTO wa_bname1.
wa_userlist-username = wa_bname1-bname.
APPEND wa_userlist TO i_userlist.
CLEAR wa_userlist.
ENDLOOP.
DESCRIBE TABLE i_bname1 LINES lv_rows.
ENDIF.
ELSE.
****get all the users****
CALL FUNCTION 'BAPI_USER_GETLIST'
EXPORTING
max_rows = 0
with_username = ' '
IMPORTING
ROWS = lv_rows
TABLES
* SELECTION_RANGE =
* SELECTION_EXP =
userlist = i_userlist
RETURN = i_return.
ENDIF.
****read the PFCG and Business Roles****
SELECT * FROM crmc_ui_profile INTO TABLE i_profile .
IF i_userlist IS INITIAL.
WRITE:'No Users'.
EXIT.
ELSE.
LOOP AT i_userlist INTO wa_userlist.
CLEAR: i_param,i_agrgrp,i_retagr,lv_pfcg.
"IF wa_userlist-username = 'BUILDER_B'.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = wa_userlist-username
cache_results = 'X'
TABLES
PARAMETER = i_param
* PROFILES =
activitygroups = i_agrgrp
RETURN = i_retagr
* PARAMETER1 =
CLEAR :wa_agrgrp,l_errorrole,wa_retparm,v_business_unit.
CLEAR ls_sales_org.
CALL FUNCTION 'Z0CR_GET_USER_DETAILS'
EXPORTING
iv_username = wa_userlist-username
IMPORTING
* EV_USER_TYPE =
* EV_BUGROUPID =
es_sales_org = ls_sales_org
* EV_PARTNER_ID =
ev_business_unit = v_business_unit.
CALL METHOD CL_CRM_ORGMAN_SERVICES=>MAP_HROBJECT_TO_R3_SALES_ORG
EXPORTING
HROBJECT = ls_sales_org-SALES_ORG
* dbread =
IMPORTING
VKORG = L_ECC
EXCEPTIONS
NO_AUTHORIZATION = 1
NOT_FOUND = 2
OTHERS = 3.
*CALL FUNCTION 'CRM_BUPA_SALES_AREA_TO_R3'
* EXPORTING
* IS_SALES_AREA = ls_sales_org
* IMPORTING
* EV_VKORG = L_ECC
** EV_VTWEG =
** EV_SPART =
* EXCEPTIONS
* NO_MAPPING_DEFINED = 1
* R3_KEY_NOT_DEFINED = 2
* OTHERS = 3
*IF SY-SUBRC <> 0.
** Implement suitable error handling here
*ENDIF.
IF L_ECC = 2040 OR L_ECC = 2010 OR L_ECC = 2050 OR L_ECC = 1900.
** loop at i_param into wa_param .
* wa_param-PARID = 'CRM_THTMLB_IE_COMP' .
* wa_param-PARVA = 'IE8'.
* wa_param-PARTXT = 'CRM BW REPORT PARAMETER'.
* append wa_param to i_param.
** ENDLOOP.
* endif.
CLEAR lv_flag .
****checking if the role having prime support roles then assign the CRM_THTMLB_IE_COMP as IE8
CLEAR lt_role.
SELECT * FROM zuser_role INTO TABLE lt_role
FOR ALL ENTRIES IN i_agrgrp
WHERE pfcg_role = i_agrgrp-agr_name.
IF sy-subrc = 0.
lv_flag = 'X'.
ENDIF.
CLEAR :lv_land.
SELECT SINGLE land1 INTO lv_land FROM hrp1028 WHERE
otjid = ls_sales_org.
LOOP AT i_retagr INTO wa_retagr WHERE TYPE = 'E' OR TYPE = 'A'.
l_errorrole = 'X'.
ENDLOOP.
**error records
IF l_errorrole EQ 'X'.
l_e = l_e + 1.
CLEAR :lv_pfcg,lv_brole.
wa_error-user = wa_userlist-username.
wa_error-pfcg = lv_pfcg .
wa_error-role = lv_brole .
wa_error-MESSAGE = wa_retparm-MESSAGE .
APPEND wa_error TO i_error.
CLEAR l_errorrole.
ELSE.
CLEAR sy-subrc.
CLEAR :wa_param1,lv_vlaues,wa_param.
READ TABLE i_param INTO wa_param1
WITH KEY parid = 'CRM_THTMLB_IE_COMP'.
IF sy-subrc <> 0.
CLEAR wa_paramx.
wa_paramx-parid = 'X'.
wa_paramx-parva = 'X'.
CLEAR :wa_paramc,i_paramc.
wa_paramc-parid = 'CRM_THTMLB_IE_COMP'.
wa_paramc-parva = ' '.
APPEND wa_paramc TO i_paramc.
CALL FUNCTION 'BAPI_USER_CREATE'
EXPORTING
USERNAME = wa_userlist-username
TABLES
PARAMETER = i_paramc
RETURN = i_retparm.
ENDIF.
lv_vlaues = wa_param1-parva.
IF i_agrgrp IS INITIAL AND lv_vlaues IS NOT INITIAL.
CLEAR wa_paramx.
wa_paramx-parid = 'X'.
wa_paramx-parva = 'X'.
CLEAR :wa_paramc,i_paramc.
wa_paramc-parid = 'CRM_THTMLB_IE_COMP'.
wa_paramc-parva = ' '.
APPEND wa_paramc TO i_paramc.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = wa_userlist-username
parameterx = wa_paramx
* COMPANY =
TABLES
PARAMETER = i_paramc
RETURN = i_retparm
* PARAMETER1 = .
CLEAR :wa_retparm ,l_errorrole.
IF i_retparm IS NOT INITIAL.
LOOP AT i_retparm INTO wa_retparm WHERE TYPE = 'E' OR TYPE = 'A'.
l_errorrole = 'X'.
ENDLOOP.
ENDIF.
**error records
IF l_errorrole EQ 'X'.
l_e = l_e + 1.
wa_error-user = wa_userlist-username.
wa_error-pfcg = lv_pfcg .
wa_error-role = lv_brole .
wa_error-MESSAGE = wa_retparm-MESSAGE .
APPEND wa_error TO i_error.
CLEAR l_errorrole.
ELSE.
l_e = l_e + 1.
wa_error-user = wa_userlist-username.
wa_error-pfcg = lv_pfcg .
wa_error-role = lv_brole .
wa_error-MESSAGE = 'No Roles assigned to User' .
APPEND wa_error TO i_error.
CLEAR l_errorrole.
ENDIF.
ENDIF.
IF i_agrgrp IS NOT INITIAL .
CLEAR lv_count.
LOOP AT i_agrgrp INTO wa_agrgrp WHERE agr_name CP 'L*'.
CLEAR wa_profile.
READ TABLE i_profile
INTO wa_profile
WITH KEY pfcg_role = wa_agrgrp-agr_name.
IF sy-subrc EQ 0 AND
wa_profile-profile IS NOT INITIAL.
lv_count = lv_count + 1.
ENDIF.
ENDLOOP.
IF lv_count EQ '1'.
LOOP AT i_agrgrp INTO wa_agrgrp WHERE agr_name CP 'L*'.
CLEAR :wa_profile,lv_brole,lv_pfcg.
IF wa_agrgrp-agr_name CP 'L*'.
lv_pfcg = wa_agrgrp-agr_name.
READ TABLE i_profile
INTO wa_profile
WITH KEY
pfcg_role = wa_agrgrp-agr_name.
IF sy-subrc EQ 0.
** ***fill business role
lv_brole = wa_profile-profile.
ELSE.
l_e = l_e + 1.
CLEAR lv_brole.
wa_error-user = wa_userlist-username.
wa_error-pfcg = lv_pfcg .
wa_error-role = lv_brole .
wa_error-MESSAGE = 'No Business Role for PFCG' .
APPEND wa_error TO i_error.
CLEAR l_errorrole.
CONTINUE.
ENDIF.
ENDIF.
IF lv_brole IS NOT INITIAL.
CLEAR wa_paramx.
wa_paramx-parid = 'X'.
wa_paramx-parva = 'X'.
CLEAR :wa_paramc,i_paramc.
wa_paramc-parid = 'CRM_THTMLB_IE_COMP'.
IF lv_flag = 'X'.
lv_brole = 'IE8'.
wa_paramc-parva = lv_brole .
* CLEAR lv_flag.
ELSE.
wa_paramc-parva = lv_brole.
ENDIF.
APPEND wa_paramc TO i_paramc.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = wa_userlist-username
parameterx = wa_paramx
* COMPANY =
TABLES
PARAMETER = i_paramc
RETURN = i_retparm
* PARAMETER1 = .
CLEAR :wa_retparm .
IF i_retparm IS NOT INITIAL.
LOOP AT i_retparm INTO wa_retparm WHERE TYPE = 'E' OR TYPE = 'A'.
l_errorrole = 'X'.
ENDLOOP.
ENDIF. -
CNTL_ERROR while running a custom report program in background mode
Hi,
I am running a report in background on daily basis. I am using cl_gui_custom_container class here and calling the constructor of this class. I am getting a CNTL_ERROR exception at this point. But if i run the same report directly, it is not throwing any exception. The problem is if i schedule it to background. I am not able to sort it out.
I've written the following code below:
I did apply the logic that you'd mentioned.
I've implemented the code as below.
IF gr_container IS INITIAL.
*** Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
* Run in foreground
CREATE OBJECT gr_container
EXPORTING
container_name = 'WORK_AREA_CONTAINER'.
CREATE OBJECT lv_grid
EXPORTING I_PARENT = gr_container.
ELSE.
* Run in background
CREATE OBJECT lv_grid
EXPORTING
I_PARENT = gr_dockcontainer.
ENDIF.
ENDIF.
i_parent_control = gr_dockcontainer.
CREATE OBJECT m_base_splitter
EXPORTING
parent = i_parent_control
ROWS = 1
columns = 2
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
CALL METHOD m_base_splitter->get_container
EXPORTING
row = 1
column = 2
RECEIVING
container = m_splitter_right_part
EXCEPTIONS
OTHERS = 1.
After I've implemented the above code I'm getting the following error in the batch job:
Category ABAP Programming Error
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Except. CX_SY_REF_IS_INITIAL
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: "M_BASE_SPLITTER").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
Would you be able to help me in the above issue?
Regards,
MandeepHi Alexander,
Yes I'd declared gr_dockcontainer as type ref to CL_GUI_DOCKING_CONTAINER. And I've now replaced the previous code and wwrote the below code :
gr_container IS INITIAL.
***Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
***Run in foreground
CREATE OBJECT gr_container
EXPORTING
container_name = 'WORK_AREA_CONTAINER'.
CREATE OBJECT lv_grid
EXPORTING
I_PARENT = gr_container.
ELSE.
***Run in background
CREATE OBJECT gr_dockcontainer
EXPORTING
NAME = 'WORK_AREA_CONTAINER'.
ENDIF.
ENDIF.
= gr_dockcontainer.
CREATE OBJECT m_base_splitter
EXPORTING
parent = i_parent_control
ROWS = 1
columns = 2
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
CALL METHOD m_base_splitter->get_container
EXPORTING
row = 1
column = 2
RECEIVING
container = m_splitter_right_part
EXCEPTIONS
OTHERS = 1.
But after implementing the above code I'm facing the same issue of CTRL ERROR- " GUI cannot be reached".
Please guide me through this.
Regards,
Mandeep -
Calling a ALV Report program via a Remote Function module.
H All,
The thing which I am looking out for is ,to know a technique to acheive this,
To start with,
For the transaction MB51-(Material Document List),which is a Report Program "RM07DOCS",I also observed that this uses a ALV to display the output.
Now what I actually require is another extra field (from MARA table ) along with the standard output that is displayed from this report.
Also this needs to be passed to a different UI system(build using VC ).
So I have a RFC eg DisplayList(),where in I need to exeucte this report program ,get the output what it gives ,add my additional information what I want to and pass it as a export parameter,
So this is the structure which I can visualise,
FUNCTION ZFUN_MB51TXN.
I would get all the import parameters here ,from who ever is calling my fun module,
*Call the report program,pass the input parameters required
*get the output from this report program
*send the output to the caller through export parameters
ENDFUNCTION.
So Here I need to know ,Can this be achieved something using Submit report or anything,Any guidelines to move further would be really of great help!Hi All,
It would really be great if you can explain with the reference to the same report program,the same selection screen elemetns or something.
Thanks,
Archies! -
Facing Problem while Debugging a custom report using LDB
Hi Gurus,
I have requirement to modify a custom report program related to FI. This program used Logical database ZDF ( Copied original DDF) for data fetching.
when i am trying to see the data in debugging mode, its not allowing to check in start-of-selection event. only in the initialization & end-of-selection i could able to debug.
when i put breakpoint in initialization, it is allowing to see the flow till a Get Event occurs in the code, once a Get event occur the debugger is coming out and displaying the report.
If anybody faced this kind of problem when debugging a report using LDB, please share how you resolved it. If there are any other ways to debug a program of this kind please help me.
Thanks,
NandaHi Amith,
I checked that way also, i put break point in database program of the copied LDB, but its not allowing to check the flow in that program also.
Please suggest any other ways.
Thanks,
Nanda -
Can we update BW infocube from SAP using Custom ABAP program ?
Hi,
My requiremnet is to update the infocube using data from R/3 .
I have a custom report program and users want this data in BW.
Let me if there are any FM? from which we can call via RFC or any other alternatives?
Rgds
Praveenreport must be an ABAP program in ECC I guess...Why dont you look forward for generic extraction...
Check this one:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33 -
How to save varaint in a report program with tabstrip in selection-screen
Hi Gurus,
We have a custom report program and selection screen of this program has a tabstrip of 9 tabs. This program will run in background job and we are facing problem to save variant for this report program.
We saved one variant with 'TAB2' populated. But when we execute the report and select that variant and we are not navigated to 'TAB2' automatically. So, code for TAB2 is not triggerd and we are not getting desired output.
When we set this program with variant in Job, program is not navigated to 'TAB2' as per variant setup.
Is there any way to save variant for this kind of report ?
Please help with your suggestions
Thanks & Regards
ChandanThanks for your help.
I found during debugging that it is holding the sy-ucomm of the first tab as default value. So, I declared a new field in selection screen with No-Display option. When user will select a tab, this new field will hold the value of that sy-ucomm. As this field is in selection screen, it is getting stored in variant also.
In start-of-selection of program I am checking this field value and accordingly set the TABSTRIP.
Thanks again for your help.....
Regards,
Chandan -
Oracle HRMS Discoverer Custom Reports Details
Hello Everyone,
I am looking out for the custom Discoverer report listing in Oracle HRMS modules (specifically Core HR, OAB and OTL). Can anyone help me out to get the list of ONLY custom discoverer report in above modules ? Kindly send me the excel with below details
1. Custom Discoverer Report Name
2. Module Name (Core HR, OAB, OTL)
3. Brief description of the report
4. Underlying Tables for this report
I am not interested in Oracle seeded discoverer reports.Would appreciate your quick response.
Thanks,
RishikeshList of custom Discoverer reports?!!! Shows that you do not know anything about Discoverer.
Custom reports are designed as required. You can't get a list of such custom reports. If anyone makes such a list it will be specific to their client/company. -
How to grant access to a Oracle Report Program
Hi hussein,
I am checking/debugging our clients registered customized report program setup.
I want to grant the program to my ID so I can test print and see its output.
The steps I followed are the ff:
A.
System Administrator resp: Concurrent Program > Executable :
Executable : CEC2CREC
Application : ABC Customizations
Execution Method : Oracle Reports
Execution File Name: CEC2CREC
B.
System Administrator resp: Concurrent Program > Define :
Program : Bank Reconciliation Report ( 2 Column )
Short Name : CEC2CREC
Application : ABC Customizations
Executsble Method : Oracle Reports
Executable Name : CEC2CREC
I want to grant this program "Bank Reconciliation Report ( 2 Column )" to my USERID.
I followed these steps:
- Login to System Administrator responsibility
- Navigate to Security > Responsibility > Define
- Query the "ABC Customization" responsibility
But I can not find any "ABC Customization" responsibility
Is there other way to test run the program?
Thanks a lot
Edited by: yxes2009 on Sep 14, 2009 3:23 AMHi,
System Administrator resp: Concurrent Program > Executable :
Executable : CEC2CRECApplication : ABC Customizations
But I can not find any "ABC Customization" responsibility According to the above, "ABC Customizations" is an executable file (concurrent program) and not a responsibility. From (Security > Responsibility > Define), query the responsibility which is assigned to the user, and check the "Request Group" which is attached to this responsibility, then navigate to (Security > Responsibility > Request) and add "ABC Customization" request to the request group.
Regards,
Hussein -
Bapi/Fm to get all report program names
Hi All,
I need a BAPI or FM to get a list of all Z report program names in the repository.
I can do it through a select query , but it takes a lot of time and is effecting performance.
Thanks
PrafullhI ,
you can use table
DATA: t_trdir TYPE STANDARD TABLE OF trdir,
t_tstc TYPE STANDARD TABLE OF tstc,
s_trdir TYPE trdir.
SELECT * FROM trdir
INTO TABLE t_trdir
WHERE ( name LIKE 'Z%' OR name LIKE 'Y%' )
AND subc = '1'.
regards
Deepak. -
How to get list of custom objects used in abap report program?
Hi friends,
I have a requirement in which I have to scan the entire abap report and retrieve list of custom objects used in it for example custom tables, data elements, structures, table types etc,. Is there any provision in SAP like fuction modules to do this functionality? As of now I am coding everything manually where so many possibilities are there for all kinds of objects. Provide your answers and suggestions...
Thanks,
NasteraHi,
The best way to do this is environment analysis. Follow the steps:
1. Open se38, type in the program name (don't click on on display/change or create button, stay on first screen only)
2. Click on environment analysis button (hot key SHIFT+F4)
3. It will throw a pop-up, which will ask for type of object you want to see, which are linked /used by this program. select all (or may be if you are only interested in Tables, then select table only)
4. Hit 'Enter'
You will get the full list of all objects used in this report program. Just note down the one which starts with Z or Y and that's it.
Cheers,
Anid -
A way to list custom concurrent programs, forms & reports on 1159?
I hope this isn't a stupid question!
I've just started 11i support and I've been handed a mid-size installation. Needless to say, documentation is lacking. Is there a way to find out what is custom and what is not?The custom programs belong to customer applications.
Run query against your custom application names and you'll get all the custom concurrent programs. -
How to convert the customized report sales price list into excel sheet
hi friends,
i am faceing the probulem in VK13 report is not conveting into excel sheet, then i developed the one customized report,
in this report i am using the tables are a506, konp,and makt, result is coming and it converted into excel sheet in my systam. when i was clik on the excel sheet icon it comming excel format it working fine and save it. But in menubar list>export> localfile and select redio button spredsheet this navigation only it print the three colums not coming the total colums,
same program test in another system it not converted into excel sheet, when i am click on excel sheet icon it's given the message is 'VIEW CAN NOT BE SWITCHED, PRODUCT NOT INSTALLED OR INTEGRATION NOT ACTIVE'. but i giving the print privew it giving the three colums only,.
In program i am using regular using reuse_alv_grid_display FM only.
sorry this qusition is repeted becuse before that one mising some text.
any one plz help me.
thanks
rajnice answer
-
Abap program to find the list of SAP STANDARD reports in complete
Please send me if you have any program since when i run TRDIRT Table in se16 it gives all the program now how to distinguish by business area like sd mm fi its tedious to open every program and check what it is . is there any ABap program that put together the list of all the reports for FI, AP, AR and MM
Soniya KapoorHi,
IN the table TRDIR give the application (TRDIR-APPL) and check the results..
Cross-Application
A Asset Accounting
B Business Information Warehouse
C PPC
D DASS (control station)
E RIVA
F Financial accounting
G General ledger
H Personnel Planning
I Plant maintenance
J Publishing
K Cost accounting
L Inventory management
M Materials management
N Hospital
P Human Resources
Q QSS (Quality assurance)
R Unknown application
S Basis
U Enterprise Data Model
V Sales
W MMS (Merchandise mgt. system)
Y Customer head office
Z Customer branch
Thanks,
Naren -
Calling custom report from seeded spawned program
Hi,
I dont know how to call a custom report(ie.,My own report) when Dunning letter generate is kicked off rather than calling the original programs(ie., Dunning letter print from dunning letter generate etc).
thanks in advance.Hello vishwam,
as I remember, there is an option to keep the dunning conc request assigned but change to executable to your own.
Keep in mind that this way is not fully supported, but it should work.
Regards
Volker
Maybe you are looking for
-
Final Cut Pro X doesn't seem to recognize 120 fps
I hust bought a GoPro Hero 2 with the capability of shooting 120fps. When I upload the clip into my timeline it says that it can't recognize the format and prompts to 60 fps. Any thoughts on how to get the full 120 fps? Thanks
-
Any idea how I could proceed?
-
Clock keeps turning off in bedisde mode
Yesterday u had my phone updated at the sprint store. Then last night when i went into bedside mode the clock went out after a short while, Previously, it stayted on all night as intended. I have gone to options in clock and have tried the both d
-
Dear Experts, Do you know where can I find the contents of Table Name that represents? I am confuse when I see different table names such as: 1. OINV A/R Invoice 2. Inv1 A/R Invoice - Rows 3. ADO1 A/R Invoice(Rows) - History 4. Inv3 A/R Invoice -
-
I'm not able to play videos in iTunes without it hanging up for a brief bit
I am unable to play a video on any of my computers using any version of iTunes above. 10.0.1.22. The computers are all iCore 7 286. MhZ, with 8 Gs of Ram. The video cards are ATI 5775 with 1G Ram. Using Windows 7 in both 32 and 64 bit. Approxim