SAP HTTPTREE_CREATE_ALIAS Function Module for









HTTPTREE_CREATE_ALIAS is a standard httptree create alias SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for httptree create alias FM, simply by entering the name HTTPTREE_CREATE_ALIAS into the relevant SAP transaction such as SE37 or SE38.

Function Group: HTTPTREE
Program Name: SAPLHTTPTREE
Main Program: SAPLHTTPTREE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HTTPTREE_CREATE_ALIAS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HTTPTREE_CREATE_ALIAS'"
EXPORTING
P_ICF_NAME = "Name of a Service in Internet Communication Framework
P_ICFPARGUID = "GUID of parent node
P_ICFDOCU = "Documentation for HTTP Service
* P_DOCULANG = SY-LANGU "SAP R/3 System, Current Language
* P_ICFSERDESC = "ICF Service Tree in Internet Communication Framework
* P_ICFHANDLST = "Name of ICF Handler
* P_ICFACTIVE = ' ' "'X': Service is Activated, Otherwise ' '
* P_PACKAGE = ' ' "Package (if ' ' => Package of Parent Node)
* P_TRANSPORT = ' ' "Request/Task (if ' ' => User Query)

EXCEPTIONS
EMPTY_ICF_NAME = 1 USER_PASSWORD_ERROR = 10 PASSWORD_ENCRYPTION_ERROR = 11 INVALID_URL = 12 INVALID_OTR_CONCEPT = 13 FORMFLG401_ERROR = 14 HANDLER_ERROR = 15 TRANSPORT_ERROR = 16 TADIR_ERROR = 17 PACKAGE_NOT_FOUND = 18 NO_NEW_VIRTUAL_HOST = 2 SPECIAL_SERVICE_ERROR = 3 PARENT_NOT_EXISTING = 4 ENQUEUE_ERROR = 5 NODE_ALREADY_EXISTING = 6 EMPTY_DOCU = 7 DOCULANG_NOT_INSTALLED = 8 SECURITY_INFO_ERROR = 9
.



IMPORTING Parameters details for HTTPTREE_CREATE_ALIAS

P_ICF_NAME - Name of a Service in Internet Communication Framework

Data type: ICFNAME
Optional: No
Call by Reference: Yes

P_ICFPARGUID - GUID of parent node

Data type: ICFPARGUID
Optional: No
Call by Reference: Yes

P_ICFDOCU - Documentation for HTTP Service

Data type: ICF_DOCU
Optional: No
Call by Reference: Yes

P_DOCULANG - SAP R/3 System, Current Language

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

P_ICFSERDESC - ICF Service Tree in Internet Communication Framework

Data type: ICFSERDESC
Optional: Yes
Call by Reference: Yes

P_ICFHANDLST - Name of ICF Handler

Data type: ICFHNDLIST
Optional: Yes
Call by Reference: Yes

P_ICFACTIVE - 'X': Service is Activated, Otherwise ' '

Data type: ICFACTIVE
Default: SPACE
Optional: Yes
Call by Reference: Yes

P_PACKAGE - Package (if SPACE => Package of Parent Node)

Data type: DEVCLASS
Default: SPACE
Optional: Yes
Call by Reference: Yes

P_TRANSPORT - Request/Task (if SPACE => User Query)

Data type: TRKORR
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

EMPTY_ICF_NAME - P_ICF_NAME Cannot Be Initial

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

USER_PASSWORD_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PASSWORD_ENCRYPTION_ERROR - Error in Password Encryption

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_URL - URL with Errors in P_ICFSERDESC (Fields URL500 and URL401)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_OTR_CONCEPT - OTR Information with Errors in P_ICFSERDESC

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FORMFLG401_ERROR - Error in Entry in P_ICFSERDESC-FORMFLG401

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

HANDLER_ERROR - Error in Entry in P_ICFHANDLST

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TRANSPORT_ERROR - Error in Transport Check/Insert for SICF Object

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TADIR_ERROR - TADIR Access Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PACKAGE_NOT_FOUND - Specified Package Does Not Exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_NEW_VIRTUAL_HOST - Do Not Create Virtual Host

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SPECIAL_SERVICE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARENT_NOT_EXISTING - Parent Node Does Not Exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ENQUEUE_ERROR - Error in Database Enqueue

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NODE_ALREADY_EXISTING - Node Already Exists

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EMPTY_DOCU - Documentation Empty

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DOCULANG_NOT_INSTALLED - Language P_DOCULANG Not Installed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SECURITY_INFO_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HTTPTREE_CREATE_ALIAS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_p_icf_name  TYPE ICFNAME, "   
lv_empty_icf_name  TYPE ICFNAME, "   
lv_user_password_error  TYPE ICFNAME, "   
lv_password_encryption_error  TYPE ICFNAME, "   
lv_invalid_url  TYPE ICFNAME, "   
lv_invalid_otr_concept  TYPE ICFNAME, "   
lv_formflg401_error  TYPE ICFNAME, "   
lv_handler_error  TYPE ICFNAME, "   
lv_transport_error  TYPE ICFNAME, "   
lv_tadir_error  TYPE ICFNAME, "   
lv_package_not_found  TYPE ICFNAME, "   
lv_p_icfparguid  TYPE ICFPARGUID, "   
lv_no_new_virtual_host  TYPE ICFPARGUID, "   
lv_p_icfdocu  TYPE ICF_DOCU, "   
lv_special_service_error  TYPE ICF_DOCU, "   
lv_p_doculang  TYPE SY-LANGU, "   SY-LANGU
lv_parent_not_existing  TYPE SY, "   
lv_p_icfserdesc  TYPE ICFSERDESC, "   
lv_enqueue_error  TYPE ICFSERDESC, "   
lv_p_icfhandlst  TYPE ICFHNDLIST, "   
lv_node_already_existing  TYPE ICFHNDLIST, "   
lv_empty_docu  TYPE ICFHNDLIST, "   
lv_p_icfactive  TYPE ICFACTIVE, "   SPACE
lv_p_package  TYPE DEVCLASS, "   SPACE
lv_doculang_not_installed  TYPE DEVCLASS, "   
lv_p_transport  TYPE TRKORR, "   SPACE
lv_security_info_error  TYPE TRKORR. "   

  CALL FUNCTION 'HTTPTREE_CREATE_ALIAS'  "
    EXPORTING
         P_ICF_NAME = lv_p_icf_name
         P_ICFPARGUID = lv_p_icfparguid
         P_ICFDOCU = lv_p_icfdocu
         P_DOCULANG = lv_p_doculang
         P_ICFSERDESC = lv_p_icfserdesc
         P_ICFHANDLST = lv_p_icfhandlst
         P_ICFACTIVE = lv_p_icfactive
         P_PACKAGE = lv_p_package
         P_TRANSPORT = lv_p_transport
    EXCEPTIONS
        EMPTY_ICF_NAME = 1
        USER_PASSWORD_ERROR = 10
        PASSWORD_ENCRYPTION_ERROR = 11
        INVALID_URL = 12
        INVALID_OTR_CONCEPT = 13
        FORMFLG401_ERROR = 14
        HANDLER_ERROR = 15
        TRANSPORT_ERROR = 16
        TADIR_ERROR = 17
        PACKAGE_NOT_FOUND = 18
        NO_NEW_VIRTUAL_HOST = 2
        SPECIAL_SERVICE_ERROR = 3
        PARENT_NOT_EXISTING = 4
        ENQUEUE_ERROR = 5
        NODE_ALREADY_EXISTING = 6
        EMPTY_DOCU = 7
        DOCULANG_NOT_INSTALLED = 8
        SECURITY_INFO_ERROR = 9
. " HTTPTREE_CREATE_ALIAS




ABAP code using 7.40 inline data declarations to call FM HTTPTREE_CREATE_ALIAS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_p_doculang).
DATA(ld_p_doculang) = SY-LANGU.
 
 
 
 
 
 
 
DATA(ld_p_icfactive) = ' '.
 
DATA(ld_p_package) = ' '.
 
 
DATA(ld_p_transport) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!