How can I find long reports? - abap

How can I find all reports that have more than 200 000 lines?
I have checked SCI and CODE_SCANNER, did not find anything like this there.

You could research the report RS_ABAP_SOURCE_SCAN and see how SAP searches in Reports. This way you can create your own ABAP report which searches for large reports.
Hope this helps.

Well, first: Do you know the name of the reports?
If not you first have to get a list of name for all objects that are in your interest. You could browse the table TADIR directly and search for the objects.
If you are looking for Reports only (and not for Function Modules and Classes)
you can use the internal commands READ REPORT or LOAD REPORT.
While SAP offers a lot of functions and methods for source codes they were, at least in older releases, not the most performant once.
But again with 7.4 a lot has improved.

Related

Search entire database in Toad for searchterm

I need a way to search my entire Oracle database for a column that contains the value 'Beef'. What I need is the column name and table name so I can complete my query. Beef is an animal feed type and it is a known value in my database. I just don't know where.....
Essentially, we have a very old very clunky application that I am using SQL data sets generated from Toad freeware to get around. The application shows us laboratory testing information for our companies. The catch is you can only look at one company's lab report at a time, and as a I said, it takes FOREVER. We have over 700 companies we regulate so this is not an option (oh and you can't copy any of the fields).
I have already generated a query that gets me 99% of the information I need until I realized I was missing one column value that for some unearthly reason isn't included with the other attributes of the lab samples. We have around 100 or so tables and many of them aren't even in use. It's a poorly organized database and I've tried manually going through it and simply cannot find the stupid column and I have no idea what it could be named (naming conventions here seem not to apply).
A monkey wrench is: although I've done a decent amount of SQL coding for my job I'm not in IT. My job hooked me up with a read-only access of our database so I could run reports for them etc, but I'm not in the IT section so I don't get write privileges. So a lot of solutions I see that use DDL aren't available to me.
I guess it might be relevant, it looks like we're running oraClient10g.
I've tried this code that I got from here: community.Oracle
but as you can see I don't get any results.
I also tried the one suggested here at stackOverflow, but got a litany of errors so I abandoned that pretty quick. (I figured it's because of my read-only privileges and or my version of Oracle).
Any help would be greatly appreciated.

What SAS modules do I need to run my code?

I have a large collection of SAS programs. Currently, I have lots of SAS modules licensed and installed (I've checked which ones via %sasinstallreporter), but I'm not sure whether I need all of them.
How can I determine which modules I actually need in order to run all of my code? They're rather expensive and I don't want to pay for modules that I'm not going to use. Is there a list of procs / libname engines somewhere that are tied to specific SAS modules?
Apologies if this is a duplicate, but some brief searches didn't turn up anything obvious.
I have posted a follow-up question here regarding what other things I should be looking for in my code.
1st, get a list of all the procedures your code uses. You can do this manually, or write a script in SAS/AWK/Perl to parse through your code.
Next, go to http://support.sas.com/documentation/ and search each for each of the unique Procedures.
For example, if I search for PROC REG, I get these results (http://support.sas.com/cdlsearch?charset=iso-8859-1&nh=25&ct=80000&qt=PROC+REG++&s1=3&searchterm=PROC+REG&sasreleasepart=&sasprodpart=&searchContains=). You will see under the results SAS/STAT(R), which tells you it is part of the SAS/STAT module.
You may also have things licensed that do not show up as PROC XXX in your code. Things like SAS/Integration Technologies are used for running and connecting to a SAS server. Talk to your SAS administrator about how those are used.
Happy hunting.
If you are paying for SAS, I would say send this question to SAS technical support, they should be able to help you with a list.
I don't think there is a definative list of modules and associated PROCS on the web.
Regards,
Vasilij

Using fields from different universes in Business objects

I am trying to put a report from two different universes. is it possible to add fields from both universes into a single report?
Yes, this is a commonly used functionality. However there are rules on how to combine data sets (be it from the same or a different universe) and what you can do with them.
As this is a quite extensive topic, I suggest you have a look at the Web Intelligence (I'm assuming this is the application you're using, as you haven't specified it) manuals, corresponding to the version of BusinessObjects you're using. The manuals are available at help.sap.com.
You might also find the interactive tutorials available on sap.com/LearnBI helpful.

Exploring data dictionary tables usage in Oracle?

I am fresher and just started learning about database. But one thing strikes me, being a PL/SQL I should know all the data dictionary table, rather than relying on the options given in TOAD, SQL Developer. Like explain plan, search an object, locks, search a text in database and many more which we uses in daily life .
Can anyone contribute the tables or query which we can use in daily practices,rather than just clicking the button in tool, because it's not possible that everywhere we have this GUI interface to work with.
I think this will be very helpful for the people who really want to know what is working behind what option in our buttons.
For Example: The query below is use to search the string in all the database objects
Select *
FROM DBA_SOURCE
WHERE text LIKE '%<your text >%';
You are right: developers (and wannabe DBAs come to that) should know the Data Dictionary, rather than relying on an IDE. A good Oracle practitioner should be able to survive with just a text editor and SQL*Plus.
There are too many views to understand them all. You just need to know that they are all covered in the documentation. Find out more.
there are many different uses of the data dictionary from querying package sources, to database administration.
Burleson has a few here to get you started
http://www.dba-oracle.com/concepts/data_dictionary.htm
You can get a good list from the following select statement:
select table_name||': '||comments from dictionary;
That lists 838 rows. The ones you would use most are probably ALL_OBJECTS, ALL_TABLES, ALL_TAB_COLUMNS, ALL_VIEWS, ALL_SOURCE, ALL_COMMENTS, and (sometimes very important) ALL_SYNONYMS.
ALL_SOURCE is a good place to find documentation for Oracle's built-in packages, because the comments in the package specification tell you everything you need to know to use them. For example, look at DBMS_SQL.

How to search for available RFC function modules and tables

I've got to admit that I'm not an expert on SAP R/3 programming, so this is more of a basic question on that matter.
Is there any way to get a list of accessible RFC modules and/or tables on a SAP system?
On many examples on the internet I've found one RFC module that seems to be available on every SAP system ("SD_RFC_CUSTOMER_GET") and I wonder if there are any more of these standard RFC modules that I can use. I can easily query the SAP system for all SAP-Queries that are available but I just cannot find a way to do this with RFC modules or tables. I cannot even find a list of these RFC modules after searching on Google for hours...
so am I missing something or is this just impossible?
Thanks for any help in advance.
For "official" RFC modules, use the transaction BAPI. These modules are well-documented and released for customer and partner use - meaning that you'll get support if something goes wrong. For everything else, you're free to use whatever you find, but don't bother to ask SAP for support, they won't help you.
If you want to look for stuff inside the SAP system, use transaction SE80 (choose "Repository Infosystem" in the left section). Note that on many selection screens, you can expand the parameters. This will show a parameter to search for RFC modules only.
As for tables - you might be interested in the RPY_* function modules as well as the (in)famous RFC_READ_TABLE...
with transaction SE84 you can query for RFC modules/programs/... by their name, description and so on.
for database tables you can for example use the transaction SE11.
One trick I found quick useful is to search for functions with sorting on the number of times the function is used in the SAP code. Functions used more times are more likely to be more reusable and also more likely to have less bugs. Check this post on how to search that way: http://apolemia.blogspot.com/2010/02/finding-functions-in-sap.html
RFC_GROUP_SEARCH to search available RFC groups.
RFC_FUNCTION_SEARCH to search available RFCs, with optional RFC group filter.
SWO_QUERY_API_METHODS to query BAPI business objects and associated methods.
Try them out in SAP Logon GUI using SE37 Function Builder, assuming you will next want to program them using the SAP .NET Connector. Note that the Function Builder itself has RFC function search screens built-in.