Sending mails from SBWP to MS Outlook

Hi,
I'm trying to configure SMTP in my SAP system. I'm successful in getting notifications and alerts generated by a program into my inbox in SBWP. Can somebody please tell me how do I configure it to receive them into my email Inbox in Outlook? What are the changes should I make from the regular configuration. I followed the SAP Note: 455140 for configuring SMTP.
Thanks in Advance,
Rajesh Manoharan

hi
good
go through this link hope this would help you to solve your problem
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c6456e89-0a01-0010-0189-a7961fe42034
thanks
mrutyun^

Similar Messages

  • Error in sending mail from SAP to microsoft outlook

    Hi all.
    Greetings.
    I have a requirement to send mail from SAP to Outlook.
    SMTP is configured here....i have checked the steps.
    I am using FM "SO_NEW_DOCUMENT_SEND_API1" to send the mail text.
    when i check the SOST Tcode i got message "Wait for communications service".
    after evry 10 minutes the sap connect all process runs..as it is configured in SCOT transaction, but even after 30 minutes the mail is not sent.
    I don't know how should i check the error message?
    tell me the checking stepls plz?...how should i step through in checking this?
    what are the prerequsites for sending mails from SAP to Microsoft outlook?
    regards
    Prashant Tiwari
    Edited by: prashant tiwari on Feb 6, 2009 10:26 AM

    Hi prashant,
    Pls refer to the link below:
    Re: Inbound Email- SAP Connect
    or
    check your userid .
    If not correct  no mail will go from u r id.
    Try it with another user id.
    or try using the following function module
    'SO_NEW_DOCUMENT_ATT_SEND_API1'
    I Hope this helps you with the issue.
    Thanks
    Ravi Aswani

  • Sending mail from sap Inbox to outlook

    Hi All,
    Iam new to SAP workflow. Here I need to send the mail from SAP Inbox to Outlook for high priority keeping red flag as icon.
    can anyone tell me how to set up this and go ahead to start.
    Thanks
    Kumar

    IF I understand you correctly, you want to send a mail to Outlook (external email address) as a step in Workflow.
    If you are on Release 6.20 or above the following solution will work. I do not remember what is available in earlier releases.
    1) Define a multiline element based on SOXNA-FULLNAME to hold the email addresses. How you populate this element with the addresses depends on your requirements.
    2) Insert a Send Mail step in the workflow.
    3) In the Mail Tab, Select 'U' as Recipient Type.
    Assign the Multi Line element defined in Step 1 to E-Mail Address.
    4) Define the Subject and the body as needed.
    Please note that you should have External mail sending from SAP enabled and a batch job that runs periodically to push the mail.
    Cheers,
    Ramki Maley.

  • Sending mail from workflow inbox to outlook,when idoc error occurs

    Hi All,
    I tried to send a mail to outlook from workflow by giving the email address in the step mail, but it was not working.
    i am getting the workitem in the sap inbox so tried setting the automating forward which we can forward from the sap inbox to outlook.
    Searched in SDN , but my issue was not solved..
    Could you please help me out with this issue to get the mail from workflow to outlook inbox.
    Thanks,
    Praveena

    Hi Praveena,
    Please check if the necessary SCOT settings have been made in your system to send mails outside SAP box. Check with your basis team if the SMTP connection between external system (Outlook, Lotus, etc) has been maintained or not.
    Then check in t-code SOST if you are getting the mail here when sent from workflow.
    Hope this helps!
    Regards,
    Saumya

  • Sending mails from SAP inbox to Outlook

    Hi,
    I am able to send mails to the SAP user's inbox in the SAP workplace thru my abap program but i would like send it to their outlook mail box. I'm able to get mails if i configure outlook to receive emails from SAP mail box but i would like to do it vice versa. I got the user's SMTP address.how do i do it? Is there any configurations are necessary or anything to do with my exchange server? give me some valid sugesstions.

    Hi,
    Check this link
    http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm
    http://www.sapdevelopment.co.uk/reporting/email/emailhome.htm
    Thanks & Regards,
    Judith.

  • Sending mail from JSP through Microsoft Outlook

    Hi all,
    i want to send an e-mail from JSP by clicking on link or button through Microsoft's Outlook..
    Can anyone guide me..

    something like this,
              try{
                   props = new Properties();
                   props.load(this.getClass().getClassLoader().getResourceAsStream("contact.properties"));
                   int i=0;
                   String referer = props.getProperty("contact.allow.referer."+i);
                   email = props.getProperty("report.email.error");
                   while(referer != null){
                        i++;
                        contact.put(referer, "true");
                        referer = props.getProperty("contact.allow.referer."+i);
              }catch(Exception e){
                   e.printStackTrace();
              try{
                   Session session = (Session)new InitialContext().lookup(this.props.getProperty("reports.jndi.email"));
                   SMTPMessage m = new SMTPMessage(session);
                   m.setFrom(InternetAddress.parse(this.props.getProperty("report.email.from"))[0]);
                   m.setRecipient(RecipientType.TO, new InternetAddress(this.email));
                   m.setSubject(this.getSub());
                   StringBuffer msg = new StringBuffer();
                   msg.append("Employee Name: "+fn + " " + ln +"\n");
                   msg.append("Employee ID: "+this.getId()+"\n");
                   msg.append("Message: "+this.getMsg()+"\n");
                   m.setText(msg.toString());
                   m.setReplyTo(InternetAddress.parse("no-reply"));
                   m.saveChanges();
                   Transport trans = session.getTransport();
                   trans.send(m);
                   trans.close();
              }catch(Exception e){
                   e.printStackTrace();
              }          contact.properties:
    reports.jndi.email=java:comp/env/globalMail
    report.generation.timeout=3000
    report.email.subject=Some Subject
    [email protected]
    [email protected]

  • I can't send mail from iphone4 using outlook

    I am able to receive mail, but cannot send mail from my iPhone4. I am using Outlook - please help!
    Thanks!

    Email does not sync to the phone via iTunes. Don't know where you got this idea. Email account info can be synced from a computer to the phone via iTunes, but that's it.
    If the OP told us what happens when he tries to send mail, it might actually be helpful in troubleshooting. Without this information, we're just shooting in the dark.
    That said, I'm willing to bet the SMTP server settings are incorrect.

  • I can't send mails from my outlook 2010 but can receive, I can't send mails from my outlook 2010 but can receive

    I can't send mails from my outlook 2010 but can receive, please help.

    Thank you so much for your time and help Csound1 I really appreciate it.
    Mac mail works perfectly fine so I don't want to screw it up by altering anything there.
    However, I've checked to make sure I didn't miss anything on Outlook, but it still won't send messages. I don't know if I need to fill the "Unqualified domain" field?

  • Event of Sending Mail From Outlook Integration Add-On

    Dear Experts,
    I am not able to find the event if I am sending mail from outlook integration add-on. Suppose I open a Sales Order that already entered and click on Mail Menu and click on 'Send' Button (Form Type = 188). It sends the mail successfully from Outlook but I am not able to use the event after that while it shows me operation completed successfully.
    I am writting it as follows:
    if (pVal.FormType == 188 && pVal.ActionSuccess == true && pVal.EventType == BoEventTypes.et_ITEM_PRESSED && pVal.ItemUID == "1")
    I have used it on Form Data Event too but no success.
    if (BusinessObjectInfo.BeforeAction == false)
                    switch (BusinessObjectInfo.EventType)
                        case BoEventTypes.et_FORM_DATA_ADD:
                                switch (BusinessObjectInfo.FormTypeEx)
                                            Case "188":
                                            }break;
    Plz help me.
    Regards

    Hi,
    Thanks for replying.
    I want a report that how many times a mail is sent against an Order.
    What i am doing:
    1. Open particular Sales Order.
    2. Click Mail Menu
    3. Click Send Button.
    4. Here comes an Popup box that a third party is trying to send a mail coz I am using outlook integration add-on to send mail. I allow it to send the mail.
    5. Mail is send successfully. I got the status bar message also.
    Now I want to write my event but not able to do that.
    plz reply now.
    Regards

  • Problem sending mail from OUTLOOK

    Hi !
    I use the following code to send mails from outlook:
    Process p = Runtime.getRuntime().exec(new String[]{"cmd.exe","/c", "start","mailto:[email protected]?body=test"});
    and it works, but my problem is that if I add any other attribute like cc,subject only the first one it's done, I mean, If I do:
    Process p = Runtime.getRuntime().exec(new String[]{"cmd.exe","/c", "start","mailto:[email protected]?subject=subject_test&body=test"});
    subject will appear properly but body will be empty.
    Where is the problem??
    Thanks!!
    TLLI

    Okay, I was mistaken, I thought about this thread. Might still be helpful to you, especially the JDIC reference:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=641669

  • Unable to send Mail from POP account

    I have an Iphone 4 and have upgraded the IOS from 5-1 to 6.1.3. Since then I have been receiving all my mails but i have been unable to send mails from my POP account. the notification "Cannot Send Mail. A copy has been placed in your Outbox. The receipient, "xxyyzz @ gmail . com " was rejected by the server" displayed. Please Help. the same thing happens when I configure my POP account on my Son's Iphone4, and there is no problem in receiving and sending mails from my Outlook. Please Help!!!!!
    Can i revert back to IOS5.1.1?????

    Contact your email provider and get the correct settings to use for the outgoing mail server (SMTP) on a mobile device. If it's email provided by your ISP, they have likely blocked email from outside their network from relaying to prevent spam.

  • Error: Not able send mail from OWA 2010. When I send mail, the mails go to Drafts Folder.

    Error: Not able to send mail from OWA 2010. When I send mail, the mails go to Drafts Folder. I have installed everything correctly but when I tried to open the OWA and trying to send mail from OWA. The mails do not deliver and mails become saved in Drafts folder. I tried to re-send messaged from Draft also but not able to send. 
    Screen Shot: http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/Error%20-%20Not%20Able%20to%20Send%20Mail%20from%20OWA%202010.docx
    Scenario: I have below configuration of exchange 2010 server Setup:
    1. Windows Domain Controller with Global Catalog on Windows Server 2008 which only for Windows 2008 Server Native.
    Server Name: WDC2010
    Domain: Blazex.Com
    2. Hub/Client Access Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Hub/Client Access Exchange role servers.
    Server Name: HC2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Hub and Client Access Server.
    3. Mailbox Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Mailbox Exchange role servers.
    Server Name: MBX2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Mailbox Server.
    4. 2nd  Mailbox Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Mailbox Exchange role servers.
    Server Name: 2MBX2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Mailbox Server.
    5. Client Windows 7: It is installed on Windows 7 Ultimate Workstation. As per Microsoft recommendation, I have just installed Windows 7 and then join this computer to Blazex.com.
    Workstation Name: WIN7.blazex.com
    Role: Workstation
    Error Description: I have installed everything correctly but when I tried to open the OWA and trying to send mail from OWA. The mails do not deliver and mails become saved in Drafts folder. I tried to re-send messaged from Draft also but not able to send. 
    Screen Shot (Same As Above): http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/Error%20-%20Not%20Able%20to%20Send%20Mail%20from%20OWA%202010.docx
    I don't know what I am missing but I think there is some configuration I need to do on Hub/Client Access Server (HC2010).  I tried to access the mailbox on XP Client system through OWA. I get the same problem as Win7.
    Can someone please help me on this?
    Thanks and Regards
    Shambhu

    Hi Subhash,
    I have done the troubleshooting but I didn't find any problem at server side. I will send you mail also with all EXBPA report and as well DC, HC and Mailbox servers' Application Log and System Log.
    Below are the questions's answers which was asked by you:
    1.     Please check whether you can send email via Outlook.
    I am not able to open the MS Outlook. Please check all details in this thread : http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c491c5c7-7d6f-48ff-97fa-6bf83d94e53c
    2.     Please run EXBPA to have a health scan.
    I have run the EXBPA and didn't see any critical Problem. I have took the screen shot and report. Please have a look in below screen shot link:
    a. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/EXBPA.docx                                                                            - Final Report
    b. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.BaseLine.200906270226501077.data.xml                        - Baseline Health Check
    c. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Connectivity%20Test.200906270223318201.data.xml      - Connectivity Check
    d. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Health%20Check.200906270125477730.data.xml            - Health Check with 2 Hr. Baseline option
    e. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Permission%20Check.200906270224343377.data.xml      - Permission Report
    The error which I received in EXBPA, that allready ignored by you and told that it is bug in EXBPA. Have a look here: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/d4bb03bb-db84-4a8b-83ba-19937d7dcacf
    3.     Please check application log, whether any error event logged there. They could come from ADAccess related error or etc.
    I didn't see any ADAccess event on the server. For this I have left my lab PC open and I will check again.
    4.     We find that if mail .que gets corrupt, then this issue will occur, please try to move the affected user to another store and then test the issue.
    I am facing this problem with all users (7 users). Anyway I moved one user from one server Mailbox Database (2mbx2010) to Other Server Mailbox Database (mbx2010). After that
    a) Rebooted the Workstation
    b) Login successfully with same user.
    c) Delete the Old MS Outlook Profile
    d) Create New profile for same user without any problem.
    e) Tried to login in MS Outlook and got the same error. : http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c491c5c7-7d6f-48ff-97fa-6bf83d94e53c
    f) Open the OWA successfully for Same user.
    g) Tried to send mail but again mail went to Drafts Folder.
    5.     I noticed that you test the issue after you close outlook. I recommend you to reboot your pc and then access
    mailbox via OWA to test the issue.
    I tried you suggested option, but sorry it also couldn't help.
    6.  You also check your disk space.
         All Servers have Enough Disk Space. Check the EXBPA Report.
    7. You may run EXTRA to get log information for further troubleshooting.
      Need more time for this.
    8. Please save application log, system log as *.evt file, then send them with EXTRA,EXBPA report to [email protected] .
       I have sent it as your mentioned mail address OR, you can get the mentioned log from below link also:
       a) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/WDC2010%7C_APPLICATION.evtx           - DC/GC Application Log
       b) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/WDC2010%7C_SYSTEMEVENT.evtx          - DC/GC System Log
       c) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/HC2010%7C_APPLICATION.evtx              - Hub/Client Application Log
       d) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/HC2010%7C_SYSTEM.evtx                      - Hub/Client System Log
       e) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/MBX2010%7C_Application.evtx                - Mailbox Application Log
       f) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/MBX2010%7C_System.evtx                      - Mailbox System Log
    There will be some error log you will be that the system is not able to communicate with DC/DC, MBX or HC at everyday around 3 AM or some time 6 PM Evening also. These error came because I have installed VM on Windows 7 Workstation and after 45 min or one hrs. if I don't work on PC, then pc goes to sleep. so you may ignore these alerts.
    I hope my answer will give you some clue and I expect more help from your side.
    With Best Regards
    Shambhu Sharma

  • Can not send mail from PR Workflow to the approver

    Dear all,
    I have issues about send mail from PR Workflow to the approver.
    Now when user create PR and the corresponding user can receive the workflow items in SBWP.
    But no email from the user to approver.
    If I assign authorization SAP_ALL to the user that create PR. The approver can recieve the workflow item PR in SBWP and email to their mail
    Can you tell me about the authorization that can allow the user to send the workflow item PR in SBWP and email to the approver?
    Now user can send mail to external and internal mail and I also configured the mail server in SCOT and can successfully send a mail to users in SO01 by manually creating a message.
    Now the approver not receive any email but can receive a workflow item in SBWP
    Regards,
    Pannee

    Dear all,
    Thank you for all suppport, Now I can solve issues.
    Regards,
    Pannee

  • Some Users on randomly basis unable to send mails from 2003 exchange to 2007 Exchange users Internally.

    Hi All,
    Some Users on randomly basis are unable to send e-mails from 2003 exchange to 2007 Exchange users Internally.
    They are sending mails from outlook and users from 2007 dont have any issues.
    But sometime mails from 2003 to 2007 goes without any issue.
    The NDR reported is as below.
    From: System Administrator
    Sent: 22 February 2014 15:59
    To: XYZ
    Subject: Undeliverable: Regarding Test Message
    Your message did not reach some or all of the intended recipients.
         Subject:  Regarding Test Message
         Sent:     22/02/2014 15:59
    The following recipient(s) could not be reached:
         XXX,XYZ on 22/02/2014 15:59
               The message contains a content type that is not supported
               <HubServer.Domain.UK #5.6.0 smtp;554 5.6.0 STOREDRV.Deliver.Exception:PropertyValidationException; Failed to process message due to a permanent exception>

    Hi,
    According to the NDR, I found this point "The message contains a content type that is not supported".
    Please verify whether the un-delivered messages contain some Sensitive
    Information,  signatures or attachments that cannot pass the Exchange 2007 Edge server. Please also check the content type of the un-delivered messages.
    Found a useful KB for your reference:
    Frequently asked questions about MIME and content conversion in Exchange 2000 Server and in Exchange Server 2003
    http://support.microsoft.com/kb/836555/en-us
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Function module to send mail from SAP

    Can any one please tell the Function module to send mail from SAP. The scenario is like this,I have a file in local system that i have to send to a particular mail address like [email protected] through a report program.

    Hi shafiq,
    1. There is some trick involved
    in the binary files.
    2. I have made a program (and it works fantastic)
    ONLY 6 LINES FOR EMAILING
    BELIEVE ME
    ITS A FANTASTIC PROGRAM.
    IT WILL WORK LIKE OUTLOOK EXPRESS !
    3. The user is provided with
    a) file name
    b) email address to send mail
    and it sends ANY FILE (.xls,.pdf .xyz..)
    Instantaneously !
    4. Make two things first :
    1. Include with the name : ZAMI_INCLFOR_MAIL
    2. Report with the name : ZAM_TEMP147 (any name will do)
    3. Activate both and execute (2)
    4. After providing filename, email adress
    5. Code for Include :
    10.08.2005 Amit M - Created
    Include For Mail (First Req F16)
    Modification Log
    Data
    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.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    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 = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 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.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    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
    IF sy-subrc <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    CODE FOR PROGRAM
    5.
    REPORT zam_temp147 .
    INCLUDE zami_inclfor_mail.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    regards,
    amit m.

Maybe you are looking for