How to load tab limited data into apllication server
Hello All,
I have 2 questions.
1)I have data in a table,i want to place this data in the applcation server with tabdelimiter in ASC.How do i proceed?
2)I have the data in my application server in a compressed text format,i want to download this data into a zip file (i am using the filetype 'BIN' to download this data to presentation server.However when i unzip this file my file is not tabdelimited.Is there any way i can download the file of type Bin into a zip file so that when i unzip it ,it should be tabdelimited?
Thanks in advance.
Sujatha gokaraju
Hello,
Do like this
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME,
P_TRZEI TYPE C DEFAULT ';'.
PERFORM DOWNLOAD_DATA.
*& Form DOWNLOAD_DATA
* text
* --> p1 text
* <-- p2 text
FORM DOWNLOAD_DATA.
DATA: OUTPUT TYPE STRING,
L_F_NETWR(21) TYPE C,
L_F_ERDAT_OR(10),
L_F_ERDAT_IN(10),
L_F_ERDAT_DE(10),
L_F_POSID LIKE PRPS-POSID.
OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC = 0.
LOOP AT G_T_OUTTAB.
CLEAR L_F_NETWR.
WRITE: G_T_OUTTAB-NETWR TO L_F_NETWR,
G_T_OUTTAB-ERDAT_OR TO L_F_ERDAT_OR,
G_T_OUTTAB-ERDAT_IN TO L_F_ERDAT_IN,
G_T_OUTTAB-ERDAT_DE TO L_F_ERDAT_DE.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
INPUT = G_T_OUTTAB-PS_PSP_PNR
IMPORTING
OUTPUT = L_F_POSID.
IF NOT P_TAB IS INITIAL.
CONCATENATE G_T_OUTTAB-VBELN
G_T_OUTTAB-POSNR
G_T_OUTTAB-VKBUR
L_F_POSID
G_T_OUTTAB-BSTKD
L_F_NETWR
L_F_ERDAT_OR
L_F_ERDAT_IN
G_T_OUTTAB-VBELN_IN
L_F_ERDAT_DE
G_T_OUTTAB-VBELN_DE
INTO OUTPUT
SEPARATED BY CON_TAB.
ELSE.
CONCATENATE G_T_OUTTAB-VBELN
G_T_OUTTAB-POSNR
G_T_OUTTAB-VKBUR
L_F_POSID
G_T_OUTTAB-BSTKD
L_F_NETWR
L_F_ERDAT_OR
L_F_ERDAT_IN
G_T_OUTTAB-VBELN_IN
L_F_ERDAT_DE
G_T_OUTTAB-VBELN_DE
INTO OUTPUT
SEPARATED BY P_TRZEI.
ENDIF.
TRANSFER OUTPUT TO P_FILE.
CLEAR L_F_NETWR.
ENDLOOP.
ELSE.
MESSAGE E041(S9) WITH P_FILE.
ENDIF.
CLOSE DATASET P_FILE.
ENDFORM. " DOWNLOAD_DATA
Cheers,
Vasanth
Similar Messages
-
How to load Matrix report data into basic table data using ODI
Hi,
How to load Matrix report data into basic table data using oracle Data Integrator ?
Requirement Description:
Following is the matrix report data:
JOB DEPT10 DEPT20
ANALYST 6000
CLERK 1300 1900 Need to convert it into below format:
JOB Dept Salary
ANALYST DEPT10
ANALYST DEPT20 6000
CLERK DEPT10 1300
CLERK DEPT20 1900
Thanks for your help in advance. Let me know if any further explanation is required.Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
SELECT job as job,
deptsal as deptsal,
saldesc as saledesc
FROM pivoted_data
UNPIVOT (
deptsal --<-- unpivot_clause
FOR saldesc --<-- unpivot_for_clause
IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
INSERT INTO job_sales
(job,
deptsal,
saledesc
VALUES
:job,
:deptsal,
:saledesc
Therefore you are using bind variables from source to load data into target.
Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
INSERT INTO job_sales
(job,
deptsal,
saledesc
SELECT job as job,
deptsal as deptsal,
saldesc as saledesc
FROM pivoted_data
UNPIVOT (
deptsal --<-- unpivot_clause
FOR saldesc --<-- unpivot_for_clause
IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
Hope this helps.
BUT remember that this feature only came out in Oracle 11g. -
HOW TO LOAD R/3 DATA INTO SAP BI USING PROCESS CHAINS?
Hi,
Can we load R/3 data into BI using process chains?... I loaded data from R/3 into Infocube using generic extraction using view... took 2 tables EBKN and EBAN and ceated view.
In PSA I can find all the 2388 records but when I load into datatarget in transferred tab there are 2388 records but in added colum i could find only 2096.....
I deleted the request and want to load through process chains....... but how to do ?????? without flat file ...can we laod using process chains?
I appreciate any inputs.......
Regards,
Prasanthi.did you even bother looking at the links in my previous posts???
read the docs...try yourself...if you encounter specific issues, you can post them on the forum...
if you're really expecting somebody to post a step by step for process chain, i think you can wait a long, long time... -
How to load best practices data into CRM4.0 installation
Hi,
We have successfully installed CRM4.0 on a lab system and now would like to install the CRM best practice data into it.
If I refer to the CRM BP help site http://help.sap.com/bp_crmv340/CRM_DE/index.htm,
It looks like I need to install at least the following In order to run it properly.
C73: CRM Essential Information
B01: CRM Generation
C71: CRM Connectivity
B09: CRM Replication
C10: CRM Master Data
B08: CRM Cross-Topic Functions
I am not sure where to start and where to end. At the minimum level I need the CRM Sales to start with.
Do we have just one installation CDs or a number of those, Also are those available in the download area of the service.sap.com?
Appreciate the response.<b>Ofcourse</b> you need to install Best Practices Configuration, or do your own config.
Simply installing CRM 4.0 from the distibutiond CD\DVD will get you a plain vanilla CRM system with no configuration and obviously no data. The Best Practices guide you trhough the process of configuring CRM, and even has automated some tasks. If you use some of the CATT processes of the Best Practices you can even populate data in your new system (BP data, or replace the input files with your own data)
In 12 years of SAP consulting, I have NEVER come across a situation whereby you simply install SAP from the distribution media, and can start using it without ANY configuration.
My advise is to work throught the base configuration modules first, either by importing the BP config/data or following the manual instruction to create the config/data yourself. Next, look at what your usage of CRM is going to be, for example Internet Sales, Service Management, et cetera, and then install the config for this/these modules. -
How to pull the table data into SAP BI
hi all,
i have connected to oracle database and i can see the view of the tables in sap BI.can u please help me out how to see the data inside the table and how to load that table data into info cube.Hi Vamshi ,
In R3 there is a t-code RSDBC through that t-code you make your data source .
I know you already make a connection between r3 and sql2000.
in RSDBC in logical system name you enter your connection name,and in table /view u should enter sql table name and make sure the table name which u enter in this text box should be store in sql in capital letters and fields should be in capital letters.
and generate your data source and execute it it show all the record .
Thanks for material its really gud
Ankit modi -
OWB11gR2 - simple and easy way to load XML formatted data into db tables?
Hi,
we're currently trying to load table data stored in XML files into our datawarehouse using OWB 11gR2.
However, we're finding this is not quite as trivial as loading flat files...
Most postings on this forum points to the blog-entry title "Leveraging XDB" found here (http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html).
This blog also references the zip-file owb_xml_etl_utils.zip, which seems to have disappeared from it's original location and can now be found on sourceforge.
Anyway, the solution described is for OWB 10g, and when trying to import experts from the zip-file etc. we end up not being able to run the "Create ETL from XSD" expert, as the 11gR2 client is different from the 10g and does not have the Experts menu et.al.
Also, this solution was published over 3 years ago, and it seems rather strange that importing XML-formatted data should still be so cumbersome in the newer warehouse builder releases.
The OWB 11gR2 documentation is very sparse (or rather - quite empty) on how to load XML data, all it has is a few lines on "XML Transformations", giving no clue as to how one goes about loading data.
Is this really the state of things? Or are we missing some vital information here?
We'd have thought that with 11g-releases, loading XML-data would be rather simple, quick and painless?
Is there somewhere besides the blog mentioned above where we can find simple and to the point guidelines for OWB 11gR2 on how to load XML-formatted data into Oracle tables?
Regards,
-Haakon-Yes it is possible to use SQL*Loader to parse and load XML, but that is not what it was designed for and so is not recommended. You also don't need to register a schema, just to load/store/parse XML in the DB either.
So where does that leave you?
Some options
{thread:id=410714} (see page 2)
{thread:id=1090681}
{thread:id=1070213}
Those talk some about storage options and reading in XML from disk and parsing XML. They should also give you options to consider. Without knowing more about your requirements for the effort, it is difficult to give specific advice. Maybe your 7-8 tables don't exist and so using Object Relational Storage for the XML would be the best solution as you can query/update tables that Oracle creates based off the schema associated to the XML. Maybe an External Table definition works better for reading the XML into the system because this process will happen just once. Maybe using WebDAV makes more sense for loading XML to be parsed (I don't have much experience with this, just know it is possible from what I've read on the forums). Also, your version makes a difference as you have different options available depending upon the version of Oracle.
Hope all that helps as a starter.
Edited by: A_Non on Jul 8, 2010 4:31 PM
A great example, see the answers by mdrake in {thread:id=1096784} -
Load flat file data into ODS in BI
Dear Gurus,
How to load flat file data into ODS?. Please share the article if you have.
advance wishes
Thanks
VenkadeshPlease search the forums before posting :
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60debae1-84dd-2b10-e7bf-bdedf1eabdf9
http://wiki.sdn.sap.com/wiki/display/BI/Beginner+Section -
How to speed up the loading of live data into flash file.
How to speed up the loading of live data into flash file if the swf file size is 1.5 MB. Flash file is using 20 web service connections to load the live data.
Hello,
I am also facing a similar problem wherein the SWF file takes time to load the refreshed data in Infoview i.e. after exporting the xlf file to Business Objects platform. Currently I am using Xcelcius Engage/Enterprise 2008 SP3 Windows (file name: 51038212.ZIP) version 5.3.0.0 build number 12,3,0,670. Also the SWF file is approximately 2MB in size and it uses 42 live office connections.
Please suggest solution as to how to decrease the time it takes to refresh the live office connections. -
How to load oracle data into SQL SERVER 2000?
how to load oracle data into SQL SERVER 2000.
IS THERE ANY UTILITY AVAILABLE?Not a concern for an Oracle forum.
Als no need for SHOUTING.
Conventional solutions are
- dump the data to a csv file and load it in Mickeysoft SQL server
- use Oracle Heterogeneous services
- use Mickeysoft DTS
Whatever you prefer.
Sybrand Bakker
Senior Oracle DBA -
Error while loading the master data into hierarchy
Hi,
When i am trying to load the master data into a hierarchy, it is showing me the following error.
"Invalid Entry, hierarchy xxxxxx does not exist".
Can you please tell me what might be the possible cause for this error.
Thanks,
PrateekHello
Have you created a hierarchy, I mean go to Transfer structure->Hierarchy structure
->create hierarchy, put a check of whether it is sorted or time dependent etc. after that while loading data through infopackage just check that you have selected an appropriate hierarchy name in hierarchy selection tab.
Hope it will help!!
Regards,
Sandeep -
Regarding loading of excel data into oracle database
hello,
Can someone help me in knowing that how can we load excel sheets data into oracle database.
I will be really thankful to you.
GursimranHi,
There is tool given by oracle "Oracle Bulk Loader "
you can use this.
But in order use this you need a control file, which specifies how data should be loaded into the database; and a data file, which specifies what data should be loaded.
Example :- this is the control file which has information how the data is processed.
LOAD DATA
INFILE test.dat
INTO TABLE test
FIELDS TERMINATED BY '|'
(i, s)
Example :- test.dat which is the data file or say your excel sheet or document
(1, 'foo')
(2, 'bar')
(3, ' baz')
example of Loading :-
sqlldr <yourName> control=<ctlFile> log=<logFile> bad=<badFile>
sqlldr testing control=test.ctl log=test.log
Thanks
Pavan Kumar N -
Loading of presummarized data into Analytic Workspace
Hi,
The structure of my AW is as follows:
DIM_A:
a1 ________
|___ a2
|___ a3
TOP_LEVEL LEAVES_LEVEL
DI_B:
b1 ________
|___ b2
|___ b3
TOP_LEVEL LEAVES_LEVEL
There is a cube named CUBE_1 based on the two dimensions and a measure MEASURE_1 defined in it.
Fact table:
DIM_A DIM_B MEASURE_1
a1 b1 100
a2 b2 2
a2 b3 5
a3 b2 4
a3 b3 3
My CUBE_1 cube is mapped to the fact table.
The structure of my AW is created in AW Manager.
What should I do to make the following row to be summarized with the rest o f t he rows?
DIM_A DIM_B MEASURE_1
a1 b1 100
I expect the value of 100 to be added to the vaue comming from the aggregation of the leaves.
In the documentation of AWManager there is said: "Data may also be loaded that has been presummarized in an other system."
http://www.oracle.com/technology/products/bi/olap/1451_AWM10g.pdf, page 11.
Regards,
azawadaIn my experience if you want to load pre-aggregated data into a cube you need to modify your cube mapping. The assumption is that your source fact table contains all the possible permutations for the specified dimension member. You then make multiple mappings from the source dimension column to each level listed in the dimension section of the cube mapping object.
Within the cube definition you then need to assign the aggregation method of Non-additive on the 'Rules' tab and de-select all the levels on the 'Summarize To' tab
Hope this helps
Keith Laker
Data Warehouse Solution Architect
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Beans http://www.oracle.com/technology/products/bib/index.html
Discoverer: http://www.oracle.com/technology/products/discoverer/
BI Samples: http://www.oracle.com/technology/products/bi/samples/ -
Loading this xml data into tables
Hello,
I am having a problem loading this XML file into tables. The xml file structure is
<FILE>
<ACCESSION>
some ids
<INSTANCE>
some data
<VARIATION
</VARIATION>
<VARIATION>
</VARIATION> variation gets repeated a number of times
<ASSEMBLY>
</ASSEMBLY>
<ASSEMBLY>
</ASSEMBLY> Assembly gets repeated a number of times.
</INSTANCE>
</ACCESSION>
</FILE>
I created a table which has the structure:
create table accession(
accession_id varchar2(20),
Instance instance_type);
create or replace type instance_type as object
(method varchar2(20),
class varchar2(20),
source varchar2(20),
num_char number(10),
variation variation_type,
assembly assembly_type)
create or replace type variation_type as object
(value varchar2(2),
count number(10),
frequency number(10),
pop_id varchar2(10)
Created a similiar type for assembly.
When I load it, I could only store the first variation data but not the subsequent ones. Similarly for assembly I could only store the first data but not the subsequent ones.
Could anyone let me know how I could store this data into tables? I have also included a sample XML file in this message.
Thank You for your help.
Rama.
Here is the sample xml file.
<?xml version="1.0" ?>
- <FILE>
- <ACCESSION>
<ACCESSION_ID>accid1</ACCESSION_ID>
- <INSTANCE>
<METHOD>method1</METHOD>
<CLASS>class1</CLASS>
<SOURCE>source1</SOURCE>
<NUM_CHAR>40</NUM_CHAR>
- <VARIATION>
<VALUE>G</VALUE>
<COUNT>5</COUNT>
<FREQUENCY>66</FREQUENCY>
<POP1>pop1</POP1>
<POP2>pop1</POP2>
</VARIATION>
<VARIATION>
<VALUE>C</VALUE>
<COUNT>2</COUNT>
<FREQUENCY>33</FREQUENCY>
<POP_ID1>pop2</POP_ID1>
</VARIATION>
- <ASSEMBLY>
<ASSEMBLY_ID>1</ASSEMBLY_ID>
<BEGIN>180</BEGIN>
<END>180</END>
<TYPE>2</TYPE>
<ORI>-</ORI>
<OFFSET>0</OFFSET>
</ASSEMBLY>
- <ASSEMBLY>
<ASSEMBLY_ID>2</ASSEMBLY_ID>
<BEGIN>235</BEGIN>
<END>235</END>
<TYPE>2</TYPE>
<ORI>-</ORI>
<OFFSET>0</OFFSET>
</ASSEMBLY>
</INSTANCE>
</ACCESSION>
</FILE>Hello,
I could figure out how to load this XML file by using cast(multiset(
So never mind.
Thank You.
Rama. -
Loading InfoObject master data into Cube
Hi Guys,
I have a question. I created an InfoObject as a data target and loaded data into that data target. I created a cube and I want to include this infoobject in the cube. Now How do I load data into this cube from the InfoObject.Because the InfoObject doesnt have any option to select data targets, since it is master data.
Data is being loaded into the InfoObejct. But when I check the cube there is no data.
How do I load this master data into the cube without update rules?
Thanks in advance.Hi,
i think u need load some value to transaction data so that you can report on it, but how you are going to decide which row will be having which value from master data? in general value for this should come from transactional data, or you could assign some constant value to it.
Do you want to use any attribute of Inoobject in report? And if you have any key value for that coming from Transaction data, you can use rule type as read from master data
It depends upon your requirememt.
Since you want to restrict the values of the cube which are going into the report then you should include this object into the cube.
In any case if you want to restrict the value of the transactional data in the cube with either the value of the objects ot the attributes of object you will have to add this object into the cube.
As you said you can load master data and use in report but how you are going to use it..............you will have to include it in the cube to use it.
Also you can check whether this object is attribute of some other object already in the cube in that case you can make it navigation attribute and then use it for the restrictions in the cube.
In this case only you do need to add it to the cube,But if it not an attribute of any object then you must add it to the cube.
You have to get the value of your infoobject into Cube from datasource, even though you want to use attributes only.
You will have to add it and it wont have any effect the transaction data getting loaded into the cube will be different from the master data only SID's are matched during loading of the data.
You should load separate master data into the 0recontract infoobject with the master data source and make the respective object contract type and contract category as navigation there.
Also you should add 0recontract to the cube and update it from the transaction data source as you have said that it can be updated.
Then just do the normal restrication at the report level
You can make this display attribute as naviagatioonal first in the master data object and then in the cube make this attribute as navigational.
then you can use it to restrict in the cube
You can use Category as InfoObject in your cube, and while loading data for your infoobject in the rule type you can use option as reading from master data. It will take key of infoobject, and will update attribute value in your cube.
http://help.sap.com/saphelp_nw04s/helpdata/en/e5/f913426908ca7ee10000000a1550b0/content.htm
You can also restrict with attributes value, Just in the restrcition of your infoobject in query designer, slelect left-botton button of 'Dipaly Other Values', here you can select you attribute and its value for restriction as well
Regards,
Hareesh -
Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel
Hi,
We are trying to load several Excel files into SQL Server SSIS and we need to save the data in the database in the same order as it is in Excel..
My question is, Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel. If so, we will add a sequence to ensure we have the order.
Please advise.
Thanks & Regards,
DhanumjayThanks for your response.
If it is one file then we can add an index column, but we have to load hundreds of files.
How adding an index/key column to the table works unless SSIS picks and loads the data in the table in the same order as it is in Excel?
Just to explain my question better,
If excel has three rows {a,b},{c,d},{e,f}, does SSIS ensure it loads the data in the same order in a table.
Thanks.
Maybe you are looking for
-
How to Reinstall Windows on Existing Bootcamp Partition
I've been running Windows 7 under Bootcamp on my 2011 MacBookPro. I've run into a situation where Windows7 will no longer install updates. I worked one day with Microsoft for over an hour but they could not find what was causing the problem. FYI, whe
-
Switch to 2X Xeon 5680 6-core, Will this work?
Hello My current set up of a 8 core 2.26 Xeon mac pro (Early 2009) has been giving me insufficient power for what i need to do. I am not willing to pay for the apple upgrade to only 2.93 for an 8 core, so I am considering upgrading to two six core 3.
-
Item Maste Data - L/U Query
Good Afternoon Experts: I have been assigned a task to pop-up a L/U query on the BINS column of the matrix on the Inventory tab of the ItemMasterData screen. So, I need to use the Item value from the ItemNumber field at the top of the screen. <b>He
-
Format Header/Footer Elements
Is there anyway of formatting the Header/Footer elements, namely the date and time elements?
-
What is the best design tablet with stylus to have an easy interface with Adobe Photoshop?
What is best design tablet with stylus for use with Adobe Photoshop for this holiday seasons offering 2013? I am trying to find a tablet with good stylus to work with Adobe Design products primarily Photoshop. I would like one that worked in