Creating Master Data from a transactional text source

hi experts, my internal bw expert is still out and I need help again.
We have a table in bw whose values we are going to push into a DSO so that we can create some reporting on it.  However, some of the characteristics on this table exist only as text (for example, end_user).  In order to make the reporting meaningful I need to
1) Put the unique values into an infoobject.
2) Create a routine that when I load the transactional values from the table to perform an abap lookup on the master data to find the right "key" value.
Can anyone point me to a guide that can help me out with these tasks?

I will first note that best practices are to not put descriptions into DSO's.   That said, this is how you can do it.
Things to change... you'll want to go against the Text table instead of the attribute table which can be found on the Master Data tab of the InfoObject.  Obviously change the name of the fields and variables....
GLOBAL Section of Start Routine / Transformation
    TYPES : BEGIN OF typ_compcode,
                  comp_code TYPE /bi0/pcomp_code-comp_code,
                  country   TYPE /bi0/pcomp_code-country,
           END OF typ_compcode.
    DATA :
           lt_compcode  TYPE HASHED TABLE OF typ_compcode WITH UNIQUE KEY comp_code,
           lwa_compcode TYPE typ_compcode.
START ROUTINE
      SELECT  COMP_CODE
          COUNTRY
      FROM /BI0/PCOMP_CODE INTO TABLE lt_compcode
     FOR ALL ENTRIES IN SOURCE_PACKAGE
      WHERE COMP_CODE      = SOURCE_PACKAGE-COMP_CODE
AND language = 'EN' if language dependant and  date if time dependant.
Transformation Rule
READ TABLE LT_COMPCODE INTO LWA_COMPCODE
              WITH TABLE KEY COMP_CODE = SOURCE_FIELD-COMP_CODE.
RESULT = LWA_COMPCODE-country.

Similar Messages

  • To Call Another Form and Save Related MAster Data from a Transaction Form

    Hi
    Our project requires that forms for creating masters be called whenever the value (Key Value) being referenced in other forms are not found. For doing this I had used the When-Validate-Item Trigger and checked for the key value in the master tables and if not present, I use the Call_Form method to call the master form and create the key value and then come back to the Form in which I was working to continue processing the rest of the data.
    It works well if the CAlling forms is in INSERT MODE but Not in UPDATE MODE ( returns a message A Calling Form has unapplied Changes, Cannot Save data (Error: FRM-40403)).
    This same feature I tried to work it out around with a Key-Next-Item Trigger, it works fine for both the cases but as long as the user tabs out of the field from keyboard controls like the Enter Key or the Tab Key. But in case he wishes to click on the next field or some other button with a mouse OR he uses a keyboard shortcut to do some other operation viz. F10 for saving data, the trigger is not fired and that returns a ORACLE error (in case a database Integration issue arises) OR saves an invalid data.
    I would like to know what kind of triggers could we write to exactly call a master form to save a new key value irrespective of whether the calling form is working in INSERT mode or QUERY Mode.
    One way to do it is to use EXIT_FORM(DO_COMMIT, NO_ROLLBACK). But if the Primary/Calling form is closed without a Commit, then the related Master DAta is also Not Saved.
    Please Let me know if we can save the master data whatever be the state of the CAlling Form permanently.
    Thanks and Regards

    You are going to need to POST in the Called Form rather than committing (and make sure that you do not rollback when you exit).
    The Post will insert the master record into the DB but it will not be committed until you issue the commit in the Calling Form.

  • Error importing vendor master data from ERP

    Hi experts,
    currently we are trying to import vendor master data from ERP to SAP Sourcing 9.
    We exported the data in an XML file by using the transaction BBP_ES_MAST_DOWNLOAD.
    We already imported all the dependencies like vendor account group, purchase org, regions etc. successfully.
    However, every time we are trying to import the vendor data we receive the same result:
    Data Import:
    Trace.txt:
    Do you have any hints why this happens?
    Thanks in advance and best regards,
    Johannes

    Hello Johannes,
    This looks to come from a custom script in your system.
    Go to Setup > Script Definition and check all scripts defined on class "Supplier" (starting with those on context: Import Lifecycle Event).
    Search for a script that starts with "throw doc.createApplicationException(test..."
    Regards,
    Bogdan

  • Create Master Data

    Hello,
       I am starting a new BW-BPS project, I am a beginner in BPS, and I would like to know if there is a way to create master data from BPS, and if it is possible what are the steps to do so.
       Thanks for your help,
       Luz

    Me too learner on BPS....
    I understand from the documentation to maintain/create master data we have to use normal BW masterdata loading or Maintaince using RSA1. We can utilise those data in BPS ofcourse..
    regards,
    Hari
    Welcome to SDN Luz!!

  • Master data from transaction data

    Hi All,
    I am getting data from R/3. I am also getting data from another web based application which takes its basic master data from R/3.
    Now from the transaction data from the web based application(coming to BW as flat file), I am getting a field Material Class ID which desnot exist in R/3. Can I get the data of this field as master data in BW and that too as mapped to the Material from R/3.
    That is to say: can I get the Material Class ID data as master data in relation to Material from R/3?
    If anyone has any idea regarding this, please help me. Thanks in advance.
    Regards,
    Vinay

    Not sure i understand you properly..but,
    If Material and Material Class ID has the same 'meaning' then with conversions or without conversions.. you can store in the same 'material'.
    But if they are differed and you have got a reference data availble you can create a attribute as mentioned and map material and material class id. So
    1) Create only Material Class ID and LOAD this master data first from flat file.
    2) Enhance the material master data to add this as new attribute.
    3) Load the material master data and while loading fetch the material class id in the routine with the reference rules..
    Regards,
    Hari

  • Master Data from two source systems

    Hi Gurus,
    I need to load master data from two different source systems. What is the best way I could do that ?
    I know one approach is add system id 0logsys as prefix in compound tab and load it. But problem is master data table will have two different records and in the report it will display 2 records, can not summarized it in the report. But I need one record in the report. What is the best approach ?
    Thanks
    Liza

    Hi,
    Create two DataSources. one for each of the source system.
    Create two separate flows to the master from these two DataSources.
    Hope this helps!

  • IDOC : Create Master Data Export - transaction PC00_M10_OTEM

    Can someone throw some light on the transaction PC00_M10_OTEM - Create Master Data Export ?
    I need to know on what criteria it fetches the data for various infotypes. Its not picking data from IT0041 , what could be the possible reason ?
    Thanks,
    Sandip.

    Hello,
    I have some helpful information.
    The program that creates the IDOC is RPCOTM** where ** is your country version.
    The results of the OTSEL feature are checked in RPCOMF** and then the routine FILL_DATES(RPCOTFX0) is called to write the IDOC. 
    Debugging in this area will tell you...
    1.  Is the OTSEL value for IT0041 set
    2.  Was there a change in the dates for your period
    3.  What is being written to the IDOC
    Best of Luck
    Dan Reeves

  • Data Source creation for Master Data from Flat File to BW

    Hi,
    I need to upload Master Data from Flat File. Can anybody tell step by step right from begining of creation of DataSource up to Loading into Master Data InfoObject.
    can any body have Document.
    Regards,
    Chakri.

    Hi,
    This is the procedure.
    1. Create m-data with or without attributes.
    2. Create infosource .
        a) with flexible update
             or
        b) with direct update
    3. Create transfer rules and assign tyhe names of m-data and attribute in "Transfer rules" tab and transfer them to communication structure.
    4. Create the flat-file with same stucture as communication structure.
    5. if chosen direct update then create infopackage and assign the name of flat-file and schedule it.
    6. if chosen flexible update the create update rule with assigning name of the infosource and the schedule it by creating infopackage.
    Hope this helps. If still have prob then let me know.
    Follow this link also.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    Assign points if helpful.
    Vinod.

  • User Exit - Create Asset Master Data from MIGO

    Hi Experts,
    I want to create an asset master data from Good Receipt Purchase Order, when the user saves the document, but I didn't find none user exit, BADI or BAPI that I can use.
    Cuold you help me?
    Thank a lot.
    Kind Regards
    Giampaolo

    Hi,
    Why you want to create the Asset master at the time of MIGO.
    Posting MIGO is end user activities and Creation of Asset is of Super User, he have to assign cost center plant etc in master which will not be known by the end user and can create lot of problem in later stage.
    If we create Asset it MIGO or PO level how user know that he have to post to new asset or to existing asset. This decision is of Finance person.
    If it is that important in your business process then give the authorization of Asset Master data creation to User.
    I personally feel this requirement is not feasible.
    Regards,
    Shayam

  • Master data from combination of multiple system source

    Hi All,
    We have a situation wherein we have to load master data from 2 different source systems. For the same Business areas ( Ex. SD, FI, etc). with most probably with same values. Since the master data is overwrite, the last load value will only be available.
    Please help me out in the precautions / design change need to be done in the existing system.
    Regards,
    N P Reddy

    Hi NPR,
    For this the recommended scenario is using Source System Compounding for the InfoObjects. See here for full info:
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6399e07211d2acb80000e829fbfe/content.htm
    Hope this helps...

  • How to load master data from 2 source system without using 0logsys as compo

    Hi Gurus,
    I am working on a project which has 2 source systems.
    Now I have to load master data from 2 source systems without making 0LOGSYS as compunding attribute. Because all the objects which i want to use compunding attribute are reference objects for lot of other info objects. So, i dont want to change the business content objects structure.
    So, please help me out providing logic.
    thanks in advance
    Peter.

    Hi Peter,
    Can you brief me how did you resolved your issue?
    Regards
    Utpal

  • To Load Master Data From Two Source System

    Hi All,
    I have a small question :
    - Can we load master data from two different source system say from flat file and R3 or any two different or similar source  system?
       If answer is "Yes", then how?? If possible step by step.
    Appreciate your valuable points.
    Thanks,
    Niraj Sharma

    Hi,
    Still i have problem.R3 Transformation and DTP is getting activated but when i am executing DTP for flat file,
    I am getting below ERROR.
    Object DTP DTP_d55.......could not found in version A.
    I have  checked the Master data locally for source sys in compounding Tab of the key field.
    Please help..
    Thanks,
    Niraj

  • Fetch data from C251 transaction - print master recipe

    Hi ,
    I am working on SAP xMII. I need to fetch the data from c251 transaction and show it to the user.
    The problem is that xMII can call BAPI or can listen to IDOC messages. I could not find any BAPI inside c251 transaction program.
    Following are my queries
    1) Is it possible to convert a transaction program into BAPI?
    2) Is it possible to generate IDOC messages using c251 transaction?
    3) Is there any BAPI which will fetch the information of c251 transaction?
    Thank you,
    Kola

    hI,
    Please check the following BAPI
    BAPI_CONTROL_RECIPE_GET_LIST
    Regards
    Kannan

  • Extraction of master data from R3 into BW.

    Hello.
    This is my new SAP BI assignment:
    I'm going to use standard SAP InfoOjects (from Business Content) in order to build a new InfoCube (Logistics - MM/SD) with for example standard Characteristics like: 0MATERIAL, 0MATL_GROUP, 0SHIP_TO, 0SOLD_TO, 0SALESORG, 0PROD_HIER, 0CUST_GROUP, 0COMP_CODE... (_Note: NO generic extraction involved_)
    My question is, do I need some extra "Process Chain"  (Tcode: RSPC) in order to bring all these characteristics and all associated master data/texts, attributes and hierarchies from the R/3 ( source system) into BW, or these data will come with a standard extractor into SAP BW? I mean no extra work is needed for  bringing master data from R/3 in to BW?
    Another question, Is there any way to know which Characteristics need an extra "Process Chain"  (Tcode: RSPC) in order to bring associated master data/texts, attributes and hierarchies from the R/3 ( source system) into BW?
    Regards
    ASantos

    Hi ,
    1. In SAP R3 system go to the transaction RSA6, find the application component then select the data Source and view the structure of the data source and  select all the required fields.
    2. As you said no generic data source involve , then create the generic data source using the transaction SBIW, generic data sources have many creation options. view is the simplest.You can create a viewwith all requred fields on the top of different source table fieldsa per your requirement.
    3.Now go to the transaction RSA3 the extractor checker ,give name of your ectractor as input and check this data source.
    4.go to BW system,transaction RSA1, find the source system then replicate the metadata in the corresponding application component.After replication only the structure of the data source is copied not the actual data.
    5. Create InfoPackage, so that the actual data is loaded in the PSA table.
    6. Create transformation between the data source and the corresponding data target (InfoProvider - infoobject, cube, DSO). This is done by mapping the source fields with target fields using the appropriate rule type.If there are some update rules in R3 system then you may need to write some field level routines depend on your requirement.
    7.Create DTP between the source and target, and execte it .It will load actual data into the target.
    8.then more transformation and DTP can be created and executed according to the requirements, like from DSO to cube. Thus the data is available in BW data targets on which query can be generated for reporting.
    I don't think you need any process chain for this .this is manual process but loading DTP and all can be automated via creating process chain .
    For more guidence you an refer this document:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40394d9b-93b9-2d10-9f9a-f13118a4776d?quicklink=index&overridelayout=true
    Hope this will be helpful.
    Regards,
    Jaya

  • BPC Error while loading master data from SAP BW

    Hello Guru,
    I have NW BPC 7.5 installed on BW server. Currently i have started to work on one application where i have to load master data first. I am loading master data for cost center.
    I looked into the process chain "BPC: Import BW InfoObject master data" and i found that few processes are  in GREEN color and few are in RED color (Display). is that correct or not ? then as per some of the thread i went to "BPC: Convert BW infoObject master data" --> SOURCE_TYPE = IP  and added one parameter "FORMULA_FILE_NO". Then i saved this process chain and activated it.
    I created transformation file in BPC and it got created successfully but while i try to load packages it throws me error.
    Q. Do i need to have entire process chain with all processes in GREEN to have the master data in BPC ?
    Q. Do i need to activate any BADI's for this or not ?
    I appreciate your help in advance. I trie

    Hello Guru,
    Currently i am getting below error while loading costcenter master data from BW to BPC.
    Task name MASTER DATA SOURCE:
    Record count: 189
    Task name TEXT SOURCE:
    Record count: 189
    Task name CONVERT:
    No 1 Round:
    Info provider  is not available
    Application: ZRB_SALES_CMB Package status: ERROR
    Anybody can tell me, if i have missed anything ???
    Regards,
    BI NEW
    Edited by: BI  NEW on Feb 23, 2011 12:25 PM

Maybe you are looking for

  • New hard drive - dont want to lose my webpage

    Recently had to replace hard drive - lost everything - if you're reading this, pause 1 minute and back up all your pics and videos. Anyway, my webpage is still on .mac, but no info on iweb. Is there way to download from .mac back to iweb? I am worrie

  • Connecting Airport Extreme to wired Windows

    I'm interested in getting the new Airport Extreme, but I was curious how it is for connecting to Windows via ethernet. I'm specifically talking about Windows 98. Is the Airport Extreme like any typical router when it comes to the ethernet connections

  • 1366 X 768 16:9 question

    I just bought an LCD TV with a 16:9 widescreen 1366 X 768 resolution. What do you have to do to achieve this widescreen resolution? I have the ATI 9600 256mb graphics card that doesn't have this resolution native. The screen appears to be stretched.

  • Basic question about Weblogic integration

    Hi All, How many xml schema files can be specified at Start node in JPD. Can Dynamically select a schema file at startnode. If Yes How?? Thanks

  • Function module to send mails to outlook

    Hi All, Can you let me know if there is an FM to send mails to the OUTLOOK. Also let me know what parameters need to be passed to the FM. I need to send mails to the individual and also to the user group. Regards Shiva