Create generic datasource by using view
Iu2019ve to create generic datasource by using view.
View has to be build on top of two tables which have key relationship. While creating it asking type of view, I mean database view, projection view, maintenance view like that.
Which type of view is best one?
Advance thank you very much
Hi,
for understanding all view type just refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm.
and for our purpose as already said use database view.
Regards,
Similar Messages
-
Dear All,
I have created a view on following tables MARA, AFKO and MSEG. The Table/Join condition is as follow:
AFKO--AUFNR = MSEG--AUFNR
AFKO--PLNBEZ = MARA--MATNR
I have included all the fields from MSEG and other all fields from MARA and AFKO. The view is created successfully and contents/records are also being fetched/displayed from this view.
See screen shot as well:
But when I go to RSO2 to create a "Generic DataSource" on this view. I get a series of warning messages and then error message "Invalid Extract Structure" and therefore I'm unable to create my DataSource on this view. See below screen shots of warning and error messages.
Other warning messages are as follow:
Field GAMNG with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
Field PLSVB with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
Field PLSVN with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
Field LODIV with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
Following is the screen shot of error message:
1. How can I get rid of this error message and be able to create my "Generic DataSource" on top of this "View"?
2. What should I do to resolve the above warning and error messages?
I will appreciate your reply.
Many thanks!
Tariq AshrafHi Vipul,
as you can find in CKIS table, the reference feild for value feild "WERTN" is missing.
As per the table the reference feild is HWAER. This should have been used in place of FWAER.
Try mentioning this in your view and this should work.
Also I am a little enthusiastic to know, what are you trying to get from the datasource.
If you are trying to get the cost estimate of multi level BOM, not (just one child level), then this approach may not work.
There is a BAPI that gives such itemization split. Just FYI, in case you are looking for multi level explosion.
"BAPI_COSTESTIMATE_ITEMIZATION".
Hope this helps.
Naveen.A -
Implementing Outer join Views in creating Generic datasource
Guys,
Iam bringing the Purchase document level data from R/3 into BW.I have couple
of other Ztables also from which i need to collect the information.So iam going to create a generic datasource based on the view.
In case of Database view it is taking inner join, which is undesirable since the
final data coming out of view will be reduced as we join the main base tables with ztables..Since Ztables may have very less data.And inner join gives complete information only if all tables contain the information given out in the view output.
One option is to use maintainance view which uses outer join. Is it recommendable
to use maintainance view in case of basing the Generic datasources on the view.
Please inform me if any of you have done generic datasources using database view.Any idea in this regard is welcome.Hi,
I think you may have to develop your Generic Datasorce with "Function Module" since there is no common field.
Regards,
Suman -
Creating generic datasource using function module in R/3 4.6c
Hi,
I am not able to see the option (in TC RSO2) to create generic datasource using function module in R/3 4.6c. Is there any special plug in or some SAP Note to be applied to get the option ?
Waiting for a quick response.
Thanks and Regards,
DeepakHi Sat,
Thanks for the reply.
I know that creating generic datasource from function module is available in R/3 4.7.
In 4.6c version there are only two options available. They are Extraction from DB View and Extraction from SAP Query.
The third option i.e. Extraction from Function Module is not available in 4.6c. I wanted to know if there is any plugin that needs to be installed to get this option.
Thanks and Regards,
Deepak -
Can anybody explain me creating Generic Datasource using Function module?
Hi,
can anybody explain me creating Generic Datasource using Function module?
Thax in advance,
Ravi.Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
1. Create s structure with the fields that you need from the 4 tables . Activate.
2. Goto SE 80 Select The Function Group , Copy , Select the Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. SE37 ->Your Function module name -> Change , In table tab give your structure
name by deleting the associated type given in " E_T_DATA " .
4. Now select source code and Do the coding . Give Data source name in Coding .
In your case you have to take data from more that 1 table .
5. Activate the Function Group .
6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
7. RSA3 -> Give data source name and Check for the Records .
Creation of custom datasource. (Using function module)
<b>is an example</b>
1.Create a function group .
2. Structure ZTEST123
ZMATNR MATNR CHAR 18 0 Material Number
ZMTART MTART CHAR 4 0 Material type
ZMBRSH MBRSH CHAR 1 0 Industry sector
ZMATKL MATKL CHAR 9 0 Material group
ZBISMT BISMT CHAR 18 0 Old material number
ZMAKTX MAKTX CHAR 40 0 Material description
3. Create function module (i.e. ZTEST .) .
FM - YMARA_DATA_TRNS
FUNCTION YMARA_DATA_TRNS.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZTEST123 OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
data : ZTEST123 type ZTEST123 occurs 0 with header line.
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
S_COUNTER_DATAPAKID LIKE SY-TABIX.
DATA: begin of t_mara occurs 0,
ZMATNR type MATNR,
ZMTART type MTART,
ZMBRSH type MBRSH,
ZMATKL type MATKL,
ZBISMT type BISMT,
end of t_mara.
DATA: begin of t_makt occurs 0,
ZMATNR type MATNR,
ZMAKTX type MAKTX,
end of t_makt.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZZMARA_DATA'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
select MATNR
MTART
MBRSH
MATKL
BISMT
from mara up to 10 rows
into table t_mara.
if not t_mara[] is initial.
select MATNR
maktx
from makt
into table t_makt
for all entries in t_mara
where matnr = t_mara-zmatnr.
endif.
loop at t_mara.
read table t_makt with key zmatnr = t_mara-zmatnr.
ZTEST123-zmatnr = t_mara-zmatnr.
ZTEST123-ZMTART = t_mara-ZMTART.
ZTEST123-ZBISMT = t_mara-ZBISMT.
ZTEST123-ZMBRSH = t_mara-ZMBRSH.
ZTEST123-ZMATKL = t_mara-ZMATKL.
ZTEST123-zmaktx = t_makt-zmaktx.
append ZTEST123.
clear ZTEST123.
endloop.
clear E_T_DATA.
refresh E_T_DATA.
E_T_DATA[] = ZTEST123[].
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extractio
ENDFUNCTION.
3. Create the data source using transaction (RSO2).
4. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter E_T_DATA.
5. Test the datasource in R/3 using transaction RSA3.
6. Transfer the data source to BW System and replicate it in the BW-System. -
Error while creating Generic Datasource
Hi,
I try to create generic datasource using function module in RSO2, it is giving the following errors and the datasource is not creating.
"Units field WAERK for field TOT_REV of DataSource ZIPO_TRANSCATION is hidden Message no. R8147"
"Units field WAERK for field EXP_REV of DataSource ZIPO_TRANSCATION is hidden Message no. R8147"
TOT_REV and EXP_REV fileds datatype is CURR.
Fuction Module is working fine. Please give me any inputs, it is very urgent.
Best Regards,
SGK.hi,
let WAERS field be present in your structure defn
In the Currency/Quantity fields tab of your extract structure give the refernce of the same structure and same field
Regards,
Sampat -
Problem while creating generic DataSource using table
Hello all,
I am creating a generic DataSource using table EKBE. It is giving error " invalid extract structure template EKBE ". The reason is " The system tried to generate an extract structure with the template structure EKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table (EKPO)".
Could you suggest how to approach?
Thanks,
Zak.hi zahir,
In your case the reference table used for quantity is ekko and the field is meins.
and the reference table used for currency is ekpo and the field is waers.
So you are not taking data from a single table. so you better create a view give the table name ekbe and select the corresponding fields you want.
Add MEINS and WAERS and as well your required field in the view for example Zview and for Quantity field mention Zview as reference table and reference field as MEINS same for WAERS.
try this if it doent work, tell me what error you are facing.
with regards!
ramesh -
'table does not exist' when creating generic datasource
I went to SBIW->Business Content DataSources->Transfer Business Content DataSources-chose "content delta". it said 'comparison bct <-> cust version ' then it counted thru several objects for a few minutes and finished with no warnings.
then I selected each datasource under co-om-cca and activated those with no problems.
problem: now when i try to create came generic datasource using co-om-cca application component i get mssg when saving 'the specified table does not exist'...so now it isn't even letting me create a datasource at all using a standard application component either.
I have been having many problems with creating datasources and using application components and this is why I did the first paragraph because I don't know what else to try.
Please help, thanks.I have answered my own question. I wasn't entering the view/table and it was my own complete oversight.
-
Error while creating Generic data source using FM
Hi Experts,
I try to create a generic data source using the Function Module via the transaction RSO2. I got the following error messages.
" Das Einheitenfeld CURR des Feldes ZPKZA1 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
" Das Einheitenfeld CURR des Feldes ZPKZA2 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
" Das Einheitenfeld CURR des Feldes ZPKZA10 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
"The unit field CURR of the field ZPKZA1 of the DATA SOURCE ZBWN_DS_POLPOSP is not visible/ stopped/ hide".
for all 10 fields of type CURR.
How shall i handle this issue..........any suggestions please........
thanks in advance
cheers
sailekhaHi,
Are your CURR fields refereded to a currency field of your structure?? Maybe the problem is that the field containing the currency is refered to other table/structure and it has to be one of your structure fields.
Hope this helps,
Regards,
Carlos. -
Creat generic datasource"customising undependent of mandant is inadmissibl"
Hello,
I am creating a generic datasource through for a SAP (MCSI) table:
1. After entering the DS name and descriptions and table name, by saving i recieve the error message: "repository change: customising undependent of mandant is inadmissible". With this error, i cannot save the datasource.
2. By clicking on the delta generic: How can i configure the fields (the table is for sales order):
- Field: Which field can i choose: For example there are the fields "data analysis date, data analysis month, .. and ...
- Do i have to choose "Stamp or kalender" radio button and for which reason
- The intervalle (smaller and higher value)
3. The datasource is to transfer data in BI.
Thanks
Ar.Hi
I hope your first problem is solved ( because of server used QA not DEV)
2. By clicking on the delta generic: How can i configure the fields (the table is for sales order):
- Field: Which field can i choose: For example there are the fields "data analysis date, data analysis month, .. and ...
Ans : Its depends upon which date you business want your delta shuld work, click the F4 help and choose from drop down table.
- Do i have to choose "Stamp or kalender" radio button and for which reason
Again for Transactional data we used TIMESTAMP and for Master data it should be CALENDERDAY.
- The intervalle (smaller and higher value)
For TIMESTAMP +/-30 mins and for CALENDERDAY +/- 2 Days.
3. The datasource is to transfer data in BI.
Yes, Many std. datasources are provided by SAP which also we can modify by doing enhancement.
Also we can write our own DS as per need and requirement.
Thank-You.
Regards,
Vinod. -
Hi Experts,
while i have created a generic datasource from RSO2 and when i am trying to check data for that datasource it is giving that that datasource is not there in the source system.
can any pls explain how to solve this and when i am creating datasource i could not able to give the specific application for the data source. where should we assign source system for this generic datasource.
thans,
sreeHi,
Which type of data source you have created.are you able to see your data source in RSA6??
If you are able to see it there then only you can use RSO2 for it.
Try RSA2 for the data source and see if it shows you or not.
You have to put in transaction or master or text and then check in RSO2.
Generally the data source is assigend to the area which it belongs..like if the datsource is related to SD module then create it in the SD application area.You can also create a Z apllication area for generic data source and assign them to the newly created data source...but still should prefer to create in the area related to the data source...and replicate them to BW.
Thanks
Ajeet -
BI : Error while creating generic datasource
Hi Experts,
While creating the generic DS , It is giving the me the below error:
:Invalid extract structure template ZFI_AGED_TR_BAL of DataSource ZFI_AGED_BALANCE". Kindly advise.
thanks & regards,
M.SHi ,
I am creating Generic DS on Extract stucutre ZFI_AGED_TR_BAL.
It is containing the below fields as currency fields which is referrering to table T001.Kindly advise how should i include the currency field.
Field,Data Element,Datatype,Ref table,ref field , description
BUCK2,DMBTR,CURR,T001,WAERS,Amount in Local Currency
Thanks & regards,
M.S -
Error message R8281 after creating generic datasource
Hi Guys,
I created a datasource, and when i go to RSA6 and run a check it gives me an error message: R8281 . Does anyone know how i can rectify this?
ThanksHi, this is what i got in the error Log: can anyone tell me how to resolve this please?
You tried to assign a DataSource to the application component NEW_HIER_ROOT. This application component is, however, not entered in the RODSAPPL table as an application component
System response
The DataSource is saved, but is not visible in BW under the node NODESNOTCONNECTED.
Procedure
You do not have the option yet to transfer the application component hierarchy from the Content.
You transfer the hierarchy with Business Content. -
View on EKBE for creating Generic Datasource
Hi,
I want to create a Generic data source on Table EKBE.But while creating view I am facing problem with reference fields
of table T001 .I want to include this table in join condition but there is no common field between EKBE and T001.
How to resolve this issue ?
Edited by: dharmatejandt on Jun 11, 2011 8:47 AMHi,
I think you may have to develop your Generic Datasorce with "Function Module" since there is no common field.
Regards,
Suman -
Hello SDNERS,
I am creating Generic Datasource by using Table MCHB, While creating I am getting error :-
This operation failed, because the template structure quantity fields or currency fields, for example, field CLABS refer to a different table.
CLABS refering table MARA, So do i need to create views using MCHB & MARA,
kindly suggest
Thanks
ShaliniHi,
Yes you have to create view for the two tables, because the quantity and reference fields you mentioned is from two different tables.
Regards,
Marasa.
Maybe you are looking for
-
B2B in PI 7.0 - EDIFACT format to IDOC and vice versa
We need to establish B2B scenario in PI 7.0 IDOC to EDIFACT and EDIFACT to IDOC. Please let me know the solution without using any third party adapter like seeburger. Any example scenario of the same case will be helpful
-
On Final Cut Pro X 10.0.7, my export button is greyed out, so I can't export any of my projects. How can I fix this?
-
I am pretty new at this and I am making some forms that need to be secure. I was wanting to know how to go about it.
-
What are the best settings to use in the export manager when exporting from Aperture 3.5 to Photoshop cc for editing? Should I use tiff or psd? 8bit or 16bit? How many dpi?
-
Getting AbstractMethodError exception
hola.... i'm running this on a unix server with no display attached to it, i.e. headless server. i have Xvfb running as well. i have set he display variable in the script of the username under which the app server runs. did a whole lot of R&D and sti