User Tools

Site Tools


start:tips:sap:noauthoritycheck

Element NOAUTHORITYCHECK is not available in the container

If this error occurs:

This can come from an error parameters when calling the function SO_NEW_DOCUMENT_SEND_API1.

" Destinataires --------------------------------------------------------------
REFRESH lt_receivers.
CLEAR : lst_receiver.
lst_receiver-receiver = imp_idoc_type-receiver.
lst_receiver-rec_type = imp_idoc_type-rec_type.
APPEND lst_receiver TO lt_receivers.
 
" Envoi du mail --------------------------------------------------------------
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    document_data              = lst_sodocchgi1
    document_type              = 'HTM'
  TABLES
    object_content             = chg_content
    receivers                  = lt_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.
" Ne pas oublier le commit !
IF sy-subrc = 0.
  COMMIT WORK AND WAIT.
ELSE.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Possible values for receiver and rec_type are:

receiverrec_type
Usename SAP B
Distribution list SAP C

A crash occurs:

  • if we put a distribution list with the B code
  • if the distribution list does not exists
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
start/tips/sap/noauthoritycheck.txt · Last modified: 2016/09/28 10:56 by stephane