Mapping arrangement and code efficiency

Hi all,
I have a general question about how best to structure and OWB mapping.
Take the example where I have multiple source tables (Table A, B and C) which are referenced multiple times in one mapping. Is it best to bring in these tables multiple times on the canvas as and when I need them, or is it best to have them placed only once on the mapping and then all references to other transformations/tables to be made from the first drop of the table. From a visual perspective mappings are a lot easier to understand if the tables are copied in more than once, however my main question is around the efficiency of code written underneath...in which example will the most efficient code be written or will it be the same?
Thanks
Mitesh

well, the thing is that a mapping does not have to result in a single SQL statement.
Row based mapping, e.g. will not.
So, depending on what the mapping does, it could matter somewhat since the generated code might differ.
A tricky thing to do, is to make sure that the "flow" in the mapping will be correct (what table get's processed first etc)

Similar Messages

  • SubVIs and code efficiency

    Hello,
    I would like to know what is better (when thinking about program velocity), to make a huge VI or a lot of subvis distributed in many levels.
    I imagine that this relation (number of sub VIs and program efficiency) will have something to do with the way I pass values between VIs.
    So my second question is what is better, to pass values using global variables, to pass control references and use a lot of property nodes, or to pass it in another way. 
    I tried to find info about this questions but  I had little success,
    I hope someone can help me!
    Best regards, 
    Gabriel
    Solved!
    Go to Solution.

    I have found the answer for my question on the following webcasts: 
    Best Practices for Managing Application Development with the LabVIEW Project
    http://zone.ni.com/wv/app/doc/p/id/wv-167 Tips and Tricks for Improving LabVIEW Application Performancehttp://zone.ni.com/wv/app/doc/p/id/wv-173Software Design Architectures in NI LabVIEWhttp://zone.ni.com/wv/app/doc/p/id/wv-160Design Multirate Applications with LabVIEW Timed Loophttp://zone.ni.com/wv/app/doc/p/id/wv-863
    Message Edited by GPC on 10-01-2009 03:11 PM

  • A table mapping between country code and currency code

    Hi experts,
    I want to know whether there is a table mapping between country code and currency code.I have found the table T005(Countries).But I don't why the filed of WAERS(Country currency) hasn't maintained in talbe T005?Whether country code and currency code hasn't direct relation?
    Regards,
    Kelvin

    Dear Kelvin
    The said field (WAERS) can be fetched from many tables.  To name a few, below are some of the tables in which, you can see the field for currency.
    1)  BKKI4
    2)  BKKI5
    3)  BWPOS
    4)  KNKA
    5)  KNVV
    6)  MSEG
    thanks
    G. Lakshmipathi

  • Map/Reduce and Affinity

    First of all, let me describe use case.
    Where are two types of objects (and accordingly two distributed caches): Child(cid, pid, cdata1, ....) and Parent(pid, pdata1, ...). Child's key have key association so, child objects stored in the same partition where its parent stored. So, I need to run the query against parents with several constraints applied. These set of constraints contains constraint which is based on data from corresponding child objects. How to do it efficiently without precalculation and putting precalculated value in Parent objects and applying constraint to it?
    Example:
    User(uid, firstname, lastname) and Address(aid, uid, zip) (user can have several addresses)
    query is: select all users which firstname equal to 'John' and have address with zip equal to '65535'
    The second case is pretty the same, but the query is slight different: select all addresses with zip equal to '65535' and which user's firstname equal to 'John'

    Hi,
    I was asking about immutability of fields used to establish the join relationship between the parent and the child and the rest of the attributes in one of the tables.
    But it makes too many restrictions, I believe.
    Ok, in the general case of map reduce you can just do an aggregation and idempotently put the reduced info to a cache in a DIFFERENT cache service from what you aggregating in an idempotent way (always the same data on the same key even for retries), which also means that the granularity of such data must be so that an entry of the reduced data must be reduced from entries only in a single partition of the mapped data if this is not the final reduce step.
    Let's look at an example: you are doing a two step map/reduce.
    First step maps entries like this:
    Mapped data keys are:
    P1K1
    P1K2
    P2K3
    P3K4
    where with the notation P2K3 I mean that Coherence assigned the key to partition 2. This assignment has to do with Coherence's key-partitioning strategy (which is pluggable, by the way), you cannot explicitly decide it on an entry-by-entry basis.
    Let's assume that P1 and P2 are at the time both owned by node X, P3 is owned by node Y.
    When you are doing an aggregation of this cache, it is possible (likely) that your aggregator on node X will get entries for keys P1K1, P1K2, P2K3.
    Your aggregator must create a reduced result for (P1K1 + P1K2) which is a separate from the reduced result entry from P2K3. That result entry must only depend on the data in the entries from which it was reduced respectively (P1K1 + P1K2 or P2K3, but not both) and not on anything else. This is because Coherence may reexecute that
    aggregation later on a node which has only P1 but not P2 if node X died, and the cache might also have one of the reduced results and you would end up either with corrupt results or you would have to write more complex code to cover this case.
    You have to put these RP1K12, RP2K3, RP3K4 reduced entries to a cache separate from the mapped cache so that you are not facing the possibility of deadlocks or thread-starvation in the service of the aggregated cache.
    This unfortunately will mean that the reduced result will likely not be on the same node as the mapped data, and that would mean lower performance compared to if you were able to do this in the same node in case your both caches you want to join together were on the same node.
    Another approach, for affine data is that from the aggregator you locally enqueue the reduced data to a local queue from which its consumer fires off the second step of aggregations to the other cache to be mapped which aggregation holds the first reduced data in its state. You will have to care about duplicate checking of partial reduced data on the final reduce step so each step of your reduced data must carry its source partitions from all preceeding steps.
    I will possibly show an example of this in a couple of days, but I will have to iron out a couple of things, first, like ensuring at-least once guarantees for starting the next step.
    Alternatively you can build something similar with InvocationService which helps a bit by providing an asynchronous invocation possibility.
    Best regards,
    Robert

  • How Do RoboHelp 9 WebHelp Generated Files Handle Map IDs and Aliases?

    The text below was written by our team's developer/architect. I am the help author who uses RoboHelp to write content and generate the help files, but I am clueless how it all gets generated and is deployed. Please help. We use RoboHelp 9. I use it in Windows XP and our app and help run on IE 7, 9, and Firefox (multiple versions).
    "Our application uses the numeric identifiers associated with the Map ID. For example, to get to the <appname>_home_page.htm file, we use the number 1053. <appname> = pecs, in this example.
    All of this is used in a call to a RoboHelp method defined in the RoboHelp_CSH.js file. The mehtod we are calling is the RH_ShowHelp() JavaScript method and the code to perform the call, when you click on Page Help, is this:
    RH_ShowHelp(0, ''/pecsHelp/index.htm>pecsHelp',HH_HELP_CONTEXT,topic);
    Topic is translated to the Map ID number for the page help. HH_HELP_CONTEXT is defined in the RoboHelp_CSH.js file. This method translates into a URL and from what I have seen, the URL that gets generated is this:
    http://{server}[:port]/pecsHelp/index.htm/{server}[:port]/pecsHelp/index.htm#<id=1053>>pecsHelp
    Server and port get replaced with the appropriate values. I have no clue how id=1053 is supposed to get translated to mean "pecs_home_page.htm". If you check the PECS_help.h file, you will see the following entry:
    #define PECS_Home_Page1 1053
    Then in the RoboHelp alias file (PECS 3.0.ali), the following line is in the file:
    <alias name="PECS_Home_Page1" link="pecs_home_page.htm"> </alias>
    But both of these files are used during the WebHelp generation process and I don't know how the WebHelp generated files handle the Map ID and aliases."

    You need to assign the numbers you find in the pecs_help.h file to topics in your help. You do this in Context Sensitive Help > Map Files > All Map IDs. (From RH7, but I assume the location is similar in RH9.) This creates the entries in the .ali file.
    Peter Grainge suggests a couple of sites to read for a greater understanding here:
    http://www.grainge.org/pages/authoring/calling_webhelp/using_map_ids.htm
    (Although the second  site is based on RH X5, the basic concepts and procedures should be very similar. )
    HTH,
    Amber

  • SAP:Code area="MAPPING" EXCEPTION_DURING_EXECUTE /SAP:Code

    Hi Experts.
    I'm tryin to make a JDBC Synchronous escenario, i want to UPDATE data from table in DB2 AS400, and the JDBC Update instruction returns the total of the register updated.
    All the configuration It's ready, but when I send the Update instruction, the UPDATE the information in the AS400 DB2 table, but the return message send me the next error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_DAT_RES_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns0:MT_DAT_RES_0</SAP:P3>
      <SAP:P4>2. Values missing in queue context. Target XSD re~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_DAT_RES_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:MT_DAT_RES_02. Values missing in queue context. Target XSD re~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can anyone telll me about it?
    Thanks.
    Kenneth

    Hi Rao,
    Go to sxmb_moni and open your response mapping and take the payload and test your mapping. It seems the value you are mapping to /ns0:MT_DAT_RES_02 is not there. Can you please check that. You need to make sure step 4 in this blog:
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    Your response always comes up with _response and your message type should be like that only.  Also can you give your response mapping payload and the response message type here so that somebody can help you out if this didn't resolve your issue.
    Regards,
    ---Satish

  • Problem in getting Portal Mapped user and password in Web Dynpro iView

    I am developing a webdynpro iview.My app need to read mapped user and password form a system in Portal runtime.
    I used the following codes in my Web Dynpro java program:
         IWDClientUser user = WDClientUser.getCurrentUser();
         IUser iuser = user.getSAPUser();
         IUserMappingService iums = (IUserMappingService)WDPortalUtils.getServiceReference(IUserMappingService.KEY );
    //     IUserMappingService iums = (IUserMappingService)
    //     PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
         IUserMappingData iumd = iums.getMappingData (systemalias, iuser);
         Map map = new HashMap ();
         iumd.enrich(map);
         String userid = (String)map.get( "user" );
         String pwd = (String)map.get ("mappedpassword");
    I've add a sharing references in project properties,the value is "PORTAL:sap.com/com.sapportals.portal.prt.service.usermapping.IUserMappingService"
    But when I run the iview on my Portal, it goes wrong, the message is:
    com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application ''local/HomePage'' for startup. Reason= Clusterwide exception: Failed to start dependent library ''com.sapportals.portal.prt.service.usermapping.IUserMappingService'' of application ''local/HomePage''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
        at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1490)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:231)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:184)
        at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
        at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:117)
    Anybody can help me?And are there anyother methods can get mapped user and password of Portal systems in Web Dynpro JAVA.

    Hi Wayne,
          Did you added com.sap.security.api.jar to your webdynpro project. if not follow this steps.
    1. Right-click the project in Eclipse or SAP NetWeaver Developer Studio.
    2. Select Properties.
    3. Choose Java build path -> Libraries -> Add Variable -> Select variable WD_RUNTIME -> Extend -> com.sap.security -> lib -> com.sap.security.api.jar.
    I hope this should solve your problem.
    Regards, Suresh KB

  • Mapping EBS account codes to Group Account Numbers - Customization

    Hi,
    I want to map the account codes that are present in the Oracle EBS to BI Mappings.
    I am aware of the changes to be made to the following three files:
    ■ file_group_acct_names.csv - this file specifies the group account names and their corresponding group account codes.
    ■ file_group_acct_codes_ora.csv - this file maps General Ledger accounts to group account codes.
    ■ file_grpact_fsmt.csv - this file maps Financial Statement Item Codes to group account codes.
    The overview of my case is as flows:
    The client requires the general accounts to be clubbed into different sub-groups based on their reporting practices. This would lead to generation of around 60-70 odd group account numbers. My queries are as follows:
    1.There are cases where accounts belonging to a single parent account needs to be bifurcated into two different group account numbers. In that case, to which group account number should the parent account be classified?
    2.Can we go about modifying the existing group account numbers and adding new group account numbers as long as we are able to categorize them in the existing 6 financial statement buckets?
    3.What are the changes needed to be done in the RPD file to reflect the changes made to the group account numbers? Any documentation highlighting the same would be highly helpful.
    Thanks,
    Regards,
    Rajit

    Hi Krishna,
    I have the same required as yours.
    I implemented the note 914437.
    I noticed two peculiar cases from the standard mapping i.e. (standard BP Role sold to party)
    1) In BP transaction, in Display in BP Role drop down list box there is no custom BP Role as shown above but if I select the detail Icon I can find it there as shown in below screen shot.
    2) I found in Tx BP there is only one BP Role as shown above but in CRM Web UI there are two BP Roles in the ROLEs assignment block.
    Could you please add your comments or solution for it.
    Thanks,
    Raja

  • Mapping new product code from source system to old product code in Oracle COA

    Mapping new product code from source system to old product code in Oracle COA
    Here is the situation:
    One of our legal entities is changing their product codes in their COA segment. We are not changing the code structure in the global SOB. Is there a workaround to pull the source system information into ADI (or any other tool) and map it to the current Oracle product code?
    Thanks and regards,
    [email protected]

    Only The  Data of Your Code will Change
    then if you are trying to copy a standarad sap-code , you need to copy
    every include, FM
    there is a Copy option over there in program
    you can do tat
    thnkx bhanu

  • Mapping Node and Attributes

    Hello all,
                I am using Process Composer for a process design.
    I have a human activity and an automated acitivity.
    Human Activity                                                 Automated Activity
    + Type Code (node)----
    Type Code (node)
       - TypeCode (attribute)----
    text() (attirbute)
    Above shows the mapping. Now I map the node and then i map the attribute. I save it.
    The above mapping is for input mapping of the automated activity. Suppose if leave the mapping screen and come back, the mapping is automatically gone. Though i saved it. The TypeCode (node) is mapped to text() with an error (after i change screen. That will be error of course).
    Have any of you faced any similar issue before?

    Problem solved.
    1. The cardinality of the nodes was not matching.
    2. Attributes were matched instead of matching nodes.
    Thnks

  • Mapping of tax code with juridiction code

    Hi MM Experts
    While releasing service entry i m geting error " Message FF718 (tax code does not exist fo jurisdiction code)"
    i have checked in FTXA tax code is mapped with juri code.
    pls tell me where is the problem.
    Thanks
    Anubhav

    Hope you have created Tax Code with Jurisdiction in FTXP Properly and Checked the Jurisdiction in Purchase ORder Item Detail Invoice Tab.
    Now Check in OBCL whether Jurisdiction is Assigned to Company code.
    Regards,
    Ashok

  • Mapping of Product codes in Inter sales

    Dear Gurus,
                  I am currently working on EPM 10 NW. The client is Textile giant. The client has its entities around the world. They have inter sales also. Now the problem is when one entity make sales with one particular code of the product to another entity it gets changed to another code of the product. For Ex:
           Seller:                      Product Code          Entity
                                               PR011                  A
                                               PR012                  A
            Buyer:                                                                           Product Code          Entity
                                                                                                    RS011                    B
                                                                                                    RS012                    B
         Both A and B are inter company entity. One more thing they are only specific product codes which are involved in inter sales. So my query is how to map the Product codes in the when this transaction takes place?
    Thanks in advance.
    Regards
    Kumar MG                

    Hi Nilanjan,
      Practically it has to be captured in both the entities against their interco's. That will be one way. But even if I do that, how I will reconcile with the Product code? As in one entity the product code quantity is getting reduced and on the other hand I am not able to show where it is getting added unless I map the product code to the other entities product code. This is particularly in the case of entering the data.
    Regards
    Kumar MG

  • Problem with mapping 0SOURSYSTEM and 0LOGSYS in BI7.

    Hi,
    Can anyone tell how to map 0SOURSYSTEM and 0LOGSYS in BI7. I have these two fields in my DSO and get it populated from the Datasource. To which fileld in the datasource can i map these fields or what routine should i write?
    In BW3.0 we used to just include these fields in the transfer structure of the infosource and it used to get automatically mapped in the communication structure. But in BI7 since we are not using infosource we cannot do it.

    hi,
    chk using this in transfer routine
    PROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RSD, RSARC, RSARR.
    TYPES: DE_0LOGSYS(000010) TYPE C.
    Conversion rule for InfoObject 0LOGSYS
        Data type       = CHAR
        ABAP type       = C
        ABAP length     = 000010
    FORM CONVERT_0LOGSYS
      USING    RECORD_NO LIKE SY-TABIX
               SOURCE_SYSTEM TYPE RSA_LOGSYS
               IOBJ_NAME TYPE RSIOBJNM
      CHANGING RESULT TYPE DE_0LOGSYS " InfoObject value
               RETURNCODE LIKE SY-SUBRC.
    $$ begin of routine - insert your code only below this line        -
      IF RESULT IS INITIAL     and
         IOBJ_NAME = '0LOGSYS'.
    fill source system
        RESULT = SOURCE_SYSTEM.
      ENDIF.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Assign Points if useful
    Ramesh

  • How do I change email so pictures appear instead of links and code

    how do I change email settings so pictures appear instead of links and code?
    Also how do I change settings to get .doc attachments instead of win.dat attachments?

    I advise you to look at your code and ask yourself if it's efficient. What is you wan to add a few numbers to your program? You'll have to add a lot of lines of code.
    Ah well, here's the answer to your question (partially):
        double sum = (one+two+three+four+five+six+seven+eight+nine+ten+eleven+twelve+thirteen);
        double mean = (sum / 13);
    //...

  • How to Mapping of company code to the billing units

    Hi,
    Please help me how to Mapping of company code to the billing units , iam doing the rollout project.
    Thanks
    Mustafa

    Hi Mustafa,
    External billing (A): Billing is controlled in the R/3 System.
    The company code is determined by the accounting adapter which calls
    the R3 system. You define the company code to be transferred in
    Customizing under:
    Customer Relationship Management
    Master Data
    Organizational Management
    Cross-System Assignment of Organizational Units
    Assign Company Codes and Business Places to Billing Units or
    Assign Company Codes to Billing Units.
    Also you can check attached note 717476 for further information.
    Cheers,
    Brian.

Maybe you are looking for

  • My report contains a BLOB (image), why it can't generate an XML file?

    Hi guys, I created a report (Purchase Order) and it has a Signature field. which is a BLOB column of an image (.JPEG) of the signature of the Purchase Order Approver. When i run the report in the report builder its working and it shows the image of t

  • All SCXI-1163 Relays open at the same time

    Hello When I try to switch only one relay of my SCXI-1163 module for the first time (i.e when I just opened labview), ALL relays open at the same time. This is terribly annoying. How can I avoid this. I havent' found any initialization VI.

  • Restriction of goal / KPI values Weightage to 100% in an appraisal template

    Dear All In EHP4 scenario, How can we restrict the appraisal goal / KPI values weightage to 100% in an appraisal template. Can we configure or arrive at an solution for -- the weightage calculation of ( Company Goals + Team Goals+ Core Values + Indiv

  • User Exit precautions

    Hi Everyone, I have one doubt suppose i start doing user exit for ex VA01. Before that what are the precaution step we need to follw and what are the things we need to avoid and check before processing. And one more important doubt can we use Commit

  • Panel box in ADFcore

    Hi I want to customize panel box by writing a new template (css file). I want a box like panel box , but the edges should be curved. I have seen the template for panelbox , but could not understand it. Can any one tell me an example about how to go w