SAP Inbound email related query (from Outlook to SAP)

Hi,
I am in a situation where I have to send email from MS Outlook to SAP with a PDF file as an attachment. The PDF file will be stripped into an XML file and processed further and a reply is sent to the user sending the email. The Outlook admins have set up the necessary config for the connectivity - I am able to send the PDF file from Outlook to SAP (everything has been configured using SICF, SCOT etc) for inbound processing. In SCOT - Settings->Inbound processing I have used a Class which implements interface IF_INBOUND_EXIT_BCS (as per one of the blogs by Jeff Gebo). I can see the trace file in SCOT ->Utilities->Trace->Internal trace. When I send the PDF file, I can see in the trace (I cannot debug as the SAPCONNECT user which gets called in the backgound triggers the user exit class). In the trace file I can see my class gets instantiated but the next step to read the PDF file fails.  The code come the Jeff's blog which I use is as follows:
Set return code so that no other Inbound Exist class will be called
e_retcode = IF_INBOUND_EXIT_BCS=>gc_terminate.
try.
Get the email document that was sent.
  data: document type ref to if_document_bcs.
  document = io_sreq->get_document( ).
Get the sender's address to reply back
  lv_sender = io_sreq->get_sender( ).
  addr = lv_sender->address_string( ).
  return_addr = addr.
Get the interactive form attachment.
  data: pdf_table type BCSS_DBPC.
  pdf_table = document->get_body_part_content( 2 ).
Convert the pdf table into an xstring.
  data: pdf_xstring type xstring,
        pdf_line type solix.
  clear pdf_xstring.
  loop at pdf_table-cont_hex into pdf_line.
    concatenate pdf_xstring pdf_line-line into pdf_xstring in byte mode.
  endloop.
Process the PDF form
  data: formxml type string.
  formxml = me->process_form( pdf = pdf_xstring ).
Here the contents of the pdf_table-cont_hex is blank (I used a table to populate the values). All I get in my Outlook inbox is a empty email with an empty subject from SAP (called by the instantiated class of the Interface)
The irony is that I setup the same procedure has been configured and setup in another totally different SAP system and everything works fine there - I did a comparision of both SAP systems and everything seems fine (config wise and user exit class wise) and  everything is identical. I have no clue as to why it works in one system and not in the other system.
If anyone has any pointers wit will be greatly appreciated as I am on a tight deadline - I have checked OSS but with no help.
Thanks in advance,
Ryan

You may be able to find more information by putting an infinite loop at the beginning of your user exit:
x = ' '.
while x = ' '.
x = ' '.
endwhile.
and then go into debugging via SM50 and set the x variable to break out of the loop.
This technique is useful debugging workflows and other code which you cannot get to directly by placing a break-point.
Andrew

Similar Messages

  • To send an email from outlook to SAP user in SAP

    Hi,
    Is it possible to send an email from outlook to SAP user in SAP?
    Regards,
    Mizan

    Hi Mizan......
    Yes off course it is possible.
    Generally how we put the CC to our ionternal users like you have to put their email address while sending mail through SAP viq outlook.
    The mail will go from SAP but via. outlook and user will receive the mail in Outlook Integration and not inside B1.......
    If you want it in B1 then instead of sending mail you can send the same by choosing option Int......
    Regards,
    Rahul

  • How to get mail from Outlook to SAP GUI (workflow)

    Hi All ,
    How can we get a mail from outlook or personal mail into SAP GUI .
    can it be used as an event for 'wait for event step ' in workflow . ?
    Thanks ,
    Naval bhatt

    Hi Naval,
    I just want to clarify some areas from your question:
    1. Will a workflow be triggered because of the email from Outlook to SAP? Does it always have to start from the Outlook side?
    The integration of SAP Workplace (thru Workflow) and Outlook is possible using the Extended Notification (tcode SWNCONFIG). Here, you can send an email from SAP to Outlook then execute a function from your Outlook message and then you will be directed to the tcode of SAP side (SAP GUI).
    Regards,
    Reymar

  • Synchronisation of contacts from Outlook to SAP Business One

    Dear all,
    i have installed the Outlook Integration Add-On and want to synchronize Contacts from SAP Business One to Outlook and this worked fine. Now I also wanted to synchronize contacts from Outlook to SAP Business One (changes and new Contacts) and I activated the check box for this in the settings. But after I run the synchronisation nothing happened, even the contact folder has been selected in the Contacts - MS Outlook Criteria settings. Do I have to do something else?

    David,
    The forum you have posted your question in is for questions related to the SAP Business One SDK.  You may want to post your question in the SAP Business One Discussion Forum as your question is application related.
    http://cpsn-channel.sap.com/businessoneforum
    Eddy

  • Enable SAP Inbound email through IMAP, POP3 & MAPI instead of SMTP

    Hi,
    I am trying to configure SAP Inbound email in CRM 6.0 and would like to know if I can use IMAP, POP3 or MAPI instead of SMTP due to our company's legal policies and maintenance purposes.
    If there is a way, please let me know how to?
    I have checked other options but none of them talk about IMAP, POP3 or MAPI
    *) ICI (Integrated Communication Interface)
    *) Agent Inox based on SAP Connect Interface via SAP Business WorkflowCheck
    http://help.sap.com/saphelp_crm60/helpdata/en/46/23e545c17b5872e10000000a11466f/content.htm
    PI Mail Adapter  - http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    Configuring the Sender Mail Adapter - http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    Configuring the Receiver Mail Adapter  - http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    Thanks in advance

    Hello,
    As far as I am aware, SMTP is now the only supported option for configuring inbound emails through the SAPConnect interface into the Interaction Center agent inbox.
    [SAP Note 455140|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=455140]
    [SAP Note 1236270|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1236270}
    Best regards,
    John

  • How do I convert emails to PDF from Outlook to make a file on the PC?

    how do I convert emails to PDF from Outlook to make a file on the PC

    It is always tough for anyone when we need to save our emails into one file for future reference. You could either do it manually or can use a simple tool to Convert all your messages into one pdf file . This Single pdf file can be used if we need to read any past email. you can easily convert oulook to pdf in no time. If you are converting several email messages, you can either save them as separate files with initial layout fully intact or combine them into one big PDF document.

  • Why i couldn't open email that sent from Outlook?

                     Please help me for this matter, i had bought my BB Curve 8520 for just only 5 days and use latest firmware. I have setup 2 emails 1.) hotmail  2.) Outlook (Official mail) i found this issue after i had setup my office email for a few days.
                    Issue is when i open email that sent from Outlook (Official mail) that contained file .png or attached with file .png by using HTML  my bb couldn't open it, it will stuck but i can use any function but just the email that didn't open.
                    I ha contacted with my Local support, they inform me to do the hard reset, after i had hard reset it working fine with same email that couldn't open previously. After one day had past it has the same issue again.
    Please help me to fixed this issue, thank you in advance.
    P.S. I had never install any unauthorized program.

    Photoshop doesn't do anything special or different when a file is sent from an attachment. However, when you send an attachment from Outlook to Photoshop, that file is actually downloaded to your computer in a Temp folder before it is sent to Photoshop. Often times the permissions on this folder can be such that it prevents access. Other than that, all Outlook does is simply drop the file onto the Photoshop app file. The only thing that would involve Photoshop directly is if there are some damaged files involved with its connection to the rest of the system. If this is the case a reinstall would fix it. Otherwise, check the permissions on the Outlook temp folder (or at least the JPEG file it is trying to save).

  • Inbound email configuration is not working in SAP CRM 7.0

    We have issue with the Inbound mail in SAP CRM 7.0, the emails from external ID (eg *@gmail.com) unable to receive in SAP Mailbox.
    SMTP Settings as per the note : 455140 have been done and its working fine, we are able to send email from SAP to external server.
    Also as per the note 607108 telnet test was successful and we can see the email in SOIN,
    However if we send a mail from Gmail to SAP it is not visible in SOIN and it is bouncing back with error
    said: 553 5.1.8 <[email protected]>... Domain of sender address
        [email protected] does not exist (in reply to MAIL FROM command)
    I have attached screenshot of the SOIN.

    Hi Garcia,
    I have checked with the Network team who manages Exchange server and they have mentioned that it is bouncing back from our CRM host with the error as below,
    said: 553 5.1.8 <[email protected]>... Domain of sender address
        [email protected] does not exist (in reply to MAIL FROM command)
    Regards,
    Arpit

  • Drag & Drop from Outlook into SAP BDS (sales order, deliveries, etc.)

    Hello everyone,
    I have some problems with Email archiving between SAP ECC 6.0 and Outlook 2007. The overall scenario should look like:
    Outlook (drag&drop) --> SAP object like e. g. sales orders as Business Document --> third party archive.
    The problem we are facing starts with the false or maybe non existing drag & drop function for Outlook. The direct drag&drop from Outlook only creates a textline in SAPs Business Document. There ist no problem at all if we store the Email on the hard drive in .msg format and afterwards drag&drop it to the Business Document.
    Is there any way to skip the latching on the hard drive and communicate directly between  SAP and Outlook? Otherwise how do you handle this problem?
    Thank you.

    Is there no one else who got this problem?

  • How to transfer all emails and contacts from Outlook Express to Outlook 2010

    I have just done this and believe me it was a bit of a marathon! Microsoft tell you that you need to have both Outlook Express and Outlook 2010 running on the same machine. If, like me, your Outlook 2010 in running on a Windows 7 platform there is a problem.
    Until now I have been using Outlook Express on a Desktop running XP Pro. It has Outlook 2007 but it won’t run owing to a corrupted file. I set up my email account on an old XP laptop which has Outlook 2007. This is how I transferred emails between 2 machines
    running Outlook Express:
    After setting up the account (on the old laptop) I created sub-folders exactly the same as my existing account. Having got some emails in the inbox I made sure that each new sub-folder contained at least one random email simply by drag and drop. It seems to
    validate the folders. I then copied the folders from the maintenance directory on the desktop (you find this under Tools – Options – Maintenance) and pasted them into the equivalent folder on the this old laptop so they overwrote those present. I transferred
    the contacts simply using Export – Address Book using a csv file. I then set up the email account in Outlook 2007 on the old laptop and ran an import from Outlook Express which was fine as per Microsoft’s instructions. On that machine I then exported to a
    backup pst file which I transferred to my new Windows 7 machine and imported successfully into Outlook 2010. Perhaps there are easier ways but at least it worked!

    You can directly do the same, visit https://support.microsoft.com/en-us/kb/196215 to know the steps.

  • When I open an email's attachment from Outlook, the email's attachment is no longer avail to open on my iPad and iPhone

    When opening an email's attachment in Outlook 2007, that email's attachment is no longer available to view on my iPhone and iPad.
    How do I correct this to keep the attachment available on iPad and iPhone, when the email's attachment is initially opened from Microsoft Outlook please??

    If you're talking about an old iCloud ID, you have to delete the old account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Transfer email, calendar etc from Outlook PC to Outlook Mac

    Hi all,
    I've had a look around for this but can't seem to find a solid answer and I'm concerned that something will be missed.
    I need to transfer all email, calendar, contacts etc from Outlook 2007 on Windows to Outlook 2011 on a Mac. Could anyone point me in the right direction please?
    Many thanks
    Mikee

    Have a read here http://support.microsoft.com/kb/2413370/en-us
    Stefan

  • Cannot Import Email and Folders from Outlook for Mac 2011

    After downloading Lion, I could not import emails and folder structure from Outlook for Mac 2011.

    You're in luck, Imap and Exchange accounts store their data on the server.
    Leave Outlook alone, just add the accounts to Mail and let them synchronize, no import required. You can leave them in Outlook or remove them as you please once everything in Mail is done.

  • Groupware Replicate Task from Outlook to SAP CRM

    Hello,
    When the user is going to create a Task in outlook.
    It is possible for the user select the transaction type of the Task (Not the category) that the user is going to create ??
    I need these information because in CRM we have several types of Task, and I would like to know if the user could select the transaction type or if it is only possible create always the same transaction type from Outlook to CRM.
    Where the transaction type for the task can be selected when the user is going to create the task ??
    Thank you very much.
    Regards.

    Hi,
    Are you using client based groupware integration or server based?
    We use client based groupware integration.
    It is not possible to select the task transaction type there - also not in the new version 10.xxx
    Only one transaction type for task is possible to maintain in customizing and this type is used every time.
    I hope this answers your query.
    Kind regards
    Manfred

  • Receive email from outlook to SAP inbox SBWP

    hi,
    I want to send email from my outlook and want to receive it in the SAP system inbox (SBWP). Can anyone please help me.
    Thanks,
    Hiral Soni

    Hiral,
    there's a step-by-step guide in the SAP help:
    http://help.sap.com/saphelp_nw70/helpdata/EN/55/a8b538891b11d2a25a00a0c943858e/frameset.htm
    kr, achim

Maybe you are looking for

  • Custom TCode for Excel File Upload/Import - WebGUI Error

    We get an ABAP runtime error when uploading an excel file with a custom tcode using WebGUI.  It works ok with WinGUI.  Any ideas what could be causing that error? Runtime Errors         RAISE_EXCEPTION Date and Time          01/05/2011 17:27:16 Short

  • Problem in Extended Idoc

    Hi All, I have Extended ORDERS05 for adding custom fields for inbound process, Steps i have fallowed to create Extend Idoc: 1,Created new segment with all Z-fields and released, 2,Created Extension Idoc with reference standard Idoc ORDER05, and added

  • Help: Data Scroller Component Tag doesnt work

    Help anybody!! I am working with the Data Scroller y the Data Table Components Tags. I run the page in Jdeveloper 9i, this is the code I wrote: <!--Begin--> <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %> <%@ page contentType="text/html;charset

  • View Usage Fails

    Until the usage period ended 6/16 I could click on "VIEW USAGE", then select cell phone or MIFI and see usage to date.  Since the rollover to new period (6/17) I cannot, the buttons for those 2 categories do not respond to selection. Any one else eve

  • Variable to be declared when calculating ratio.

    Hi ABAP Experts, I need to calculate ratio of the following: Lv_Ratio = lv_var1 / lv_var2. Note: TYPE of lv_var1 and lv_var2  = Currency, Length 13, Dec 2. I would like to know, what 'TYPE' should the variable lv_ratio be declared? Thanks a lot in ad