Skip to Content

FM SO_DOCUMENT_SEND_API1 x_error with Sender name contains Ñ


We upgrade to SAP ehp 7 and now when I try to send emails to sender (sender_address = itbcardsclasses-sender) with ‘Ñ’ in its name the FM SO_DOCUMENT_SEND_API1 throws sy-subrc 6 X_error example: “PABLO NIÑO []” before the upgrade there was no problem to used that address.

For a quick fix a will change Ñ to N, but I would prefer to leave the name like it used to work.

Please let me know if someone knows how to fix this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 10, 2017 at 11:08 PM

    Hello Sandra,

    No, Our system always has been Unicode, it not changed

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 11, 2017 at 08:48 AM

    Use the CL_BCS framework instead. It's far less problematic.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2017 at 12:38 AM

    Thanks Matthew,

    I tried with CL_BCS but I cant send mails with sender format like: "MARIO SOTO []"

    REPORT z_mail_otro_sender.
      gv_sent_to_all   TYPE os_boolean,
      gr_send_request  TYPE REF TO cl_bcs,
      gr_bcs_exception TYPE REF TO cx_bcs,
      gr_recipient     TYPE REF TO if_recipient_bcs,
      gr_sender        TYPE REF TO if_sender_bcs,
      bcs_exception    TYPE REF TO cx_bcs,
      ls_sender        TYPE   ad_smtpadr VALUE 'user@com',
      ls_recipient     TYPE   ad_smtpadr VALUE ''.
        "Create send request
        gr_send_request = cl_bcs=>create_persistent( ).
        gr_sender = cl_cam_address_bcs=>create_internet_address(
                  i_address_string = ls_sender      ).
        "Add sender to send request
        gr_recipient = cl_cam_address_bcs=>create_internet_address(
          i_address_string = ls_recipient ).
        "Add recipient to send request
        CALL METHOD gr_send_request->add_recipient
            i_recipient = gr_recipient
            i_express   = 'X'.
        "Send email
        CALL METHOD gr_send_request->send(
            i_with_error_screen = 'X'
            result              = gv_sent_to_all ).
        IF gv_sent_to_all IS INITIAL.
          MESSAGE i500(sbcoms) WITH 'user'. "mailto.
          MESSAGE s022(so).
        "Exception handling
      CATCH cx_bcs INTO gr_bcs_exception.
        MESSAGE gr_bcs_exception->error_text TYPE 'I'.
        MESSAGE i865(so) WITH gr_bcs_exception->error_type.
    Add comment
    10|10000 characters needed characters exceeded