SAP Function Modules

CMS_INV_IM_AST_ND_GET_SNG SAP Function module - Implementation of GET_SNG method







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

Associated Function Group: CMS_INV_IM_AST_NON_DIALOG
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CMS_INV_IM_AST_ND_GET_SNG - CMS INV IM AST ND GET SNG





CALL FUNCTION 'CMS_INV_IM_AST_ND_GET_SNG' "Implementation of GET_SNG method
  EXPORTING
    i_obj_id =                  " cms_dte_ast_if_obj_id  Asset-IF Object ID
    i_flg_lock =                " cms_dte_ast_if_flg_lock  Asset-IF Lock Indicator
    i_str_ast_reqd_data =       " cms_str_ast_if_reqd_data  Asset-IF: Required Data from Asset-interface
  IMPORTING
    e_str_obj_details =         " cms_str_ast_if_obj_details  Asset-IF Object details
    e_tab_sub_obj_details =     " cms_tab_ast_if_sub_obj_details  Asset IF: Sub object details
    e_tab_obj_bp =              " cms_tab_ast_if_obj_bp  Asset-IF: Object-BP Data
    e_tab_sub_obj_bp =          " cms_tab_ast_if_sub_obj_bp  Asset IF: Sub-Object BP Data
    e_tab_obj_doc =             " cms_tab_ast_if_obj_doc  Asset-IF: Object-Doc Data
    e_tab_sub_obj_doc =         " cms_tab_ast_if_sub_obj_doc  Asset-IF: Sub-object Doc Data
    e_tab_obj_notes =           " cms_tab_ast_if_txt_lines  Asset IF: Text Lines
    e_tab_obj_sys_stat =        " cms_tab_ast_if_sys_stat  Asset IF: System Status
    e_tab_obj_usr_stat =        " cms_tab_ast_if_usr_stat  Asset IF: User Status
    e_tab_rc =                  " cms_tab_msg_col_message  Return Code and corresponding Message
    .  "  CMS_INV_IM_AST_ND_GET_SNG

ABAP code example for Function Module CMS_INV_IM_AST_ND_GET_SNG





The ABAP code below is a full code listing to execute function module CMS_INV_IM_AST_ND_GET_SNG 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_e_str_obj_details  TYPE CMS_STR_AST_IF_OBJ_DETAILS ,
ld_e_tab_sub_obj_details  TYPE CMS_TAB_AST_IF_SUB_OBJ_DETAILS ,
ld_e_tab_obj_bp  TYPE CMS_TAB_AST_IF_OBJ_BP ,
ld_e_tab_sub_obj_bp  TYPE CMS_TAB_AST_IF_SUB_OBJ_BP ,
ld_e_tab_obj_doc  TYPE CMS_TAB_AST_IF_OBJ_DOC ,
ld_e_tab_sub_obj_doc  TYPE CMS_TAB_AST_IF_SUB_OBJ_DOC ,
ld_e_tab_obj_notes  TYPE CMS_TAB_AST_IF_TXT_LINES ,
ld_e_tab_obj_sys_stat  TYPE CMS_TAB_AST_IF_SYS_STAT ,
ld_e_tab_obj_usr_stat  TYPE CMS_TAB_AST_IF_USR_STAT ,
ld_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE .

DATA(ld_i_obj_id) = 'Check type of data required'.
DATA(ld_i_flg_lock) = 'Check type of data required'.
DATA(ld_i_str_ast_reqd_data) = 'Check type of data required'. . CALL FUNCTION 'CMS_INV_IM_AST_ND_GET_SNG' EXPORTING i_obj_id = ld_i_obj_id i_flg_lock = ld_i_flg_lock i_str_ast_reqd_data = ld_i_str_ast_reqd_data IMPORTING e_str_obj_details = ld_e_str_obj_details e_tab_sub_obj_details = ld_e_tab_sub_obj_details e_tab_obj_bp = ld_e_tab_obj_bp e_tab_sub_obj_bp = ld_e_tab_sub_obj_bp e_tab_obj_doc = ld_e_tab_obj_doc e_tab_sub_obj_doc = ld_e_tab_sub_obj_doc e_tab_obj_notes = ld_e_tab_obj_notes e_tab_obj_sys_stat = ld_e_tab_obj_sys_stat e_tab_obj_usr_stat = ld_e_tab_obj_usr_stat e_tab_rc = ld_e_tab_rc . " CMS_INV_IM_AST_ND_GET_SNG
IF SY-SUBRC EQ 0. "All OK 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_e_str_obj_details  TYPE CMS_STR_AST_IF_OBJ_DETAILS ,
ld_i_obj_id  TYPE CMS_DTE_AST_IF_OBJ_ID ,
ld_e_tab_sub_obj_details  TYPE CMS_TAB_AST_IF_SUB_OBJ_DETAILS ,
ld_i_flg_lock  TYPE CMS_DTE_AST_IF_FLG_LOCK ,
ld_e_tab_obj_bp  TYPE CMS_TAB_AST_IF_OBJ_BP ,
ld_i_str_ast_reqd_data  TYPE CMS_STR_AST_IF_REQD_DATA ,
ld_e_tab_sub_obj_bp  TYPE CMS_TAB_AST_IF_SUB_OBJ_BP ,
ld_e_tab_obj_doc  TYPE CMS_TAB_AST_IF_OBJ_DOC ,
ld_e_tab_sub_obj_doc  TYPE CMS_TAB_AST_IF_SUB_OBJ_DOC ,
ld_e_tab_obj_notes  TYPE CMS_TAB_AST_IF_TXT_LINES ,
ld_e_tab_obj_sys_stat  TYPE CMS_TAB_AST_IF_SYS_STAT ,
ld_e_tab_obj_usr_stat  TYPE CMS_TAB_AST_IF_USR_STAT ,
ld_e_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE .

ld_i_obj_id = 'Check type of data required'.
ld_i_flg_lock = 'Check type of data required'.
ld_i_str_ast_reqd_data = '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 CMS_INV_IM_AST_ND_GET_SNG or its description.