ROOSOURCE
ROOSOURCE
The table ROOSOURCE has information on the datasources. You can view this by issuing
a SE16 (or SE11) and looking up ROOSOURCE. (I am new to the world of SAP BI. I am
posting my learning here.)
Typically, it holds the name of the Datasource, its type (attribute, text or hierarchy), the
extract method, extract structure, etc.
Instead of me writing about something that I am not good at (yet ..), let me point you
to a link that explains ROOSOURCE. Please see the explanation here.
In the middle of the night, lying on the bed, I am woken up by feeble voices whispering “Can
someone tell us how to locate an R/3 table-field mapped to an infoobject in my (std) transfer
structure?”.
To be honest I have no haunted bedroom and I usually sleep the sleep of the just, but, speaking
seriously, if I have to think to one of the most unanswered post in BI Forums, certainly my
thought goes to the question “how can I find the R/3 source of a specific object in BW ?!”.
Sometimes some good Samaritan (as in this thread) arms himself with patience and tries to give
a good answer.
But often this is not so easy. And just think SAP invests a lot of efforts to give as many info as
possible...but, as usual, a serious chef rarely discloses his secret ingredient !!!
About HOW SAP Service Marketplace is the best source in which news, product documentation,
technology articles and many others useful things are featured.
Often not holden in due consideration, there are also the SAP Best Practices for Business
Intelligence, that contain the documentation for the installation and configuration of solutions
based on a lot of ‘functional’ scenarios.
Just put it to the test !
(Sure, if you want to know WHAT and HOW all in one go, you have to come to SDN...but, if you
are here, maybe you already know that and agree with me !!!)
If you have correctly understood what you have to do and how, you arrived at a good point, but
now some philosophical question can arise.
Indeed, especially if the number/value you see arriving in your BW seems not so familiar, you can
wonder:...
But, unfortunately, not always we can thank our lucky stars and, sometimes, we can also find,
after a similar search, not so intelligible informations...
As you can see from the above picture, in this case the origin table information has been
replaced by a mysterious source...and I challenge anyone to try to understand from where (in
R/3) this data comes (if you don’t have any experience in FI-AA, clearly...).
EVERYTHING IN A TABLE: ROOSOURCE WORLD
In the underground world of BW-worms, there is a table that is a real source of useful
information, a sort of X-ray of every available datasource in the system: ROOSOURCE table.
Let’s start to have a quick look to it.
Just knowing what is the extraction method of a datasource and our search of the origins
achieves a vast improvement!
A datasource can extract data in several ways:
'V': over a transparent table or a database view.
'D': using the fixed values of a domain (useful for very small amounts of data).
'F1': using a function module, which distributes the data in packages by itself (useful for large
quantities of data).
'F2': as above, using a function module, but with a more simplified interface compared to 'F1'
(see documentation for data element ROFNAME_S in SE11 for more details).
'Q': using a functional area of an ABAP query or using an infoset of the infoset query (depending
from the release).
'A': with an append-datasource via BADI.
This field contains, depending on the extraction method, what we need to know (or, at least, the
place where we can look for...) !!!
'V': name of transparent table or database view using which (generic) extraction is to take place.
In this case it’s enough to go to SE16 with this name and the game is over !
'D': name of domain whose texts are to be extracted (as in the picture below for KOART domain,
inside 0ACCT_TYPE_TEXT datasource, via SE11).
'F1': name of function module for extraction. Go to SE37 to check the extraction code (take a
look to a nice template in function group RSAX, FB RSAX_BIW_GET_DATA).
'F2': as above but the template, always in function group RSAX, is FB
RSAX_BIW_GET_DATA_SIMPLE)
'Q': name of functional area or infoset query (look at SQ01 transaction).
'A': DDIC name of append structure for reasons of consistency
Here you will find the name of the structure that will pass data after the extraction and this is
what we see when R/3 data arrives in BW (even if there could be also a userexit in the middle,
the structure of every record will remain the same).
In this case the datasource uses the generic transfer structure to transfer data through the table
parameter e_t_data, typed at runtime. This category includes only datasources generated by the
customer (as in LIS or CO-PA).
This field shows if the datasource supports direct access from a virtual infocube in BW.