<?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: ABAP: function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451812#M213958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vallamuthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my code again and change the 'LOGIN' to the user id with which you are entering into your SAPLOGON.Check your SAP mail box.The mail will come to your SAP mail box.If you face any problem reply this mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if your problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 05:16:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-25T05:16:39Z</dc:date>
    <item>
      <title>ABAP: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451808#M213954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following program is, to send a details in sap to email, can any body explain the marked lines    &lt;/P&gt;&lt;P&gt;&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_data = maildata &amp;lt;b&amp;gt;&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;document_type = 'RAW' &amp;lt;b&amp;gt;&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;put_in_outbox = 'X' &amp;lt;b&amp;gt;&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;object_header = 'adss' &amp;lt;b&amp;gt;&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;object_content = 'asdfasdfasdf' &amp;lt;b&amp;gt;&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;receivers = 'you@123.com' &amp;lt;b&amp;gt;&amp;lt;--&amp;lt;/b&amp;gt;&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;Thanks &amp;amp; good regards&lt;/P&gt;&lt;P&gt;Vallamuthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 04:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451808#M213954</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2006-07-25T04:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451809#M213955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the help for the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FU SO_NEW_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Short Text&lt;/P&gt;&lt;P&gt;SAPoffice: Send new document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;This function module enables you to send a new document, which has not yet been created, internally and externally. During the send process the document is created, along with the attributes and content that are to be transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters&lt;/P&gt;&lt;P&gt;DOCUMENT_TYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default = 'RAW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Document class. All classes are possible except for folders ('FOL') and distributions lists ('DLI').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUT_IN_OUTBOX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the newly created document is also placed in the outbox of the active user when it is sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOCUMENT_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure must contain the attributes of the document to be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table parameters&lt;/P&gt;&lt;P&gt;OBJECT_HEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the document class-relevant data. For example, SAPscript documents store information here about forms and styles, Excel list viewer documents store, amongst other things, the number of rows and columns and PC documents store their original file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE&lt;/P&gt;&lt;P&gt;Requires class-relevant document information line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT_CONTENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the actual content of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE&lt;/P&gt;&lt;P&gt;Requires the content of the document line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECEIVERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the document recipients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECEIVER&lt;/P&gt;&lt;P&gt;Name of recipient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the sample program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ztest_email                             .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OBJCONT LIKE SOLISTI1 OCCURS 5 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: DOC_CHNG LIKE SODOCCHGI1.&lt;/P&gt;&lt;P&gt;DATA: ENTRIES LIKE SY-TABIX.&lt;/P&gt;&lt;P&gt;DATA: NAME(15).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOC_CHNG-OBJ_NAME = 'URGENT'.&lt;/P&gt;&lt;P&gt;DOC_CHNG-OBJ_DESCR = 'Read at once !'.&lt;/P&gt;&lt;P&gt;DOC_CHNG-SENSITIVTY = 'P'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = 'Hey Altaf what are you doing !!!'.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;OBJCONT = 'Lets go for movie !'.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE OBJCONT LINES ENTRIES.&lt;/P&gt;&lt;P&gt;READ TABLE OBJCONT INDEX ENTRIES.&lt;/P&gt;&lt;P&gt;DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the receiver list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR RECLIST.&lt;/P&gt;&lt;P&gt;RECLIST-RECEIVER = 'LOGIN'. " replace with &amp;lt;login name&amp;gt;&lt;/P&gt;&lt;P&gt;RECLIST-REC_TYPE = 'B'.&lt;/P&gt;&lt;P&gt;RECLIST-EXPRESS = 'X'.&lt;/P&gt;&lt;P&gt;APPEND RECLIST.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;PUT_IN_OUTBOX = 'X'&lt;/P&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;OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;P&gt;OTHERS = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;WHEN 0.&lt;/P&gt;&lt;P&gt;LOOP AT RECLIST.&lt;/P&gt;&lt;P&gt;IF RECLIST-RECEIVER = SPACE.&lt;/P&gt;&lt;P&gt;NAME = RECLIST-REC_ID.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;NAME = RECLIST-RECEIVER.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF RECLIST-RETRN_CODE = 0.&lt;/P&gt;&lt;P&gt;WRITE: / NAME, ': succesfully sent'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE: / NAME, ': error occured'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;WRITE: / 'Too many receivers specified !'.&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;WRITE: / 'No receiver got the document !'.&lt;/P&gt;&lt;P&gt;WHEN 4.&lt;/P&gt;&lt;P&gt;WRITE: / 'Missing send authority !'.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;WRITE: / 'Unexpected error occurred !'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 04:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451809#M213955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T04:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451810#M213956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SE37 give the fn module name and display...then click Function module documentation...u can get the details.&lt;/P&gt;&lt;P&gt;anywayz...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document_data -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;This will contain the details to be sent thru mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document_type------Class of document.Default is RAW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put_in_outbox---it will place the mail in outbox &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_header---- this will have the relevant details of the output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object_content---have the actual data to be sent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;receivers----mailid to whom the mail has to be sent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 04:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451810#M213956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T04:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451811#M213957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir,&lt;/P&gt;&lt;P&gt;    i am vallamuthu, i am the new programmer to ABAP. very thanks to sending the sample program.sorry for disturbing u. i your program i got one error message(sy-sbrc message) i.e. after execution i got "NO RECEIVER GOT THE DOCUMENT". Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; good regards&lt;/P&gt;&lt;P&gt;vallamuthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 05:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451811#M213957</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2006-07-25T05:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451812#M213958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vallamuthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my code again and change the 'LOGIN' to the user id with which you are entering into your SAPLOGON.Check your SAP mail box.The mail will come to your SAP mail box.If you face any problem reply this mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if your problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 05:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451812#M213958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T05:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP: function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451813#M213959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 10:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-function/m-p/1451813#M213959</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2009-07-21T10:05:45Z</dc:date>
    </item>
  </channel>
</rss>

