Need a query to pick an attachment and mail
can any one please send me a query or guide me to build one which will pick the file( with the file name it need to find the email_address) and then it need to shoot the email to corresponding customer.
need it as its a immediate problem
Thanking you,
With regards,
Rahul.
want to make all note..
i already used UTL_SMTP PACKAGE BUT IT DEOSNT ALLOW ME TO MAIL ME ATTACHMENT.
Thanking you,
With regards,
Vinod.
Similar Messages
-
Winmail.dat attachment and Mail
Since one week I no longer receive proper attachments of PDF files from windows system in my mail, but instead a winmail.dat attachment. Can one please give me hint, what could be wrong? Thanks
http://www.joshjacob.com/mac-development/tnef.php
MacBook Pro Changes PDF files ti winmail.dat, that I can't open -
Fetch data from table and generate attachment than mail it.
Hello Experts,
From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
My Scenario is:
I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
select a.location_code,
a.item_code,
b.description item_desc,
to_char(a.manufact_date,'ddMonyy')mfg,
to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
a.closing_balance_posted quantity
from wms_stock_current_balance_v a, wms_item_setup_mast b
where a.closing_balance > 0
and a.item_code = b.item_code
and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
and nvl(b.qurantine_period,0) > 0
and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
order by a.item_code, a.location_code;
Sample data of above query is
LOCATION_CODE
ITEM_CODE
ITEM_DESC
MFG
Expiry
Quarantine
Days Elapse
Quantity
13DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
14DL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
134
14DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
14DR2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
20
14LL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17ER2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17GL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17SL0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
64
18QL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
19AR5
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
160
19DL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
19JR0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
60
19TL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
20GR2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
40
36FL3
000000000000000F0487
CLEAR COOL BLACK 05ML
18-Feb-10
29-Mar-14
2-Jun-13
-124
65
19UR0
000000000000000F0591
COMFORT WHITE 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
1
12SL1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
12SR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
14OR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
8
36EL4
000000000000000F0594
CLEAR HF DECRASE 5M*360
14-Feb-10
14-Feb-11
12-Oct-10
-1088
14
13VL1
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
160
14ER0
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
105
Database Info
Oracle 10g
Version 10.2.0.1.0Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
Re: How to execute a proc and spool files in a database job
And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP. -
Query to pick only first value/day
I have a table with Account, Complaint and Date columns. Each Account can log multiple complaints each day.
Now i need a query to pick only the first complaint in a day from each account. If the same account logged in a complaint next day or any day after i want to show that as well.
Help me with your ideas. Thanks in advance for your help.Maybe
with
first_complaints as
(select account,
date
from (select account,
date,
row_number() over (partition by account order by date) rn
from a_table
where rn = 1
select account,
complaint,
date
from a_table t
where account in (select account
from first_complaints
and date >= (select date
from first_complaints
where account = t.account
Regards
Etbin
Message was edited by: Etbin
rereading: If the same account logged in a complaint next day or any day after i want to show that as well.
The query above is just select * from a_table
Now:
if you want to show just the first complaints in a day for any following date, John answered that already (it's just the first_complaints of mine)
if you want to show all the complaints in any following date, you have to exclude all the complaints logged the first day except the first one
select account,
complaint,
date
from (select account,
complaint,
date,
row_number() over (partition by account order by date) rn
from a_table
) t
where date != (select min(date)
from a_table
where account = t.account
or rn = 1 -
Query to find the Views and synonyms that are accessing through db_link
HI all,
Oracle 10g
I need a Query to find the Views and synonyms that are accessing through db_link.
ie.
database A have the db_link to database B through a schema A
now i need to find what are the Synonyms and views that are accessing through db_link either directly or indirectly..
regards,
Deepak
Edited by: Deepak_DBA on Dec 10, 2010 5:38 PMOn the second database (B) use this query to find the SQL which used by the schema A (DB LINK USER). Check the SQL_FULLTEXT column.
select sql_fulltext,sql_id,module,parsing_schema_name,parsing_user_id,first_load_time,loads,users_executing,rows_processed,plsql_exec_time,sorts,fetches,invalidations,parse_calls,cpu_time,elapsed_time,disk_reads,buffer_gets
from V$sqlarea
where parsing_schema_name = 'A' --and to_char(first_load_time,'dd/mm/yyyy') like '%11/08/2007'
order by first_load_time desc;
Regards
Asif Kabir -
Sending a excel sheet as attachment in mail
Hi,
I have requirement where I need to send excel sheet as attachment in mail. I could do it by using FM SO_NEW_DOCUMENT_ATT_SEND_API1. But, I am not able to format the excel sheet before sending.
I need to make heading bold, fix column width and wrap text in some cells, and send the mail.
Pls help me with your suggestions.
Thanks,
Siva.this link will show you how to do formatting in Excel using the OLE method, then use that EXCEL to send the MAIL using your program \
[OLE-format excel |http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm]
Hope That Helps
Anirban M. -
Did most recent Audio update to OSX and Mail.app went insane.
I switched to the Mac in... November? and have absolutely loved it. This has been my first catastrophic experience thus far and I'm used to Windows being a part time job to manage so I'm not complaining.
However, late last week OSX installed an audio update of some sort and when I rebooted mail.app had seemingly lost it's mind:
1. IMAP accounts constantly go offline and then back online at random time intervals. This problem I actually had occasionally before but now it's a constant annoyance.
2. Frequently getting "The message from "somebody" concerning "something" has not been downloaded from the server. You need to take this account online in order to download it." error message for messages that have a. already been downloaded and b. who's accounts are showing as online. FYI, yes I do have mail.app set to download and keep a copy of the messages locally.
3. Some messages (I can't find a pattern but it's about 5% of the messages) download repeatedly and appear in the inbox as many as 51 times. The only solution to this seems to be to log into the IMAP account's webmail access and delete the "offending" message.
4. An account can be online and yet not show all the messages that are in the inbox. I know this because if I log into the webmail I can see them.
5. Seemingly randomly the rules are ignored. Typically I can select a message and then tell mail to apply rules and then it works but why didn't the rule happen on it's own as usual.
6. The general "Inbox" sometimes doesn't show new items in the individual account inboxes until I go and click on those individual account inboxes and then come back to the general inbox.
Info about my system/setup:
a. I have 4 IMAP accounts.
b. I store messages on the IMAP server.
c. The "fullest" IMAP account has roughly 500 MB in it but is set to have 2.4 GB capacity on the IMAP server. That account also has 48 personal folders on it, and has had them for a little over a month. After reading about smart folders, I intend to consolidate many of these into an "Archives" folder.
d. The other IMAP accounts are each set to have 1+ GB of available server storage but each have under 100 MB used.
e. I use SpamSieve for email (love it, by the way)
f. I have a demo of MailTags running (it's been since mid-June and I've only played around with tagging a few emails so far but I intend to use iGTD once I get Mail back under control)
What I've tried:
1. I read that it's better to do the consolidated updates than the incremental ones so three times now I've tried to download the consolidated OSC 10.4.10 update but it never fully downloads. I'm not sure what's the deal with that as I've downloaded 300-400MB files over my internet connection at other times without difficulty.
2. I read that you can delete the folders in mail.app and let it rebuild them from the IMAP folder... a. from what I read, I'm not clear on the procedure for doing this safely b. I have a lot of folders to deal with and c. the only places I've read about it is from people commenting in forums that it didn't help them.
So... any suggestions?At least one of the problems you have appears to be some index corruption, and I have the feeling that MailTags has a bearing on it. I don’t think you’ll be able to completely solve the problems you have without uninstalling that first...
Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list. Leave checked (enabled) only the port configuration needed to connect to Internet and Built-in Ethernet (in that order if not the same), uncheck (disable) the rest of network port configurations and see whether that helps — if it doesn’t, turn ON again the ones you want enabled.
Verify/repair the startup disk (not just permissions), as described here:
The Repair functions of Disk Utility: what's it all about?
After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
1. Quit Mail if it’s running.
2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is locally stored.
3. Locate Envelope Index and move it to the Trash. If you see any other “Envelope Index”-named file there, delete it as well.
4. Move any “IMAP-”, “Mac-”, or “Exchange-” account folders to the Trash. Note that you can do this with IMAP-type accounts because they store mail on the server and Mail can easily re-create them. DON’T trash any “POP-” account folders, as that would cause all the mail stored there to be lost.
5. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index — Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
6. As a side effect of having removed the IMAP account folders, those accounts may be in an “offline” state now. Do Mailbox > Go Online to bring them back online.
Given the amount of mail you have on the server, I expect it to take a fair amount of time for Mail to fully re-create the index and bring all the mailboxes back online. Again, I strongly encourage you to uninstall MailTags before doing that.
Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library. -
Keep getting deleted emails back and mail will not close,have to force quit
i have 4 emails that will not stay deleted.I will delete them and as soon as i reopen my mail they come back.Its as if they never left.Then i can't close my mail.i have to force quit. I have read of other problems close to mine and tried there solutions with no success.I do not know if my setting in pref. are correct or not. This problem is not allowing me to recieve new emails i just keep getttting these same 4 back time after time. very frustrating.
You're welcome.
Verify/repair the startup disk (not just permissions), as described here:
The Repair functions of Disk Utility: what's it all about?
In order to fix the problem, we'll have to re-create Envelope Index. The thing is, Mail may choke on those messages while re-creating the index, so either be prepared for that or perform optional steps 1 and 3:
1. (Optional, but recommended). Assuming this is a POP account, in the Finder go to ~/Library/Mail/POP-username@mailserver/INBOX.mbox/Messages/, and identify the *.emlx files associated with the troublesome messages. Viewing the *.emlx files as List in the Finder showing the creation/modification date may help. Just identify them; do not get rid of them yet (you must quit Mail first).
2. Quit Mail.
3. (Optional, but recommended). Move to the Trash the troublesome *.emlx files found in step 1.
4. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong -- e.g. by dragging it to the Desktop while holding the Option (Alt) key down.
5. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.
6. In the Finder, go to ~/Library/Mail/POP-username@mailserver/. Locate Deleted Messages.mbox, and move it to the Trash. I assume there is nothing to be preserved there.
7. Open Mail. It will tell you that your mail needs to be "imported". Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it's "importing", but it just re-creates the index if the mailboxes are already in Mail 2.x format.
Note: For those not familiarized with the ~/ notation, it refers to the user's home folder, i.e. ~/Library is the Library folder within the user's home folder. -
Need help with Query to determine Credit Memos and Invoices
Hi All
Thanks for all the help here.
I need a query to determine any credits or invoices issued within a given period.
OINV and ORIN with UNION ALL?
Please advise any help.
Thank you!Hi Daniel,
Please check below Query.
SELECT T0.[DocNum] as 'Invice No', T0.[DocDate] as 'Invoice Date', T0.[CardName] as 'Invoiced Customer', T3.[DocNum] as 'Credit Memo No', T3.[DocDate] as 'Credit Mamo Date', T3.[CardName] as 'Credit Memo Customer' FROM OINV T0 LEFT JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry] LEFT JOIN RIN1 T2 ON T2.[BaseEntry] = T1.[DocEntry] AND T2.[BaseLine] = T1.[LineNum] LEFT JOIN ORIN T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T0.[DocDate] >=[%3] AND T0.[DocDate] <=[%4]
Hope this helps
Regards::::
Atul Chakraborty -
Need MDX query to find something like date diff and Date Range for last 10 days
Hi ,
I need two Query .First Query for below;
I have below data in table like.
Cat StartDate EndDate
A 2000-01-01 2000-01-15
B 2000-01-02 2000-01-30
C 2000-01-01 2000-01-31
D 2000-02-01 2000-02-28
A 2000-01-10 2000-01-31
I need if Startdate and Date completes whole one month then set status =1 else 0 using MDX query.
like this ;
Cat StartDate EndDate Status
A 2000-01-01 2000-01-15 1
B 2000-01-02 2000-01-30 0
C 2000-01-01 2000-01-31 1
D 2000-02-01 2000-02-28 1
A 2000-01-10 2000-01-31 1
In second query I need last 10 days from current days like;
Now = 8/20/2014
output will be ;
8/20/2014
8/19/2014
8/18/2014
8/17/2014
8/16/2014
8/15/2014
8/14/2014
8/13/2014
8/12/2014
8/11/2014
8/10/2014
Please help me .
ThanksHi Prajapati,
In your scenario, you can use Properties and Datediff function to achieve your requirement. Since not know the structure of your cube, we cannot give you the esact query.
I have tested it on the AdventureWorks cube, the query below is for you reference.
WITH MEMBER [Measures].[StartDate]
AS
[Employee].[Employee Department].CURRENTMEMBER.PROPERTIES('Start Date')
MEMBER [Measures].[WorkYear]
AS
DATEDIFF('yyyy',[Measures].[StartDate],NOW())
MEMBER [Measures].[Status]
AS
IIF(DATEDIFF('yyyy',[Measures].[StartDate],NOW())>10,1,0)
SELECT {[Measures].[StartDate],[Measures].[WorkYear],[Measures].[Status]} ON 0,
[Employee].[Employee Department].[Employee].MEMBERS ON 1
FROM [Adventure Works]
Results
Reference
http://msdn.microsoft.com/en-us/library/ms144821.aspx
Regards,
Charlie Liao
TechNet Community Support -
I need to send a photo via email as an attachment and NOT have it shown in the body of the email? Please help.
To make attachments not appear in the body of the e-mail as a default, try using the Applications/Utilities/Terminal command below. I suggest copy and paste.
defaults write com.apple.mail DisableInlineAttachmentViewing -bool YES -
LOV query is invalid, a display and a return value are needed
hello - i am having this issue and can't get around this when creating a popup LOV based on sql.
below is LOV query. as you see the view has only two columns. I tried various ways by giving alias to columns in query but nothing works. What did I miss here?
select description,inventory_item_id from xx_apex_inv_v
1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.Did you try it like this?
select description d, inventory_item_id v from xx_apex_inv_v -
Need to create an ABAP query on 2 tables BSIK and BSAK
Hi,
I need to create an ABAP query which has the fields document no, doc date, amount in doc currency and some other fields from 2 tables BSIK and BSAK. Is it possible to write a single abap query to fetch the data from both the tables.
The selection screen fields are doc number, date and doc type.
I need to display invoices for open items and cleared items together.
Please let me know if this is possible.
Thanks and Regards,
AjithSee if this is anything like what you need:
REPORT ztest MESSAGE-ID 00.
TABLES: bkpf, bseg.
SELECT-OPTIONS: s_bukrs FOR bkpf-bukrs,
s_belnr FOR bkpf-belnr,
s_gjahr FOR bkpf-gjahr,
s_blart FOR bkpf-blart,
s_budat FOR bkpf-budat.
DATA: BEGIN OF bkpf_int OCCURS 0.
INCLUDE STRUCTURE bkpf.
DATA: END OF bkpf_int.
DATA: BEGIN OF bseg_int OCCURS 0.
INCLUDE STRUCTURE bseg.
DATA: END OF bseg_int.
DATA: BEGIN OF bsik_int OCCURS 0.
INCLUDE STRUCTURE bsik.
DATA: END OF bsik_int.
SELECT *
FROM bkpf
INTO TABLE bkpf_int
WHERE bukrs IN s_bukrs
AND belnr IN s_belnr
AND gjahr IN s_gjahr
AND blart IN s_blart
AND bldat IN s_budat.
SORT bkpf_int BY bukrs belnr gjahr.
SELECT *
FROM bseg
INTO TABLE bseg_int
FOR ALL ENTRIES IN bkpf_int
WHERE bukrs = bkpf_int-bukrs
AND belnr = bkpf_int-belnr
AND gjahr = bkpf_int-gjahr
AND koart = 'K'.
SORT bseg_int BY bukrs belnr gjahr buzei.
LOOP AT bseg_int.
MOVE-CORRESPONDING bseg_int TO bsik_int.
READ TABLE bkpf_int WITH KEY
bukrs = bseg_int-bukrs
belnr = bseg_int-belnr
gjahr = bseg_int-gjahr
BINARY SEARCH.
IF sy-subrc = 0.
MOVE-CORRESPONDING bkpf_int TO bsik_int.
APPEND bsik_int.
ELSE.
MESSAGE e001 WITH 'Error during read'.
ENDIF.
ENDLOOP.
Rob -
i dropped my i phone 5 and i picked it up and my right side of my phone is black i can still type on it but there is no display what do i need to do to fix my phone?
First try a Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
If no joy... Try a Restore...
1: Connect the device to Your computer and open iTunes.
2: If the device appears in iTunes, select and click Restore on the Summary pane.
Restoring > http://support.apple.com/kb/HT1414
If the issue persists you may have a hardware issue due to the Drop... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step... Be sure to make an appointment first... -
Need help on Picking due list and Transfer order.
Hi Folks,
In our current process, the deliveries are taken from picking duelist (VL06O)and the transfer order is created manually. Now we want to automate this process. I know that it can be done by a batch job.
Could some one tell me the program that should be used in the batch job which takes the delivery numbers from picking duelist and creates transfer orders?
Points rewarded.
Regards,
KrishnaHi
you can use this program WS_MONITOR_OUTB_DEL_PICK
or
In transaction VL06P you can give the selection criteria & click on Create TO in background. You can schedule this job as per your requirement.
Thanks & Regards
Kishore
Maybe you are looking for
-
hi! i've a problem with user input in my application: Code: BufferedReader F_reader = new BufferedReader (new InputStreamReader(System.in)); Fs_line = F_reader.readLine(); My problem is that i've to press the return key for two times, before the JDK
-
Will an iPad work as a reader for a PDF formatted test book
The typical file I want to read is about 1000+ highly formatted pages and 400 MB. Simple requirments I have are: 1) Can I actaully see a page of text and read it. I tried this on a Kindle and was forced to zoom in and then horizontally scroll a w
-
Drawing with my finger on my Mac
I'm looking for a software/ hardware solution kind of like a Wacom tablet but inexpensive - no bells and whistles needed, just the ability to "finger paint" on my Mac like I do with Draw 4 Free on my iPad. Any ideas from you Mac-savvy creattive types
-
URGENT!These errors shutdown one server in cluster.
Hi, We are getting following errors in our portal which ultimately shutdown one server in the cluster. Can anybody help? Fri Mar 08 13:28:40 SGT 2002:<I> <JDBC Pool commercePool> A connection from pool commercePool was tested during reserve with a se
-
Hi There, I erased my macbook and trying to reinstall it, i keep getting an error message "could not find installation for this machine" what must i do please?