Inner join to get the mail id

HI All,
I have to get the email id by linking the following table.
EKKO get vender number
from LFA1 table get address ADRNR
FROM ADR6 get the email id.
how can i user inner join to achive the condition?
Thanks in advance.

Hi,
Syntax errors are corrected here:
tables: ekko, lfa1, adr6.
data: l_lifnr like ekko-lifnr,
      l_adrnr like lfa1-adrnr,
      l_smtp_addr like adr6-smtp_addr.
SELECT ekko~lifnr
         lfa1~adrnr
         adr6~smtp_addr
         into (l_lifnr, l_adrnr, l_smtp_addr)
         from ( ( ekko inner join lfa1 as lfa1 on ekko~lifnr = lfa1~lifnr )
                       inner join adr6 as adr6 on lfa1~adrnr = adr6~addrnumber ).
write:/ l_lifnr, l_adrnr, l_smtp_addr.
ENDSELECT.
Hope it works
thanks\
Mahesh

Similar Messages

  • How to get the mail item opened window?

    Hi,
    I need to get the window of the opened mail.
    Within the mailItem.Open() event tried to get the Application.ActiveExplorer() but it returns the main outlook window.
    From the load of the addin tried as follows, but hwndSource always returns null.
    activeWindow = _mailItem.Application.ActiveWindow()
    ((Microsoft.Office.Interop.Outlook.ExplorerEvents_10_Event)activeWindow).Deactivate += MyEvent
    public void MyEvent()
    System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcesses();
    foreach (System.Diagnostics.Process process in processes)
    if (process.MainWindowTitle.StartsWith (_mailItem.Subject))
    IntPtr handle = process.MainWindowHandle;
    System.Windows.Interop.HwndSource hwndSource = System.Windows.Interop.HwndSource.FromHwnd(handle);
    System.Windows.Window window = hwndSource.RootVisual as System.Windows.Window;
    Any suggestions to get the mail item opened window? Please help.
    VS2010 C# with Outlook 2007.

    Hi Damian,
    When the Open event is fired, the Inspector object
    is initialized but not yet displayed.
    You can handle the
    NewInspector event of the Inspectors class which is fired whenever a new inspector window is
    opened, either as a result of user action or through program code. Then the
    Activate event of the Inspector class is fired, when an inspector becomes the active window,
    either as a result of user action or through program code. 

  • I don't get the Mail service to work - tried everything!

    Hey there,
    I am frustrated. It's day 4 that I try to get the mail service on my machine running. Maybe someone has sme hints?
    The setup:
    - Mac Mini mid 2010
    - OS X Mavericks and Server 3.0.1
    - static IP (no Firewall or anything else, absolute in the wild)
    - registered domain-name
    - DNS A-Record: server.mydomain.org -> static IP
    - DNS MX-Record: domain, *.domain -> server.mydomain.org; server.mydomain.org -> static IP of server
    Server Configuration:
    - Server.app shows everything is fine.
    - ssh enabled for one user (works as a charme)
    - Service-Data is on another partition than Mavericks
    - Certificate: self-signed intermediate OD-Certificate (might be problematic?)
    - users: one local user and one network-user (services-only)
    - groups: workgroup, local network-group (added by the server.app itself)
    Services:
    - Websites: configured with 12 virtual-hosts some ssl (intermediate certificate) some on port 80, php enabled (All websites work perfect, no problems at all!)
    - OpenDirectory: 1 Master on server.mydomain.org
    - Mail:
    -- Service-Bubble is green, says available under server.mydomain.org
    -- Preferences: Mail available for mydomain.org (no other virtual domains)
    -- authentification: hooked everything...(any method)
    -- no relais
    -- no MB-restriction for users
    -- Filter: Virus and Junk
    I can telnet on port 110 - feedback: dovecot ready!
    I can telnet on port 995 - feedback: works... escape characeter is ' ^'.
    I can telnet on port 143 - feedback: dovecot ready!
    I can telnet on port 993 - feedback: works... escape characeter is ' ^'.
    telnet on port 25 - unable to connect, operation timed out
    telnet on port 465 - unable to connect, operation timed out
    telnet on port 587 - -feedback works: 220 server.pscience.de ESMTP Postfix
    Seems like having problem on the smtp standard ports... but why?
    When I now try to connect a client with the server (adding an OS X server Account in the System Preferences) it recognizes the server and lists its services as expected. But when Iopen Mail, the new account shows the litlle lightning and says it can't connect.
    By the way: Notes, Calendar, Reminders work fine!
    Has anyone an Idea what it could be?
    Do I need some additional DNS-stuff?
    If you need some further informations, please let me know.

    If TCP port 25 isn't open, then SMTP services won't work.  That's the port that all SMTP servers use to communicate amongst themselves.    (Sure, you can change the port your SMTP server is listening on, but you'd also have to change the port processing on all of the other SMTP servers around — and if you did manage to implement that change everywhere, the local network folks would likely just block the new port for the same reasons they blocked the old port.)
    If you have a public static IP address and have correct forward and reverse translations — host domain to IP address, and IP address to host domain name — then you don't need and very likely don't want to run your own DNS server. 
    More to help you learn how these pieces fit together and not something I'd expect you would need given you have a public static IP and public DNS here is a detailed DNS server configuration article for OS X Server; enable Show All Records and it applies to Server.app on 10.7 and later.  If you have questions after reading that, I can certainly answer them and also update the article to try to reduce the confusion or answer the question.
    Your host didn't have valid reverse DNS, so you'll want to get that cleared up, and you'll want to get the port blocks cleared, or work with the local network folks to set up a relay through one of the existing mail servers.

  • E72 get the mail adress of the sender

    Hi,
    On my Nokia E72 configured with Mail For Exchange and IMAP account (Gmail), how could I get the mail adress of the sender... I've got the display name (Jack Noname) but I'm unable to see his mail address ([email protected]). Am I obligated to add the contact to my contact book to have access to his mail adress? Is there a shortcut or a shortkey to retrieve the full mail address.
    When I scroll to the right and click on Contact Detail, I've go an error message which say that  "email adress not available". It append with all the sender who are not in my contact book.
    Could someone help me please?
    Solved!
    Go to Solution.

    Nobody know? Nobody could help me?
    Is it possible on nokia messaging to get the mail address without adding the sender to the contact book? I will be very desapointed if not...
    Here is the error message I get when I try to access to the address mail from nokia messaging. Is there a shortcut or a feature to obtain the full mail address of my mail...
    Message Edited by hTep on 07-Dec-2009 02:37 PM

  • While running  the BPM servlet Sample I am not getting the Mail.

    Hi
    I am using the downloaded 30 day evaluation copy of WebLogic Integration 2.1
    I've got one issues regarding Data Integration Servlet Sample.
    While running the BPM servlet Sample I am not getting the Mail.Even I don't know whether workflow is getting started or not.
    Suppose My SMTP Server IP Address is 123.456.78.90 , then what should I write for mail.host=
    Anyone Please

    You cannot remove or change the old ID. This is Find My iPhone Activation Lock. You need to recover the credentials for the Apple ID originally used to activate the iPad.
    Check your spam and junk folders.

  • How do you get the mail notification on the lock screen and pull down screen?

    How do you get the mail notification like how you would get a message notification? I lock my screen and when mail comes it makes a little ring just.

    Settings>Notifications>Mail
    Tourn on Notifications.
    And you also need to be running iOS 5.
    Matt

  • Any way to get the mail app to get updated message counts for other folders

    I've been wondering if there's a way to get the mail app to not only check if new mail exists in my main "inbox", but also all of the folders on my imap server? I can individually visit each folder I'm interested in and while it works, I have to guess what folders might have mail in them.. It would be great to have the phone check all folders (or perhaps a list of subscribed folders) for new mail on a regular basis.. Any ideas?

    I have opened a wrap-up thread related to the issue reported here and in many other threads -- "iPhone Mail does not poll IMAP subfolders for server-side processed e-mails": http://discussions.apple.com/thread.jspa?threadID=1355852

  • How do you get the mail sidebar to remain visible when mail is turned off and on?

    I am using OS X Yosemite on an iMac with Mail version 8.1.  How do I get the mail sidebar to remain open so I don't have to reopen it each time I open the mail app? 

    You are not saying which Pages you have on the iMac but I presume you Pages 5. To add a period you use the keyboards key for a period. A Mac is not an iPad. They behave differently. Autocaps doesn't exist in Pages 5 but did in Pages 09 and Pages 08.

  • I can't get the mail service to stop

    Heya,
    I am working on Leopard 10.5.4 server, and having a slight problem with mail. Essentially, I cannot get the mail service to stop. More specifically, I cannot get the SMTP service to stop. When I click on stop service in the Server Admin, SMTP says "Attempting to Stop", then goes right back to running. Problem is that the Stop Service Button never changes to Start Service, so IMAP and POP will not start. I am thinking about migrating my email boxes to a secondary Leopard Server that I have, and completely ripping out the mail piece, reinstalling, and migrating users back.... Unfortunately, I don't know how to migrate the users (I tried using mailbfr but, in the end, the mailboxes don't appear in the new server), and I don't know how to completely rip and reinstall the mail piece. As you can tell, by the rip and reinstall tactics that I want to resort to, I am a recovering Windows guy who is in way over his head.
    Any help you can offer would be greatly appreciated.

    Okay, the serveradmin stop mail command worked. Unfortunately, I am
    unable to authenticate when trying to login as from a client. IMAP
    log shows:
    Aug 25 13:58:18 eve imaps[6830]: executed
    Aug 25 13:58:18 eve imaps[6830]: accepted connection
    Aug 25 13:58:18 eve imaps[6830]: TLS server engine: cannot load CA data
    Aug 25 13:58:21 eve imaps[6834]: executed
    Aug 25 13:58:21 eve imaps[6834]: accepted connection
    Aug 25 13:58:21 eve imaps[6834]: TLS server engine: cannot load CA data
    Aug 25 13:58:30 eve imaps[6834]: imaps TLS negotiation failed: [10.1.3.5]
    Aug 25 13:58:30 eve imaps[6834]: Fatal error: tlsstartservertls() failed
    Aug 25 13:58:30 eve master[6813]: service imaps pid 6834 in BUSY
    state: terminated abnormally
    Aug 25 13:58:30 eve imap[6840]: executed
    Aug 25 13:58:30 eve imap[6840]: accepted connection
    Aug 25 13:58:30 eve imap[6840]: AOD: user opts: get attributes for
    user: [email protected] failed with error:
    -14479
    Aug 25 13:58:30 eve imap[6840]: AOD: user options: lookup failed for:
    [email protected] (-14479)
    Aug 25 13:58:30 eve imap[6840]: AOD: authentication error: cannot find
    user: [email protected] (0)
    Aug 25 13:58:30 eve imap[6840]: badlogin: [10.1.3.5] CRAM-MD5
    Aug 25 13:58:32 eve imaps[6830]: mystore: starting txn 2147483651
    Aug 25 13:58:32 eve imaps[6830]: mystore: committing txn 2147483651
    Aug 25 13:58:32 eve imaps[6830]: starttls: TLSv1 with cipher
    DES-CBC3-SHA (168/168 bits new) no authentication
    Aug 25 13:58:32 eve imaps[6830]: AOD: user opts: get attributes for
    user: christophercrisp failed with error: -14479
    Aug 25 13:58:32 eve imaps[6830]: AOD: user options: lookup failed for:
    christophercrisp (-14479)
    Aug 25 13:58:32 eve imaps[6830]: AOD: authentication error: cannot
    find user: christophercrisp (0)
    Aug 25 13:58:32 eve imaps[6830]: badlogin: [10.1.3.5] CRAM-MD5
    Aug 25 13:58:33 eve imap[6840]: accepted connection
    Aug 25 13:58:36 eve imaps[6830]: accepted connection
    Aug 25 13:58:36 eve imaps[6830]: mydelete: starting txn 2147483652
    Aug 25 13:58:36 eve imaps[6830]: mydelete: committing txn 2147483652
    Aug 25 13:58:36 eve imaps[6830]: mystore: starting txn 2147483653
    Aug 25 13:58:36 eve imaps[6830]: mystore: committing txn 2147483653
    Aug 25 13:58:36 eve imaps[6830]: starttls: TLSv1 with cipher
    DES-CBC3-SHA (168/168 bits new) no authentication
    Honestly, I think that my problem at this point is OD and kerberos.
    This machine is an OD Replica, but I cannot demote it. The same thing
    happens as with mail... I try to make it stand alone, it goes through
    the wizard, and then when it is done, goes right back to OD Replica,
    and won't turn off... The OD Master doesn't see it as a valid replica
    anymore. I also noticed that although kerberos is running on the OD
    master, it is not running on this machine.
    I know I am in the wrong forum for this, but any ideas?

  • How do I get the mail icon and server onto my daughters laptop?

    My daughter has had her laptop for some time and has never been able to set up a mail account on the computer is there some way this can be loaded.  Please help as I'm not living near by and would dearly love to sort it out for her with some simple action.  Thank you. Teresa. There is no mail icon .

    Just to add that she can get the mail icon but not put her hotmail account on it.

  • Shell script to get the mail whenever the primary or standby DBs down

    Hi,
    Can any one please provide the shell script to monitor the primary and standby databases, such that whenever the primary or standby database is down we have to get the mail.
    Thanks,
    Mahi

    Hi Mahi,
    in 10g you can configure this through EM dbconsole which will be very easy.
    (i am not sure if this exists in 9i EM)

  • Getting the Mailer Demon Error message??

    Hi,i am getting the Mailor Demon Message,or Mail Delivery Subsystem,4 times now,and i do not know anything about this,newer did send those E-mail, do not understand this,is in Russian i believe it is,please can anyone tell what to do ???? Hans

    If you are getting the Mailer Daemon messages and are sure you haven't sent any messages that weren't deliverable, just delete them. Spammers are using that as a way to get you to read their spam. They know that if it appears that a message you sent was undeliverable, your natural instinct will be to open it and then you will see their spam. Do not make a rule to call this junk because then a valid returned message will be deleted.

  • How to correctly perform a join to get the desired output

    Hi,
    I have the following query which gives me the desired output.
    SELECT
    Cast(TEDW_F_STORE_OPS_GOAL.LOCATION_NUM As Varchar) As LOCATION_NUM,
    Cast(TEDW_D_DATE_TYPE_1.DATE_SHORT As Varchar) As DATE_SHORT,
    'Store' As DRIVER_TYPE,
    'OPS GOAL' As DRIVER,
    SUM(OPS_GOAL) As ROW_TOTAL
    FROM Planning.TEDW_F_STORE_OPS_GOAL
    left outer join
    edw.Calendar.TEDW_D_DATE_TYPE_1
    ON TEDW_F_STORE_OPS_GOAL.DATE_KEY = TEDW_D_DATE_TYPE_1.DATE_KEY
    left outer join
    [EDW].[Location].[TEDW_D_LOCATION_TYPE_1_NEW]
    ON TEDW_F_STORE_OPS_GOAL.LOCATION_NUM = TEDW_D_LOCATION_TYPE_1_NEW.LOCATION_NUM
    where TEDW_D_LOCATION_TYPE_1_NEW.LOCATION_TYPE_DESC = 'FULL PRICE STORE'
    group by
    TEDW_F_STORE_OPS_GOAL.LOCATION_NUM,
    TEDW_D_DATE_TYPE_1.DATE_SHORT
    order by LOCATION_NUM desc
    , DATE_SHORT desc
    The output of the above query will be like this
    3646 2014-04-17 Store OPS GOAL 2598.00000
    3646 2014-04-16 Store OPS GOAL 2475.00000
    3646 2014-04-15 Store OPS GOAL 2497.00000
    3646 2014-04-14 Store OPS GOAL 2691.00000
    But the problem with this query is it brings back the OPS Goal for all the dates,but i have to limit the OPS goals to some particular date range which must match to this table Staging.TEDW_S_EMPOWER.So,I made the above query join to this table like this
    SELECT
    Cast(TEDW_F_STORE_OPS_GOAL.LOCATION_NUM As Varchar) As LOCATION_NUM,
    Cast(TEDW_D_DATE_TYPE_1.DATE_SHORT As Varchar) As DATE_SHORT,
    'Store' As DRIVER_TYPE,
    'OPS GOAL' As DRIVER,
    SUM(OPS_GOAL) As ROW_TOTAL
    FROM Planning.TEDW_F_STORE_OPS_GOAL
    left outer join
    edw.Calendar.TEDW_D_DATE_TYPE_1
    ON TEDW_F_STORE_OPS_GOAL.DATE_KEY = TEDW_D_DATE_TYPE_1.DATE_KEY
    left outer join
    [EDW].[Location].[TEDW_D_LOCATION_TYPE_1_NEW]
    ON TEDW_F_STORE_OPS_GOAL.LOCATION_NUM = TEDW_D_LOCATION_TYPE_1_NEW.LOCATION_NUM
    left outer join
    Staging.TEDW_S_EMPOWER
    on TEDW_D_DATE_TYPE_1.DATE_SHORT = TEDW_S_EMPOWER.DATE_SHORT
    and TEDW_F_STORE_OPS_GOAL.LOCATION_NUM = TEDW_S_EMPOWER.LOCATION_NUM
    where TEDW_D_LOCATION_TYPE_1_NEW.LOCATION_TYPE_DESC = 'FULL PRICE STORE'
    group by
    TEDW_F_STORE_OPS_GOAL.LOCATION_NUM,
    TEDW_D_DATE_TYPE_1.DATE_SHORT
    having TEDW_D_DATE_TYPE_1.DATE_SHORT between MIN(TEDW_S_EMPOWER.date_short) and MAX(TEDW_S_EMPOWER.date_short)
    order by LOCATION_NUM desc
    , DATE_SHORT desc
    Now the output of this query will be like this
    3646 2014-04-17 Store OPS GOAL 7794.00000
    3646 2014-04-16 Store OPS GOAL 7425.00000
    3646 2014-04-15 Store OPS GOAL 7491.00000
    3646 2014-04-14 Store OPS GOAL 8073.00000
    If you can observe the OPS Goal Sum values have changed drastically, i was able to limit the date range i wanted but now i dont get the correct OPS Goal values.
    Can someone please help me with this?
    Thanks

    Hi RJP,
    Yes you are absolutely correct, in the "Staging.TEDW_S_EMPOWER"
    we have 3 rows for every date and location,so i changed my second sql to be something like this
    SELECT
    Cast(TEDW_F_STORE_OPS_GOAL.LOCATION_NUM As Varchar) As LOCATION_NUM,
    Cast(TEDW_D_DATE_TYPE_1.DATE_SHORT As Varchar) As DATE_SHORT,
    'Store' As DRIVER_TYPE,
    'OPS GOAL' As DRIVER,
    SUM(OPS_GOAL) /3 As ROW_TOTAL
    FROM Planning.TEDW_F_STORE_OPS_GOAL
    cross join
    EDW.Utility.TEDW_J_PROCESS_DATE
    inner join
    edw.Calendar.TEDW_D_DATE_TYPE_1
    ON TEDW_F_STORE_OPS_GOAL.DATE_KEY = TEDW_D_DATE_TYPE_1.DATE_KEY
    left outer join
    [EDW].[Location].[TEDW_D_LOCATION_TYPE_1_NEW]
    ON TEDW_F_STORE_OPS_GOAL.LOCATION_NUM = TEDW_D_LOCATION_TYPE_1_NEW.LOCATION_NUM
    left outer join
    Staging.TEDW_S_EMPOWER
    on TEDW_D_DATE_TYPE_1.DATE_SHORT = TEDW_S_EMPOWER.DATE_SHORT
    and TEDW_F_STORE_OPS_GOAL.LOCATION_NUM = TEDW_S_EMPOWER.LOCATION_NUM
    where TEDW_D_LOCATION_TYPE_1_NEW.LOCATION_TYPE_DESC = 'FULL PRICE STORE'
    group by
    TEDW_F_STORE_OPS_GOAL.LOCATION_NUM,
    TEDW_D_DATE_TYPE_1.DATE_SHORT
    having TEDW_D_DATE_TYPE_1.DATE_SHORT between MIN(TEDW_S_EMPOWER.date_short) and MAX(TEDW_S_EMPOWER.date_short)
    order by LOCATION_NUM desc
    , DATE_SHORT desc
    Now i receive the correct values as i am doing divided
    by 3,but may be in the future the empower tablemay have more than 3 ,is there any other effective way i can do this?
    below is the sample query and sample data from empower table.
    select * from Staging.TEDW_S_EMPOWER
    where DATE_SHORT = '2014-04-17'
    and LOCATION_NUM = 3020
    DRIVER_TYPE DRIVER DATE_SHORT
    store Sales 2014-04-17
    store Transactions 2014-04-17
    store Traffic 2014-04-17
    Thanks

  • When I try to open Mail, I get the "Mail quit unexpectedly" message. What do I need to do to fix this?

    I've never had problems with Mail before, but today it will not open. Each time I try, I get the problem report window with the message "Mail quit unexpectedly." I'm baffled. I have no idea what caused the problem.
    I've run Disk Utility.app, and the drive checks out fine.
    Any help you can provide will be greatly appreciated.
    I'm running OS X 10.9.1.

    Hey Micheal Palmer,
    First, if you haven't already, I would run through the troubleshooting steps in here:
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    Then, if that doesn't work, try out the steps here:
    Mac OS X v10.5.6 or later: Mail unexpectedly quits
    http://support.apple.com/kb/TS2486
    Welcome to Apple Support Communities!
    Regards,
    Delgadoh

  • How can you get the mail boxes in yahoo onto the e.mail app

    How can you get your yahoo mail boxes onto the e.mail app on an IPad mini?

    Go to the Settings App
    Pick Mail, Contacts, Calendars
    On the right side you'll see under the Mail section "Add Account”
    Pick that and fill out the requested information

Maybe you are looking for