Skip to Content
-1
Mar 03, 2021 at 06:12 PM

is it necessary to submit the program SUBMIT rsconn01 AND RETURN after fm SO_DOCUMENT_SEND_API1

108 Views

Hi all/gurus ,

I have a requirement to send the alv output to mail so I am using the below function .My question is that it is necessary to submit

SUBMIT rsconn01 AND RETURN.

after calling the below function module .Below is a piece of code :-

IF i_output_excel[] IS NOT INITIAL.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = i_output_excel[]
contents_txt = lt_message
receivers = t_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.
ENDIF.

IF sy-subrc IS INITIAL.
WAIT UP TO 1 SECONDS.
SUBMIT rsconn01 AND RETURN.

endif.

Actually I am doing atc check for my code and it is giving priority 1 issue as -->

Search of ABAP Tokens

'

Search String Number 0001 Found in: "#EC CI_SUBMIT

'.Please suggest some ideas or work around .

Regards

Deep