How to creat a Data provider based on different fields in SAP BW ?
Hi,
Experts,
There are 20 fields of Plant Maintainace like :
SWERK
BEBER
STORT
TPLNR
EQUNR
INGRP
QMDAT ---peroid
STTXT
QMDAT - Date of Notification
QMNUM
QMTXT
QMART
AUSVN
AUZTV
AUSBS
AUZTB
AUSZT
ERNAM
QMDAB
AUFNR
I want to creat a Report based upon these fields ?
For that I h'v checked the relevant Fields to the existing standard Datasource in Bw side &
Checked cubes created based upon these Datasource in Bw side !
i h'v found some fields are existing different cubes & some are missing .
How to creat a Data provider based on different fields in SAP BW ?
plz suggest !!!!!!!
Thanx,
Asit
Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
Edited by: ASIT_SAP on Jul 15, 2011 12:37 PM
Hi Lee, Please see below..
DECLARE @Machine2 TABLE
DispatchDate DATE
INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
DECLARE @DateFrom DATE
SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
SELECT @DateFrom AS DateFrom
Please mark as answer, if this has helped you solve the issue.
Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.
Similar Messages
-
How to print the data if we take different fields from diffrent tables
Hi ABAPers,
I take diff fields from 3 tables. Those are
these fields from EKBE
EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
these fields from EKKO
BUKRS
BSART
WAERS
these field from EKPO
TXZ01
MATNR
MTART
I want to print the data all fields.What logic can i write?
Please help me for this question and i am waiting for your response.
Regards,
Raja Sekhar.Hi,
First you have to fetch data from all the three tables and then consolidate into final table.
In Declaration:
1.Declare Internal Table for EKKO holding:
EBELN
BUKRS
BSART
WAERS
2.Declare Internal Table for EKPO holding:
EBELN
EBELP
TXZ01
MATNR
MTART
3.Declare Internal Table for EKBe holding:
EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
*==> This table has
MANDT
EBELN
EBELP
ZEKKN
VGABE
GJAHR
BELNR
BUZEI
as Primary keys field,you should have values for all the PK aotherwise you will get multiple entries*
4.Declare a Final Internal Table i_final with all the fields you want
EBELN
EBELP
BUKRS
BSART
WAERS
TXZ01
MATNR
MTART
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
Data Fetching
select EBELN
BUKRS
BSART
WAERS
from EKKO
into table i_ekko
where .........<selection criteria>.
if not i_ekko is initial.
select EBELN
EBELP
TXZ01
MATNR
MTART
from EKPO
into table i_ekpo
for all entries in i_ekko
where EBELN = I_EKKO-EBELN
AND ......<If any other selection criteria>.
if not i_ekpo is initial.
select EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
from EKBE
into table i_ekbe
for all entries in i_ekpo
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp
and ..........<If any othet selection criteria>
endif.
endif.
Consolidate
sort i_ekko by ebeln.
sort i_ekpo by ebeln ebelp.
sort i_ekbe by ebeln ebelp.
LOOP AT i_ekbe into wa_ekbe.
read table i_ekko into wa_ekko with key ebeln = wa_ekbe-vbeln binary search.
if sy-subrc = 0.
====>Move all the required firlds from I_EKKO to i_final , like
wa_final-BUKRS = wa_ekko-BUKRS.
endif.
read table i_ekpo into wa_ekpo with key ebeln = wa_ekbe-vbeln
ebelp = wa_ekbe-ebelp binary search.
if sy-subrc = 0.
====>Move all the required firlds from I_EKPO to i_final , like
wa_final-EBELP = wa_ekko-EBELP.
wa_final-TXZ01 = wa_ekko-TXZ01.
endif.
==>Also all the required fields from EKBE to final table, like
wa_final-BELNR = wa_ekbe-BELNR.
endloop. -
How to create a new table based out of old data rows
Hi All,
How to create a new table based out of old data rows. Also how can we find out the DBF for different users in a database?
SaqibNot very clear what you need. I'll try to interpret...
How to create a new table based out of old data rowsIf this means how to create a table from an existing one, then you can do :
SQL> create table <new table> as select * from <old table>;
if you need a subset of rows you can add a where clause.
how can we find out the DBF for different users in a database?Here I need some more clarification. What do you mean exactly ? -
Issue while creating Virtual provider based on HANA Model in SAP BI
Dear Experts,
I try to create a Virtual Provider based on HANA Model. However receive below error "Unable to find SAP HANA information model".
I tried to assign the appropriate package and HANA model while creation of Virtual provider in SAP BI using RSA1 Transaction.
Do I need to enable any services/ settings, so that I can able to use HANA Models in SAP BI?
Do I required any specific authorizations either from BI or HANA side?
Could some one kindly help to resolve this issue.
Thanks,
KhaderHi Srinivasan,
Thank you for your response.
I have already gone through the content provided via above links.
However I face issue while activating the virutual provider with warning message"Unable to find SAP HANA information model". Due to which I am not able to see any data from Virtual Provider in BW.
Do we need to have any special access/ role in BW or HANA system in order to consume HANA models in BW (Vitual Provider in this case)?
I am trying to consume HANA Models in BW for the first time.
So any more clues can be helpful.
Thanks,
Khader -
How we create new data base in oracle 10g express edition
hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition
Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
Using SYS or system accounts for creating user accounts.
Syntax to create a user:
create user Your_user
IDENTIFIED BY password
default tablespace users;
grant connect, resources to your_user;
Edited by: rober584812 on Jun 25, 2010 9:03 PM -
How to create a Date or time field that automatically saves current date or time?
hello,
i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
also want to how to stop user to give input in Date/Time field
currently im putting a Date field but it is accepting user input.
hoping for quick response
Thanks in advance!You can place the below code in the initialize event of the field to display the current date and time.
Set the language to FormCalc.
You can play around the formats to get the desired format of date and time.
if($.rawValue eq null or $.rawValue eq "") then
$.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
endif
You can not restrict the input area in Date time field instead you can validate the input while existing the field.
(OR) set the field to either readOnly or protected mode.
Thanks
Srini -
How to create Hive data source?!!
I am trying to create hive data source connection.
I am stack on creating connection profile and configuring "Generic JDBC Driver" .. after i added drivers i keep getting " Required property in driver definition missing value: Driver Class." error.
I am adding a screenshot with the list of drivers.Kevin
In Jdbc node create a Jdbc Connection Pool with the
Url=jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds
and driver=com.borland.datastore.jdbc.DataStoreDriver. Create a Datasource
using a Jndi & Jdbc Connection Pool.
Deepak
Kevin Gao wrote:
in jbuilder6 samples instructions,there is instruction as:
Create a WebLogic data source named ESiteSource. You will need to check
your WebLogic documentation on how to create a data source. You will need
the following settings
1.The database URL should be of the following format:
jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds, ensuring that you
have the correct path to esite.jds.
2.The driver will be com.borland.datastore.jdbc.DataStoreDriver.
3.This JDataStore is not password protected, but you must still specify a
user; any user will do, e.g., user=Frank;password=
but how to create a data source in weblogic?
help me please!
thanks in advance!
Kevin Gao
EMAIL:[email protected] -
How to create JNDI data source name in Tomcat 6.0.18 server?
Hai,
How to create JNDI data source name in Tomcat 6.0.18 server?
Regards,
MariMuthu.A[http://google.com/search?q=jndi+site:tomcat.apache.org+6.0]
-
How to Create a new column from two different result sets
How to Create a new column from two different result sets, both the result set uses the different date dimensions.
i got solutions for this is apply filters in column formula it self, based on the requirement.
-
How Production Order finish date and time is being comptued by SAP?
Hello Expert,
How Production Order finish date and time is being comptued by SAP? for example, we create a Production Order via CO01, the basic start date is 29.09.2008 and time is 04:00 it gives us basic finish date is 29.09.2008 and time is 13:28.
how does SAP compute the time 13:28 as it finished time
Please explain me briefly.
Thanks
RyanHello Guys,
When we create Production Order in R/3 the time is calculated by routing but it is extended at SetUp machine time. It is not correct?. SetUp imachines time used only for first Production Order for the same product and it is plan manually, for others Production Order we need calculate time for production without SetUp machine time being pick up to compute finish time. how could we achieve this? only those Machine time will be check.
thanks -
How to create a custom function module with the records in SAP R/3?
Hi All,
How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
Regards
SaraHi
goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Look at the below SAP HELP links, These links will show you the way to create a Function Module
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm -
How to upload the data from excel(3 tabs) file to sap environment
Hi all,
This is Mahesh.
how to upload the data from excel(3 tabs) file to sap environment (internal tables) while doing bdc.Hi,
The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' makes it possible to load a worksheet into an internal table in ABAP.
However, if you want to get the data from several worksheets, I think you are stuck with OLE access to your Excel Workbook...
You can find a solution for 2 worksheets in this post :
TO UPLOAD DATA FROM 2 EXCEL SHEETS INTO TWO INTERNAL TABLES
I think you can easily modify it to handle any number of worksheets.
Hope it helps !
Best regards,
Guillaume -
How to create the Business System both sender and receiver in SAP XI / PI
Dear All
kindly let me know how to create the Business System both sender and receiver in SAP XI / PI
Regards
BlueHi,
If by any chance you are not able to find these....
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/workingwithSystemLandscapeDirectory+%28SLD%29&
http://help.sap.com/saphelp_nw04s/helpdata/en/24/8fa93e08503614e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/f1/92b248db68409487661ff13239127d/content.htm
Regds,
Pinangshuk. -
How to create generic data source in R/3
hi experts !
i m a beginner in BIW.
i wan to create a generic data source in my R/3 system. since there exists a Z table which i want to use in designing an infocube in my BI system. please someone help me how should i begin with doing it ?
thanx in advance
akankshaAkanksha,
Here am providing you with a scenario when we go for Generic Datasource and also the steps to create a Generioc DS:
We can create datasource based on View, Table, SAP Query or ABAP Query, and Function Module.
Scenario for Generic Datasource.
One of the Manager who using reports wanted to have the report which will him the list customers and sales document numbers created by them.
In this case we can use of VIEW where kna1 and vbak tables were combined in the View definition or else u can say that ABAPer had given the required view.
How to create the generic Datasource.
Goto RS02, select the Transactional Data, it will takes us to the next screen, where we need to give application component name say SD (01), then give the name of the Datasource that u wanted, select view and give the view name. Below that field we need give 3 descriptions. Then save and activate the datasource.
Go back to the RSA6 screen transport it to BW system. Replicate the DS.
Hope it helps..
Assign Points if it helps
Regards,
Gattu -
How to create new data class in DDIC?
Hi Friends,
I want to store 5 custom tables into a particular Table space.
For that i want to creat a new Dataclass and which has to be mapped to a new table space.
So what i need is.
1. How to create a new Customer data class apart from USER1 and USER that is available?
2. How to map the newly created Dataclass to a Table space?
Purpose: DBA wants to maintain these tables separately so that this won't disturb other data.
SAP VERSION - 4.7EE - AIX - DB2
Any help on this would be highly appreciated.
Regards,
Simhayou can use either usr or usr1 for your development ... because
read the belo statment provided by SAP
The data class defines the physical area of the database (for ORACLE the TABLESPACE) in which your table is logically stored. If you choose a data class correctly, your table will automatically be assigned to the correct area when it is created on the database.
The most important data classes are (other than the system data):
APPL0 Master data
APPL1 Transaction data
APPL2 Organizational and customizing data
Master data is data which is frequently read, but rarely updated. Transaction data is data which is frequently updated. Organizational und customizing data is data which is defined when the system is initialized and then rarely changed.
There are two more data classes available, USR and USR1. These are reserved for user developments. The tables assigned to these data classes are stored in a tablespace for user developments.
Note:The data class only has an effect on table storage for the database systems ORACLE and INFORMIX
Maybe you are looking for
-
ERecruitment external candidate registration pages goes Blank after SPS7
HI All , We have recently upgraded our system from NW 701 SPS3 to SPS7 . Information : Our eRecruitment setup is , External candidates will login through a different server and we have eRecruiting integrated with the ERP but with the frontend for the
-
Helo, Is it possible to input an exception into both readValue methods to check for incorrect numbers? For example, if I were to enter five instead of 5, is there code that will allow a message box to be output? Below is the code within which are the
-
Ichat can receive invitation but no jabber list etc. outgoing
In two different managed accounts (parental controls, but no ichat or email limited), when I open ichat, it logs in (google) fine, and on another computer shows 'available', but most menu options are grayed out, and the 'show jabber list' option does
-
Dialog Box: Select the network you want to join...
I just installed updates from mac that required restart. Upon restart I have a screen asking me to select the network I want to join with the following choices. ANDM2 (with a lock beside it), fortress1 (w/lock beside it) , linksys and XVU83 (with loc
-
GetElementById not working for h:commandButton
Hey I have the flowing code in my jspx region: <script type="text/javascript"> window.onbeforeunload=function(){ if (window.event.clientY < 0 && (window.event.clientX > (document.documentElement.clientWidth - 5) || window.event.clientX < 15) ) {