How can we identify the location from which a map is run, in the map ?

Hi,
I have a map that moves data from source system into the target system.
I have two locations in the project (PROD_SOURCE and PROD_TARGET).
My map picks the source table from PROD_SOURCE location and inserts into the target table in PROD_TARGET location.
Now, this map can be deployed by changing the source location.
In my map, I want to find out the location and subsequently the source database from which the map was run. This has to be inserted into a table
Any pointers?
-Pushkala

You can always query the data dictionary in a pre- or post- mapping procedure.
e.g.:
select dep.owner, dep.object_name
FROM PUBLIC_DEPENDENCY pd,
all_objects dep,
all_objects src
where pd.object_id = src.object_id
and pd.referenced_object_id = dep.object_id
and dep.object_Type = 'TABLE'
and src.owner = 'ERS_CTRL3X'
AND src.object_name = 'TEST_MAP'
AND src.object_type = 'PACKAGE BODY'
will give me the listed owner of all tables referenced in this mapping. Knowing the table name, I would have access to the owner name. Now, whether you also will need to query agains all_db_links to see where a given db link is pointing to resolve the owner etc, or all_synonyms to resolve local synonyms to the db_link that they operate against etc I do not know. But tracing the dependancy tree from the current runtime copy of the package will get you to what you need.

Similar Messages

  • How can i add STORAGE LOCATION field which is not...............

    hi,
    sap gurus,
    good morning to all,
    how can i add STORAGE LOCATION field which is not in the standard tables namely
    KOMP, KOMK, and KOMG.
    how to include it in our FIELDS FROM FIELD CATALOGUE.
    if we include this field is there any impact on the standard tables.
    plz let me know this.
    bcz
    we are selling our products in two ways
    (1). one is straight from factory ie direct sales from factory
    if customer asks for excise invoice then we will sell thru factory and keeping freight in mind we will
    deliver him which ever is economical either rail or road.
    before coming to second case of selling the goods
    we will do STOCK TRANSPORT ORDER from plant to different storage locations.
    if we did STO thru road we have to sell the goods thru road only.
    if we did STO thru rail we have to sell the goods thru rail route only.
    (2). if the customer is not asking any excise invoice then we will send the goods thru depo/storage
    location which is not registered under excise.
    if the goods came by road then it will be delivered by road only.
    if the goods came by rail then it will be delivered by rail only.
    my logic here is
    basing on the
    storage location, transportation types, and distance i want to create condition record
    that captures exact frieght at the sales order level.
    confirm whether i am right or wrong.
    regards,
    balaji.t
    09990019711.

    Hi,
    It is not recommended to add new fields to any SAP standard tables. It disturbs the whole SAP functionality.
    But if you have no choice expcept to change the standard tables to meet your requirement -  then you need an access key to modify the object, which is available from the market place.
    Nevertheless, the better option is to create a 'Z' table with the required fields and use that accordingly.
    Changing standard tables will have serious impact when you apply patches or do an upgrade on the existing functionality.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • How can i identify the environment name or database name in the PL/SQL code

    Hi,
    I am using UTL_FILE to genearate the files.,
    My problem is, I have to design the common sql file , which can be executed in 2 diffrent environments ( Say QA & DEV ) , with no parameters. It has to identify the environment and based on the environment , it has to generate the concern files.,
    The only change needs to be incorporated is , file names , which will change based on the environment.,
    can nay one tell me , how can i identify the environment name or database name in the PL/SQL code ??
    Raja

    In this case, USEC_GI_DEV.NA.XXXNET.NET is a TNS alias. That alias exists only on the client machine. There is no way to access that information on the database server.
    You would have to find something in the v$database or v$instance table that uniquely identifies the database (and you may need some help from the DBAs to do this because you need to ensure that the data element you choose is compatible with whatever refresh process(es) are used in your environment).
    Now, if you are writing a stand-alone SQL*Plus script, SQL*Plus, as a client tool, does have access to the TNS alias in later versions. But that is a client-side determination, not a server-side determination.
    Justin

  • In Credit Management how can we identify the credit customers

    Hi SD Gurus,
    Could you please tell me, In Credit Management how can we identify the credit customers?
    and what are accounting entries?
    Thanks & Regards,
    Nivas

    You can refer Table KNKK with reference to Credit Control Area, you will get all the Customers maintained for Credit Management.
    There is no such Accounting Entries especially for Credit Management.It would be the same as comes while creating Invoice.
    Best Regards,
    Ankur

  • How can i change store location from US to Europe?

    Hi,
    How can i change the store location from US to Europe in the I-tunes store?
    I can't buy anything now.
    Thanks.

    When on the iTunes store page in iTunes, scroll to the bottom. There, on the right is a flag by which you can change the settings.

  • How can we identify the coupon code that triggered the promotion discount in the order?

    Hi,
    As we can create the coupons and assign the promotions to them to give discounts.How can we identity the coupon code that is added the promotion which caused the discount in the order?
    Regards,
    Chede

    I'm giving you an example. Here is how you do it starting with order level promotions. OrderImpl object API below give you orderpirceinfo and second link gives adjustments.
    http://docs.oracle.com/cd/E35319_01/Platform.10-2/apidoc/atg/commerce/order/OrderImpl.html#getPriceInfo()
    From OrderPriceInfo which extends AmountInfo, the following method gives adjustments
    http://docs.oracle.com/cd/E35319_01/Platform.10-2/apidoc/atg/commerce/pricing/AmountInfo.html#getAdjustments()
    Now iterate through adjustments, to get pricingmodel(which is promotion) and coupon applied on order
    PricingAdjustment (ATG Java API)
    PricingAdjustment (ATG Java API)
    Hope this gives you an idea where to start with.
    -karthik

  • How can we  identify the mails from the mails that have been read previousy

    Hi
    i m using java mail api to fetch the mails. but i am facing a problem that is every time i fetch all the mails in my application.
    Is there any way by which i can set a flag or something so as to i can identify the mails which have been processed earliar.
    please help me out.
    Dushyant Kumar

    POP3, right? See the JavaMail FAQ.

  • HT4623 How can i change my location from usa to ksa

    HI there
    when i want to update the software
    i got msg told me i have to change my location from USA to Saudi Araiba
    how can i make it, in addation im from kindom of saudi arabia
    thanks. Alot

    http://support.apple.com/kb/HT1311

  • How can I identify the IP address of a device on my LAN?

    If I attach a device to my LAN but have no idea of its IP address (ie it may not even be communicating), is it possible to identify its static address?  Or will it only respond (to something like nmap) if the route of the transmitting device device is correct?
    For instance, my PC is 192.168.0.4 and its default route is 192.168.0.1.  If I attach another router that has an address of 192.168.1.254, how can I determine that its physically connected?   Using nmap -PR 192.168.0.0/16 for host discovery doesn't reveal its there unless I change the default route to (something like) 192.168.1.1

    adee wrote:Ok, so:
    ...Those are not on the same subnet dude!
    I realise that, but they are sat at each end of a 1m ethernet cable and I want to know if its possible to recognise there is a device on the physical network even though its on a different subnet.

  • How can I identify the cause of a Script Error

    We have a client who has been using Contribute for a few years and who has reported that they are constantly getting a Script Error message when using Contribute to edit pages.
    This message has only started to show in the last week or so despite there not having been any revisions to the site template (that I'm aware of).
    The message seems to be appearing when visiting most if not all pages on the site.
    I've looked at the scripts used in the site but can't identify anything with reference to MM_swapimage in Line: 1 Char: 1
    Can anyone give suggestions for solving this issue or at least to stop the error message from conatantly appearing?
    Screen shot of the message attached for reference.

    You can try installing IE 9. Since Contribute uses the latest version of IE installed in the machine as its embedded browser, this issue might be solved.

  • How can I identify the cause of high CPU usage

    Just recently, my Mac Book Pro CPU usage has gone through the roof, and the temperature quickly rises to around 80ºC, with the fans are working pretty hard to keep it there.
    I've looked in Activity Monitor, but there's nothing unusual as far as I can tell in the list of processes, but it does show that the system is continually using between 30% and 40% of the CPU all the time, even if I have no applications running. From a cold start, it starts using that much CPU as soon as OSX loads.
    Here's a screen grab of the activity monitor window
    One thing I thought was strange is the amount of Virtual Memory that Growl uses (37gb) but according to the growl website, that's not unusual. I've also tried quitting Growl, but it makes no difference.
    I have 30GB of free space left on my HD.
    Any ideas? I'm worried my Mac Book might be on it's last legs, so I'm hoping and praying that this is something simple-ish.
    thanks
    -t

    Your fellow MacBook Pro users would be found here:
    http://discussions.apple.com/category.jspa?categoryID=190
    http://www.apple.com/support/macbookpro/
    Might also want to check out the Mac OS X Snow Leopard discussions.

  • How can I identify the culprit for a "dead" iMac?

    Hi, my friend's 21" iMac ( Intel plastic, last version before aluminium ) started to boot erratically a while ago. She had to let it sit for hours, and then for days, and it would eventually boot again. Now she finally called me, for the iMac seems to be unwilling to boot at all. When I press the start button, it produces a very low noise, I have to press my ear against the housing to hear it. But no disk spinning, no light flashing, no screen. I was thinking that the power supply could be dead, since I encountered this problem on my older G4 mirror door tower. But maybe, could it be hopefully just a PRAM battery problem? Is there one in the iMacs that needs to be replaced once in a while? Is there a tutorial that could help me spot it? Since I replaced a drive in that iMac model, I suppose that I could do it myself, provided a few hints and maybe the battery model?

    There are internal PRAM batteries. Once dead they can lead to unusual symptoms such as no video. But I cannot tell you if that's the case. However, that may not prevent the normal startup chime.
    Getting to the battery requires substantial disassembly of the computer. You would need to do a Google search to try and find a disassembly tutorial. You could check out ifixit.com for a start.
    Now, you might try:
    Resetting your Mac's PRAM and NVRAM
    Intel-based Macs: Resetting the System Management Controller (SMC)
    But if you cannot succeed in a normal startup of some kind, then take it in for repair as the problem may be more than just a run down internal battery.

  • How can I identify "unrequested" downloads which arrive without appearing in the Downloads window

    Frequently during quiet periods while online, data downloads occur as can be observed by the data transfer indicator flashing on the modem. They have not been preceded by requests for updates, requests for specific downloads, or by announcements from any source. They usually resume if the modem is switched off for a while, and then switched on again. 50 MB has come down over the last half hour. There is usually no warning from my firewall and other security software, which does not mean that the downloads are definitely safe. This interferes with sensitive connections to banks, for instance. I have found no obvious clues while browsing folders, and there are many hidden folders in Windows 7. How can I identify the data online, preferably, or on my harddrive later ? Opening the Downloads window after the start of a session of mystery files does not help.

    See [[Firefox makes unrequested connections]]

  • How to programmatically Identify the Phase from a managed bean

    How can we identify the Phase from a normal managed bean method ?
    This managed bean method is a method activity in a task-flow. How can we identify the phase..?
    If there is an event then, we can identify the phase using event.getPhaseId() but here there is no event. Can I get the phase programmatically ?
    Thanks

    Hi,
    You won't need that with a PhaseListener. You could use something like the following:
    public class CurrentPhaseListener implements PhaseListener
        private static ThreadLocal<PhaseId> currentPhaseId = new ThreadLocal<PhaseId>();
        public static PhaseId getCurrentPhaseId()
            return currentPhaseId.get();
        public void afterPhase(PhaseEvent ev)
            currentPhaseId.remove();
        public void beforePhase(PhaseEvent ev)
            currentPhaseId.set(ev.getPhaseId());
        public PhaseId getPhaseId()
            return PhaseId.ANY_PHASE;
    }Regards,
    ~ Simon

  • How can i identify multiple apple devices under a same appleID for Facetime usage ?

    hi
    i have an apple ID and multiple apple devices
    i want to be able to use facetime to communicate between my various devices
    so, how can i identify my ipad from my ipod from my mac, so that i can do facetime between the three, using the same appleID ?
    thanks

    I found this discussion because I need to create dozens of Apple IDs for the faculty and staff of the school for which I'm the IT Director.
    This is weak.
    Apple, PLEASE upgrade the Apple ID system so it represents the current needs and paradigm.
    What am I thinking, Apple (like Google) don't follow user discussion forums, except by accident when an employee sees something and is motivated enough to carry the water for users in need.

Maybe you are looking for

  • HT1414 my iphone is stuck in the "connect to iTunes" screen! even if I turn it off or reboot it! What can I do?

    My iphone is stuck. I tried to update the iOS to get iCloud. Whilst updating the software an error occured (don´t know which) and the screen now is fixed on the "connect to iTUnes". I tried to turn it off, but when turning back on, the apple appears,

  • Can any one let me know

    Hi This is with respect to P-Card. I am actually confused with G/L account funda. I understand that the G/L account and Document type is created in backend to configure the PCARD. The Card company is created as vendor and the newly created G/L accoun

  • Manual Payment

    Hello Friends, My client does not want to use automatic payment and want to use manual payment. They use following payment method C- Cheque D- Deman Draft T- RTGS S- ECS They want to know by which payment method they have made payment.They also don't

  • Security Settings / Access to Documents and E-mails

    I would like to have more than one ringtone(!) on my Q10; however, when I try to add any of the ringtone apps, I am asked to give the app access to my documents(!) and e-mails(!).  While I can understand the need for the app to have access to a sende

  • SRM 4.0 & structural authorizations

    Hi all, I have discovered that using structural authorizations (OOSP & OOSB) I can control all match codes and filter users on creating P.O. Does anyone have used OOSP & OOSB in SRM ? Is this supported ? Thanks Andrea