Master Data Hierarchy to Flat file Z_SAP_HIERARCHY_DOWNLOAD
Hello Experts,
I am planning to use Z_SAP_HIERARCHY_DOWNLOAD program to download hierarchy data into flatfile. Before that I have a question
1) Is it only used for Sorted and Time Dependent Hierarchies or for any Hierarchy?
If we can use it to any hierarchy can anyone tell me steps involved in it in detail.
I have How to Document for BW 3.5 but need some other reference documents if possible.
Thanks.
Edited by: saptrain on Mar 18, 2010 5:44 AM
Hello Ray,
Thanks for answering my question.
Below is the link of How To Document.
I am not sure about the code specified in the document. Can I directly use the code specified in the document or do I need to change the ABAP code?
Sorry for asking such a simple question.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?quicklink=index&overridelayout=true
Thanks again for your quick response.
Experts please respond.
Edited by: saptrain on Mar 18, 2010 7:16 AM
Similar Messages
-
Error while uploading master data attributes thru flat file
while uploading master data attributes thru flat file i am facing the below errow. can nyone let me know plz.
Error 8 when compiling the upload program: row 227, message: Data type /BIC/CCDEIO_MAT5_ATTR was found in a newThis just means that you changed the transfer rules/transfer structure and have not refreshed the workbench yet. The infopackage data hasn't been updated ... this is similar to a datasource update, where you need to replicate to make sure BW knows the latest version.
The best way to correct this error is to reload RSA1. Every time I make a change to the tr/ts, I always run /nrsa1 to refresh the workbench.
Brian -
Loading Master Data from a Flat File
Hi Guru, I have flat files of different SAP tables (Transactional data tables and Master Data ), I want to upload this flat files to a DSO, my question is in the case of Master Data Files example SAP table USR03 ( User Address Data) in a Flat file format which is better to create a Master data text and attributes Datasource or create it as a transactional data Datasource to upload it to a DSO.
Hi
Master data datasource should be used to load master data like customer details. customer data is the master data which does not change frequently. customer infoobject may have some attributes like customer name, customer contact number, customer address, etc. we have to maintain these attributes and text data.
Transaction data is something which keeps changing very frequently like price of the material, sales, etc. for loading such data we go for transaction datasources.
As mentioned above too,the changes in the address are very rare, therefore youshould not use transactional datasource.
Regards, Rahul
Edited by: Rahul Pant on Feb 7, 2011 12:24 PM -
Vendor master data load from flat file
Hi Experts,
I am trying to load data from flat file. I am confused which info object i should use. My requirement is for info cube 0BBP_C01.
As i found for this info cube only two info objects are available: 0BBP_VENDOR and 0VENDOR. But in my flat file i have following fields: Vendor code, Vendor Name, Ultimate Parent, City, Country, Minority Status, Vendor Payment Terms. which all are together not present in either of info objects.
Please suggest which info object i must use. or should i create Z info object for my requirement?
Thanks in advance.
Regards,
Niranjan ChechaniHi Kiran,
I am loading data through flat file. I am not getting your point like how to get attributes present in the R/3 system which I am not using in this case.
Hi rvc,
I have created two characteristics z info objects i.e. ZU_PARENT for Ultimate parent and ZVEN_PAY for Vendor Payment Terms.
When i am trying to add these two as attributes and add it as Navigational attribute, I am getting the error "Characteristic 0VENDOR: The attibutes SID table(s) could not be filled" (Message no. R7586)
Please suggest am i wrong somewhere?
Thanks and Regards,
Niranjan Chechani
Edited by: Niranjan Chechani on Nov 28, 2011 12:15 PM -
Error while uploading data from a flat file to the hierarchy
Hi guys,
after i upload data from a flat file to the hierarchy, i get a error message "Please select a valid info object" am loading data using PSA, having activated all external chars still get the problem..some help on this please..
regards
Srithere is o relation of infoobject name in flat file and infoobjet name at BW side.
please check with the object in the BW and their lengths and type of the object and check your flat file weather u have the same type there,
now check the sequence of the objects in the transfer rules and activate them.
there u go. -
Master Data Hierarchy - Urgent requirement
Hi All,
I have a requirement with respect to master data check for the hierarchy
I have a costcenter hierarchy where in the values for costcenter is coming from other system
Now for the costcenter hierarchy master data
when I load the flat file for hier to the above costcenter master data, it should perform the check such as
Befor loading the files to the master data, it has to do a master data validation check means it has to check the data from the flat files with respect to master data hier table(/bic/h*)
If the flat files has values which are not exist in the costcetnter master data, the laod should fail
I have explored various options but not able to figure out the solutions.
There is no update rules/ no transformation
Kindly let me know how to solve the same ASAPtry writing a code in the infopackage level.This might solve your problem
-
Uploading Data from a Flat File
Hi
I am trying to Upload data from a Flat File to the MDS. I have a few questions on the Process.
a) XI would be the Interface, and one end would be a file adapter with the Flat File format. On the other end, which Interface should I use - ABA Business Partner In or MDM Business Partner In. I do not understand the differences between them and where should which one be used?
B) At the moment,I want to map the data to standard Object type, Business Partner BUS1006. This also has a staging area already defined in the System. Can I view the data which is imported into the Staging area ? How so ?
C) The struture (or data) that I wish to upload has few fields, and does not map to the BP structure easily. In such a scenario does it make sense to
Create a new Object type
(ii) Create a new Business Partner type with the appropriate fields only ..
What I need to know is if either of these options is feasible and what are the pros & cons of doing this, in terms of effort, skillset & interaction with SAP Development ?
Kindly do reply if you have any answers to these questions.
Regards,
GauravHi Markus,
Thanks for your inputs.
I have tried uploading some dats from a Flat file to the Business Partner Onject type, BUS1006. I initially got some ABAP Parsing errors on the MDM side, but after correcting that, I find my message triggers a short dump - with the Method SET_OBJECTKEYS, not finding any keys in the BP structure that has been created.
Q1 - How do I get around this problem ? Is it necessary for me to specify Keys in the PartyID node of the Interface ABABusinessPartnerIn. or is it something else ?
Q2 - How is this general process supposed to work? I would assume that for staging, I would get incomplete Master data or data from flat files, which need not neccesarily contain keys. The aim is to use the matching strategies in the CI to identify duplicates and consolidate them.
Thanks in advance for your reply.
Regards,
Gaurav -
Steps to load the data by using flat file for hierarchies in BI 7.0
Hi Gurus,
steps to load the data by using flat file for hierarchies in BI 7.0hi ,
u will get the steps int he following blog by Prakash Bagali
Hierarchy Upload from Flat files
regards,
Rathy -
How to built a hierarchy with flat file?
Hi Experts,
for a better representation of the report, i need to built a hierarchy with flat file.
The Data load is via Flat file.
Do you have some documentation about that?
Thanks
Cheers
GiloHi Gilo,
Check these docs...
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb">How to Download a Hierarchy to a Flat File</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm">Uploading Hierarchies from Flat Files</a>
<a href="http://sapbwneelam.blogspot.com">More Docs...</a>
Hope it Helps
Srini -
Data Transfer from Flat file To SAP system,
Hi SAP Guru's,
My query is :
How to update Material master data by using idoc type MATMAS05 . The data is present in flat file at application server.
I am new to idoc area.Please provide me the sample program that how to update material master data by using standard idoc type.
I am clear with the point that we have to read flat file from application server to internal table.
But i got stucked at this point that how to update data from internal table data , by using standard idoc type MATMAS 05.
I am in real need.Please provide me with the answer of this query.
I will really appreciate your <<removed by moderator>> reply.
Thanks
Simran
Edited by: Simran_SAP on Aug 25, 2010 10:46 AM
Edited by: kishan P on Aug 25, 2010 4:36 PMHi Vinod,
Thanks for reply..
I am new to idoc area.and my requirement is to generate the idoc after reading data from a flat file. The file is passed to the application server
by a middleware . The SAP interface program reads the file from the application server and then starts processing the data. Please help me how to create the inbound IDoc and which FM needs to be used.
Please provide a sample Program .
This will really help..
Waiting fr ur early response.
Thanks
Simran -
How to load master data hierarchy load from BI to BPC 7.5 NW
Hi,
I am testing master data hierarchy data upload from BI to BPC. However when i run master data hierarchy mport package, it's always displaying a warning message saying that no records are returned from "Z_PFT_CTR" which is my info object name.
My transformation is as below.
0BUS_AREA=BUS_AREA
0COMP_CODE=COMP_CODE
0CO_AREA=CO_AREA
0LOGSYS=LOGSYS
0OBJ_CURR=OBJ_CURR
0PROFIT_CTR=PROFIT_CTR
0RESP_PERS=RESP_PERS
0RESP_USER=RESP_USER
Conversion is as below
ID=ID_CONVERT.xls
PARENTH1=HARI.xls
Hierarchy i have mapped in conversion file from Source Inforobject 1000PCDUMMY-1 to BPC PARENTH1 Destination.
Any suggestions plz?Hi,
Just follow the docs in "How Tou2026 Automate BPC 7.0, version for the NetWeaver Platform Master Data Loads from BW to BPC"
where you will get detail step-by-step procedure to load data.
Check the url:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00380440-010b-2c10-70a1-e0b431255827
Before that you have to transport into BPC system the load to work fine.
Thanks
Debasisha -
Load hierarchy through flat file
I am trying to load a hierarchy through a flat file and followed the SDN blog mentioned below.
Hierarchy Upload from Flat files
However, I get this runtime error while loading.
Runtime Error ASSIGN_LENGTH_0
Information on where terminated
The termination occurred in the ABAP program "SAPLRRSV" in
"RRSV_INT_CHA_VAL_SPLIT".
The main program was "RSABW_START_NEW ".
The termination occurred in line 42 of the source code of the (Include)
program "LRRSVU10"
of the source code of program "LRRSVU10" (when calling the editor 420).
Source Code Extract
Line SourceCde
12 *" VALUE(E_CHAVL_EXT) TYPE RSD_CHAVL_EXT
13 *" VALUE(E_T_DEP) TYPE RRSV_T_DEP
14 *" EXCEPTIONS
15 *" UNKNOWN_CHANM
16 *" UNKNOWN_INFOCUBE
17 *"----
18
19 DATA: l_s_cob_pro TYPE rsd_s_cob_pro.
20 DATA: l_t_cob_pro_cmp TYPE rsd_t_cob_pro.
21 DATA: l_subrc LIKE sy-subrc.
22 DATA: l_offset TYPE i.
23 DATA: l_s_dep TYPE rrsv_s_dep.
24
25 FIELD-SYMBOLS: <chavl>.
26
27 IF i_very_internal = rs_c_true. "SB
28 i_with_const = rs_c_true. "SB
29 ENDIF. "SB
30
31 PERFORM cob_pro_cmp_get USING i_infocube i_chanm
32 CHANGING l_t_cob_pro_cmp
33 l_subrc.
34 IF NOT l_subrc IS INITIAL.
35 PERFORM raise USING rs_c_false l_subrc i_chanm space.
36 ENDIF.
37
38 l_offset = 0.
39
40 LOOP AT l_t_cob_pro_cmp INTO l_s_cob_pro.
41 IF i_with_const = rs_c_true OR l_s_cob_pro-chaconst IS INITIAL.
>>>>> ASSIGN i_chavl_int+l_offset(l_s_cob_pro-intlen) TO <chavl>.
43 IF l_s_cob_pro-iobjnm = i_chanm.
44 IF <chavl> IS INITIAL
45 OR <chavl> EQ rsd_c_initial.
46 IF i_very_internal = rs_c_true.Hi,
This is Thilak. For loading Data To hierarchy from flat file u should follow the below steps.
1. Create info objects as per ur hierarchy structure. i.e., ZH_CNO( for cno), ZH_SRGN (for region) .
2. find the highest node level info object. i.e., ZH_CNO.
3. go to that info object (highest node level info object) and select "with hierarchy" chk box.
4. click on " MAINTAIN HIERARCHY" button and move the external characteristics info objects to rt. side pannel.i.e., ZH_SRGN.
(Hint : other than first and last node level characteristics)
5. Activate the info object.
6. Create the info source (ZH_IS) of " DIrect Update Type".
7. Assign Hierarchy Data source( ZH_CNO_HIER) to that info source.
8. Schedule the info package to load the hierachy data from flat file.
Note: If u have any doubts regarding flat file format and hierarchy structure plz call to +91 9600015640 or mail to thilak.oggn@gmail. bcz i am unable to draw that hier strtr ana table.
Edited by: thilak. neelam on Oct 24, 2008 1:44 PM
Edited by: thilak. neelam on Oct 24, 2008 1:52 PM -
Delete data from a flat file using PL/SQL -- Please help.. urgent
Hi All,
We are writing data to a flat file using Text_IO.Put_Line command. We want to delete data / record from that file after data is written onto it.
Please let us know if this is possible.
Thanks in advance.
VaishaliThere's nothing in UTL_FILE to do this, so your options are either to write a Java stored procedure to do it or to use whatever mechanism the host operating system supports for editing files.
Alternatively, you could write a PL/SQL procedure to read each line in from the file and then write them out to a second file, discarding the line you don't want along the way. -
What is the best way to load and convert data from a flat file?
Hi,
I want to load data from a flat file, convert dates, numbers and some fields with custom logic (e.g. 0,1 into N,Y) to the correct format.
The rows where all to_number, to_date and custom conversions succeed should go into table STG_OK. If some conversion fails (due to an illegal format in the flat file), those rows (where the conversion raises some exception) should go into table STG_ERR.
What is the best and easiest way to archive this?
Thanks,
Carsten.Hi,
thanks for your answers so far!
I gave them a thought and came up with two different alternatives:
Alternative 1
I load the data from the flat file into a staging table using sqlldr. I convert the data to the target format using sqlldr expressions.
The columns of the staging table have the target format (date, number).
The rows that cannot be loaded go into a bad file. I manually load the data from the bad file (without any conversion) into the error table.
Alternative 2
The columns of the staging table are all of type varchar2 regardless of the target format.
I define data rules for all columns that require a later conversion.
I load the data from the flat file into the staging table using external table or sqlldr without any data conversion.
The rows that cannot be loaded go automatically into the error table.
When I read the data from the staging table, I can safely convert it since it is already checked by the rules.
What I dislike in alternative 1 is that I manually have to create a second file and a second mapping (ok, I can automate this using OMB*Plus).
Further, I would prefer using expressions in the mapping for converting the data.
What I dislike in alternative 2 is that I have to create a data rule and a conversion expression and then keep the data rule and the conversion expression in sync (in case of changes of the file format).
I also would prefer to have the data in the staging table in the target format. Well, I might load it into a second staging table with columns having the target format. But that's another mapping and a lot of i/o.
As far as I know I need the data quality option for using data rules, is that true?
Is there another alternative without any of these drawbacks?
Otherwise I think I will go for alternative 1.
Thanks,
Carsten. -
Sqlplus – spool data to a flat file
Hi,
Does any oracle expert here know why the sqlplus command could not spool all the data into a flat file at one time.
I have tried below command. It seems like every time I will get different file size :(
a) sqlplus -s $dbUser/$dbPass@$dbName <<EOF|gzip -c > ${TEMP_FILE_PATH}/${extract_file_prefix}.dat.Z
b) sqlplus -s $dbUser/$dbPass@$dbName <<EOF>> spool.log
set feedback off
set trims on
set trim on
set feedback off
set linesize 4000
set pagesize 0
whenever sqlerror exit 173;
spool ${extract_file_prefix}.datFor me, this is working. What exactly are you getting and what exactly are you expecting?
(t352104@svlipari[GEN]:/lem) $ cat test.ksh
#!/bin/ksh
TEMP_FILE_PATH=`pwd`
extract_file_prefix=emp
dbUser=t352104
dbPass=t352104
dbName=gen_dev
dataFile=${TEMP_FILE_PATH}/${extract_file_prefix}.dat
sqlplus -s $dbUser/$dbPass@$dbName <<EOF > $dataFile
set trims on
set trim on
set tab off
set linesize 7000
SET HEAD off AUTOTRACE OFF FEEDBACK off VERIFY off ECHO off SERVEROUTPUT off term off;
whenever sqlerror exit 173;
SELECT *
FROM emp ;
exit
EOF
(t352104@svlipari[GEN]:/lem) $ ./test.ksh
(t352104@svlipari[GEN]:/lem) $ echo $?
0
(t352104@svlipari[GEN]:/lem) $ cat emp.dat
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 12-JAN-83 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10
(t352104@svlipari[GEN]:/lem) $
Maybe you are looking for
-
Slow logons on windows 2012 server and windows 7 sp 1 devivce
Hello everybody, I've a windows user reporting slow logons on one of our clients. The domain is a 2012 domain and the device with the issue is a windows 7 sp1. The winlogon message event ID 6005 appears (winlogon taking too long to handle notificatio
-
Illustrator CS4 not working since installing Yosemite
Since installing Yosemite on my Macbook Pro, my CS4 Adobe Illustrator no longer works. The related files in the applications folder also show as being unavailable. All of the other programmes in the CS4 design suite still run without a problem. Can y
-
An intelligent way to find-sort-delete duplicates?
Hi. Is there a way to find and sort duplicates that works on other criterias than the filename itself? After importing old backups from other computers, I see that I got a lot of this stuff from earlier - but because the filename sometimes differ, iP
-
Acrobat XI - PDF Optimizer problems
In Acrobat XI, I know that the PDF Optimizer moved to the Save or Save As function. The problem that I am facing is that on one (out of 30) of the Macs that I support, when I choose PDF Optimizer, the Optimizer window does not appear. I uninstalled a
-
When I print digital photos, using Iphoto, the colors are way off. I can't find a way to edit the photos in Iphoto. Any suggestions? ( I have an hp printer and a canon camera).