Bring Data From R/3 To BW
Hi All,
I have Customer PUrchase Order Type(ZSDBSARK) in ZSALSCNT Master data,i have added ZSALSCNT to cube then to Multi Provider,on report the Customer Purchase Order Type data not showing.
I have checked in R/3.
This is the Data Source for ZSALSCNT ( ZSM_EXTRACT_CONTRACT_STATUS)
FM : Z_EXTRACT_CONTRACT_STATUS
Extract Structure : ZSTR_CONTRACT_STATUS
I have to add BSARK in Extract Structure ZSTR_CONTRACT_STATUS
This should be selected from table VBKD for the Contract
number.
SELECT SINGLE BSARK
INTO extractor_field
FROM VBKD
WHERE VBELN = VEBLN FROM VBAK.
where should i place the above code is it in function module ????
and what is the process to add the field BSARK to EXtract structure
and what is the process to get THE data into BW.please suggest ASAP.
Thanks
Karuna
Hi,
I). you can place the code in functional module(Z_EXTRACT_CONTRACT_STATUS) by using SE37.
II). process to add the field BSARK to EXtract structure.
1. Go to RSA6.
2. Select the Data Source ( ZSM_EXTRACT_CONTRACT_STATUS)
3. Select display Data Source (Ctr+F2).
4. Double click on the Extract structure.
5. Click on the Append Structure.
6. Add the required field(ZSALSCNT).
7. Activate the Append Structure.
8. Go to CMOD.Give the Project, select Display.
9. Click on ZXRSAU01.
10.then you have the bellow exits:
a).Transaction data EXIT_SAPLRSAP_001
b).Master data attributes EXIT_SAPLRSAP_002
c).Master data texts EXIT_SAPLRSAP_003
d).Master data hierarchies EXIT_SAPLRSAP_004
11. select Transaction Data EXIT,then you have to write the ABAP CODE.
12. save and activate.
13. check the data in RSA3.
15) Replicate the data source, select the source system, right click and select 'Replicate DataSources'
15.. Logon to transaction RSA1,
16..Select the InfoProvider at right hand side panel and select 'Create InfoArea;
17) Select the InfoArea and right click, select 'Create InfoCube'.
18) Enter name and description of the InfoCube and press 'Create'.
19) To create new dimensions, right click 'Dimensions' folder and press 'Create New Dimensions'.
20) Select 'Time' dimension and right click to add time characteristics '0CALMONTH'
21) Similarly, add Key Figure to 'Key Figure' folder by right clicking
20) activate the InfoCube.
21) Select the InfoCube and right click to 'Create Transformation'
22) Select Source and Target for Transformation.
23) System will propose the mapping, incase system does not propose, select the InfoObject and drop for mapping.
24) For 0CALMONTH, a constant will be used in this case, define the constant
25) After defining, press 'Transfer Values'.
26) Check and activate the transformation.
27) Now define, Data Transfer Process.
28) Enter the source of DTP
29) Activate the DTP after maintaing the required settings
30) Create a InfoPackage by right clicking the DataSource
31) Execute the InfoPackage to load data into PSA
32) Check the data load in PSA by double clicking the DataSource
33) Execute the DTP
34) Check the data in InfoCube.
Regards,
Suman.
Similar Messages
-
Bring data from one database to another using a DBASE link
I usually bring data using a database link
something like
Insert in table
colon 1
colon 1
colon 3
select
colon 1
colon 2
colon 2
from table@nameLINK.
I
The tables have the same structure the tables in the database where I am runing the script are empty
I wonder if it is a way to do it faster (not a dba) without wriiting a script with the insert, some of the tables have a lot columns
thank youUse NOLOGGING for the table and the APPEND hint for the query. This will eliminate the generation of redo and be faster.
ALTER TABLE myTable NOLOGGING;
Insert /*+ APPEND */ into myTable
colon 1
colon 1
colon 3
select
colon 1
colon 2
colon 2
from table@nameLINK;
ALTER TABLE myTable LOGGING; -- if you want to turn logging back onIf this is a table you will truncate and load each day just leave the table as NOLOGGING. -
How to bring data from Oracle based Non SAP System to SAP
Dear Friends,
I have two servers, one is SAP and the other one is Non SAP with Oracle in backend. Please suggest how to take data from the NonSAP server to SAP server or how to connect the two.
Please send the step-by-step configuration if possible.
Thanks in advance,
Alok.Hi
Step 1: Create an entry for the External database in DBCON table using Trxn: DBCA.
Table: DBCON (Description of Database Connections)
Field Name Description Value (For: E.g.:)
CON_NAME Logical name for a database connection RAJ
DBMS Database system MSS
USER_NAME Database user <username>
PASSWORD Password for setting up the connection <pwd>/<pwd>
CON_ENV Database-specific information MSSQL_SERVER=depotserver MSSQL_DBNAME=HOF_INDORE
DB_RECO
Step 2: Now you can write code to connect to the external database
Your Sample code can be something like this
FUNCTION-POOL z_houston. "MESSAGE-ID ..
DATA: BEGIN OF wa,
c_locid(3),
c_locname(50),
c_locstate(5),
END OF wa.
FUNCTION z_houston_connect.
""Local interface:
EXEC SQL.
CONNECT TO 'RAJ' AS 'V'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'V'
ENDEXEC.
*- Get the data from MS-SQL Server
EXEC SQL.
open C1 for
select
loc_id,
loc_name,
loc_state
from ho_loc_mast
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_locstate
ENDEXEC.
IF sy-subrc = 0.
PERFORM loop_output.
ELSE.
EXIT.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE C1
ENDEXEC.
ENDFUNCTION.
*& Form LOOP_OUTPUT
Output
FORM loop_output .
WRITE: /5 wa-c_locid, 10 wa-c_locname, 65 wa-c_locstate.
CLEAR wa.
ENDFORM. " LOOP_OUTPUT
Regards
Raj -
How to bring data from 3 different internal table to one
hii all,
i have 3 internal table ls_mat,which has around 20 fields,it_stpo,which has 3 fields,and it_mast,i need to bring all these 3 table data in one tabel...how do i do...plzz help...Hi ,
Does this internal table have any fields in common in all the three.
If yes , then loop ls_mat
Declare a type will all the fields and create a structure and internal table with that type (for ex lx_final and lt_final respectively)
Loop at ls_mat into lx_mat.
1.copy all the fields of lx_mat to respective lx_final.
2.read table it_stpo into lx_stpo with key field = lx_mat-field.
3.Copy all fields of lx_stpo to respective lx_final.
4. read table it_mast into lx_mast with key field = lx_mat-field.
5. copy all fields of lx_mast to respective lx_final.
6. now append lx_final to lt_final.
Endloop.
now you can get all values inside lt_final.
Regards,
sivaganesh -
Options to bring data from Oracle
I need to do continuous data updates from Oracle to my SQL 2008. What are my options except linked servers. Thanks for your help.
I can think of Incremental loads via SSIS.
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP] -
Error in SP2013 when a custom .wsp tries to bring data from database
Hi All, i have a very particular problem with a .wsp. I ´ve developed a webpart to search data on a MySQL database.
The .wsp worked fine until i realized that different instances of the webpart where sharing the custom properties. The problem was that those properties where developed like this:
private static string dataBase;
[WebBrowsable(true),
WebDisplayName("Database"),
WebDescription("Database"),
Personalizable(PersonalizationScope.Shared),
Category("DB Connection")]
public string _dataBase
get { return dataBase; }
set { dataBase = value; }
And the answer was declaring those properties like this:
[WebBrowsable(true),
WebDisplayName("Database"),
WebDescription("Database"),
Personalizable(PersonalizationScope.Shared),
Category("DB Connection")]
public string dataBase
get;
set;
But like this, when the webpart try to read from the database, it gives an error in the Sharepoint site. The error doesn´t say anything important, and in the errors log it says that the database doesn´t exists which isn´t true.
The connection is made successfully to the database, but when i try to define a datareader occurs the error. The line when this happens:
MySqlDataReader dataReaderDB = commandByDateDB.ExecuteReader();
ADDITIONAL DATA:
If the connections variables are hardcoded as private
private string dataBase = "mydatabase";
the webpart works.
Another data is that i´ve two servers with SP2013, one for development with the Visual Studio 2012 installed, and another for testing, without Visual Studio 2012. The problem ONLY occurs on the testing server, and i cant install VS2012 on the testing server
to debug the error (due to administration decisions)
Any help to give an end to this problem will be great.
THANKS IN ADVANCEProblem solved changing the MySQL Connector .NET from version 5.0.9 to 6.6.6 or higher.
-
How to bring data from arrays into xy-graph?
Hello,
i have some data which is currently stored in two arrays. One array with values and another array with timestamps.
Now my questions is how can i bring/convert these into the format of XY-graph?
Thanks for help.Hi One,
- Why do you use a InsertIntoArray when you want to append new plots to an array of plots? Use BuildArray!
- Why do you initialize your shift register to already contain (atleast) one plot?
- Why do you use a shift register at all? Why not rely on the autoindexing output tunnel? 3 iterations will yield 3 plots easily…
- Why don't you clean up your VI before uploading?
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Report question: how to use external table to bring data from excel file?
i need to import excel data into oracle report, how to do that? thanks.
Hi... What is the error message you get when using external tables?
You must create a control center connection in the Connection Explorer.
I recommend you read this:
http://download-east.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/toc.htm
Look for the following sections:
- Using External Tables (and the "External Tables versus Flat File Operators" sub section)
- About Flat File Modules
- Chapter 16, Deploying Target Systems
Regards,
Marcos -
FMS in Batch field to bring data from IGN1 (Goods Receipt)
Dear all
I'm using B1 8.8 PL16.
I need to take some information in Goods Receipt lines in to the batch information. I tried the query $[$30.10.0] to do the FMS in a field of Batchs data. The query works if is in a goods receipt line but not in the field of bachs lines.
Kind Regards,
MargaridaDear Margarida,
The $ variable is only available to the current form. When you on the batch form, Goods Receipt line variable will not be available.
Thanks,
Gordon -
BAPI Call, in oder to bring data?
Hello Friends,
I am facing problem in oder to bring data from SAP system. Actually I am calling a BAPI "BAPI_DEBTOR_GETDETAIL" to show the details of the debtor. Here is the code,
JCO.Repository repository = new JCO.Repository("call" , mConnection);
IFunctionTemplate template = repository.getFunctionTemplate("BAPI_DEBTOR_GETDETAIL");
JCO.Function function = template.getFunction();
function.getImportParameterList().setValue(0000000001 , "DEBTORID");
JCO.Structure str = function.getExportParameterList().getStructure("DEBITOR_GENERAL_DETAIL");
System.out.println("NAME: " + str.getString("NAME"));
The customer 1 is already existed in the system. Please advise me if this the right way, to send the parameter with setValue method (cause atleast it did not give me any exception). And also please advise me how to bring the customer information, cause when i write this
System.out.println("NAME: " + str.getString("NAME"));
It does not print any thing!
Many thanks in advance!
Haider Syed.Hello,
the problem is in this line:
function.getImportParameterList().setValue(0000000001 , "DEBTORID");
it should be:
function.getImportParameterList().setValue("0000000001" , "DEBTORID");
if you had read the RETURN Structure you would have get more information
JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
System.out.println("BAPI_DEBTOR_GETDETAIL RETURN: " + ret.getString("MESSAGE"));
If you want more information about the Customer I think it's better to use "BAPI_CUSTOMER_GETDETAIL2".
Reagards
Gregor -
APD read data from Web Analyzer or BEx Analyzer?
Dears,
We are on SAP BI7.0, recently we upgraded to enhancement package1. SInce then, "suppress zeros (all values=0)" setting in the query is not working properly in Web Analyzer while it's working correctly in BEx Analyzer.
We are transfering data from this query to a table in CRM system usin APD. In CRM system, we are getting the output as in web analyzer (it contains zero value records).
My questions are -
1. Do APDs always read values from Web analyzer or we have some setting somewhere? (can we read from BEx Analyzer also?)
2. What exactly is the background process sequence which is followed when an APD is executed?
Your help is really appreciated.
Thanks in advance.When we execute APD , MDX statement generated and which will execute and bring data from the data targets .
Bex Query Conditions will not be applied to the MDX statements, we need to filter those records in the APD process , using ABAP program Process or any other filter process ..
Ravi -
Import data from PostgreSQL to Oracle
Good Afternoon,
I am doing a migration of data from a database PostgreSql for Oracle through a database link and using procedures to read the data and populate the Oracle tables. At the moment I found the following difficulty. What to bring data from one table PostgeSql that has a relationship with pg_largeobject. She returns the following error: ORA-22992 can not use lob locators selected from remote tables
My postgres and structure of the following:
eventresult (id bigint NOT NULL, version bigint NOT NULL, binary_data oid, value numeric (19,2) NOT NULL, event_id bigint NOT NULL, routine_id bigint NOT NULL)
pg_largeobject (oid NOT NULL loid, pageno integer NOT NULL, data bytea)
this relationship in binary_data (eventresult) with loid (pg_largeobject)
My oracle and the following structure:
+"EVENTRESULT" ("ID" NUMBER (19), "VERSION" NUMBER (19) NOT NULL, "BINARY_DATA" BLOB, "VALUE" NUMBER (19, 2) NOT NULL, "event_id" NUMBER (19) NOT NULL, "ROUTINE_ID" NUMBER (19) NOT NULL)+
I created the following procedure to perform the population:
create or replace
THE PROCEDURE ADDEVENTRESULT
count_add INTEGER;
count_add_aud INTEGER;
count_origen INTEGER;
count_origen_aud INTEGER;
BEGIN
SELECT count (*) FROM INTO count_origen "eventresult" @ koala;
SELECT count (*) FROM INTO count_origen_aud "eventresult_aud" @ koala;
SELECT count (*) FROM INTO count_add eventresult;
SELECT count (*) FROM INTO count_add_aud eventresult_aud;
if (count_add <= 0) THEN
Pgsql_eventresult FOR IN (SELECT * FROM "eventresult" ORDER BY @ koala "binary_data")
LOOP
INSERT INTO eventresult (eventresult.id, eventresult.version, eventresult.binary_data, eventresult.event_id, eventresult.routine_id, eventresult.value)
VALUES (pgsql_eventresult. "id", pgsql_eventresult. "Version", pgsql_eventresult. "Binary_data" pgsql_eventresult. "Event_id" pgsql_eventresult. "Routine_id"
pgsql_eventresult. "value");
END LOOP;
SELECT count (*) FROM INTO count_add eventresult;
END IF;
if (count_add_aud <= 0) THEN
Pgsql_eventresult_aud FOR IN (SELECT * FROM "eventresult_aud" @ koala)
LOOP
INSERT INTO eventresult_aud (eventresult_aud.id, eventresult_aud.rev, eventresult_aud.revtype, eventresult_aud.event_id, eventresult_aud.routine_id, eventresult_aud.value)
VALUES (pgsql_eventresult_aud. "id", pgsql_eventresult_aud. "Rev" pgsql_eventresult_aud. "Revtype" pgsql_eventresult_aud. "Event_id" pgsql_eventresult_aud. "Routine_id"
pgsql_eventresult_aud. "value");
END LOOP;
SELECT count (*) FROM INTO count_add_aud eventresult_aud;
END IF;
Dbms_output.put_line ('Record EVENTRESULT were dropped in,' | | count_add | | 'from' | | count_origen);
Dbms_output.put_line ('Record EVENTRESULT_AUD were dropped in,' | | count_add_aud | | 'from' | | count_origen_aud);
ADDEVENTRESULT END;
Using Oracle 11g
Could anyone help me solve this probema. Thank you very much.Hello;
One option might be :
PostgreSQL Database Link to Oracle Database
http://vibhork.blogspot.com/2011/05/postgresql-database-link-to-oracle.html
Best Regards
mseberg -
Extract data from Traderu0092s and Scheduleru0092s Workbench
Hi Guys,
Anybody had experience extract data from Traders and Schedulers Workbench? Is there standard extractor or everything has to be csotomized?Can you explain your scenario a little more as FIM is not really a source of data. FIM does however have data storage for its mapping rules, job logs, and even transactional data which is access by EPM apps to "drill-to-origin".
Rather FIM is a middle ware application to transfer data between applications. Working underneath FIM is Data Services. You can use Data Services to move data from any source into BW. Or you can use BW's own ETL capabilities with UD Connect or DB Connect to bring data from an outside datasource.
Best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP Labs, LLC
BusinessObjects Division
Americas Customer Solutions Adoption (CSA) team -
How to bring the data from application server to presentation server
hi,
i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this topic.folowing is the code .
*& Report ZPFA_HIER_LOAD
REPORT ZFPA_HIER_LOAD.
*---- Declaration of Oracle connectioN
DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
DATA : mfilename type string.
data: begin of matab1 occurs 0,
MFL1(9) TYPE C,
MFL2(5) TYPE C,
MFL3(9) TYPE C,
MFL4(2) TYPE C,
MFL5(8) TYPE C ,
end of matab1 .
data: setid(8) type c.
data: begin of source occurs 0,
setid(8) type c,
end of source.
*PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
*PARAMETERS : m_bsenty(8). " type c obligatory.
*mfilename = P_PFILE.
EXEC SQL.
SET CONNECTION :con_name
ENDEXEC.
EXEC SQL.
CONNECT TO :con_name
ENDEXEC.
EXEC SQL PERFORMING get_source.
SELECT set_id FROM UNIT_SET INTO
:setid
ORDER BY SET_ID
ENDEXEC.
start-of-selection.
LOOP AT SOURCE.
REFRESH matab1. CLEAR matab1.
EXEC SQL PERFORMING evaluate.
SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
:MFL5
where set_id = :SOURCE-SETID ORDER BY MEM_ID
ENDEXEC.
if SOURCE-SETID = '80000000'.
mfilename = '/tmp/aesorg'.
elseif SOURCE-SETID = '80000006'.
mfilename = '/tmp/Consolidation_Manager'.
elseif SOURCE-SETID = '80000010'.
mfilename = '/tmp/10org'.
elseif SOURCE-SETID = '80000012'.
mfilename = '/tmp/20org'.
elseif SOURCE-SETID = '80000018'.
mfilename = '/tmp/30org'.
elseif SOURCE-SETID = '80000025'.
mfilename = '/tmp/40org'.
Endif.
mfilename = '/usr/test.dat'.
************************This was i tried***********************
open dataset mfilename for output in text mode encoding default." IN
*TEXT MODE ENCODING DEFAULT.
if sy-subrc <> 0.
exit.
endif.
close dataset mfilename.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = MFILENAME
FILETYPE = 'ASC'
TABLES
data_tab = matab1
EXCEPTIONS
file_write_error = 1
invalid_type = 2
no_authority = 3
unknown_error = 4
OTHERS = 10.
loop at matab1 .
transfer matab1 to mfilename.
endloop.
clear matab1.
ENDLOOP.
loop at matab1 .
transfer matab1 to mfilename.
endloop.
close dataset mfilename.
MFL5 = '0'.
CLEAR MFL5.
FORM evaluate.
if MFL5 = -1.
MFL5 = ''.
ENDIF.
concatenate MFL1 ',' into MFL1.
concatenate MFL1 ',' into MFL3.
matab1-MFL1 = MFL1.
matab1-MFL2 = 'ZBUE,'.
matab1-MFL3 = MFL3.
matab1-MFL4 = ' ,'.
matab1-MFL5 = MFL5.
append matab1 .
CLEAR MFL1.
CLEAR MFL2.
CLEAR MFL3.
CLEAR MFL4.
CLEAR MFL5.
ENDFORM.
"evaluate
*& Form GET_SOURCE
text
FORM GET_SOURCE.
source-setid = setid.
append source.
clear source.
ENDFORM. "GET_SOURCEHi Rammohan,
You cannot use OPEN DATASET to transfer data from application server to presentation server.
You can do the following :
<b>Do 1st point in BACKGROUND</b>
1. Read the data file from application server into an internal table using OPEN DATASET
<b>Do 2nd point in Foreground</b>
2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
Best regards,
Prashant -
iCal reports that it can't find server, and lots of data from several years ago is trying to get attention. Cannot bring up calendar in any view to use. also keeps loading unused calendar websites from long ago. I can' remove them. what to do?
UPDATE: I had 36 Safari windows open and minimized on the dock from my last session; 20 of those windows failed to open b/c Safari "couldn't find the server"; I just went to the URL bar of all 20 pages and clicked return, and all 20 pages loaded perfectly, without dropping any images or losing formatting. This is a puzzle!!!
Maybe you are looking for
-
Allow user to select each item in list item only once.
Hi, What is the best way to go to stop the user selecting the same item in a list item more than one. I have a multi record block, the user can select values 1-10 for each record, but they should not be allowed to select duplicates. Thanks for any he
-
IPhoto Library seems to be empty after running the iPhoto Library Upgrader
Hi, I just transfered my account from a previous Mac Pro running 10.8.5 to a new MacBook Pro running 10.9. I tried to open my iPhoto Library and it suggested me to download the iPhoto Library Upgrader, so I did, and upgraded the iPhoto Library, but
-
Problems making Solaris 10 install disk for x86
I have an Ultra 40 M2. I made a boot/install DVD disk with Solaris 10 for x86. The system just doesn't recognize it at all, like there is nothing in the DVD drive. What am I doing wrong? The DVD drive does recognize other DVDs, just not the Solaris 1
-
'agentctl start' error on 92010 on RH9: emddiscover.tcl
Hi all I have successfully installed 9i on my linux setup, but am having trouble starting the listeners etc with 'agentctl start'. The errors are as follows: $ agentctl start \nAgent startup failed. Check /ora01/app/oracle/product/92020/network/log/d
-
Where is the search field?
I've got menu, navigation and add-on bars showing, but there's no search field. When I open Customize (toolbar), it appears to the right of the address field, where I expect it, but when I close Customize, it disappears. Thanks,