Creating Hierarchy by Loading Flat File
Can any one give steps to load hierarchy using flat file
Uploading Hierarchies from Flat Files
http://help.sap.com/saphelp_bw30b/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm
Hierarchy Upload from Flat files - Blogs
/people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
Hope it helps..
Similar Messages
-
Numbering nodes when loading hierarchy from a flat file.
Hi All,
I want to load a hierarchy from a flat file. When we number the nodes, do they have to be in a sequence or can I give them any number I want? I want to make the GL account number as the node number since it makes it easy to generate the node number that way. The way I see it, the important thing is the parent node number; so this approach should be fine. Please correct me if I am wrong.
Thanks,
UdayHi Uday,
You need to have a running sequence numbers for Node Id field in the flat file. The file structure is as
NODEID IOBJNM NODENAME TLEVEL LINK PARENTID
00000001 0GLACC GL233344 00000001
00000002 0GLACC GL435556 00000001
00000003 0GLACC GL545666 00000001
00000004 0costcenter cc433232 00000002
00000005 0costcenter cc433233 00000002
00000006 0costcenter CC555551 00000003
The Parentid will calculated by the system automatically.
when you prepare you file csv please ensure that you have 8 characters for the Node ID " 00000003" other wise you will get error.
And if you want to add GL Account number to your hierarchy then you need to add GL A/c Number as external characteristics in hierarchy and add it to your flat file .
Hope it helps.
Cheers,
Balaji -
How to create source system for flat file loads
How do I create a source system to load flat file?
I have a screen that asks for the following:
Logical system name
Source system name
Type and release
What should I enter for these?
I am not Basis and Basis was supposed to set this up.hi sam.
STEPS TO CREATE FLAT FILE SOURCE SYSTEM
step:1 select source systems under modeling in AWB.
step:2 select Source Systems root node.
|---> context menu
|--->create......
step:3 select your required source system Icon.
(in your case it is PC Icon).
there it askes for a logical.......and source system name...
here u can specify any name of ur wish
for example:-
logical sys name --- PC_FF
source system name --- flat file source system*
*press Continue * button.
Observe the activation icon to confirm the successfull creation(_glowing lamp icon_ symbol) -
Hi gurus,
please tellme the Hierarchy format in Flat file.
ThanQ.
Regards,
Ramesh.Hi
1.Defining the source system from which you want to load data:
Create For a flat file, choose: File System, Manual Metadata; Data via File Interface.
2.Defining the InfoSource for which you want to load data:
Create Application Component.
Create InfoSource , Direct Update
Choose an InfoObject from the proposal list, and specify a name and a description.
3.Assigning the source system to the InfoSource
Assign Source System. You are taken automatically to the transfer structure maintenance.
The system automatically generates DataSources for the three different data types to which you can load data.
Attributes, Texts,Hierarchies (if the InfoObject has access to hierarchies)
The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
4. Maintaining the transfer structure / transfer rules
Choose the DataSource to be able to upload hierarchies.
Idoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject, for which hierarchies are loaded. With this transfer method, during loading, the structure is converted to the structure of the PSA, which affects performance.
PSA transfer method: The transfer methods and the communication structure are also generated here.
5. Maintaining the hierarchy:
Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields. This option allows you to load characteristic values having a length greater than 32 characters.
Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
The system transfers the settings for the intervals and for time-dependency from the InfoObject maintenance. Depending on which settings you have defined in the InfoObject maintenance, further table fields can be generated from the system.
The valid from and valid to field is filled if you select Total Hierarchy Time-dependent in the InfoObject maintenance. The time-dependent indicator is activated if you select the Hierarchy Nodes Time-dependent option in the InfoObject maintenance.
6. Save your entries.
Depending on which settings you defined in the InfoObject maintenance, additional fields can be generated from the system. Also note the detailed description for Structure of a Flat Hierarchy File for Loading via an IDoc and for Structure of a Flat Hierarchy File for Loading via a PSA.
Further Steps:
Maintaining InfoPackages
Result
You have uploaded the hierarchy data for the corresponding characteristic. -
Loading flat files located on a server using the Control Center piece ofOWB
Loading flat files from a server with OWB
I am successful loading files with OWB, as long as they resided on my workstation in the C:\ drive. I copied the files to a Linux server into directories owned by Oracle/oinstall, permissions on the directories containing the files are 777. I ran the OWB client from the server with the following results:
Error
RPE-01013: SQL Loader reported error condition, number 1.
SQL*Loader: Release 10.2.0.1.0 - Production on Fri Mar 9 11:15:58 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (/u00/data/owb_repos1/state_codes.csv)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
SQL*Loader: Release 10.2.0.1.0 - Production on Fri Mar 9 11:15:58 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (/u00/data/owb_repos1/state_codes.csv)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
I tried to load the file using the control center from both the windows client and the server client. Can I do this from either one?
I can't import the file in the Design Center from the /u00/data/owb_repos1 directory, it does not show up.
If anyone has received similiar errors from OWB, please tell me how I can fix this. THANKS!!!
[d97886@owbtest owb_repos1]$ pwd
/u00/data/owb_repos1
[d97886@owbtest owb_repos1]$ ls -la
total 24
drwxrwxrwx 2 oracle oinstall 4096 Mar 19 12:14 .
drwxrwxrwx 18 oracle oinstall 4096 Mar 6 16:41 ..
-rwxrwxrwx 1 oracle garrett 1481 Mar 8 07:32 state_codes.csv
[d97886@owbtest owb_repos1]$Hi
This is what i do for my flat files (i am loading my tables from the flat files):
1) Create location for the files in OWB and it should look something like \\path_to_where_the_files_are. Here you should be able to browse to your Linux box and select the location of the files.
2) Then check whatever you use (i use TOAD) and you should see in owb schema a directory created there which points to the location of the flat file.
3) then just follow the guide to sample the files etc and you are good to go.
Basically OWB has to be able to see the files that are on Linux machine.
Alternatively you can map your Linux share to your windows box (use samba or something) and use it that way.
Sorry if it is stating the obvious.
Hope this helps
Kind Regards
Vix -
Load Flat File from App Server
HI, all.
I want load flat file from appliation server. I created CSV file and loaded it on app. server with FM ARCHIVEFILE_CLIENT_TO_SERVER. After I created datasource and tried load data in the infocube. In this procedure I encountered with two problem
1. When I look file in AL11, I doesn't see cyrillic symbols, instead this symbols I see #.
2. When I try load data with data source, I get exception RS_EXCEPTION 000 "File don't open"
Anybody can help me resolve this problem?
wbr, Fanil.Hi, kodanda pani KV.
2. File is was closed.
1. Can me you clearly explain what you meen?
wbr, Fanil -
Issue in calling webdynpro for loading flat file in IP
Hello,
We have implemented the How-To load flat files in IP paper and we are facing an issue in that. The generated webdynpro runs on ABAP Application server but we need to call this from a Web template which runs on portal server.
These two servers are different and we don't want to hardcode the url in webtemplate as the server names will change in Q & P for webdynpro. Can anyone advise how we can read the ABAP Application server details in WAD may be using javascript and then generate the URL for webdynpro dynamically.
Regards,
DeeptiHi Deepti,
We have also facing the same challenge. Could you please post the solution in which URL path change dynamically.
I have created the ABAP function module based on the below link.
http://wiki.sdn.sap.com/wiki/display/Snippets/BICustomWebItemtoLaunchanABAPWeb+Dynpro
But not sure how to call the function module using custom web item & java script. Coould you please explain the steps on the same ?
Thanks,
Gopi R -
Error handling when loading flate files
Hi
We have a Process Chain loading flate files from a server into a ODS. We want to create a routine to avoid errors in the ODS when no files is found.
The error we want to handle is
Error 1 when loading external data
Message no. RSAR234
We want to handle this error message as OK to avoid red request in the ODS
Please help
Kind regards
Ola Einar LangenHi, and thanks for your hints.
We ended up with the following codes. It's will mark the prosess chain red (but this is as wanted) but we have implemented that the prosess chain will proceed even with error in the loading process
The code for the routine implemented in the infopackage in "External data" tab.
p_filename = 'filename.txt.
OPEN DATASET p_filename FOR INPUT IN BINARY MODE.
If file could not be open
IF SY-SUBRC NE 0.
p_subrc = SY-SUBRC.
delete the current request
CALL FUNCTION 'RSSM_DELETE_REQUEST'.
ENDIF.
close the file if OK
CLOSE DATASET p_filename.
p_subrc = 0.
The solution is no OK for us
Kind regards
Ola Einar Langen -
Hi Experts,
Need to load flat file which has month in the columnwise, how to do it.
Example
Companycode -- customer--- sales plan for jan sales plan for feb- sales plan for march.
1000 101 100 150
1000 102 200
need data to be loaded for doing planning in SAP BI..dnt suggest for BPS or IP.
Guide me how to load this data to DSO or CUBE.
I want the data has
COmpanycode-customer-fiscalperiod---planned sales quantity
1000 101 001 100
1000 101 002 150
1000 102 001 200
Above is just a sample.
Thanks,
AnandHi Araj,
you can do this 2ways.......
1. Try to create your provider with keyfigure modal(create key figure for period1, kyf period2, ......) & load it.
2. Changes your flatfile to char modal(here you will have one kyf) .
hope this will help you.
Thanks,
vijay. -
Hi Gurus, I have this scenario, where a ODS A (Auditing) has export datasource that feeds data to another ODS C (Auditing and Posting). ODS B (Posting) is independent and is not physically in the data flow.
ODS C has update routines that does lookup for some some fields in ODS B. and eventually ODS C has update rules that feed data to CUBE A.
So ODS C has fields from both ODS A and ODS B.
I wanted to see if I can load a flat file into directly ODS C, it has a export datasource. I tried, I always get that famous 'InfoSource' error msg. Please guide.
Please let me know if you need more explanations.
Thanks.hi,
it's possible to load flat file data directly to cube C. before loading the data to ods c. you have to decline the infoobject's in to ods. mention the flat file infoobjects in to ods. then do the loading. when you r creating the update rules from ods to infosource it's give some keyfigure has no update. ignore the error and activate the update rule.
one thing i forget to say. when u r updating data from ods c to cube it will cause error, because of the addition of new object 's in to cube. it its show the error, delete the old export data source and recreate it newly.
hope this help you
regards
harikrishna N -
Risk factors while loading flat files
HI,
CAn anybody tell me what are risk factors while loading
flat files....
Thanks in advance,
regards,
RagsRisks:
1) If flat-file is created manually
- users may forget columns, specifically UNIT and
CURRENCY.
- Keyfigures my be presented in thousands one time
and in single dollars the other time.
- Flat-file may be delivered too late.
- Automatic scheduling is difficult if flat-file
comes from client station. You even can't do it
with a process chain.
- Naming conventions (capitals, leading zeroes,
trailing spaces, special characters)
- Master data conversion
2) If flat-file is created automatically (from legacy
system):
- Data may arrive too late
- Data file (if loaded from server) requires a
connection to the external disk - security risk.
- (Master) Data conversion
Note: In the past I had trouble with uploading flat-files from a network-drive. It sometimes happened that the flatfile was only partly imported and that no errors where reported. When loading data from my local C-drive I never had this problem.
My advise is to upload a flat-file into an ODS before using the data further in BW. In the ODS you can add a date to mark the loading data. If the loading to an ODS is ok then there is a much bigger change that you will not get problems further in the data-stream. Make sure that the key-user validates the data in the ODS before using it any further. It pays off to create one or two special queries on this ODS to enable testing of the data. -
Extract hierarchy from a flat file
Hello,
Im trying to extract hierarchy from a flat file.
The hierarchy is built from 3 different infoObjects each infoObject represent different level in the hierarchy. I built the hierarchy in the last level of the hierarchy and put all the levels as external chars in the hierarchy.
(I used the blog: Hierarchy Upload from Flat files: /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files )
When I extract the data into the PSA it looks fine but when I choose to update the PSA data into the infoObject the request stays yellow. Three is no dump and I cant find the job in SM50.
Please Advice,
DavidHi David,
Thats the problem with using PSA for flatfile hierarchy loads. If you can change the transfer method to "IDOC" then change and retry the load. The IDoc method gives you an advantrage when dealing with flatfiles as you can debug and notice which record # has errors.
Bye
Dinesh -
Hi,
Iam trying to load flat files into BW. Does any one have a procedure for it. Iam also trying to figure out if we can automate the process if yes please give detail information about it. I would really appreciate if any one could answer to this.
Thanks,
SuneelHi,
If you have Unix authorizations on the app server you can do it yourself. You can create folders by a command called mkdir (not sure if this is the correct syntax). Its simple Unix code.Make sure that the id that is going to execute the job has read, write and execute authorization to these folders. You can take help of a Unix SA or Basis person for this.
On the BW side, in teh flat file infopackage, you need to give this path for loading the file and then schedule the job as you do the other BW jobs.
For extractions, you can put the destination path in whatever you are using for extraction, ex ABAP extracts, etc.
For incoming and outgoing files, you can use SYNCRA or EFUSE or any other mechanism that is used to FTP files to get files into your app server or extract out files to downstream systems. You can again take the help of your Unix /BASIS people here.
Cheers,
Kedar -
Getting error while loading Flat File
Hello All,
I am getting error while loading flat file. Flat file is a CSV file.
Value ',,,,,,,,' of characteristic 0DATE is not a number with 000008 spaces
Data seprator |
Escape sign ;
It has 23708 entries , it s loading successfully till 23 665 entries
Besides when checked in PSA
for record having entries >23667 has calender day as ,,,,,, where as rest entries are having date
Besides when i checked in Flat file ,the total number of rows is 23,667 is there but i wonder why it has got 23,708 in
RSMO
Could you please let me know how to correct.
regards
pathHi,
For date column you should maintain YYYYMMDD formate Eg: 20090601, kepp cursor on date column and right click and Formate >Custome>make it 00000000 then save teh file as .CSV . First type values on column and do like this formate and save it and without opening it load it. Once you open it you losw 00000000 formate you need to give again the same formate.
Settings in Infopackage:
Data Format = CSV
Data Separator = ,
Escape Sign = ;
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a6567e07211d2acb80000e829fbfe/content.htm
Thanks
Reddy -
How to load flat file in BPS through Web-debugging
Hi,
We are working on flat file upload in BPS thru guide 'How to load flat file in BPS through Web'. Can some one guide on how to debug the function modules used while uploading the data.
We have set up the break point in the function modules and also in the BSP page. But when trying to debug while uploading, it is not going to the break point which was set.
Could you assist in setting up the break point.
Regards,
Sreenath
Message was edited by:
sreenath reddyHi,
I have put an external break-point.
I have hard coded it in the coding of the function module itself.
The code is perfectly working. But, when I want to check for the values of the variables in the F.M during runtime, the break-point is not triggering. Any ideas??
Regards,
Maybe you are looking for
-
BUG-JDev 11G 5407-Project level resource bundle usage messes the page
When you define a resource bundle on the project properties and if you are using templates the page is not properly rendered in the design view but it runs fine. What happens is , JDev adds a JSTL set tag just before the *<af:pageTemplate>* tag and t
-
Having problems with preview window.
I recently bought a Sony DSR-11 deck and actually captured on it earlier today but now it is doing something weird where it tells me that preview is disabled but it says VTR OK. Is there somewhere that I can enable Preview or do I need to reset the d
-
I want to know if it has some feature that will let you put text or pictures at a tilted angle. Can you do that?
-
Suitcase Fusion 2 stops working after 10.5.6!!!!
Just updated to 10.5.6 thinking that it would be as safe for me as others in the past have been. However, ever since installing this update, version Suitcase Fusion 2 no longer works. It now crashes every time you launch it (no reason why it crashes,
-
Availability of nokia 113 in india
pls pls pls i want to know this badly is nokia 113 available in india or when will it be available,pls let me know asap... Solved! Go to Solution.