SAP Function Modules

SNC_GET_MY_INFO SAP Function module







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

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


Pattern for FM SNC_GET_MY_INFO - SNC GET MY INFO





CALL FUNCTION 'SNC_GET_MY_INFO' "
  IMPORTING
    pname_appl =                " rfcdessecu-pname_appl
    snc_qop_min =               " rfcdessecu-snc_qop
    snc_qop_max =               " rfcdessecu-snc_qop
    snc_qop_use =               " rfcdessecu-snc_qop
    pname_user =                " usracl-pname
    pname_cpic =                " usracl-pname
    gui_conn_type =             " snc_fields-gui_conn  Connection Type (D)irect/(R)FC
    login_type =                " snc_fields-login_type  Logon Method (SL,SD,SN,NN,ND)
    rc =                        " sy-subrc      Return Code
  EXCEPTIONS
    INTERNAL_ERROR = 1          "               Internal Error
    SNC_NOT_ACTIVE = 2          "
    .  "  SNC_GET_MY_INFO

ABAP code example for Function Module SNC_GET_MY_INFO





The ABAP code below is a full code listing to execute function module SNC_GET_MY_INFO 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_pname_appl  TYPE RFCDESSECU-PNAME_APPL ,
ld_snc_qop_min  TYPE RFCDESSECU-SNC_QOP ,
ld_snc_qop_max  TYPE RFCDESSECU-SNC_QOP ,
ld_snc_qop_use  TYPE RFCDESSECU-SNC_QOP ,
ld_pname_user  TYPE USRACL-PNAME ,
ld_pname_cpic  TYPE USRACL-PNAME ,
ld_gui_conn_type  TYPE SNC_FIELDS-GUI_CONN ,
ld_login_type  TYPE SNC_FIELDS-LOGIN_TYPE ,
ld_rc  TYPE SY-SUBRC .
. CALL FUNCTION 'SNC_GET_MY_INFO' IMPORTING pname_appl = ld_pname_appl snc_qop_min = ld_snc_qop_min snc_qop_max = ld_snc_qop_max snc_qop_use = ld_snc_qop_use pname_user = ld_pname_user pname_cpic = ld_pname_cpic gui_conn_type = ld_gui_conn_type login_type = ld_login_type rc = ld_rc EXCEPTIONS INTERNAL_ERROR = 1 SNC_NOT_ACTIVE = 2 . " SNC_GET_MY_INFO
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 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_pname_appl  TYPE RFCDESSECU-PNAME_APPL ,
ld_snc_qop_min  TYPE RFCDESSECU-SNC_QOP ,
ld_snc_qop_max  TYPE RFCDESSECU-SNC_QOP ,
ld_snc_qop_use  TYPE RFCDESSECU-SNC_QOP ,
ld_pname_user  TYPE USRACL-PNAME ,
ld_pname_cpic  TYPE USRACL-PNAME ,
ld_gui_conn_type  TYPE SNC_FIELDS-GUI_CONN ,
ld_login_type  TYPE SNC_FIELDS-LOGIN_TYPE ,
ld_rc  TYPE SY-SUBRC .

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