Using SAP Mailbox, FM:SO_DOCUMENT_SEND_API1

Hi ABAP gurus,
Thanks for your time on my query.
I have a very typical issue with sending emails to external email IDs.
1. We have an output (ABCD) from Billing documents, which sends Delivery Confirmation document by email, by deriving the email ID from the ship-to-party master data from the Billing document.
2. the output ABCD is processed by a batch job, which collects ABCD outputs from all the possible Billing Documents and processes at a time.
3. Now the issue is, for eg: if 500 ABCD outputs are processed successfully, it has 500 successful entries in NAST table.
4. but atleast 20% of the emails are missed to sent, which means only 400 correspondings entries are present in SOST table and the remaining 100 emails are missed and so not available in SOST table.
5. Again if we reprocess the missed out outputs they are sent successfully and the entries are available in SOST.
Technical:
The FM: SO_DOCUMENT_SEND_API1 is used to send external emails
The following routine does that in our output program:
====================================
FORM send_mail TABLES   lt_outtab
               CHANGING i_sender_addr LIKE soextreci1-receiver
                        e_rc            LIKE sy-subrc.
  DATA : l_sent_to_all(1) TYPE c.
  REFRESH reclist.
  CLEAR   reclist.
Completing the recipient list
  reclist-receiver   = i_receiver_addr.         "Email Address
  reclist-rec_type   = 'U'.                     "Address Type = External
  reclist-notif_ndel = 'X'.                     "Notify of non-delivery
  APPEND reclist.
Sending the document
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            sender_address      = i_sender_addr
            sender_address_type = 'SMTP'
            document_data       = doc_chng
       TABLES
            packing_list        = objpack
            object_header       = objhead
            contents_txt        = objtxt
            receivers           = reclist
       EXCEPTIONS
            OTHERS              = 99.
  e_rc = sy-subrc.
ENDFORM.
================================================
Can some one suggest what could have been wrong with the FM usage or the code or anything else.
thanks & regards
Siva.

Hi Patel & others,
But already I am using "SUBMIT rsconn01 AND RETURN" immediately after the send_emails routine.
Can please let me know having an explicit "Commit_Work" immediately after Call Function will be much useful? If so how it will be?
thanks & regards,
Siva.

Similar Messages

  • SAP Mailbox in user decision scenario

    I am using user decision step in BPM.In BPM ,steps are receive -> user decision(first branch is having send step,scd branch triggering alert).Whenever message comes in PI,alert will goto SAP mailbox for approval via user deceiosn step.I hve created alert category in ALRTCATDEF psecified mail title and content.In sap mailbox ,title of mail is user deceiosn1 and no content in email.Please tell me how to  get content in sap mailbox mail

    You can check what are the changes that are done from Changedocument tables like CDHDR and CDPOS
    Please make sure to put filter such that the rollback change does not trigger new Workflow. You can achieve this using SWB_COND by maintaining start condition.
    Thanks
    Arghadip

  • Using SAP PI instead of CRM Middleware

    Hi experts,
    Is it recommend to use SAP PI instead of SAP CRM Middleware.
    If yes how can I do that.
    I have read in forum requests that it can be implemented by using iDOC instead of BDocs.
    I need a technical guideline how data (eg. Business Partner Data) can be tranferred from CRM to other ERP System.
    Thank you for help.
    Greetings
    Mario
    Edited by: Mario Bauer on Jun 22, 2010 9:24 AM
    Edited by: Mario Bauer on Jun 22, 2010 9:28 AM

    Hi!
    SAP PI itself is a middleware Product but very roboust and capable enough to integrate any system to any other system, either it is SAP or Non-SAP. And there are two ways to integrate other ERP System to SAP CRM using SAP PI.
    1. SAP PI will receive the message from back end ERP system & convert it to the XML format. SAP CRM receives the message using the Middleware XIF adaptor and convert the incoming XML Messages in the BDocs and the BDocs upload the data in the SAP-CRM Data base.
    2. SAP PI will receive the message from back end ERP system & convert it to the XML format. SAP CRM receives the message and using the Functional Module convert the data into the  BDocs and the BDocs upload the data in the SAPCRM Data base. In thsi situation, you need an expert ABAP Consultant to write the accurate functional Module.
    The data inside the SAP_CRM System always transported in the BDocs not in Idocs. It is the BDocs data containers which transport the data from CRM Middleware to CRM Database and CRM Database upto CRM Middleware.

  • SSO Using SAP GUI Logon

    Here's my question gurus...
    Is there a way to enable SSO so that, after a user authenticates themselves within the portal, go back to the standard Windows SAP GUI Logon(pad) select the system enter the desired client and logon with having to provide a username and password? The credentials would be passed from the portal to the connected backend system.
    We currently have a slew of systems and there corresponding clients it would be awesome to sync all systems with the portal and only have to administer passwords from and for the portal. Consequently the portal would handle the rest. The folks here have not fully embraced using the html version of the gui hence the reason for this posting.

    Hi Mike,
       If i understood your requirement, You want to use SAP functionality form portal.
      You Can do that, by creating a SAP System from your portal and you can call any Transactions from the portal it self, by using that System.
      How to create System and User mapping for that System you can find in the below link. It may helpful to you. Ping me back, if you have any doubts.
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/b5f9c2ea65c242957ee504ca4a37a9/frameset.htm
    Transaction Iview with integrated ITS.
    Please correct me, if i am wrong.
    Regards,
    Sridhar

  • Can we use sap bw in a construction company

    Hi
    can v use sap bw in a construction company....... If so, what kind of project can we do?
    can anyone explain me?
    plz give me any links which may help me to understand the projects or where v can find any sample projects of bw
    Thank you
    Deepthi matturi

    Hi,
    I think we can use Contract management for these types of industry.
    You can use the standard BI contents for contract management.
    Pls chk this link for more info:
    http://help.sap.com/saphelp_nw70/helpdata/en/94/c3f252a2ce374d98c27ff66625a765/frameset.htm
    Hope this helps.
    thanks,
    rahul

  • SSO to non SAP Application using SAP Logon Ticket

    Hi Experts,
    I Have EP 7 SP 15 using SPNego Wizard to SSO with Active Directory and SSO between EP and ECC using SAP Certificates.
    Now I have a demand to SSO some JAVA based applications (non SAP) to my portal using the SAP Logon Ticket.
    I Have followed some blogs that directed me to use SAPSSOEXT (some libs) to read the MYSAPSSO2 cookie. The problem is that I didn't found this cookie, I even executed the command javascript:document to look for this cookie but the browser just show me the JSESSIONID info.
    Does anybody knows where I can find this cookie or if there's a better way to set up this SSO? It´s necessary to say that I cannot SSO these application to the kerberos protocol because some security reasons on my company.
    Thanks
    Armando

    Hi,
    I dont have much info related but i can giv u hint
    refer OSS Notes 442401 and 723896.
    When using SAP logon tickets for non-SAP applications, two different implementation options are available. The difference lies in where the ticket verification takes place.
    In the first case,  the SAP logon ticket is submitted to the web server filter located on the web server. The web server filter verifies the portal serveru2019s public key
    certificate using its local Personal Security Environment (PSE) and then populates the HTTP header field with the user ID for SSO to the non-sap web application.
    In the second case,  the SAP logon ticket is sent to the non-SAP application, which then verifies it using the ticket verification DLL and submits the user ID to the application for SSO.
    You can refer following link :-
    http://help.sap.com/saphelp_nw70/helpdata/EN/89/6eb8deaf2f11d5993700508b6b8b11/frameset.htm
    user authentication and SSO
    http://help.sap.com/saphelp_nw70/helpdata/EN/8f/ae29411ab3db2be10000000a1550b0/frameset.htm
    Authentication Using a Directory with SSO Integration Using Logon Tickets
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/3b514ca29011d5bdeb006094191908/frameset.htm
    SSO
    SAP Logon Ticket-based Single Sign-On
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/b6af743753003ae10000000a11466f/frameset.htm

  • How to implement SSO to non-SAP systems using SAP logon ticket?

    Hello,
    We would like to implement Single Sign On between our SAP Netweaver system and a Siebel which is a non-SAP system using SAP logon tickets.
    Can anyone please give me some leads on this, in particular:
    1. Is there a JAVA API or an SAP plug-in that can be implemented on the Siebel machine to extract the SAP logon ticket?
    2. As the other machine might seat on a complete different domain, is it possible to implement SAP logon ticket without using cookies (perhaps through the HTTP header?
    3. In case you think using SAP logon tickets is not the best solution here I would be happy to hear any other suggestions you might have.
    Roy

    Hi,
    I'm currently using SAML as well. Unfortunately the SAP J2EE cannot work as authority (identity provider) but what you can do is using an open implementation of SAML such as opensso which is an open version of SUNs Java System access manager.
    There are a couple of other projects such as opensaml, apache's wss4j or shibboleth that might be interesting in this context.
    I just installed opensso and got it working with SAP J2EE 7.0 using SAPs JAAS SAMLLoginModule to authenticate users within SAP J2EE.
    In this scenario opensso serves as identity provider just as you need! There are a couple of Policy agents available on SUNs Download site you can use with Apache, Tomcat, JBOSS, WebSphere, Bea Web Logic etc. in order to authenticate! Otherwise you just directly authenticate against opensso. When installing opensso you can configure the type of user store you want  to use! By default it uses LDAP but you can also use different types of user store using JDBC or other mechanisms. Since you have a Directory Service you could easily connect it to your existing directory.
    There is also a way to map user ids directly in opensso by adding a uid mapping class. I created some documentation with lots of screenshots about using opensso with SAP J2EE. You can easily use opensso with any other system that supports SAML. In the case of SAP the usage is currently limited to SAML versions 1.0 and 1.1. Version 2.0 is not yet supported but should be in one of the following versions.
    Here are some links you might want to check:
    OpenSAML: https://spaces.internet2.edu/display/OpenSAML/Home
    wss4j: http://ws.apache.org/wss4j/
    shibboleth: http://shibboleth.internet2.edu/
    opensso: https://opensso.dev.java.net/
    On SDN you will find a documentation on how to connect SUN Java System Access Manager to SAP J2EE (see https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/906d9fc6-31b9-2910-1385-90edad7d7570). As I said opensso is based on the SUN Access Manager code and looks quite the same. So you can adapt this documentation in order to configure opensso or you can just ask me for the documentation.
    Hope this is helpful...
    Let me know if you need further assistance on this topic
    Cheers

  • SSO to Web Service using SAP Logon Ticket

    Hi,
    I have to do SSO using SAP Logon Ticket between my portal and a Java Web Service that is accessible over internet. I do have the WSDL file of this Web Service.
    I want to know:
    1. What changes are required in Web Service to configure it to read and accept Logon Ticket?
    2. What am I supposed to do at portal end to enable this process?
    Thanks,
    Vivek

    Hi Vivek & Raja,
    > is it that if the WS is a third party WS and running on a Non-SAP J2EE Server,
    > we can't implement SSO from Portal to it using SAP Logon Ticket?
    Right, if you cannot extend it's functionality, how should it do the ticket verification...
    @Raja:
    > SAP Logon Ticket is for authenticating to a SAP system, since yours in a
    > thirdparty ws, there is not need of SAP logonticket.
    On the other hand, that's not true. It is possible as well as often done to verify the SSO ticket on some third party system. This is also supported, for Java as well as for other systems, different articles about such scenarios have been published, also here on SDN.
    Hope it helps
    Detlev
    PS: Vivek, please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Display data vertically using sap script

    Hi Developers,
    Is there any way to display data vertically in a form using sap script?
    thanx in advance,
    binu

    Hi Binu,
    It is not possible to rotate text in SAPscript.  The usual work-around, provided this is static text and not from a variable, is to scan an image of the text and include it as a graphic.
    Regards,
    Nick

  • Unable to Print Purchase order automatically using SAP GUI for JAVA

    Hi SAP gurus,
    Some of the PC's in our company use windows and some LINUX. Therefore we use two types of SAP GUI. One for windows and the other one JAVA. PO approval was set to print automatically. In a windows setting, there are no problems with this setup. But in SAP GUI for JAVA, no print outs are produced and no error messages are displayed. I am using SAP GUI for JAVA version 7.10 ver 6. and I use Front end printing for linux access method G.
    please help,
    gungertz

    hi gungertz,
    You can use U type access method for printing SAP document using linux desktop.
    Please refer to my blog posting here (http://sapbasis.wordpress.com/2007/08/23/print-sap-documents-using-linux/)
    ardhian
    http://ardhian.kioslinux.com
    http://sapbasis.wordpress.com

  • Benefits of using SAP CAR compared to SAP BW on HANA

    Hi
    I' like to understand the benefits of using SAP Customer Activity Repository. How is it better than SAP BW on HANA? What extra functions does the customer get?

    Hi Waldemar (wow, I remember E.A.Poe...)
    take a look to this document...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ad0a4b07-0301-0010-5095-ef7615676fc0
    Hope it helps !
    Bye,
    Roberto

  • How to deliver an order created in SAP R/3 using sap gui.

    Hi all,
       I have created an order in SAP R/3 with two items.Now i want to deliver the order using sap gui.Pls tell me the bapi or steps of doing it.
    Regards,
    Kiran.

    Hi,
    Kindly check the link for creating Outbound delivery for
    customer sales order:
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/56078c545a11d1a7020000e829fd11/frameset.htm
    best regards,
    Thangesh

  • Reading of File from legacy system into SAP Application Server using SAP XI

    Hi All,
      I have a file in <b>Legacy System with Exchange rates information data</b> i have to read that file using SAP XI process and put that file in SAP Application Server in SAP Specific Format and latter i have to use program RFTBFF00 to upload the file in the Application Server into SAP Tables.
      Can anybody tell me how can i do this with some example of same scenario.
      It would be better if anybody provides code example as i am new to SAP XI.
    Thanks in advance.
    Warm Regards,
    Rayeez.

    Hi Shaik,
    You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
    File & Header
    Regards
    Vishnu

  • What is the difference in Webintelligence while using SAP BW or MS SQL Server

    Hi Experts,
    What is main difference in using SAP BW and MS SQL server in SAP BO while creating Reports using Web intelligence, Crystal reports. I want to know mostly on Report Level difference.

    Hi,
    I Have not used Crystal with Ms SQL server but webI i can tell .
    SAP BW is OLAP Layer .
    M S SQL Server is Database .
    You can Edit your Web Intelligence Query SQL Code in MS SQL Server .
    Not in SAP BW .
    Combined Query is Disable in SAP BW but it is available in SQL Server .
    Performance wise SAP BW Query is better because it calculates every thing in SAP BW & gives us Required Out .

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

Maybe you are looking for