Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC Commit Error While Sending Mail

Former Member
0 Likes
722

While sending mail using the FM 'SO_NEW_DOCUMENT_SEND_API1' system is throwing an error message of " MESSAGE_TYPE_X ".

The error is in the shown line.

FORM chk_precommit.

DATA: chk_precommit_ok TYPE c,

chk_error type c.

CALL FUNCTION 'PS_FLAG_GET_GLOBAL_FLAGS'

IMPORTING

e_precommit_ok = chk_precommit_ok

e_error = chk_error.

IF chk_precommit_ok = space.

  • Precommit wurde noch nicht aufgerufen.

MESSAGE x030(cnif_pi).----


ELSEIF chk_precommit_ok <> 'Y'.

  • Precommit wurde nicht erfolgreich durchlaufen

MESSAGE x033(cnif_pi).

elseif not chk_error is initial.

  • At least one single BAPI failed

MESSAGE x056(cnif_pi).

ENDIF.

  • commit work was called successfully after the p

PERFORM ps_bapi_init_global_variables.

ENDFORM. " CHK_PRECOMMIT

The RFC is working fine for some users but terminates for some other users. The inputs of the FM are coming all correctly and after processing all correctly the system is throwing a short dump.Please help ASAP.

2 REPLIES 2
Read only

0 Likes
569

try writing commit work after the email FM is called.

dileep.

Read only

former_member191735
Active Contributor
0 Likes
569

What is your exporting parameter of the mail FM? Use commit_work = 'X' and also check out the users GUI version.

call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'

exporting

document_data = docdata

put_in_outbox = 'X'

commit_work = 'X' "used from rel. 6.10

tables

packing_list = objpack

object_header = objhead

contents_bin = objbin

contents_txt = objtxt

receivers = reclist

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.