How to send another Sasript along with PO as an email?
Hi all,
Already PO is being sent as an email to the vendor.But the requirement is to send another Sapsript as an attachement with the PO.
Is it possible,if so please let me know.If not please come with beautiful solution.My requirement is to send both PO and another new Sapscript as an email to the vendor.
Is it possible to send both at a time as an email to the vendor?If it is not possible also please let me know the available good solution.
Thanks,
Krishna
hi check this....
send script through email
script to pdf to email????
regards,
venkat.
Similar Messages
-
How to send URL link along with text in an email using FM.
Hi Experts,
I am sending an e-mail for status notifications.
In the mail, the user will clik on the URL to do actions through the link.
Ex:
Dear,
Please go through the link htttp://appear.upload/records/update.
When user clicks on htttp.... url it should open the portal.
I am sending text mails but unable to open the site url action .
Regards,
prasadHi ,
Pls check below link.
http://wiki.sdn.sap.com/wiki/display/ABAP/SendingMails-HomePage -
How to send a SOAP message with attachments
How to send a SOAP message with attachments thru webservice using axis-1_3 can any one sujjest.............................
Please refer
http://www.javaworld.com/javaworld/jw-09-2003/jw-0912-webservices.html
http://xml.sys-con.com/read/40315.htm -
To send a mail along with a csv attachment.
Hi All,
my requirement is to send a mail along with a csv file attached to it. Could someone provide me their valuable comments that will guide me. I am using the function module.
SO_NEW_DOCUMENT_ATT_SEND_API1.https://forums.sdn.sap.com/click.jspa?searchID=22504268&messageID=6015600
https://forums.sdn.sap.com/click.jspa?searchID=22504268&messageID=3640641
https://forums.sdn.sap.com/click.jspa?searchID=22504268&messageID=6879100
https://forums.sdn.sap.com/click.jspa?searchID=22504268&messageID=5281059 -
How to send a packaging request with a multiline description
If I try to send a package request with this metadata description:
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">First Line
Second Line</dc:description>
Notice there is a carriage return between "First Line" and "Second Line".
Then, the server will return a E_ADEPT_DISTRIBUTOR_AUTH error.
If I remove the carriage return the packaging is done well.
I would like to know how to send the multiline description or if it is not posible.
Thanks in advance.Hi,
It's not the faxformat in ITCPO.
What I figured out by comparing my program with another program (printout of balance sheets) is that this other program is able to fax or to print but not at the same execution. When you execute the balance sheet program in order to fax, the sapscript formular is created with the printer POSTSCPT (driver: POST) and code page 1117. When you execute it for printouts another printer can be choosen and the code page is 1110.
Could this be the problem of not beeing able to fax an existing spool (sapscript) request? Or is there a way to convert the OTFDATA from code page 1110 to 1117?
Cheers,
Thomas -
How to give the Submit along with Variant
Dear Freinds,
Iam using the Submit program with variant in my custom program . When iam exucting my custom program it is directly opening the program with the variant . ie. just like we execute a program and select varaint.
it is not happening what i want ,it has to schedule the program with the varaint (i.e. what ever fields have been slected in that varaint) and when i go and see in SM37 . The job should get schedule, this was
happening when iam sending one are two parameters in retrun of the submit without me using VAriant.
please help me where iam going wrong.
Not working Scenario (when iam using Variant)
SUBMIT rptqta00
WITH pnpbegda = sy-datum "'20081201'
WITH pnpendda = lv_date "'20091130'
VIA SELECTION-SCREEN USING SELECTION-SET 'NEW'
VIA JOB lv_job_name NUMBER lv_job_nr
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_job_nr
jobname = lv_job_name
strtimmed = 'X'
IMPORTING
job_was_released = lv_job_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF syst-subrc NE 0.
MESSAGE i162(00) WITH
'An error occured while closing the background job.'.
STOP.
ENDIF.
working perfectly with the below scenario
SUBMIT rptqta00
WITH pnpbegda = sy-datum "'20081201'
WITH pnpendda = lv_date "'20091130'
with pnppernr = '99002235'
WITH pnpbukrs EQ 'C091'
WITH dis_new = 'X'
VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_job_nr
jobname = lv_job_name
strtimmed = 'X'
IMPORTING
job_was_released = lv_job_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF syst-subrc NE 0.
MESSAGE i162(00) WITH
'An error occured while closing the background job.'.
STOP.
ENDIF.
now my question is what i have to do in the case of VAriant so that it acts exactly as the below parameters.
My problem why iam going to varaint is in the standard program rptqta00 i have a button Like TESTRUn ,Batchinput,Direct etc.............. this iam not able to pass the OK code along WITH in the Submit syntax.... i dont know how to pass in the case of Button's along with Submit ,,,,,,,,,however iam able to do for radio buttons .
could any one tell me why the variant when iam using is taking me directly to the program instead it is not returning
secondly if iam passing each parameters in the submit program how can i pass the BUTTON value ( which is having tick option for either TESTRUN ,Batchinput,Direct )
Please could any one help.
regards
divyaDear Freinds,
I found the solution , i have used the ok code of the button while passing into submit program it is working . Thanks once agian
regards
divay. -
How to send Oracle report automatically in format pdf by email with subject and body?
Hello,
How to send e-mail attachment and mail other details like from ,subject,cc,to,mail body. In Oracle Developer Suite 10g?
Regards.did you try to run report parameter form = yes ,
put to the parameter form following system parameters and set et.
run report with belove value
- DESTYPE = MAIL
- DESFORMAT = PDF
- DESNAME = mail adres
then according to the result ,rearrange your report forms side while invoke report from forms
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESTYPE , mail ) ;
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESFORMAT , PDF ) ;
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESNAME , mail adres ) ; -
How to send a message with attachments Using Adobe Dreamweaver CS3 and Developer Toolbox...
- In this tutorial you will use Developer Toolbox features to build a simple contact us form with the advantage to upload file with your message and send this file via e-mail as an attachments.
Using This application will allow to:
* insert records into database and then send them via e-mail.
* upload files to the server.
* send message with uploaded files as attachments.
This tutorial contains one part
1. insert record, and then send it by email with (attachments).
By following this tutorial section, you will create:
* Page for inserting records.
* Page for thank you when the message is sent.
:: To View the tutorials ::
:: Online Demo ::
Brought t you by:
www.developer-online.comOpen the photo, assuming it is in Photos, and then in the lower left corner under the photo is a box with an up-pointing arrow. Tap that box, and then the photo will have a blue circle with a checkmark in its lower right corner and the word Next at the upper right. Tap Next, then choose how you want to send the photo, by text message, email, and so on. Simply address the method you have chosen and put in any text you want to include.
-
How to send multiple attachment s with a mail??
Hi,
How to send multiple attachments with a mail??
Situation::
In my case i have 5 internal tables populated dynamically in the report.
I want to send them in .TXT format as attachment with 1 mail.
Can anybody tell me in 'SO_NEW_DOCUMENT_ATT_SEND_API1',
how we add multiple attachmants to table objin???
thanks,
deepakHi Deepak,
Please find the sample code for sending mail with multiple attachment.
Report ZPAN_02M *
REPORT zpan_02m .
*-MAIN DECLARATION----
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
*-OTHER DECLARATIONS----
DATA : listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
DATA : tab_lines(3) TYPE n.
DATA : att_type LIKE soodk-objtp.
*OBJBIN = ' | '. APPEND OBJBIN.
*---For simple attachment -
DATA : BEGIN OF wi_data OCCURS 0,
c1(10),
c2(10),
END OF wi_data.
wi_data-c1 = 'Line 1'. wi_data-c2 = 'Line 1'. APPEND wi_data.
wi_data-c1 = 'Line 2'. wi_data-c2 = 'Line 2'. APPEND wi_data.
wi_data-c1 = 'Line 3'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 4'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 5'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 6'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 7'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 8'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 9'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 10'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 11'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 12'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 13'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 14'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 15'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 16'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 17'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 18'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 19'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 20'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 21'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 22'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 23'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 24'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 25'. wi_data-c2 = 'Line 3'. APPEND wi_data.
wi_data-c1 = 'Line 26'. wi_data-c2 = 'Line 3'. APPEND wi_data.
class cl_abap_char_utilities definition load.
constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF,
con_nwln type c value cl_abap_char_utilities=>NEWLINE.
LOOP AT wi_data.
CONCATENATE wi_data-c1 con_tab
wi_data-c2
INTO objbin.
condense objbin.
CONCATENATE con_cret objbin INTO objbin.
APPEND objbin.
ENDLOOP.
*---CREATE MESSAGE : DOCDATA -
Name
docdata-obj_name = 'TEST_ALI'.
Subject
docdata-obj_descr = 'Test including ALI/HTML Attachment'.
*---CREATE MESSAGE : BODY -
objtxt = 'Test Document.'.
APPEND objtxt.
objtxt = 'You will find an ALI/HTML attachment in this message.'.
APPEND objtxt.
objtxt = 'Have a nice day.'.
APPEND objtxt.
*-CREATE PACKING LIST-----TEXT--
objpack-head_start = 1.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
*-CREATE PACKING LIST-----ATTACHMENT--
att_type = 'XLS'.
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
objpack-doc_size = ( ( tab_lines / 2 ) - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines / 2.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT 1'.
objpack-obj_descr = 'Attached Document 1'.
APPEND objpack.
att_type = 'XLS'.
objpack-doc_size = ( ( tab_lines / 2 ) - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 14.
objpack-head_num = 14.
objpack-body_start = 14.
objpack-body_num = tab_lines / 2.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT 2'.
objpack-obj_descr = 'Attached Document 2'.
APPEND objpack.
*-CREATE RECEIVER LIST----
reclist-receiver = '[email protected]'. reclist-rec_type = 'U'.
APPEND reclist.
reclist-receiver = sy-uname. reclist-rec_type = 'B'.
APPEND reclist.
*-SEND MESSAGE----
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
CONTENTS_HEX = objhex
OBJECT_PARA =
OBJECT_PARB =
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
Hope this is enough for you...
Enjoy SAP.
Pankaj Singh. -
How to duplicate a node along with its children in a JTree?
Hello,
Can anyone tell me how to duplicate/create a copy of a node
along with its children?
Code snippets will be appreciated.
Thank you.It cant be done . You have to write a z pogram to update the data in the new dbtable.
-
How to get terminal address along with Change document header
Dear All
My client want a report of the frequencies of a sales document changes along with terminal address. In table CDHDR i can get user name, date, t-code but not the terminal address. So requesting to guide me of how to get the terminal address from which terminal the document has been updated.
Appropriate answer will be rewarded.
Regards
Kingshuk
Edited by: Kings_Roy on May 31, 2010 11:02 AMI don't think this information is kept in change documents. So for the change documents that are already created, you cannot get this information.
For future however you can do some code changes to get this information.
Function module TH_USER_INFO can return terminal name as well as IP address for a given client and user.
All you have to do is either store this additional information along with change documents. For this i think you can check the FMs that are writing SD change documents.
OR
You can use user exit exit SUSR0001 (User exit after logon to SAP System) to call this Function (TH_USER_INFO) at user logon and store this info in a Z table. Later when you are reading change documents, you can get user name, date time from change document and search this Z table for respective user Terminal name and IP Address.
This is not a complete solution but i hope it will direct you to a solution.
cheers. -
How to swap column-data along with Table header
Hi All!
I found a smple JTableDemo.java class. When I run it it provided sorting on the table as well as Dragging Column-data along with Table header while swaping two columns-headers.
I designed my own table and apply some changes to TableModel. Afterwords it swaps Table-Headers only, but not their respective columns.
Can someone give me a clue for that, where the logical error may be?
Thanx in Advancesurprised.. since you have asked, it must have some more tricky issue. Any way what i thought of it
in before insert on table2
simply insert into table1 (cr_id) values (:new.cr_id_id);
i assume that table1 pk does not generated through sequence
proposed insertion will not violate the uniqueness and create another record only in table1
what is thehidden agenda for not using simple before insert trigger as above.
yours
dr.s.r.bhattachar -
How to Migrate Business rules along with access privileges
Hi All,
I migrated business rules from prod to dev using lcm. The business rules got migrated correctly, but the access privileges did not. I tried exporting from EAS and import. Even then the access privileges were not migrated.How do we migrate business rules along with access privileges? Quick help is much appreciated.
We are on hyp. planning 11.1.1.3. and we use classic planning applications.
Thanks
LakshmiIf they are native users/groups then it may be down to the ID for the users/groups being different across environments, this has always been a problem with business rules, with planning applications then there is the updateusers utility to sync up the ID with shared services.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to transfer iTunes library along with iPhone settings on Leopard?
I intend to perform an install of Leopard on a new hard disk and will be importing the iTunes library from my old hard disk. Any idea if the import will also allow all the iPhone settings, notes, and other data will be imported along with the music and videos? I know that iCal and Addressbook settings can be imported easily. How about network settings, mails, notes, etc.?
I do not believe that you will be able to import those setting from an external drive.
I wouldn't worry about your iPhone stuff. Aside from the calendar, contacts, photos, music and videos there really isnt anything else that syncs from the iPhone yet. -
How to send/receive e-mails with sql or pl/sql
Hello,
I must send and receive e-mail (something like e-mail client) done with oracle database and oracle forms.
How can I receive e-mails with SQL? Is there any way?
I read threads about using utl_smtp but i could not send an e-mail. May be I need to use servers without password?
Best regards
P.S. I'm using Forms 10g R2 and database 9iHi,
try below code.
change mailhost ip to u r mail server ip.
CREATE or REPLACE PROCEDURE SimpleTextMessage IS
mailHOST VARCHAR2(64) := '192.168.0.21';
mailFROM VARCHAR2(64);
mailTO VARCHAR2(64);
mailCONN utl_smtp.connection;
mailDATE VARCHAR2(20);
vreply utl_smtp.reply;
vreplies utl_smtp.replies;
i number;
BEGIN
mailFROM := '[email protected]';
mailTO := '[email protected]';
SELECT TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS') INTO mailDATE FROM dual;
vreply := utl_smtp.open_connection(mailHOST, 25, mailCONN);
vreplies := utl_smtp.help(mailCONN, 'HELP');
for i in 1..vreplies.count loop
dbms_output.put_line( 'text = ' || vreplies(i).text );
end loop;
vreplies := utl_smtp.ehlo(mailCONN, mailHOST);
for i in 1..vreplies.count loop
dbms_output.put_line( 'text = ' || vreplies(i).text );
end loop;
vreply := utl_smtp.mail(mailCONN, mailFROM);
vreply := utl_smtp.rcpt(mailCONN, mailTO);
vreply := utl_smtp.open_data(mailCONN);
utl_smtp.write_data(mailCONN, 'Subject: '|| 'Hi' || chr(13));
utl_smtp.write_data(mailCONN, 'From: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, 'Date: '||mailDATE || chr(13));
utl_smtp.write_data(mailCONN, 'To: '||mailTO || chr(13));
utl_smtp.write_data(mailCONN, 'CC: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, chr(13));
utl_smtp.write_data(mailCONN, 'Hello Friend how r u.' || chr(13));
vreply := utl_smtp.close_data(mailCONN);
END;
/
Maybe you are looking for
-
How to remove any kind of Airport Express settings on computer
My boss gave me an Airport Express 802.11n Wi-Fi to "extend" his current network which runs on a Belkin router. He has another router (linksys) that works in the office area, but wanted to eliminate the need for this router and run everything off of
-
I have very specifically ordered MSI boards for some of our security related appliances. The choice is based on the fact that all prior motherboards to the model we purchased 1) retained settings after upgrading the bios with LiveUpdate ...and 2) Cli
-
suddenly I have no sound in any video playing in safari - any ideas? can't find any sound preferences for safari "media" play iMac 17 G5 2GH 1G 250GB Mac OS X (10.4.1)
-
Regarding channel function in WebLogic cluster
Hi all, We would like to set the channel to a WebLogic cluster. How to set this work? Please let us know. Regards,
-
Why can't I find the Zen stone plus skin i Lime? (The one in silicon)I really want it..someone who can help me with this?