Send email for new customer creation

Can I send email to someone when the new customer has been create through XD01. Is there any userexit to do that. thanks!

Receiving E-Mail and processing it with ABAP - Version 610 and Higher
OR
REPORT  zsendemail                    .
PARAMETERS: psubject(40) type c default  'Hello',
            p_email(40)   type c default 'write mail id' .
data:   it_packing_list like sopcklsti1 occurs 0 with header line,
        it_contents like solisti1 occurs 0 with header line,
        it_receivers like somlreci1 occurs 0 with header line,
        it_attachment like solisti1 occurs 0 with header line,
        gd_cnt type i,
        gd_sent_all(1) type c,
        gd_doc_data like sodocchgi1,
        gd_error type sy-subrc.
data:   it_message type standard table of SOLISTI1 initial size 0
                with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*&      Form  POPULATE_MESSAGE_TABLE
      Adds text to email text table
form populate_message_table.
  Append 'Email line 1' to it_message.
  Append 'Email line 2' to it_message.
  Append 'Email line 3' to it_message.
  Append 'Email line 4' to it_message.
endform.                    " POPULATE_MESSAGE_TABLE
*&      Form  SEND_EMAIL_MESSAGE
      Send email message
form send_email_message.
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'.
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.
Add the recipients email address
  clear it_receivers.
  refresh it_receivers.
  it_receivers-receiver = p_email.
  it_receivers-rec_type = 'U'.
  it_receivers-com_type = 'INT'.
  it_receivers-notif_del = 'X'.
  it_receivers-notif_ndel = 'X'.
  append it_receivers.
Call the FM to post the message to SAPMAIL
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
       importing
            sent_to_all                = gd_sent_all
       tables
            packing_list               = it_packing_list
            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.
Store function module return code
  gd_error = sy-subrc.
Get it_receivers return code
  loop at it_receivers.
  endloop.
endform.                    " SEND_EMAIL_MESSAGE
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
      Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
  wait up to 2 seconds.
  if gd_error eq 0.
      submit rsconn01 with mode = 'INT'
                    with output = 'X'
                    and return.
  endif.
endform.

Similar Messages

  • CRM E-Commerce BOB Web shop - Duplicate check for New Customer Creation

    Hi,
    In CRM E-Commerce BOB Web shop we have a requirement wherein new customer creation should go through a duplicate check. Only unique customers should be created as BP in backend GUI, in case a customer already exists with the same credentials, BP should not be created and user should get a message that the customer already exist in the system.
    Currently the system is not preventing me from creating new customers with same credentials.
    In case anybody has worked on the similar requirement or has any idea about the same, Kindly help.
    Regards, Vipul
    Edited by: vipul_kumar02 on Jun 21, 2011 4:20 PM

    Hi,
    Any pointers for function module used for creation of a new BP for a new customer request in BOB Web shop?
    Is it same as B2C Web shop?

  • TS3899 Cannot send email with new iPad air.  Works fine with old iPad and iPhone.

    Cannot send email with new iPad air.  Works fine with old iPad and iPhone.  I have deleted account and reinstalled.

    Thanks.  I got the problem fixed.  Spent time with the Apple folks and was kicked up to a senior advisor.  It seems the problem was with my internet provider - Tmie Warner.  Remember I could use the old ipad and the iphone to send mail.  I checked all the specifics between the three units.  It seems that TW is changing over from the RR.com  to TWC.com.  Since the new ipad air was just set up, it fell under the new TWC mail specifics. 

  • Requirements to go for new TableSpace Creation ?

    Hi All,
    It is a more databse question than SAP,
    What are requirements to go for new Tablespace creation ?
    OR
    Why do we need to create new Tablespace evethough, we have around 7 default tspaces there.
    Eg : In my case TSpace PSAPVERTEX  created; vertex is US tax tool.
    I dont think database stores the application specific data in particular TSpace  like  vertex application -
    PSAPVETEX
    Please reply to me soon
    RK

    Hello Ramakrishna,
    >> Why do we need to create new Tablespace evethough, we have around 7 default tspaces there.
    That is not correct. You have one default tablespace on database level or one default tablespace for different users (user settings)... but you can never have more than one default tablespace.
    SAP creates more tablespaces to seperate the data and to structure it... but the definition, which object is stored in which tablespace is specified in the create statement of the object.
    So if objects are for the vertex application.. the create statement includes the vertex tablespace PSAPVERTEX.. if not the objects are created in the default tablespace for the user.
    Regards
    Stefan

  • Restrict Broadcaster to not send Emails for certain Queries

    Hi,
    is there any possibility to restrict a user on sending Emails for certain queries?
    With the existing authorizaion objects S_RS_BCS and S_RS_ADMWB it is not possible to do so.
    He will need S_RS_COMP to be able to open the Query.
    With S_OC_SEND I just be able to take his ability to send Emails, but the user will need this option.
    Does anybody has an idea?
    Thanks and best regards
    Sascha

    The Workspace User role ony controls whether the user is allowed to use Workspace or not.  A user will only be able to Start a Process in Workspace if they a) are a Workspace User and b) the process security settings allow them to by having the INVOKE_PERM enabled.  The INVOKE_PERM setting is usually controlled from within Application Management area in the Adminui and would be set per process to define who is allowed to invoke (start) that service (process).  Take a look at your processes and see if they are defined for the All Principals group having the INVOKE_PERM as this is one way in which everybody can start a process.
    I'm unfamiliar with the Services User role but if it sounds like maybe this has the INVOKE_PERM so this could be why all your users can start processes, presuming they are all in this role.
    But however the INVOKE_PERM priviledge is being granted, it is not via the Workspace User role.
    Hope that helps.
    Jon

  • I have not been able to send email for some time but now i have stopped being able to recieve email.

    i have not been able to send emails for some time but in the last two days ive stopped being able to receive, the message says 'username or password incorrect' ive checked all the settings, ive deleated accout and set up again, ive rebooted phone. i tried to sync with pc but this also fails any ideas

    That is correct, They don't seem to know about Mac, never got a single scrap of help from  them.  Try recreating your account from scratch, delete the account, (write down all your settings first) and add an account, see if that works, and if it does, delete the first account to prevent things doubling up on you.  I think that's what I did, it was quite a while ago.  Hope this helps, or gets you pointed in the right direction.  Maybe go to At&t and try creating another account, and if ti works, delete the first.
    One other tihing I did was to reset Safari, as AT&T uses the net, that's about all I can remember, like I said it was awhile ago.

  • How can i send email for suport to rest my questions' please helpe'

    how can i send email for suport to rest my questions' please helpe'

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (109789)

  • Need a perl script which monitors a network folder and sends email when new files/folders arrived...

    I need a perl script (or something else better) which monitors a network folder and sends email when new files/folders arrived. I tried it in Automator but failed.
    Thanks!

    Yes. I tried it. But whenever I restart m Mac, the watch folder doesn't work until I reconnect to network or run the Automator... I need a simple system that automatically connects to the network and monitor the folder, even I restart the Mac.
    Thanks!

  • Did iTunes send email for us to complete new form to validate account?

    Received an email dear iTunes customer you have 48 hrs to validate account. Click link and a form comes up wanting us to complete all personal info, credit card # and cvs #....

    What he said!
    Here's more of the same : https://discussions.apple.com/message/24132205#24132205

  • Need LSMW Material for NEW Customer Master Upoad

    Do any one have material on LSMW for uploading New Customer Master Record with screenshots. I have Material on updating/changing the Cutomer Master Record, But i want to Upload New.
    Please post the link here or send to [email protected]
    Points are assure for right material.
    Thank you
    Satish

    Hello Ranjit,
    Thanks for your generosity. I dont have any issue (FYI, please have a look at MM forum where I am one of the active contributor)
    My concern is if you send any file to personal email ID then other SDNer will not get any benifits from your valuable suggestion/inputs. so instead you can sent it to SDN moderator who will help to upload the document and provide you link which you can include in your reply. (see the process in welcome and rule of engagement thread).
    We all are here to help eachother, but of course we can not exclude other SDNer when giving our inputs.
    Thanks for understanding.
    Regards,
    Arif Mansuri

  • Cant send email from new iphone

    Hey I hope the following will make sense.?
    I got an new phone and have "added" my hotmail account to the mail.
    It accepts my email address and password.
    I can receive emails however I am unable to send emails.
    When I attempted to send an email a message comes up saying "The user name or password for address is incorrect" but it is all correct as it allows me to receive emails.
    I have deleted and restored the account a few times, any other ideas would be greatly appreciated.
    Thanks

    Try checking your SMTP details. See if the SMTP server settings or your username and password is correct there. Receiving is done with different details so in a way they will be different.
    I have found some similar threads:
    https://discussions.apple.com/thread/3684975
    http://forums.macrumors.com/showthread.php?t=1253661
    Unfortunately, this is the wrong forum for this question. Please check the right forum and post. You could also try posting in Where
    is the Forum For…?
    Kunal G

  • Cannot send email with new 3G iphone

    Hi.
    I bought a 3G phone about one week ago. I had owned a first generation iphone before this. On my new phone, everything seems to work, except I am unable to send email. I get either the message "the user name or password for "SMTP:[email protected]" is incorrect.
    I entered the same user name and password as on my incoming settings, just 30 minutes ago. (incoming has worked well).
    Prior to my entry of this user name and password, (since receiving this phone) I received an error message that the sender address was not recognized.
    I have read through several discussions and forums, but still am unable to correct this problem.
    Can you help?
    drpatricia

    Hi PRuth,
    Most email accounts issued by Internet Service Providers are only going to be able to send emails when connected to the Internet over their network connection. So, if the iPhone is connected to the Internet over the 3G network or another network connection that is not owned by the ISP, it will not be able to send emails. More detailed information and tips available here: http://support.apple.com/kb/TS1426
    You can try enabling an alternate server, go to Settings> Mail, Contacts, Calendars, tap the account> Tap the outgoing mail server> turn on the alternate AT&T servers, which can be used when connecting to the Internet over 3G or EDGE.
    Jason

  • Email Activity not sending emails for one domain - 10.1.3.4 MLR#10

    I have four domains in my BPELConsole. My evey BPEL process has CatchAll block and I'm sending email notification with fault details.
    Somehow, my BPEL processes from three domains are sending emails properly but myDomain4 is not sending emails even after successful execution of Email Activity.
    1) I have compared the Email code with processes in other domain and they are similar.
    2) orabpel.bpelnotification is not logging any error for this notification.
    3) I never received any email from this domain. There was no error in logs during domain creation.
    3) I am getting following in logs that sending email was successfully executed. It received Notification ID too
    <2010-09-22 07:24:44,530> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Fetched a queue connection from pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=4
    <2010-09-22 07:24:44,534> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message) type = email caller = BPEL
    <2010-09-22 07:24:44,534> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Notification ID 12834c63e81c20d0:-71064af1:42b35e5dab4:-7283
    Please help/hint for any possible solution/debugging.

    sometimes i have seen emails not being sent when the async invokes takes more time than the overall completion.. And yes, we might still see successful log as emails sent. FYI - I am with 10.1.3.3.1 MLR #8.
    did you try just creating a email only process? switch off all other processes in that domain and initiate only this email process to see what happens..

  • BODS 3.1 :SMTP configuration to send email for success or failure of job

    Hi.
    This is further to this post : http://forums.sdn.sap.com/thread.jspa?threadID=1965129&tstart=0
    Thanks to all for the help.
    I did not find a complete set of information as things to do (for a person who is new to BODS).
    Hence sharing the workflow which works for me when tested on a simple workflow  :
    Pre-requisite : SMTP service to be made available on the BODS server and port 25 to be opened up.
    This is done by the IT dept of the company.
    When smtp service is activated and port 25 is opened up, telnet IP address 25 should say, service is available.
    Suggestion : create a email group like : bods at company.com which can be used to be used for the BODS JOBs. Which does not prompt for a password. This also is done by the IT dept of the company.
    1) On the BODS server :
    1) Click open Data Services Server Manager
    2) SMTP settings for smtp_to functions :
    Add the IP Address of the SMTP server
    Add the email address of the sender. Eg. bodsjobs at companyname,com
    3)Apply/Restart the server.
    2) Login to BODS Designer :
    Create a test job :
    TRY ==>DF===> Script for success ===> CATCH script for failure
    In the script for success : add the following :
    print (' IN TRY BLOCK Before email ' );
    smtp_to('bodsjobs at abc,com', ' SUCCESS OF JOB  :  '
    || job_name(),'Job completed successfully ', 0, 0);
    print('After Email ');
    In the script for Catch add the following :
    print (' IN CATCH BLOCK Before email ' );
    smtp_to('bodsjobs at abc,com', 'FAILURE OF JOB : '
    || job_name(),
    error_number( ) || 'Error message: ' || error_message( ) ||
    'check details', 50, 50);
    print('After Email ');
    Note : In the catch : select all exceptions on the check box.
    Save all.
    Click on the job and say execute.
    The job will run and if it is successful. You will receive the succes mail.
    If there is any error in the DF before the catch, you will receive a mail, which says failure.
    The above workflow, when tested atleast works for me.
    Hope this  helps.
    Regards
    indu

    Hi Arun.
    Am really not aware as to how to make things work from the console.
    I work on windows environment both at client and on the server.
    It looks like you got a bit confused on suggestion of a email group account.
    I never did anything on outlook configuration for activation of smtp for bods.
    I think you should not mess with outlook.
    I dont know from the client side how things work.
    But i have worked directly on the BODS server where the bods installation was done.
    It is relatively very simple to do and to test.
    But to even test why you get that error.
    All you need is just a email id. Which could be yours ???
    Put your email id as the source of email in that box in the job server.
    And put only your email id in smtp_to and test it.
    Run a test job. If it completes successfully. You will receive a mail.
    In the catch, if you have checked all the boxes for error capture,
    if the job fails, it would throw a dump of the errors in the email.
    Once everything works well and you receive emails for any jobs you are running.
    Then you could decide for the source of your email id and for the receipients of your emails of the jobs.
    You could put a group id of your team as source. And also in smtp_to script in case you want everyone to receive the alert that the job has been done or it has errors.
    Or include only those email ids in the smtp_to whom you feel, should receive the mail.
    Hope this idea helps.
    Please dont mess with outlook for any smtp activation for bods.
    It is not required if you are working on a windows environment.
    You just need a email id for testing.
    Outlook configuration does not come into picture at all.
    if there is any other unix environment involved. I have no idea.
    And i really do not know how things would be from a client side to configure.
    Server configurations i do from the server.
    I did all configurations on the main server machine. Not from the client.
    And I have only one job server so i did everything there.
    I did not do anything from management console.
    I use management console only for monitoring of jobs on a daily basis, the dashboard which gives you details of the data pulled, time taken etc etc.
    cheers
    indu.
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:05 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:09 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:17 AM
    Edited by: Indumathy Narayanan on Oct 22, 2011 8:18 AM

  • How to Send Emails for failed messages without using Alert

    Hi Experts,
    In our project, we need to trigger Emails for the failed messages in SXMB_MONI / Adapter Engine without using Alert Framewrok.
    Please let me know the below :
    1. Is this really possible to avoid Alert?
    2. If possible, then can we accomplish this by creating any PI Scenario? Please provide me some knowledge.
    3. Can we do it by writing any ABAP Code? If ABAP report can make it, then please provide me the code/ tables which will be needed. If any Blog/ Wiki is there, then please let me know the URLs. 
    Thanks,
    Nabendu.

    Hi Nabendu,
       If your customer asks for mails with specific text for message failure, tell that it is not possible. Because Message will go through several engines like Adapter Engine, Integration Engine, BPE. You can not generate mails for the message failures in all these areas with out standard alert mechanism. These are pure technical alerts which only PI people can understand, not business alerts.
    Example: assume your sender channel is unable to connect FTP Server, in this case you can not generate even though you will develop adapter module to generate alerts.
                            So for message validation only you can send mails not for message failures.
    thanks,
    madhu

Maybe you are looking for

  • Vendor account and GL account

    Does SAP have a functionality that allows default GL account numbers and/or cost centers to be assigned to vendors? This would help to reduce inconsistencies in assigning account codes and cost centers to invoices if certain vendors always got charge

  • Graph in flex

    First of all hello to all of the great poster here. As i m newbie in flex. my problem is Ho w to add different multiple graph in at runtime in flex. can any body help me. Please help me. Regards vish

  • Formula for comparing string and setting text object to visable?

    I have a report that is pulling data from a database and listing multiple records, one on each page. I am wanting to compare a value that is stored in a database field for each record and setting a text object visible based on the text. I'm very new

  • Mail problem following auto upgrade to 10.6.7 OS

    I have upgraded my IMAC to 10.6.7 and am now unable to open my mail box, the old app 4.4 says incompatible with this version of the OS and when I go into applications and try and use 4.5 it looks like it isnt properly set up, instead of the normal po

  • How to detect line break while reading input ?

    Hi all, I am reading the user input from standard input. I want to detect the line break. So that I can stop reading input and proceed processing the string. Actually I am getting the SQL query as input and after that I am executing the same by passi