SAP Function Modules

HTTP_CHG_SMTP_HOST SAP Function module







HTTP_CHG_SMTP_HOST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HTTP_CHG_SMTP_HOST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HTTPTREE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM HTTP_CHG_SMTP_HOST - HTTP CHG SMTP HOST





CALL FUNCTION 'HTTP_CHG_SMTP_HOST' "
  EXPORTING
    icf_name =                  " icfname
*   icfparguid = ROOTGUID       " icfparguid
*   icf_mandt =                 " icfmandt
*   icf_user =                  " syuname
*   icf_passwd =                " icfpasswd
*   icf_langu =                 " spras
*   icfdocu =                   " icfdocu
*   doculang = SY-LANGU         " sy-langu
*   icfactive = SPACE           " icfactive
*   package = SPACE             " devclass
*   application =               " akhkompo
*   display_transport =         " icfchar1
*   chg_hostnumber =            " icfhostnum
  IMPORTING
    icfnodguid =                " icfnodguid
* CHANGING
*   transport =                 " trkorr
  EXCEPTIONS
    EMPTY_ICF_NAME = 1          "
    SPECIAL_SERVICE_ERROR = 2   "
    ENQUEUE_ERROR = 3           "
    EMPTY_DOCU = 4              "
    DOCULANG_NOT_INSTALLED = 5  "
    SECURITY_INFO_ERROR = 6     "
    USER_PASSWORD_ERROR = 7     "
    PASSWORD_ENCRYPTION_ERROR = 8  "
    INVALID_URL = 9             "
    INVALID_OTR_CONCEPT = 10    "
    FORMFLG401_ERROR = 11       "
    TRANSPORT_ERROR = 12        "
    TADIR_ERROR = 13            "
    PACKAGE_NOT_FOUND = 14      "
    WRONG_APPLICATION = 15      "
    NO_AUTHORITY = 16           "
    HOST_NOT_EXIST = 17         "
    HOSTNUMBER_EXIST = 18       "
    .  "  HTTP_CHG_SMTP_HOST

ABAP code example for Function Module HTTP_CHG_SMTP_HOST





The ABAP code below is a full code listing to execute function module HTTP_CHG_SMTP_HOST including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_icfnodguid  TYPE ICFNODGUID .

DATA(ld_transport) = 'Check type of data required'.
DATA(ld_icf_name) = 'Check type of data required'.
DATA(ld_icfparguid) = 'Check type of data required'.
DATA(ld_icf_mandt) = 'Check type of data required'.
DATA(ld_icf_user) = 'some text here'.
DATA(ld_icf_passwd) = 'some text here'.
DATA(ld_icf_langu) = 'some text here'.
DATA(ld_icfdocu) = 'some text here'.
DATA(ld_doculang) = 'Check type of data required'.
DATA(ld_icfactive) = 'Check type of data required'.
DATA(ld_package) = 'Check type of data required'.
DATA(ld_application) = 'Check type of data required'.
DATA(ld_display_transport) = 'Check type of data required'.
DATA(ld_chg_hostnumber) = 'Check type of data required'. . CALL FUNCTION 'HTTP_CHG_SMTP_HOST' EXPORTING icf_name = ld_icf_name * icfparguid = ld_icfparguid * icf_mandt = ld_icf_mandt * icf_user = ld_icf_user * icf_passwd = ld_icf_passwd * icf_langu = ld_icf_langu * icfdocu = ld_icfdocu * doculang = ld_doculang * icfactive = ld_icfactive * package = ld_package * application = ld_application * display_transport = ld_display_transport * chg_hostnumber = ld_chg_hostnumber IMPORTING icfnodguid = ld_icfnodguid * CHANGING * transport = ld_transport EXCEPTIONS EMPTY_ICF_NAME = 1 SPECIAL_SERVICE_ERROR = 2 ENQUEUE_ERROR = 3 EMPTY_DOCU = 4 DOCULANG_NOT_INSTALLED = 5 SECURITY_INFO_ERROR = 6 USER_PASSWORD_ERROR = 7 PASSWORD_ENCRYPTION_ERROR = 8 INVALID_URL = 9 INVALID_OTR_CONCEPT = 10 FORMFLG401_ERROR = 11 TRANSPORT_ERROR = 12 TADIR_ERROR = 13 PACKAGE_NOT_FOUND = 14 WRONG_APPLICATION = 15 NO_AUTHORITY = 16 HOST_NOT_EXIST = 17 HOSTNUMBER_EXIST = 18 . " HTTP_CHG_SMTP_HOST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 16. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 17. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 18. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_transport  TYPE TRKORR ,
ld_icfnodguid  TYPE ICFNODGUID ,
ld_icf_name  TYPE ICFNAME ,
ld_icfparguid  TYPE ICFPARGUID ,
ld_icf_mandt  TYPE ICFMANDT ,
ld_icf_user  TYPE SYUNAME ,
ld_icf_passwd  TYPE ICFPASSWD ,
ld_icf_langu  TYPE SPRAS ,
ld_icfdocu  TYPE ICFDOCU ,
ld_doculang  TYPE SY-LANGU ,
ld_icfactive  TYPE ICFACTIVE ,
ld_package  TYPE DEVCLASS ,
ld_application  TYPE AKHKOMPO ,
ld_display_transport  TYPE ICFCHAR1 ,
ld_chg_hostnumber  TYPE ICFHOSTNUM .

ld_transport = 'Check type of data required'.
ld_icf_name = 'Check type of data required'.
ld_icfparguid = 'Check type of data required'.
ld_icf_mandt = 'Check type of data required'.
ld_icf_user = 'some text here'.
ld_icf_passwd = 'some text here'.
ld_icf_langu = 'some text here'.
ld_icfdocu = 'some text here'.
ld_doculang = 'Check type of data required'.
ld_icfactive = 'Check type of data required'.
ld_package = 'Check type of data required'.
ld_application = 'Check type of data required'.
ld_display_transport = 'Check type of data required'.
ld_chg_hostnumber = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HTTP_CHG_SMTP_HOST or its description.