‎2008 Nov 14 8:09 PM
Hi,
I have a problem related to email sending by SAP.
When I send an email by using SBWP. Then I execute the program RSCONN01. it process this email sucessfully (green status)
On the other hand, when I send a mail by SO_NEW_DOCUMENT_ATT_SEND_API1. Then I execute the program RSCONN01 and It doesn't process the email (remain in yellow status).
Anyone knows which could be the reason around this difference?
Thanks in advances
Regards
Leonardo
‎2008 Nov 14 8:22 PM
Are you sure you have the parameter COMMIT_WORK set to 'X' in the function call?
~Suresh
‎2008 Nov 14 8:22 PM
Are you sure you have the parameter COMMIT_WORK set to 'X' in the function call?
~Suresh
‎2008 Nov 14 8:25 PM
‎2008 Nov 15 12:16 PM
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = W_DOC_DATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
NEW_OBJECT_ID =
TABLES
PACKING_LIST = IT_PACKING_LIST
CONTENTS_BIN = IT_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
RECEIVERS = IT_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.
WAIT UP TO 2 SECONDS.
SUBMIT RSCONN01 WITH MODE = 'INT'
WITH OUTPUT = 'X'
AND RETURN.
Regards
Ansumesh
‎2008 Nov 15 2:55 PM
Hi,
make sure you are passing this parameter as 'X'.
COMMIT_WORK = 'X' .
Regards
Neha