Sending SAPSCRIPT through email
Hi
I want to send sapscript to the external email address.
Can anybody explain me how todo that.
Thanks
Hi subsar,
1. First we have to
execute the sapscript
thru our program.
2. Then we need to use
READ_OTF_FROM_MEMORY
to FETCH the sapscript
information into internal table.
3. The using FM
'SO_NEW_DOCUMENT_ATT_SEND_API1'
we can attach the intenal table (2)
above, and send mail as attachment.
4. SEE F1 help on this FM
(if uare doing for the first time)
5. Morever, SCOT settings
are required (take help of basis team)
regards,
amit m.
Similar Messages
-
Requirement of sending Sapscript through mail and fax
I need help in code for sending sapscript through email or fax as the data is maintained in customer master table . If anybody has done so please help. I do not want to use CONVERT_OTF function and SO...API1 function.
Check the following code it may help u.
***INCLUDE RVADOPFO .
DATA: LVS_ITCPO TYPE ITCPO,
LVF_DEVICE(30) TYPE C,
LVF_DIALOG(1) TYPE C VALUE ' ',
LVS_RECIPIENT LIKE SWOTOBJID,
LVS_SENDER LIKE SWOTOBJID,
LVS_SNAST TYPE SNAST,
LVF_PROGRAM LIKE SY-REPID,
LVS_COMM_TYPE TYPE AD_COMM,
LVS_COMM_VALUES TYPE SZADR_COMM_VALUES.
reset return code
RETCODE = 0.
if there is a communication strategy used ...
IF NOT NAST-TCODE IS INITIAL AND NAST-NACHA EQ '5'.
... use stratagy to get communication type
CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'
EXPORTING
STRATEGY = NAST-TCODE
ADDRESS_TYPE =
ADDRESS_NUMBER = VBDKA-ADRNR
PERSON_NUMBER = VBDKA-ADRNP
ADDRESS_NUMBER = ADDR_KEY-ADDRNUMBER
PERSON_NUMBER = ADDR_KEY-PERSNUMBER
IMPORTING
COMM_TYPE = LVS_COMM_TYPE
COMM_VALUES = LVS_COMM_VALUES
TABLES
STRATEGY_TABLE =
EXCEPTIONS
ADDRESS_NOT_EXIST = 1
PERSON_NOT_EXIST = 2
NO_COMM_TYPE_FOUND = 3
INTERNAL_ERROR = 4
PARAMETER_ERROR = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
retcode = sy-subrc.
SYST-MSGTY = 'E'.
perform protocol_update.
ENDIF.
ENDIF.
convert communication data
MOVE-CORRESPONDING NAST TO LVS_SNAST.
MOVE SY-REPID TO LVF_PROGRAM.
CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
EXPORTING
PI_COMM_TYPE = LVS_COMM_TYPE
PI_COMM_VALUES = LVS_COMM_VALUES
PI_SCREEN = US_SCREEN
PI_NEWID =
PI_COUNTRY = US_COUNTRY
PI_REPID = LVF_PROGRAM
PI_SNAST = LVS_SNAST
IMPORTING
PE_ITCPO = LVS_ITCPO
PE_DEVICE = LVF_DEVICE
PE_MAIL_RECIPIENT = LVS_RECIPIENT
PE_MAIL_SENDER = LVS_SENDER
EXCEPTIONS
COMM_TYPE_NOT_SUPPORTED = 1
RECIPIENT_CREATION_FAILED = 2
SENDER_CREATION_FAILED = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
RETCODE = SY-SUBRC.
SYST-MSGTY = 'E'.
PERFORM PROTOCOL_UPDATE.
ENDIF.
check retcode eq 0.
if there is no communication type
IF LVS_COMM_TYPE IS INITIAL.
set device
CASE NAST-NACHA.
WHEN '1'.
LVF_DEVICE = 'PRINTER'.
WHEN '2'.
LVF_DEVICE = 'TELEFAX'.
LVS_ITCPO-TDTELENUM = NAST-TELFX.
IF NAST-TLAND IS INITIAL.
LVS_ITCPO-TDTELELAND = US_COUNTRY.
ELSE.
LVS_ITCPO-TDTELELAND = NAST-TLAND.
ENDIF.
LVS_ITCPO-TDSENDDATE = NAST-VSDAT.
LVS_ITCPO-TDSENDTIME = NAST-VSURA.
LVS_ITCPO-TDFAXUSER = NAST-USNAM.
WHEN '3'.
LVF_DEVICE = 'TELETEX'.
LVS_ITCPO-TDTELENUM = NAST-TELTX.
IF NAST-TLAND IS INITIAL.
LVS_ITCPO-TDTELELAND = US_COUNTRY.
ELSE.
LVS_ITCPO-TDTELELAND = NAST-TLAND.
ENDIF.
LVS_ITCPO-TDSENDDATE = NAST-VSDAT.
LVS_ITCPO-TDSENDTIME = NAST-VSURA.
WHEN '4'.
LVF_DEVICE = 'TELEX'.
LVS_ITCPO-TDTELENUM = NAST-TELX1.
IF NAST-TLAND IS INITIAL.
LVS_ITCPO-TDTELELAND = US_COUNTRY.
ELSE.
LVS_ITCPO-TDTELELAND = NAST-TLAND.
ENDIF.
LVS_ITCPO-TDSENDDATE = NAST-VSDAT.
LVS_ITCPO-TDSENDTIME = NAST-VSURA.
WHEN OTHERS.
LVF_DEVICE = 'PRINTER'.
ENDCASE.
ENDIF.
fill structure itcpo
ITCPO = LVS_ITCPO.
open form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMS = ARC_PARAMS
DEVICE = LVF_DEVICE
DIALOG = ' '
FORM = TNAPR-FONAM
LANGUAGE = NAST-SPRAS
OPTIONS = LVS_ITCPO
MAIL_SENDER = LVS_SENDER
MAIL_RECIPIENT = LVS_RECIPIENT
MAIL_APPL_OBJECT = ' '
RAW_DATA_INTERFACE = '*'
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
OTHERS = 8.
IF SY-SUBRC NE 0.
CASE SY-SUBRC.
WHEN 7.
RETCODE = SY-SUBRC.
SYST-MSGID = 'VN'.
SYST-MSGNO = '096'.
SYST-MSGTY = 'E'.
SYST-MSGV1 = NAST-KSCHL.
SYST-MSGV2 = NAST-KAPPL.
PERFORM PROTOCOL_UPDATE.
WHEN OTHERS.
RETCODE = SY-SUBRC.
PERFORM PROTOCOL_UPDATE.
ENDCASE.
ENDIF.
SET COUNTRY US_COUNTRY.
Regards -
How to send invoice through email with output type RD00?
What are the configuration settings to send invoices through email with output type RD00?
Hi,
Please go through the following links:
[E-mail|Email Configuration Settings]
[e-mail|Re: EMAIL BILLING DOCUMENT TO CUSTOMER THROUGH SEND MAIL OPTION IN VF02]
After triggering the output,goto T.Code SOST and process it.
So that e-mail will be triggered immediately.
You can use External send/EDI/simple mail for this.
Regards,
Krishna. -
Error 400 - cant send photos through email
I have windows 7 home premium, and can not send pictures through email. I keep getting an error 400, and called in but was sent to Revel. I use photoshop elements 9, and can not send any pictures. Any Ideas?
Thank You
DebbyChttp://helpx.adobe.com/photoshop-elements/kb/error-400-logging-photoshopcom-services.html
With PSE 9, you can't use revel from within PSE. -
About how to send ALV through email
Hi everyone ,
I have a problem about how to send ALV through email in background . if someone knows , pls tell me .
thanks in advance
Best Regard
NickI write a test program , but it doesn't work , use any exists ALV program in the system , and use the "sendlist " program to send the email. what I want is when I restrict some conditons in the selection-screen , then it send ALV to Email .
Thanks
Nick -
Unable to send photo through email using iphoto theme (designs)
Unable to send photo through email using iPhoto theme (designs) using the SHARE button.
Error message:
Your email did not go through because the server did not reply.
Check your Internet connection.
If the connection is working properly, the email server may be down.
Try sending your email again later.Your email did not go through because the server did not reply.
Check your Internet connection.
If the connection is working properly, the email server may be down.
Try sending your email again later.
Are you using Yosemite and not apple's Mail app? Then you may need to set up an app-specific password: See the post below:
Re: I am using iPhoto version 9.6 and I can no longer get an email sent with a photo attached. I get an error message saying the email did not go through because the server did not reply. I can send the photo with Mail. Help!in response to Gary Kissler
This solution is for those of you using 2-step verification for your Apple ID and are using iCloud as the mail server that you are trying to mail photos with.
I too had this issue. The problem in my case occurred because I had setup 2-step authentication for my Apple ID. If you have done this then you will get the error message "the mail server did not recognize your email/password...". To solve the problem go to:
https://appleid.apple.com
Click "Manage Your Apple ID"
Verify your identity with the device you selected (if this step does not show up then you have not likely set up 2-step authentication and this is not your solution)
Click Password and Security in the left column
Click Generate an app-specific password
Enter iPhoto as the name of the app
Copy the password and paste this into the password box in iPhoto where you would normally enter your apple ID (in the mail account section in iPhoto preferences).
And...voila' (I hope) -
Problem in sending data through email in brodcasting
HI All
i am trying to send the data through email in the broadcasting. but as i execute the broadcasting the message comes
"Online processing is not possible for user 1"
further its is saying
"You want to execute a broadcast setting online. Processing this setting requires switching to another user (for example, with the user-specific precalculation of Web templates for a user other than your user). This is only possible in background processing."
but i dont know how to login as seperate user. as i have to send the data through my login and not someone else.
Hope i am clear.
Please help me on this its very urgent
ThanksThe solution to this problem is that:-
1. this is not an error
2. it gives the warning beacuse we cannot execute the broadcast setting at that moment (with different users in reciepient list) i.e. we have to schedule the broadcast settings.
Thanks
Prat -
How to send videos through email on iphone 4
How would you send a video saved in your pictures through email on iphone 4?
Hey taushafromNJ,
The following goes over how to share a picture or video, including via email:
Share or copy a photo or video. View a photo or video, then tap . If you don’t see , tap the screen to show the controls.
The size limit of attachments is determined by your service provider. iPhone may compress photo and video attachments, if necessary.You can also copy a photo or video, and then paste it into an email or text message (MMS or iMessage).
via: Share photos and videos
http://help.apple.com/iphone/7/#/iph3d2676c9
All the best,
Delgadoh -
Sending smartform through email or fax
Hi,
I have to send the smartform output through email if the email address is present else it has to be sent through fax.
When I tested the program it is giving information message as 'Output was successfully issued'.But I am not able to see any entry in SOST transaction.What would be the reason for this?In SAP Table USR21, put enter the username in field BNAME, from there you will get the ADDRNUMBER
-
Sending smartform through email as PDF attachment
Hi,
I want to send a smartform through email as pdf attachment.In the code I have hardcoded the receiver mail id.But I don't want this to be sent only to a particular receiver.I want this to be sent as many people as I can without hardcoding their mail id's in the program.How can I do that?
Regards,
Hema**Data Declarations
**Internal Table
DATA : BEGIN OF it_spfli OCCURS 0,
carrid LIKE spfli-carrid,
connid LIKE spfli-connid,
END OF it_spfli.
DATA: it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
storing receivers
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
**storing file attachment data
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE, gd_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
l_gntxt LIKE t357g_t-gntxt,
lv_message(100) TYPE c.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE. "storing mail body
DATA : psubject(30) TYPE c VALUE 'Sample Mail'. "subject of the mail
DATA : ld_format TYPE so_obj_tp , "file format
ld_attfilename TYPE so_obj_des, "file name
w_cnt TYPE i.
**Selecting the data
SELECT carrid connid INTO TABLE it_spfli FROM spfli WHERE carrid EQ 'AA'.
**Perform for populating mail body
PERFORM populate_message.
**Perform for populating file attachment
PERFORM populate_attachment.
**Perform for populating mail characteristic info
PERFORM populate_pack.
**Perform for populating receivers
PERFORM populate_receivers.
**Perform to send mail
PERFORM send_mail.
*& Form populate_message
text
--> p1 text
<-- p2 text
FORM populate_message .
**Populating the body
lv_message = 'Sample mail for testing purpose.'.
APPEND lv_message TO it_message.
ENDFORM. " populate_message
*& Form populate_attachment
text
--> p1 text
<-- p2 text
FORM populate_attachment .
**Populating the attachment file with the data from final intenal table
CONCATENATE 'CARRIER ID'
'CONNECTION ID'
INTO it_attachment SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
CONCATENATE cl_abap_char_utilities=>cr_lf it_attachment INTO
it_attachment.
APPEND it_attachment.
LOOP AT it_spfli.
CONCATENATE it_spfli-carrid it_spfli-connid INTO it_attachment SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
CONCATENATE cl_abap_char_utilities=>cr_lf it_attachment INTO
it_attachment.
APPEND it_attachment.
ENDLOOP.
ENDFORM. " populate_attachment
*& Form populate_receivers
text
--> p1 text
<-- p2 text
FORM populate_receivers .
**Populating Mail Recepients
**If there are more than one mail recepient then loop and append them to it_receivers
it_receivers-receiver = '[email protected]'.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
it_receivers-express = 'X'.
APPEND it_receivers.
ENDFORM. " populate_receivers
*& Form populate_pack
text
--> p1 text
<-- p2 text
FORM populate_pack .
**File Type
ld_format = 'XLS'.
**File Name
ld_attfilename = 'File1'.
Fill the document data.
gd_doc_data-doc_size = 1.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject .
gd_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR gd_doc_data.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
READ TABLE it_attachment INDEX w_cnt.
gd_doc_data-doc_size = ( w_cnt - 1 ) * 255 + STRLEN( it_attachment ).
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject.
gd_doc_data-sensitivty = 'F'.
Describe the body of the message
CLEAR it_packing_list.
REFRESH it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
APPEND it_packing_list.
**Describe the attachment info
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
it_packing_list-doc_type = ld_format.
it_packing_list-obj_name = ld_attfilename.
it_packing_list-obj_descr = ld_attfilename.
it_packing_list-doc_size = it_packing_list-body_num * 255.
APPEND it_packing_list.
ENDFORM. " populate_pack
*& Form send_mail
text
--> p1 text
<-- p2 text
FORM send_mail .
**Function Module to send mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers
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.
ENDFORM. " send_mail -
Sa520 not sending logs through email . unable to send log
runSmtpClient failed
Component: PLATFORM
Could not execute the smtpClient. adpCmdExec failed. Exiting.
Component: LOGGING
waht shoud be the resolutionHi Subir,
We are able to send logs successfully through email (see attachment). Could you please provide more details on the issue reported. Can you also let me know which firmware version are you using on SA500? The latest firmware is 2.1.51 and can be downloaded from www.cisco.com
Also please provide us dbglogs when the issue occurs. Please change / remove all passwords before providing the dbglogs. To get dbglogs, log into SA500 web UI and in the URL type the following:
https://IP_address_of_SA500/scgi-bin/dbglog.cgi
Thanks,
Nitin -
My mom's 4S phone says the following when she tries to send a picture through email:
"The user name or password for "SMTP: "her email" @smtp.live.com is incorrect." Her email and password has not changed not is it wrong. As well, this msg doesn't come up every time and she has sent me pictures recently. How do I fix this?
Thanks !Looks like it worked ! Thank so much !!! While I'm her I have anther query lol my dad has the same phone and whe he tries to buy apps it keeps asking him for his apple ID and pswd over and over and we never able to buy the app.
-
Dear Forums,
I would like to know that does the alert only sending out via email when the user logging in SBO?
Because I cannot receive the alert email when i haven't log in.
But when i logging in SBO, the alert email send out steadily.
Thank you for your kind help!!
Best Regards,
DorothyAccording to SAP support alerts are not sent or received unless a user is logged in. For example if an alert is setup to be sent to person abc at 6:00AM that person will not recieve the alert until they log into Business One. I am laso trying to get clarification on alerts that are sent as emails but support is leading me to believe that the person that is sending the alert must be logged in. My opinion is that this is a serious issue as we have been struggling with alerts and early watch for years and the problem seems to be directed towards the mailer system.
I am personally escalating this case and have SAP support managers involved. -
Good Method To Send Videos Through email?
I live in california with my family but will be in china visiting for 5 weeks beginning july 3rd.
i have a macbook and would like to record video of myself and send it to them. What would be the best way of doing this?
I'd record through imovie, and would like to send it with MAIL (gmail account).
Can this work or are there other, and free alternatives?My favorite app to record videos to send as attachments is through Quicktime. Just record through it (though i think you need to have Quicktime Pro, I dont remember, since i bought it and i dont remember if it was available before that--probably not), the files are not too large, and they look great.
The only issue i've seen with iMovie is that it makes the files just to darn large. So emailing those would be an issue. But if you use a website like www.sendthisfile.com then you can just upload it, and your family can download it.
Hope this helps.
White Macbook 1.83 GHz; Intel Core Duo; 2GB RAM Mac OS X (10.4.9) -
i know i can send pictures on my iphone via email and it be a workaround for MMS.
but does the recipient need to have a data plan to view it? do they get it as an email or as a MMS?I understand the question perfectly.
If you send an email through the [email protected], it leaves your phone as an email.
It arrives at the recipients phone as a text message with a picture. This is the workaropund for texting pictures to friends and also perfomring multipe recipient texts at once.
You can also do it this way if you find yourself running out of available text messages on your account. Send your texts as an email andyour friends will get it as a text....thus saving you text messages.
Maybe you are looking for
-
Time elements in process order
Hi, Where does the system takes time elements from in a process order. After scheduling the time elements are entered in the process order. But where does the system gets the time elements from. Does the master receipi has a role to play in it? Thank
-
How do I create a title whose size matches my video frame size?
How do I create a 1920x1080 title? I'm using Premiere Pro CS4 on Windows 7. I created a default title. If I right-click on the title in the Project Explorer and select properties, it says: Title Size: 720 x 480 Pixel Depth: 32 Pixel Aspect Ra
-
Sorry if this has been asked before, i couldn't find an answer with google and the search function doesn't seem to work today (i see results but there is no link to the post, only a link to the user and subforum ) I recently discovered 9 slice scalin
-
Hi, Need to implement Oracle RAC on two nodes.I am trying it first time so need some basic advice from you all regarding the basic requirements for installing RAC. Are there any more softwares,other than Oracle11g setup, needed for installation? What
-
With any one solution, it appears fixed but then begins to crash again. It crashes at start-up. It crashes as I move from one page to another. It crashes after being on for several minutes or sometimes for better part of an hour. It has little to do