<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SO_NEW_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805046#M345585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After the FM check for SY-SUBRC and write below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  IF sy-subrc EQ 0.
    SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 06:47:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T06:47:00Z</dc:date>
    <item>
      <title>SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805045#M345584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Am using function module SO_NEW_DOCUMENT_SEND_API1 to send mails from SAP...but mails are not going...if anyone can help me out to sort out dis problem ...it wud b grt...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sheetika....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 06:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805045#M345584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T06:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805046#M345585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After the FM check for SY-SUBRC and write below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  IF sy-subrc EQ 0.
    SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 06:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805046#M345585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T06:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805047#M345586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/fu016.htm" target="test_blank"&gt;http://www.sap-img.com/fu016.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 06:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805047#M345586</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-05T06:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805048#M345587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sheetika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the sy-subrc is 0, then the problem is only commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have u used "COMMIT WORK" after sending mail in the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wont send mail unless u Commit work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use commit work after the FM SO_NEW_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805048#M345587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T07:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805049#M345588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sy-subrc is coming 2....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805049#M345588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T07:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805050#M345589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if sy-subrc is 2 , then 'No receiver got the document'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805050#M345589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T07:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805051#M345590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chek the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not RECLIST[] is initial.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              DOCUMENT_TYPE              = 'RAW'&lt;/P&gt;&lt;P&gt;              DOCUMENT_DATA              = DOC_CHNG&lt;/P&gt;&lt;P&gt;              COMMIT_WORK                = COMMIT_WORK&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PUT_IN_OUTBOX              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;             OBJECT_CONTENT             = OBJCONT&lt;/P&gt;&lt;P&gt;             RECEIVERS                  = RECLIST&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;            TOO_MANY_RECEIVERS               = 1&lt;/P&gt;&lt;P&gt;            DOCUMENT_NOT_SENT                = 2&lt;/P&gt;&lt;P&gt;            DOCUMENT_TYPE_NOT_EXIST          = 3&lt;/P&gt;&lt;P&gt;            OPERATION_NO_AUTHORIZATION       = 4&lt;/P&gt;&lt;P&gt;            PARAMETER_ERROR                  = 5&lt;/P&gt;&lt;P&gt;            X_ERROR                          = 6&lt;/P&gt;&lt;P&gt;            ENQUEUE_ERROR                    = 7&lt;/P&gt;&lt;P&gt;            OTHERS                           = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      raise email_cancel.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805051#M345590</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-12-05T07:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805052#M345591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: OBJCONT LIKE SOLISTI1 OCCURS 5 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: ENTRIES LIKE SY-TABIX.
DATA: NAME(15).

* Fill the document
DOC_CHNG-OBJ_NAME = 'URGENT'.
DOC_CHNG-OBJ_DESCR = 'Read at once !'.
DOC_CHNG-SENSITIVTY = 'P'.
OBJCONT = 'Hey guys, time for lunch !!!'.
APPEND OBJCONT.

OBJCONT = 'Lets get going !'.
APPEND OBJCONT.

DESCRIBE TABLE OBJCONT LINES ENTRIES.
READ TABLE OBJCONT INDEX ENTRIES.

DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).
* Fill the receiver list

CLEAR RECLIST.
RECLIST-RECEIVER = SY-UNAME.  " replace with &amp;lt;login name&amp;gt;
RECLIST-REC_TYPE = 'B'.
RECLIST-EXPRESS = 'X'.
APPEND RECLIST.
CLEAR RECLIST.

RECLIST-RECEIVER = 'ned.neighbour@ next.door.com'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.

* Send the document
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
     EXPORTING
          DOCUMENT_TYPE  = 'RAW'
          DOCUMENT_DATA  = DOC_CHNG
          PUT_IN_OUTBOX  = 'X'
     TABLES
          OBJECT_CONTENT = OBJCONT
          RECEIVERS      = RECLIST
     EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
               DOCUMENT_NOT_SENT          = 2
              OPERATION_NO_AUTHORIZATION = 4
               OTHERS                     = 99.
    CASE SY-SUBRC.
      WHEN 0.
        LOOP AT RECLIST.
          IF RECLIST-RECEIVER = SPACE.
            NAME = RECLIST-REC_ID.
          ELSE.
            NAME = RECLIST-RECEIVER.
          ENDIF.
          IF RECLIST-RETRN_CODE = 0.
            WRITE: / NAME, ': succesfully sent'.
          ELSE.
            WRITE: / NAME, ': error occured'.
          ENDIF.
        ENDLOOP.

      WHEN 1.
        WRITE: / 'Too many receivers specified !'.
      WHEN 2.
        WRITE: / 'No receiver got the document !'.
      WHEN 4.
        WRITE: / 'Missing send authority !'.
      WHEN OTHERS.
        WRITE: / 'Unexpected error occurred !'.
    ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;To send an existing document, you must use the function module SO_OLD_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the active user is still to be able to process the document after it has been sent, it must be moved to the outbox when sent using the flag PUT_IN_OUTBOX. You can use the function module SO_FOLDER_READ_API1 to read the contents of the outbox and the object ID to find the document sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to use a user address name as the recipient since this may not be unique. To get around this problem, you can use the function module SO_NAME_CONVERT_API1. This provides a hit list in response to a specified name, for which a dialog is constructed with a choice of required values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 07:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805052#M345591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T07:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805053#M345592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sheetika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I hope, after appending com_list for the Receivers list as "INT", call the same FM which you are using to send mails and immediately check for sy-subrc as:&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--throw some error message &lt;/P&gt;&lt;P&gt;    message 'Error Message'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;    COMMIT WORK AND WAIT .&lt;/P&gt;&lt;P&gt;*--throw success message here&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805053#M345592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T11:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805054#M345593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check  &amp;lt;b&amp;gt;SCOT&amp;lt;/b&amp;gt; configuration. Try to send email without using this function module first (directly through business worklpace). If you are getting  mail in your outlook then scot configuration is fine and there is some problem with your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 21:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/1805054#M345593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T21:17:14Z</dc:date>
    </item>
  </channel>
</rss>

