Hierarchy using a flat file for a master data load.

Can anyone please tell me the steps involved in creating a hierarchy in BI 7.0.  and loading the data using a flat file into the created hierarchy? I have seen some posts and weblogs but they were not helpful and i have been getting some errors which i dont know how to resolve.
Can someone please give a clear steps and procedure for this?
Thanks a lot in advance.
Naveen

Hi,
The flat file is generated in application server by executing an ABAP program in SE38.
This ABAP program contains the logic to generate hierarchy.
In our case we used a DSO to store employee & supervisors.
This program generated a flat file in tmp folder in application server
In our case, To load this flat file we  created an Infosource on our master data using direct update using RSA1old Tcode
after Infosource is created right click on the InfoSource and click on Assign DataSource.
Give the Source System name
When you open this Info source you can select data source as YHIEROBJ_HIER and then activate the InfoSource.
create an Info Package to load the Hierarchy. Right click on the PC Files (Source System) and click on u201CCreate InfoPackage".
Under Extraction tab give the flat file name which is generated by the ABAP program in AL11.
Select the hierarchy which you want to load. Also, you can rename the Hierarchy after loading it. The update method is selected as u201CFull Updateu201D.
Logic for Generation of flat file & ABAP Program:
Flat file structure:
Node ID     InfoObject     NodeName     Parent ID     Date To      Date From     Language
u2022     u201CNode IDu201D indicates the unique number which defines the Node.
u2022     u201CInfoObject u201Cgives the name of the InfoObject which is assigned to this Node ID.
u2022     u201CNodeNameu201D is the name you specify to that Node.
u2022     u201CParent IDu201D is the Node ID to which the Current Node ID reports to.
u2022     u201CDate Tou201D and u201CDate Fromu201D are taken for time references (You can set them constant).
u2022      u201CLanguageu201C is set to English (E).
The program Logic can be :
Declare the hierarchy structure
Get the data from DSO into internal table
Read all the EMP values into NodeName Field of the table
Build lookup table for Parent Node ID
Fill Parent Node ID field
Append this data to work area & then to another internal table
You need to declare the selection parameter as SSFILE1
& use following code to write back the file
  OPEN DATASET SSFILE1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
     MESSAGE MSG.
  IF SY-SUBRC NE 0.
    MESSAGE E008(ZBW1) WITH MSG.
  ENDIF
Populate the output from that internal table into final work area.
Transfer this final work area to the ssfile1 which is the desired output file.
and   CLOSE DATASET SSFILE1.
When this program is executed, selection screen asks for the name of file
Enter the desired file name & execute
flat file would be generated in the Application server now.
To view the File, Go to Transaction AL11. Search the directory /tmp. Double click on this directory.
This opens the list of flat files under this directory. Double click on the file name.
Hope this helps.
Thanks,
Rashmi.

Similar Messages

  • How to use LSMW on CRM for bulk master data creation?

    Hello Experts,
    I need your help to able to use LSMW on CRM for bulk master data creation. Below is described my detailed requirement; -
    We have CRM 2007 integrated with SAP ISU (ECC6.0). As per business process all Business Master Data (BP details, Business Agreement details etc) and Technical Master Data (Connection Object, PoD etc.) is created in CRM and then it is replicated in ISU. We are going to start Assembly Test soon. Now we need to have all master data in place. Tool we want to use is LSMW.
    Now can you help me right from scratch on how to use LSMW for bulk master data creation in CRM?
    Please give me documents / links etc that is relevant.
    Regards,
    Rohit

    Hi,
    I have looked into your query.
    These are some information which might be useful to you.
    What is LSMW?
    Legacy System Migration Workbench or LSMW is SAP standard program that can be used to easily load / change master data or transactions in SAP without any programming at all. It can be used to upload data at cutover, such as: open orders, contracts, materials, vendors, stock on hand. It can also be used in a production system to make changes to existing data. Very limited authorization checks are available on the transaction, so the use of it must be very well controlled.
    One input file can be used to create all the views of the material master. For all the material types. Even if different views and fields are used for the different materials.
    Steps to take
    1. Create text file with data to be loaded
    2. Set up and run LSMW
    The following link will provide good information on LSMW Idoc method:
    [http://help.sap.com/saphelp_nw04/helpdata/en/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm]
    I hope this helps.
    Regards,
    Venkat

  • Flat file for Sales master

    Hi, can anyone tell meformat for flat file  <a href="http://theblogwhichsaysall.blogspot.com">for</a> transaction va01. I'm using BDC

    Hi ,
    Sales rep infoobject should be compounded by commision code. I think you will get the compound of commision code (product) as well in the compound.
    This will make the records unique and you would be able to load same sales rep with two different commision code.
    So your key then would be sales rep, commsion code and product together.
    Hope it helps,
    Regards,
    Sunmit.

  • What are the tables used for ACR & Master data daemon job?

    Hi Experts,
    What are the tables used in the backend for ACR & Master data daemon jobs. I would like to see the details of CHANGERUNMONI or ACR/Hierarchy Change run.
    Kr,
    Praveen

    Hi Praveen,
    Have you tried these tables BALHDR, BALDAT and BALOBJT for checking master date daemon delta status. It may not give you complete details. but definitely helps.. If you find any more details please do let me know..
    Thanks,
    Bharath

  • Master Data load does not extract Hierarchy nodes in BPC Dimension ACCOUNT

    Hi Experts,
    I am performing master data load through standard DM package with Filter selection as:
    1. Chart of Accounts
    2. Hieararchy selection has 4 hierarchy names
    3. Selected Import Text nodes
    4. Selected Set Filters by Attribute OR Hierarchies
    I have run this DM package for a set of data and selections a week ago and it worked fine.
    However when i run it now, it is giving issues,
    It extracts any new GL maintained in the BI system however it does not extract any hierarchy nodes at all! (Have tested this by deleting the hierarchy nodes and tried to run the master data load)
    I am running the DM package in Update and have selection as External.
    Any sugestions for checks / has anyone encountered this issue earlier?
    Regards,
    Shweta Salpe

    Hi Guyz,
    Thanks.
    I found that the issue was with the transformation file where i was maintaining the RATETYPE.
    When i removed the mapping of RATETYPE this works fine. (Pulls the nodes of hierarchies)
    however now i do not have Ratetype populated in the system.
    my rate type mapping is:
    RATETYPE=*IF(ID(1:1)=*STR(C) then *STR(TOSKIP);ID(1:1)=*STR(H) then *STR(TOSKIP);ID)
    and in conversion file i have TOSKIP     *skip
    I have to skip the ratetypes for the hierarchy nodes and my hierarchy nodes start with C and H.
    So now that i have removed the mapping for RATETYPE can anyone suggest me a correct way to achieve this? (Note the above mapping formula was skipping all of the hierarchy nodes starting with C and H)
    Regards,
    Shweta Salpe

  • Master Data Loaded but not able to see.

    Loaded master data successfully. Able to see it in P and M table, but not able to see when going thru Manage - Contents at InfoProvider level.
    Many requests are available showing number of records Transferred and Updated.
    What could be the possible reason?

    Hi Sarabjit,
    Welcome to SDN!!
    You need to load the transaction data into the Info-provider to see the contents and not just the master data.
    In case you have done the transaction load then you need to do the "apply hier/attr change" for the master data loaded. Goto RSA1 -> Tools(menu) -> apply hier/attr change -> Seelect your info-object and execute.
    Bye
    Dinesh

  • 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.0

    hi ,
    u will get the steps int he following blog by Prakash Bagali
    Hierarchy Upload from Flat files
    regards,
    Rathy

  • Extract hierarchy from a flat file

    Hello,
    I’m 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,
    David

    Hi 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

  • Hierarchy for Master Data Load from BW

    Hi All
    I'm loading Master data from BW infoobject 0Customer. There is no Hierarchy maintained for it in BW.
    Rather than creating hierarchy manually in BPC, I want to include mapping in transformation/conversion file which should roll master data records coming from BW to ALL_CUSTOMERS (member manually maintained in BPC). ALL_CUSTOMERS will be parent node for the hierarchy in BPC. No other levels of hierarchy is required. All the data should have one parent.
    Something like PARENT=*STR(ALL_CUSTOMERS)
    Please share your ideas? Help is very much appreciated.
    Thanks.

    Hi Asif
    If you are laoding master data from BW infoobject, you will not be able to load /specify any value for ParentH1/hierarchy node as BW /BPC does not allow that.
    An option would be to
    1) load hierarchy from a flat file or
    2) to maintain  hierarchy in BW amd load into BPC the normal way
    Regards
    Surabhi

  • 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,
    Uday

    Hi 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

  • Hierarchy format in Flat file

    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.

  • How to design Flat file for loading attribute dimension in a planning application

    Dear Gurus,
    I have a requirement to extract attribute dimensions from an essbase application and load it to another planning application. I have a dimension called Program and two attribute dimensions Sales Manager, Accounts manager associated with Program dimension in Essbase application. I will Extract these dimensions using Essbase outline extractor. After Extracting the attribute dimensions I have to load these dimensions to planning applications using outline load utility. Kindly guide me how to design the flat file for loading attribute dimensions in planning application.
    Thanks and Regards
    SC

    You could dig through the docs and try to figure out the file format manually, or you could do this the easy way.  Simply use the Outline Load Utility to export your attribute dimension from Planning.  The export file format is the same as the import file format.  You might have to manually add a couple of test members to your attribute dimension so that your export file has some content.  Then simply update the file you exported, and import it.
    (I am assuming you have already manually created the Attribute dimension in Planning, and that you simply need to add members to it.)
    Hope this helps,
    - Jake

  • Need Flat file for Message type DELINS

    Hi Experts,
      It possible to see the flat file for the Message type DELINS ,, If needed means please say how it can  view..
    Advance thanks..

    >My need is to convert the EDI format into SAP.
    As far as I know EDI can be read by SAP as Idoc directly without conversion. At least I would try this.
    I checked in WE20 /partner profiles/ for outbound parameters there is a tab called 'EDI standards' and here you can define the EDI parameters. However there is no such tab for inbound processing.
    What I would do /using transaction code SALE/
    - define logical systems
    - assign the received to the client
    - create RFC port for Idoc processing
    - create distribution model with the correct message type
    - create port as file
    - define or generate partner profiles
    Try to upload sample files via transaction WE19 or WE16.
    You can try to debug the inbound processing and write a program based on that, which could be scheduled as a background job.
    I had a program doing similar, but it was another message type and it was XML based, however the FMs I used are the following:
    'EDI_PORT_READ' - read port definition
    'EPS_GET_DIRECTORY_LISTING' - get the file names in the dir
    'EDI_DATA_INCOMING' - process idocs
    Hope it helps.
    Peter

  • Extracting from flat file for testing inplace of ECC(r/3)

    Hi Expert,
    Please help me out and give me your suggestion.
    We are creating a custom table in ECC it is under progress.
    I would like to create infoObject, transformation, DTP and Cube and create queries with loading info by flate file. Later on connection whole provider to table.
    Give me suggestion is ther any problem for this Or any good opinion.
    Thanks in Advance

    Loading from a flat file for testing has worked well for me.  We recently wanted to test an ODS object, but I didn't want to create a custom extracter until we knew if the ODS object would work for us. So under my infoSource I created a quick infopackage that pulled some test data from a flat file.  We've loaded test data into cubes before.  Only problem that I ever had was when I used Excel to create the flat file.  Excel wants to truncate leading zeros.  0calmonth for example needs to be loaded as 072007 not 72007.

  • [svn:osmf:] 10706: Adding readme file for the MAST sample.

    Revision: 10706
    Author:   [email protected]
    Date:     2009-09-29 17:38:56 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Adding readme file for the MAST sample.
    Added Paths:
        osmf/trunk/apps/samples/plugins/MASTSample/readme.txt

    Hi Jason,
    You might want to check this thread: http://forums.adobe.com/message/3254112 (or http://forums.adobe.com/thread/745538)
    As you can see there, it's possible to get the video bitmap data from the Video object directly. You don't need the content to be delivered using HTTP Streaming for this. You should be able to use 3D Papervision together a similar snippet.
    You can get the raw data from a HTTP Stream too, if you need the raw data anyway. Check this thread for details: http://forums.adobe.com/thread/709470?tstart=60
    Hope this helps,
    -Andrian

Maybe you are looking for

  • Long time to extract 0FI_AP_4/0FI_AR_4

    Hi,buddies:     When I use RSA3 to check the data in source system,I found that the process stopped at updating a table called ROOSGENQ and the process seems to be stooped. Martin Xie

  • ITunes 11 is not syncing my Outlook 2007 calendar on my iPhone 5 on a Windows 7 PC

    ITunes 11 is not syncing my Outlook 2007 calendar on my iPhone 5 on a Windows 7 PC. I have tried a number of things such as: Repairing the outlook.pst file with scan pst.exe. This did not work. Uninstalling all apple software on the PC and then reins

  • Photoshop.exe 64bit error 0xc000007b on photoshop startup

    I just got a new computer and installed a 15$ trial cd of master suite collection. The 32 bit version of photoshop works fine but when i click on a .psd file that is already created i get this error photoshop.exe 64bit error 0xc000007b the applicatio

  • Moving contacts from Blackberry Pearl to Macbook Air

    Hi, I still have a Blackberry Pearl as my phone but have just upgraded to a Macbook Air as my laptop (from using a PC). Any advice on how I move my contacts from the Pearl to the Air ? And will I be able to regularly synch the two (as I did with my o

  • Transfer files from device storage to Mac

    This sounds like such a noob question, but I used to plug the BB to the laptop, I'd get a pwd promtp on the BB  link and then I could go to the finder to pick selected files and happy I was   BUT that one stopped working, I added a SD card (which wor