on 03-29-2011 5:32 AM
Hi,
I am new to web dynpro abap.In my application ,im using 'SO_NEW_DOCUMENT_ATT_SEND_API1 function module to send mail.
Application is working fine ,but in code inspector im get error like
Undesirable statement SUBMIT !
Plz help me to solve
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lt_mailsubject
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = lt_packing_list
contents_bin = lt_attachment
contents_txt = lt_mailtxt
receivers = lt_mailrecipients
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 EQ 0.
SUBMIT rsconn01 WITH MODE = 'INT' AND RETURN.
ENDIF.
Edited by: amrutha_prabhu2000 on Mar 29, 2011 6:32 AM
Hi amrutha.,
No need of this statement... SUBMIT rsconn01 WITH MODE = 'INT' AND RETURN. this statement is to push mails which are waiting., Instead of this u can schedule a background job for sending mails. Normally In every client organization background job is scheduled for sending mails., so u can comment or remove that statement (SUBMIT rsconn01 WITH MODE = 'INT' AND RETURN)..
Revert if u need some more clarifications.,
Thanks & Regards
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In general submiting report can overcome SAP authorization concept, co this can be one of reasons. For which check are you getting this error? Beside every error you have an info icon - these information are not helpful?
Appart from CI error, wouldn't it be better to run report rsconn01 as batch? I think that this how it should be handeld in production.
BR
Marcin Cholewczuk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
im also facing same problem,please help to get out of it...........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.