Mail body from SBWP always as attachment
Hi there,
I want to send simple mails from Business Workplace to external users (internet address).
The problem is, that the body always comes as attachment (txt-file) with the mail to the user. Not as body text in his mail client.
Any help would be greatly appreciated,
Bernd
Hello Bernd,
It is working as design. If you use the disclosure, than it will be
put in the body, and all previous mail parts will be sent as attachment.
The reason behind is, that SAP do not want to modify the original body
of the mail.
If you want to have a different behaviour, than you can design an own
send program, where you put the disclaimer in the body itself.
Regards,
Wen Peng
Similar Messages
-
E-mail body getting converted to .txt attachment
Hello All,
Below is the description of the issue: -
1) Smartform is sent as .pdf attachment in the mail along with some text in the email body, using the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
2) Initially, the entire process was working fine.
3) However recently, there is a problem while sending the email. Whenever we are sending the email, the text in the email body is automatically converted into .txt attachment rather than being sent in email body.
4) There are no code changes which are done, have verified that.
5) I copy pasted the same code, in another system and the email is sent correctly with email body.
So wanted to know the following :-
1) So is the conversion of email to .txt file due to some script running on the server / is this due to some configuration.
2) If it is due to some configuration, then where is this configuration maintiained ?
3) Anything which can be done on the ABAP side to control this ?
Regards,
Rinkesh DoshiHello All,
I have identified the root cause of this problem.
The issue is due to the configuration maintained in transaction SODIS, which is the transaction to add disclosures to the outgoing emails.
If the standard disclosure is activated over here, the original email body is sent as text attachment and the standard disclosure is added in the email body. If we deactivate this disclosure functionality, the process works perfectly fine.
(This logic is included inside the class CL_SEND_REQUEST_BCS, method ADD_DISCLOSURE_TO_MIME).
So is this standard functionality error ? I could not find SAP notes which are relevant in above context.
Regards,
Rinkesh Doshi -
Formerly, an e-mail with a website, photo, etc. attachment that I opened required only that I click close tab return to my e-mail message. Since upgrading a few days ago, the only option present is to exit, which now requires re-opening firefox then my e-mail browser. Any website I am examining that I want to close automatically exits me from Firefox.
there should be an X on the right side of each tab. clicking on it should close that tab
-
External mail configuration from SBWP
Hi
I need the steps to configuration of sending mails to external users (xxx.gmail.com) from SAP system using t-code SBWP.
Anyone please give me some steps to configure this.
Thanks & Regards,
PradeepHi
I have configured using t-code SCOT. it is fine.
But when i tried to test the RFC connection from SM59, i am getting the following error:
ERROR timeout during allocate
LOCATION SAP-Gateway on host omddb / sapgw00
DETAIL no connect of TP /sapmnt/OMD/exe/mailgwOMD.csh
COMPONENT SAP-Gateway
COUNTER 31002
MODULE gwr3cpic.c
LINE 1795
RETURN CODE 242
SUBRC 0
RELEASE 640
TIME Tue Sep 11 08:25:43 2007
VERSION 2
Please help me in this..
Pradeep -
Mail to File: Use filename from MailBody to store attachement on filesystem
Hi
I have a Mail to File scenario. The mail contains a body and one binary attachment. The goal is to store the binary attachment on the filesystem with a specific filename which should come from the mail body.
So I have to use PayloadSwapBean to have the attachment. But after this I can't access the mail body through a mapping to store the filename from the body content in DynamicConfiguraton (Adapter Specific Message Properties).
How can I transport the filename from the mail body from the mail sender adapter to the file receiver adapter? Is this only possible with an self-written adapter module?
Thx
manuku> In the meantime I found a very easy solution (without adapter module). The solution was to switch the PayloadSwapBean from the MailSenderAdatper to the FileReceiverAdapter. Due to this small change the mail content was as normal payload present for eg. message mapping. So I was able to use the dynamic configuration to generate the dynamic filename.
Hi Tobias,
I should read the requirements more carefully. You wanted the filename from payload, I gave you a solution for reading the attachment name of the mail
Cheers
Stefan -
Mail Adapter Use Mail Package, Mail Body and Attachment
Hello
Have some body a idea, how I can configure the mail adapter with use mail package, that I have in the mail a attachment with content from the messages and a mail body with also text from the message.
Thanks for your reply.
Regards Tom
The different Weblog , I have check:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-addressHi Thomas,
If you are configuring your Mail adapter as reciever then refer
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
your sender (say file) should have some message like this
<i>
<ml:Mail xmlns:ml=http://sap.com/xi/XI/Mail/30>
<Subject>Important</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<X_Mailer>Outlook Express </X_Mailer>
<Content>
This is the content.
</Content>
</ml:Mail></i>
And for Sender Mail Adpater
http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
Hope this will be helpful
Regards
Suraj -
How to send mail body using RE_CN_RA_INVOICE interface from RECPA520
Hi ABAP Guru,
I am using a standard interface RE_CN_RA_INVOICE for tcode RECPA520 for generating pdf form and send the corresponding PDF to corresponding address maintained in Business Partner.The problem is mail is sending with attachment but there is no mail body.
Please helpYou have to convert your long string to a table of shorter strings.
There may be other ways, but one possibility is to use a loop to process you string.
while (there is something left)
put the next e.g. 1024 characters in a new row of your table
endwhile
If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right -
Mail sent from stored procedure: empty body
I've got a problem with a stored procedure. Its task is sending an email to some recipients passed from an another procedure. The problem is that the body of the email is empty and I don't know why!
Here's the script of this procedure:
Thank you very much in advance for your time!
CREATE OR REPLACE PROCEDURE ETL.LANCIA_EMAIL_PARAM
p_IN_FROM in VARCHAR2 default null,
p_IN_TO in VARCHAR2 default null,
p_IN_TO2 in VARCHAR2 default null,
p_IN_TO3 in VARCHAR2 default null,
p_IN_TO4 in VARCHAR2 default null,
p_IN_TO5 in VARCHAR2 default null,
p_IN_TO6 in VARCHAR2 default null,
p_IN_TO7 in VARCHAR2 default null,
p_IN_TO8 in VARCHAR2 default null,
p_IN_TO9 in VARCHAR2 default null,
p_IN_TO10 in VARCHAR2 default null,
p_IN_TO11 in VARCHAR2 default null,
p_IN_TO12 in VARCHAR2 default null,
p_IN_TO13 in VARCHAR2 default null,
p_IN_TO14 in VARCHAR2 default null,
p_IN_TO15 in VARCHAR2 default null,
p_IN_TO16 in VARCHAR2 default null,
p_IN_TO17 in VARCHAR2 default null,
p_IN_TO18 in VARCHAR2 default null,
p_IN_TO19 in VARCHAR2 default null,
p_IN_TO20 in VARCHAR2 default null,
p_IN_TO21 in VARCHAR2 default null,
p_IN_TO22 in VARCHAR2 default null,
p_IN_OGG in VARCHAR2 default null,
p_IN_MSGEMAIL in VARCHAR2 default null
IS
--mailhost VARCHAR2(30) := 'smtp.xxx.it';
mailhost VARCHAR2(30) := 'notesrelay.sd.xxx.it'; /* ripristinato il 29/11/2010 da LdP per controllo ODM*/
-- dichiarazione di una variabile di tipo utl_smtp.connection
-- a cui verr? assegnato l'SMTP ed il numero di porta (25)
conn utl_smtp.connection;
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2( 32767 );
DATA_START varchar2(20) := TO_CHAR(SYSDATE,'DD-MM-YYYY');
IN_FROM VARCHAR2(30) := p_IN_FROM;
IN_TO VARCHAR2(300) := p_IN_TO ;
IN_TO2 VARCHAR2(300) := p_IN_TO2 ;
IN_TO3 VARCHAR2(300) := p_IN_TO3 ;
IN_TO4 VARCHAR2(300) := p_IN_TO4 ;
IN_TO5 VARCHAR2(300) := p_IN_TO5 ;
IN_TO6 VARCHAR2(300) := p_IN_TO6 ;
IN_TO7 VARCHAR2(300) := p_IN_TO7 ;
IN_TO8 VARCHAR2(300) := p_IN_TO8 ;
IN_TO9 VARCHAR2(300) := p_IN_TO9 ;
IN_TO10 VARCHAR2(300) := p_IN_TO10;
IN_TO11 VARCHAR2(300) := p_IN_TO11;
IN_TO12 VARCHAR2(300) := p_IN_TO12;
IN_TO13 VARCHAR2(300) := p_IN_TO13;
IN_TO14 VARCHAR2(300) := p_IN_TO14;
IN_TO15 VARCHAR2(300) := p_IN_TO15;
IN_TO16 VARCHAR2(300) := p_IN_TO16;
IN_TO17 VARCHAR2(300) := p_IN_TO17;
IN_TO18 VARCHAR2(300) := p_IN_TO18;
IN_TO19 VARCHAR2(300) := p_IN_TO19;
IN_TO20 VARCHAR2(300) := p_IN_TO20;
IN_TO21 VARCHAR2(300) := p_IN_TO21;
IN_TO22 VARCHAR2(300) := p_IN_TO22;
IN_OGG VARCHAR2(300) := p_IN_OGG ;
IN_MSGEMAIL VARCHAR2(30000) := p_IN_MSGEMAIL;
BEGIN
-- Apertura di una connessione al server
conn := utl_smtp.open_connection (mailhost,25);
-- Assegnazione alla variabile mesg dell'intestazione della mail
mesg:='Date:'||TO_CHAR(SYSDATE,'dd mon yy hh24:mi:ss')||crlf||
'From:<'||IN_FROM||'>'||crlf||
'Subject:'||IN_OGG||crlf;
-- if IN_TO2 is not null then
-- mesg:=mesg||'To:'||IN_TO||','||IN_TO2||crlf||'';
-- else
-- mesg:=mesg||'To:'||IN_TO;
-- end if;
If IN_TO22 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||','||IN_TO20||','||IN_TO21||','||IN_TO22||crlf||'';
elsif IN_TO21 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||','||IN_TO20||','||IN_TO21||crlf||'';
elsif IN_TO20 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||','||IN_TO20||crlf||'';
elsif IN_TO19 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||crlf||'';
elsif IN_TO18 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||crlf||'';
elsif IN_TO17 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||crlf||'';
elsif IN_TO16 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||crlf||'';
elsif IN_TO15 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||crlf||'';
elsif IN_TO14 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||crlf||'';
elsif IN_TO13 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||crlf||'';
elsif IN_TO12 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||crlf||'';
elsif IN_TO11 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||crlf||'';
elsif IN_TO10 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||crlf||'';
elsif IN_TO9 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||crlf||'';
elsif IN_TO8 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||crlf||'';
elsif IN_TO7 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||','||IN_TO5||','||IN_TO6||','||IN_TO7||crlf||'';
elsif IN_TO6 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||','||IN_TO5||','||IN_TO6||crlf||'';
elsif IN_TO5 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||','||IN_TO5||crlf||'';
elsif IN_TO4 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||crlf||'';
elsif IN_TO3 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||crlf||'';
elsif IN_TO2 is not null then
mesg:=mesg||'To:'||IN_TO||','||IN_TO2||crlf||'';
else
mesg:=mesg||'To:'||IN_TO;
end if;
mesg:=mesg||crlf||IN_MSGEMAIL;
-- Apertura di un collegamento al server
utl_smtp.helo(conn, mailhost);
-- Inizio di una transazione di posta con il server passandogli il mittente
utl_smtp.mail(conn,IN_FROM);
-- il destinatario
utl_smtp.rcpt(conn,IN_TO);
if IN_TO2 is not null then utl_smtp.rcpt(conn,IN_TO2 ); end if;
if IN_TO3 is not null then utl_smtp.rcpt(conn,IN_TO3 ); end if;
if IN_TO4 is not null then utl_smtp.rcpt(conn,IN_TO4 ); end if;
if IN_TO5 is not null then utl_smtp.rcpt(conn,IN_TO5 ); end if;
if IN_TO6 is not null then utl_smtp.rcpt(conn,IN_TO6 ); end if;
if IN_TO7 is not null then utl_smtp.rcpt(conn,IN_TO7 ); end if;
if IN_TO8 is not null then utl_smtp.rcpt(conn,IN_TO8 ); end if;
if IN_TO9 is not null then utl_smtp.rcpt(conn,IN_TO9 ); end if;
if IN_TO10 is not null then utl_smtp.rcpt(conn,IN_TO10); end if;
if IN_TO11 is not null then utl_smtp.rcpt(conn,IN_TO11); end if;
if IN_TO12 is not null then utl_smtp.rcpt(conn,IN_TO12); end if;
if IN_TO13 is not null then utl_smtp.rcpt(conn,IN_TO13); end if;
if IN_TO14 is not null then utl_smtp.rcpt(conn,IN_TO14); end if;
if IN_TO15 is not null then utl_smtp.rcpt(conn,IN_TO15); end if;
if IN_TO16 is not null then utl_smtp.rcpt(conn,IN_TO16); end if;
if IN_TO17 is not null then utl_smtp.rcpt(conn,IN_TO17); end if;
if IN_TO18 is not null then utl_smtp.rcpt(conn,IN_TO18); end if;
if IN_TO19 is not null then utl_smtp.rcpt(conn,IN_TO19); end if;
if IN_TO20 is not null then utl_smtp.rcpt(conn,IN_TO20); end if;
if IN_TO21 is not null then utl_smtp.rcpt(conn,IN_TO21); end if;
if IN_TO22 is not null then utl_smtp.rcpt(conn,IN_TO22); end if;
-- ed il testo del messaggio
utl_smtp.data(conn, mesg);
-- Chiusura della connessione
DBMS_OUTPUT.PUT_LINE(mesg);
utl_smtp.quit(conn);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(SQLERRM);
END;
/Horrible code.
Fact: when you REPEAT a variable or source code statement again and again - IT IS WRONG. It is not modularised. It is not robust, flexible, readable or maintainable.
The code should look as follows:
// a string array type is needed for dealing with multiple recipients - this
// can be defined as a SQL or PL/SQL type
// SQL type is used in the example as it is usable in both SQL and PL/SQL
// engines
create or replace type TStrings is table of varchar2(4000);
// the parameter signature and code for the procedure:
create or replace procedure EmailMessage(
senderAddress varchar2 default '[email protected]', --// the sender
recipientList TStrings, --// array of recipients
subject varchar2, --// subject of the mail
message varchar2 --// e-mail body to send
) is
begin
--// to build the TO string for the e-mail header
for i in 1..recipientList.Count loop
mesgTo := msgTo || recipientList(i);
if i < recipientList.Count then
mesgTo := msgTo || ',';
end if;
end loop;
--// create the complete e-mail body
--// (I would prefer a template string variable and
--// and replacing tokens in it with the subject,
--// recipients, sender, and so on
mailBody := 'Mime-Version: 1.0 '||utl_tcp.CrLf||
'Content-Type: text/plain'||utl_tcp.CrLf||
'Subject: nvs-web server'||utl_tcp.CrLf||
'To: '||mesgTo||utl_tcp.CrLf||
'From: '||senderAddress||utl_tcp.CrLf||
utl_tcp.CrLf||
message;
--// to specify the recipients to the SMTP server
for i in 1..recipientList.Count loop
utl_smtp.rcpt( conn, recipientList(i) );
end loop;
end;You should also consider using UTL_MAIL as it serves fine for sending basic e-mails, and basic e-mails with a single attachment. -
Unable to open URL attachment from SBWP in CRM WEB UI
Hello Gurus,
Need your help please. I'm having some problem opening the URL attachment from SBWP via CRM 7 WEB UI (I used a Transaction Launcher for SBWP). The attachment is a Webdynpro application. I am able to open the attachment in SAP GUI, but not in CRM WEBUI. This problem occured when we update the SP level of CRM 7.
Here's the scenario,
- whenever I click the attachment, it open a new window, which also happen even before SP level update, with the following information:
Execute an Application on FrontEnd
Please wait. You will be forwarded automatically.
This page is included for technical reason.
Execute program.
Status: Displaying Office Document ..........
After a couple of seconds, it will return to the Workflow Workplace screen.
I have checked the workflow log and found no inconsistency on the attached URL.
Immediate response would be highly appreciated. Thanks in advance.
Regards,
EdwinThanks for the reply WD ABAP.
Yes, I did try to use the functionality of Worklist and the URL attachment successfully opened. However, there are some limitation in its functionality as indicated in the link below that opted us to use the SBWP in CRM WEB UI via transaction launcher.
http://wiki.sdn.sap.com/wiki/display/CRM/CRMWorklist-AdvancewithDialognotSupported
We don't want to adjust the logic of our existing workflow at this point as described in the above link as it will entails end-to-end testing again. We just encountered this issue when we update the SP level of CRM 7.
Hope there is an alternative solution without shifting us to Worklist.
Regards,
Edwin -
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. -
Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
- Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
System: PC Windows 7 using Acrobat X Prof. - Thank you!Hi ,
There is an option of embedding index for faster search while converting email to a PDF .
However I am not sure that will serve your purpose or not .
I would recommend you to get in touch with Microsoft support as well .
Meanwhile I'll work on it and get back to you in case I get a desired solution .
Regards
Sukrit Dhingra -
Yesterday, when I brought my laptop back from sleep, I tried to check my e-mail with the Mail app like I always do. But there was the lightning bolt sign next to the inbox, and the pop-up asked me to input my password, which didn't work. It says mail.mac.com has rejected my password. The password is correct (I'm able to check my e-mail through my browser at me.com), but for some reason Mail keeps on rejecting it. I usually don't have to input my password at all in Mail. Any clue how to fix this? I haven't changed anything at all on my laptop.
I did change my apple ID password though...
-
How to send a mail with HTML body from Oracle
Hi Team,
Can somebody guide me how to send a mail with HTML body from oracle.
Here is the piece of code i am trying to send a mail.
procedure SEND_MAIL is
cursor c_1 is select * from table_name;
l_mail_id varchar2(40);
-- ls_mailhost VARCHAR2(64) := Mailhost;
ls_from VARCHAR2(64) := ‘[email protected]’
ls_subject VARCHAR2(200);
ls_to VARCHAR2(64);
l_mail_conn UTL_SMTP.connection;
ls_left_menu_name VARCHAR2(64);
ll_emp_num number(8);
begin
for i in c_1 loop
begin
l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
UTL_SMTP.HELO(l_mail_conn, 'IP');
UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
UTL_SMTP.RCPT(L_mail_conn, LS_TO);
UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
'To: ' ||ls_to || utl_tcp.crlf ||
'Subject: ' ||ls_subject|| utl_tcp.crlf);
UTL_SMTP.QUIT(l_mail_conn);
exception
when no_data_found then
null;
when others then
RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
end;
end loop;
end;
ThnxHi Nicolas!
Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
Hope this helps!
Regards
Geir -
How is the e-mail body text determined when e-mail sent from PO in edit mod
We have an e-mail that is sent to the supplier when the buyer edits the po then goes to header-output - create and send immediately. We want to remove the SAP default Salutation
Best Regards,
Your Purchasing Company
The problem is we cannot find where this e-mail body is being created. Any ideas?
SandraHello,
The email body text that you get at SOST is from the cover form BBP_OUTPUT_COVER.
When you Order a PO, the following is the text is seen in SOST.
"&LV_TITLE&
Please find enclosed the purchase order &IV_PO_HEADER-OBJECT_ID& &IV_PO_
Kind regards,
Your purchasing company"
You can create your own cover form in order to substitute the standard BBP_OUTPUT_COVER.
Regards,
Ricardo -
E-Mail Body coming as an attachment
Email body is coming as an attachment while sending external mail through SAP
hi Sudhanshu,
Give a little snippet of your code. It will help us to analyze the problem.
Regards,
Shaheen
Maybe you are looking for
-
Music and videos do not sync from iTunes to iPhone 4
Hi all, any help on this issue appreciated. I have recently purchased an iPhone 4 and wanted to sync music and some videos on to it. I have successfully done this on my iPod Nano. But when I attempt it with the iPhone 4, the iTunes program freezes or
-
Video and computer freeze.
My computer was working great for the longest time. Then all of a sudden, my video freezes (you tube and sites that use flash are really bad for freezing) and the sound repeats very fast (like a CD skipping but faster). I have done all the updates, t
-
Problem: displayed output in appletviewer vs internet explorer
I am new to Java programming, having recently completed by first class. I have been trying to set up the Java Development Kit on my PC at home. I installed J2SDK1.4.1_01 and edited my autoexec.bat file to: (1) add ;C:\J2SDK1.4.1_01/BIN to the PATH st
-
Acrobat 8 Form - "This Operation Not Permitted" error when enable user rights and open Reader X
I have a form which is causing me fits. It was created from an existing PDF form to which I added data fields using LifeCyele Designer. When I enable user rights to the document and try to open it in either Adobe Reader X or Acrobat 8 Pro I get the
-
Custom Adapter Development - Some bugs is the development process
hi I'm working through the steps in the document "BEA WebLogic Integration - Developing Adapters" - Chapter 4 Creating a Custom Environment. I'm using the version of WLS 8.1.1 on the dev2dev trial CD. I've encountered the following errors which I thi