on 05-17-2007 11:44 AM
Hi All,
Can i use this FM in my ABAP report.
If i can, what are all the inputs in below my ??? .
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = ???
DOCUMENT_TYPE = 'RAW'
PUT_IN_OUTBOX = ' '
COMMIT_WORK = ' '
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
OBJECT_HEADER =
OBJECT_CONTENT =
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
RECEIVERS = ???
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Soni
Hi Soni,
yes u can use it .
main parameters are
document type = 'RAW'
commit_work = 'X'
object_header = '<any text>'
object_content = '<mail subject>'
receivers = <internal table where u store email-address>
Please reward for worth answers, as you havent rewarded your other threads.
Hope it helps.
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
l_DOCUMENT_DATA-OBJ_NAME = 'Name of Document'.
l_DOCUMENT_DATA-OBJ_DESCR = 'Document Description'.
l_DOCUMENT_DATA-OBJ_LANGU = language
l_DOCUMENT_DATA-OBJ_PRIO - priority
etc...
l_RECEIVERS-RECEIVER - name of receiver
l_RECEIVERS-REC_TYPE - type (B -sap user, O -sap ofiice user, U - internet adress, etc...)
APPEND l_receivers TO t_receivers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, In any ABAP report
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.