SAP Function Modules

CNV_CDMC_CA_GET_CUS_SAP_DOMAIN SAP Function module - FM to get Customer and SAP Domains from remote system.







CNV_CDMC_CA_GET_CUS_SAP_DOMAIN 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 CNV_CDMC_CA_GET_CUS_SAP_DOMAIN into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CNV_CDMC_CA_GET_CUS_SAP_DOMAIN - CNV CDMC CA GET CUS SAP DOMAIN





CALL FUNCTION 'CNV_CDMC_CA_GET_CUS_SAP_DOMAIN' "FM to get Customer and SAP Domains from remote system.
  EXPORTING
    iv_proj_id =                " cnvcdmcca_objs-proj_id  CDMC - Project ID
    iv_language =               " sy-langu      R/3 System, current language
  IMPORTING
    iv_sysid =                  " sy-sysid      R/3 System, name of R/3 System
* TABLES
*   et_sap_domains =            " dd01l         Domains
*   et_customer_domains =       " dd01l         Domains
*   et_dom_fixed_values =       " dd07v         Generated Table for View DD07V
  EXCEPTIONS
    RESOURCE_FAILURE = 1        "               Resource Failed
    SYSTEM_FAILURE = 2          "               System Failed
    COMMUNICATION_FAILURE = 3   "               Communication Failed
    .  "  CNV_CDMC_CA_GET_CUS_SAP_DOMAIN

ABAP code example for Function Module CNV_CDMC_CA_GET_CUS_SAP_DOMAIN





The ABAP code below is a full code listing to execute function module CNV_CDMC_CA_GET_CUS_SAP_DOMAIN 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_iv_sysid  TYPE SY-SYSID ,
it_et_sap_domains  TYPE STANDARD TABLE OF DD01L,"TABLES PARAM
wa_et_sap_domains  LIKE LINE OF it_et_sap_domains ,
it_et_customer_domains  TYPE STANDARD TABLE OF DD01L,"TABLES PARAM
wa_et_customer_domains  LIKE LINE OF it_et_customer_domains ,
it_et_dom_fixed_values  TYPE STANDARD TABLE OF DD07V,"TABLES PARAM
wa_et_dom_fixed_values  LIKE LINE OF it_et_dom_fixed_values .


SELECT single PROJ_ID
FROM CNVCDMCCA_OBJS
INTO @DATA(ld_iv_proj_id).

DATA(ld_iv_language) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_sap_domains to it_et_sap_domains.

"populate fields of struture and append to itab
append wa_et_customer_domains to it_et_customer_domains.

"populate fields of struture and append to itab
append wa_et_dom_fixed_values to it_et_dom_fixed_values. . CALL FUNCTION 'CNV_CDMC_CA_GET_CUS_SAP_DOMAIN' EXPORTING iv_proj_id = ld_iv_proj_id iv_language = ld_iv_language IMPORTING iv_sysid = ld_iv_sysid * TABLES * et_sap_domains = it_et_sap_domains * et_customer_domains = it_et_customer_domains * et_dom_fixed_values = it_et_dom_fixed_values EXCEPTIONS RESOURCE_FAILURE = 1 SYSTEM_FAILURE = 2 COMMUNICATION_FAILURE = 3 . " CNV_CDMC_CA_GET_CUS_SAP_DOMAIN
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 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_iv_sysid  TYPE SY-SYSID ,
ld_iv_proj_id  TYPE CNVCDMCCA_OBJS-PROJ_ID ,
it_et_sap_domains  TYPE STANDARD TABLE OF DD01L ,
wa_et_sap_domains  LIKE LINE OF it_et_sap_domains,
ld_iv_language  TYPE SY-LANGU ,
it_et_customer_domains  TYPE STANDARD TABLE OF DD01L ,
wa_et_customer_domains  LIKE LINE OF it_et_customer_domains,
it_et_dom_fixed_values  TYPE STANDARD TABLE OF DD07V ,
wa_et_dom_fixed_values  LIKE LINE OF it_et_dom_fixed_values.


SELECT single PROJ_ID
FROM CNVCDMCCA_OBJS
INTO ld_iv_proj_id.


"populate fields of struture and append to itab
append wa_et_sap_domains to it_et_sap_domains.
ld_iv_language = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_customer_domains to it_et_customer_domains.

"populate fields of struture and append to itab
append wa_et_dom_fixed_values to it_et_dom_fixed_values.

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 CNV_CDMC_CA_GET_CUS_SAP_DOMAIN or its description.