Skip to Content
author's profile photo Former Member
Former Member

SO_OBJECT_SEND,what are the input parameters ,how topass is it right

SO_OBJECT_SEND,

can any one tell how to use this function module to download the data from internal table to pdf file,i have just debugg, it

SO_NEW_DOCUMENT_ATT_SEND_API1, and found it, it may be correct or not i dont klnow, if there is some thing other plz tell me, its an urgent one, i need deatil parameters to be input , so that i can achieve to download information in pdf

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2008 at 04:15 AM

    Hi,

    Good ex: for you...

    REPORT zmbundal_email_out .

    DATA BEGIN OF object_hd_change. "SAPoffice: object definition,

    INCLUDE STRUCTURE sood1. "change attributes

    DATA END OF object_hd_change.

    DATA BEGIN OF object_content OCCURS 5. "SAPoffice: Single List with

    INCLUDE STRUCTURE solisti1. "Column Length 255

    DATA END OF object_content.

    DATA BEGIN OF rec_table OCCURS 1. "SAPoffice: recipient with

    INCLUDE STRUCTURE soos1. "attributes

    DATA END OF rec_table.

    • Build email recipient table...........................................

    CLEAR rec_table.

    rec_table-sel = 'X'.

    rec_table-recesc = 'B'.

    rec_table-recesc = 'U'.

    rec_table-recnam = 'U-'.

    rec_table-recextnam = 'destination@yahoo.com'.

    rec_table-adr_name = 'destination@yahoo.com'.

    rec_table-sndex = 'X'.

    rec_table-sndpri = '1'.

    rec_table-mailstatus = 'E'.

    rec_table-SNDSPO = 442355.

    rec_table-SNDCP = 'X'.

    COLLECT rec_table.

    *.Email.content.........................................................

    object_content = 'dannyboy baboy'. APPEND object_content.

    object_content = 'dannyboy pogi'. APPEND object_content.

    object_content = 'dannyboy fagg*t'. APPEND object_content.

    *...Subject.Line........................................................

    object_hd_change-objnam = 'Test email'.

    object_hd_change-objdes = ' Email for Baboy'.

    • Send Email............................................................

    CALL FUNCTION 'SO_OBJECT_SEND'

    EXPORTING

    object_hd_change = object_hd_change

    object_type = 'RAW'

    outbox_flag = 'X'

    TABLES

    objcont = object_content

    receivers = rec_table

    EXCEPTIONS

    active_user_not_exist = 1

    communication_failure = 2

    component_not_available = 3

    folder_not_exist = 4

    folder_no_authorization = 5

    forwarder_not_exist = 6

    note_not_exist = 7

    object_not_exist = 8

    object_not_sent = 9

    object_no_authorization = 10

    object_type_not_exist = 11

    operation_no_authorization = 12

    owner_not_exist = 13

    parameter_error = 14

    substitute_not_active = 15

    substitute_not_defined = 16

    system_failure = 17

    too_much_receivers = 18

    user_not_exist = 19

    originator_not_exist = 20

    x_error = 21

    OTHERS = 22.

    *...SAPconnect..........................................................

    SUBMIT rsconn01 "SAPconnect Start Send Process

    WITH mode EQ '*'

    WITH output EQ ''

    TO SAP-SPOOL

    DESTINATION 'LOCAL'

    IMMEDIATELY ' '

    KEEP IN SPOOL 'X'

    WITHOUT SPOOL DYNPRO

    AND RETURN.

    _________________

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2008 at 04:18 AM

    Hi,

    Refer this

    CALL FUNCTION 'SO_OBJECT_SEND' 
    EXPORTING 
    object_hd_change = w_object_hd_change 
    object_type = 'RAW' 
    owner = sy-uname 
    TABLES 
    objcont = message_content 
    receivers = receiver_list 
    packing_list = packing_list 
    att_cont = compressed_attachment. 

    Refer link

    [http://www.sap-img.com/fu016.htm]

    [http://sap4.com/wiki/index.php?title=SO_OBJECT_SEND]

    [http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm]

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      here i am already created a program to send the report through mail but i need to save a copy of all sent items (which are pdf files) in my computer folder, what should i do for this,i have used SO_NEW_DOCUMENT_ATT_SEND_API1, to send a mial, but i need to store the sent in fo in my folder in computer

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.