Any BAPI or FM for sending e-mail
Hi All,
Is there a BAPI or FM for sending e-mail.
Regards
Nikhil Bansal
Hi,
try with this FM:
<b>SO_NEW_DOCUMENT_SEND_API1</b>
Reward points for helpful answers.
Best regards,
Gianluca Barile
Similar Messages
-
How to capture the screen for sending the mail
dear sir,
How to capture the screen for sending the mail .. Is there any funtion module or anyother way ? .. How to do this .. Please tell me..
Regards,
Kumardear sir,
s thats my problem ?
Regards,
kumar -
Built-in class for sending e-mail?
Is there a built-in class for sending e-mail in ABAP?
Hello
No that i know...but check this:
*& Report YMAIL
*& uses sap script
REPORT YMAIL.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file, would you check it?'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
BREAK gpulido.
Set recipient - email address here!!!
*MAILREC-RECEIVER = '[email protected]'.
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Set recipient - email address here!!!
*MAILREC-RECEIVER = 'BGIRALDO'.
*MAILREC-REC_TYPE = 'B'.
*APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
submit rsconn01 with mode = 'INT' and return.
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Result of the send process:'.
LOOP AT MAILREC.
WRITE: / mailrec-RECEIVER(48), ':'.
IF mailrec-RETRN_CODE = 0.
WRITE 'sent successfully'.
ELSE.
WRITE 'not sent'.
ENDIF.
ENDLOOP.
WHEN 1.
WRITE: / 'no authorization to send to the specified number of'
WHEN 2.
WRITE: / 'document could not be sent to any of the recipients!'.
WHEN 4.
WRITE: / 'no authorization to send !'.
WHEN OTHERS.
WRITE: / 'error occurred during sending !'.
ENDCASE.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'YSEND_MAIL'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Bye Gabriel -
Any BAPI/Function Module for adding new record with dates in PA0027
Hi all,
I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
thanks for ur time.
MuraliHi Raj/Suresh thanks for ur answers.
but i am having a problem,i gave this values.
INFTY -
0027
NUMBER -
00000010
SUBTYPE -
010
OBJECTID
LOCKINDICATOR
VALIDITYEND -
03/12/2006
VALIDITYBEGIN -
03/01/2006
RECORDNUMBER -
000
RECORD -
P0027
OPERATION -
CHK
TCLAS -
A
DIALOG_MODE -
0
NOCOMMIT -
Y
VIEW_IDENTIFIER
SECONDARY_RECORD
i am getting short dump saying that
The source field is too short.
The current program, "SAPLHRMM", tried to assign a field to a field symbo
However, the field is shorter than the type of the field symbol, which
is not allowed.
The statement in question is in the form ASSIGN f TO <fs> CASTING or
ASSIGN f TO <fs> with a field symbol that was created using the
STRUCTURE addition.
I tried operation - Chage,Create (same thing for all inputs)
is this correct funtion moduel for my requirment?
what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
Thanks for ur time.
Murali. -
Any BAPI or FM for O4G1 - Create Load Confirmation transaction - IS Oil
Hi Experts,
I searched for any BAPI or FM for O4G1 - Create Load Confirmation transaction - IS Oil in SDN/Google, but, i did not find any!!
Do we have any BAPI or FM for O4G1 - Create Load Confirmation transaction - IS Oil? pls let me know
Thank yuHi Try searching with keyword confirmation in SE37, finally if you dont find any BAPI satisfying your requirement, its better go for BDC.
Regards
Abhii -
Slow up loading for sending E mail with attachments
Slow up loading for sending E mail with attachments. It takes a long time to send most attchments. I'm on cable and had no problems prior to changing to Mac.com
You need to start in the app that contains the file that you want to send as an attachment, and use that app's functionality (assuming that it has it) to select the file and connect it to an email - you can't start in the Mail app itself
-
Looking for .XSD for mail for sending the mail through mail adapter
Hi Experts,
I am looking for .XSD file for sending mail.I am using Mail adapter to send mail to report error occur on creating PO document in my scenario to a specified department's email id.I searched for many blogs but not get any .XSD file for email.Looking for a suugesstion.
Thanks
DeepakDo you have S -user name and password? If not then never mind, Copy the below XSD, I took it from the link which I gave to you.
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
xmlns:xi="http://sap.com/xi/XI/Mail/30"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Mail">
<xs:annotation>
<xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Subject" type="xs:string" minOccurs="0"/>
<xs:element name="From" type="xs:string" minOccurs="0"/>
<xs:element name="To" type="xs:string" minOccurs="0"/>
<xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
<xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
<xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
<xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
<xs:element name="Content" minOccurs="0">
<xs:annotation>
<xs:documentation>any type</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="encoding" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="MailReceipt">
<xs:annotation>
<xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Server" type="xs:string"/>
<xs:element name="Format" type="xs:string"/>
<xs:element name="UseMailPackage" type="xs:boolean"/>
<xs:element name="Encoding" type="xs:string"/>
<xs:element name="Subject" type="xs:string" minOccurs="0"/>
<xs:element name="From" type="xs:dateTime" minOccurs="0"/>
<xs:element name="To" type="xs:string" minOccurs="0"/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema> -
Is there is any BAPI/FM/LSMW for BOMBOS Interface?
I have a requirement to write a custom program to transfer BOM to BOS. This we can do through CG37, But I want to execute CG37 functionality through custom program. Could you please let me know if any one knows BAPI/FM/LSMW for this? Thanks in advance.
You can send information to [email protected]
Thanks
SriniDear Srinivass
Kannan is right; but why can you not use Cg37? Here you have a user interface to populate the data; and if you drill down you can see how it is designed. But you need to pay attention. The BOMBOS interface will work (according to my knowledgeI) only if you "trigger" the generation of the worklist; and this is done "different" using a different function module; I believe at the "end" 'C1L0_BOM_TRIGGER_GEN_WL is used as well. BOMBOS is not discussed often here.
E.g. check: http://www.se80.co.uk/sapfms/c/c1l0/c1l0_bom_trigger_gen_wl.htm
consolut - C1L0_BOM_TRIGGER_GEN_WL - EHS: BOMBOS - Initialisierung; Erstellung BOM-Eintrag in ESTWL (sorry I found by hazard only german klink; but there is similar link in english)
May be check as well: SAP EHS Management for Beginners; some references to threads regaridng BOMBOS are available there as well.
C.B. -
Any BAPI or FM for Assessment cycle create 3KE1 tcode
Hi,
Any BAPI or Function module to create actual assessment cycle 3KE1 tcode.
i am doing BDC for that currently. Anybody done this please send the coding for this.
thanks
MuthappanHi Muthappan,
Could you please send me some sample code you used to create Assessment Cycle / Distribution Cycle using the function module.
Many Thanks in advance
Soumen -
Workflow for sending reminder mail to approve pending PO in me28
Hi Experts,
I have a requirement wherein I have to design a workflow to send a mail to the approver if he has not approved the PO in me28.
I don need a workflow for PO approval . Only in the case he forgets to approve a PO for one day he needs to get a mail .
Kindly guide me . Quick help is appreciatedHello,
Design a workflow template which is triggered when the PO is created. Make the template wait for the event 'RELEASED' which is to be triggered once the PO is released. If the event is received, complete the workflow or else, design the deadline monitoring to send a mail to the concerned person if PO is not released.
You need to take care of the event creation after the PO is released and deadline monitoring of the step in the workflow template.
If this is not possible, you can create a program which collects all the POs which are not released within a day of creation and send a mail to the concerned people from the program itself. You have to schedule this program daily at a particular time to send the mail. You do not need a workflow for this.
Hope this will help.
Thanks,
Samson -
Is There a size limitation for sending e-mail photos
I am using the latest version of MS Entourage and my mail account is with .MAC
Yesterday I highlighted two pictures in iphoto and clicked the e-mail icon but was then unable to send the mail. I got an error message. I deleted one of the phtos and still got the error.
I then discovered the size dialog box and clicked "small" and was able to send one photo.
I can receive mail with up to 20 attached Jpg items, But can't forward the same e-mail message. Is there a size limitation in Entourage or in .mac.
ThanksThere is no such limit with Entourage or Apple's Mail application but email account providers have an overall message size limit for received and sent messages.
.Mac has an overall message size limit of 10 MB for received and sent messages which is a typical limit but I have a few friends and business associates who have a smaller overall message size limit of 5 MB. Although I can send a message that is up to 10 MB in size with my .Mac account, the message will not be accepted by the incoming mail server for the friends and business associates with a 5 MB message size limit.
All files attached to a message must be encoded before being sent and decoded when received. Most email clients such as Entourage and Mail use MIME for attachment encoding/decoding which is the internet standard. A problem with MIME is it isn't very efficient. The encoding process increases the size of the pre-encoded file by roughly 50% of so. A file that is 5 MB in size (pre-encoded) will be roughly 7.5 MB in size due to the encoding process.
What was the exact error message provided? -
Hello,
I have to upload data into SAP for t.code 7KE1. Tried doing a BDC for this , but it is not working as I am expecting it to. Is there any Function Module or a BAPI which I could use instead of a BDC ?
ThanksHi Try searching with keyword confirmation in SE37, finally if you dont find any BAPI satisfying your requirement, its better go for BDC.
Regards
Abhii -
Any BAPI or FM for transaction TP04
Dear all,
Please tell me are there any bapi or FM to create travel request.
Please help me.
Thanks and Regards,
ChandraI think you need to use BDC.
This BAPI is there - BAPI_TRIP_CREATE_FROM_DATA but it uses PR01.
Check following to find BAPI for any tcode -
1. Find out the package of the transaction.
Start Va01 go to system --> status.
Double click on transaction
Package is VA
Open this package in SE80
Open business engineering-->Business object types
Find the BO which sounds the most appropriate
I would suggest BUS2032 Sales Order
Double click.
Open methods.
Find the released method with from data or something similar in the name
, Createfromdat2
Position the cursor in it and click the program button
Scroll down to find the bapi used in this method
With this way you can also find out programs and FM's
2. Start va01 go to system-->status
Double click transaction VA01
Double click on package
Read the application component. (this is SD-SLS Sales)
Then open the transaction BAPI
Sales and distribution>Sales>sales order
createfromdat2
Regards,
Amit
\[removed by moderator\]
Edited by: Jan Stallkamp on Aug 6, 2008 2:26 PM -
Email configuration for sending external mail(GMAIL) from SAP server
Hi
I would like to know the procedure for configuring email server in sap for sending mails to gmail.
Regards
SubhaHi,
The correct (gmail) email id should be maintained against the user in SU01.
Refer the following links for the help on the setup:
http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
http://wiki.sdn.sap.com/wiki/display/XI/SMTPConfigurationinSAPXI -
Any BAPI or FM for GB01?
hi guys,
may i know is there any BAPI/ FM can be used to do GB01 transaction?
with multiple line item entry and final checking to make sure the document balance is zero.
thanks.Try BAPI_ACC_DOCUMENT_POST
Maybe you are looking for
-
BED is Getting Double in MIGO while creating of RG23D entry
Hello, While we have procuring some material to DEPOT directly from vendor. As per government rule we are maintaining the ZMRP and ZABT condition types in Pricing procedure In Pricing procedure 10 ZMRP Step from 0 to 0 20 ZABT Step from 10 to 0 30 Su
-
When I bump into my desk, even slightly, the Mac Pro shuts down and tries to restart, but although the tower "on" light remains on, it doesn't actually restart and the screen remains black. I then have to manually shut down and then power back on. I
-
Changing apple username and password on your iPad
Some water got into my iPad 1. I put it away in a drawer and bought the iPad 2. About eight months later I came across the first iPad, so I plugged it in. Sure enough it started working again. It had all my info on it and I want to give it to my gran
-
hi all, id like to ask if you have any known user exit that could answer my problem i have a routine here that updates message control upon changing of the field werks in the line item. however, there are instances when output message is not updated.
-
Wats app images are all storing in my e72 gallery.let me know how to deactivate this function