SAP Function Modules

FRML769_NCP_DATA_GET SAP Function module







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

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


Pattern for FM FRML769_NCP_DATA_GET - FRML769 NCP DATA GET





CALL FUNCTION 'FRML769_NCP_DATA_GET' "
  EXPORTING
*   i_idlid =                   " tcg28-idlid   Identification listing
*   i_aennr =                   " rmsae_aennr   Change Number
*   i_modus =                   " frmle_mode    Mode for Retrieving Data During Explosion
    is_appl_param =             " frmls_appl_param_compareout  Application Parameters for Comparison Output
    it_input =                  " frm75_connection_tab_type
    io_prot =                   " cl_rmst_prot  Instance Calculation Log
    it_hdr_api =                " frm31_hdr_tab_type
  IMPORTING
    es_ncp_para =               " frmls_otpt_reco_ncp_pa  Nutrients: Parameters
    et_ncp_data =               " frmlty_otpt_reco_ncp_da  Nutrients: Data
  EXCEPTIONS
    ERROR = 1                   "               Error occurred when reading the formula data
    .  "  FRML769_NCP_DATA_GET

ABAP code example for Function Module FRML769_NCP_DATA_GET





The ABAP code below is a full code listing to execute function module FRML769_NCP_DATA_GET 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_es_ncp_para  TYPE FRMLS_OTPT_RECO_NCP_PA ,
ld_et_ncp_data  TYPE FRMLTY_OTPT_RECO_NCP_DA .


SELECT single IDLID
FROM TCG28
INTO @DATA(ld_i_idlid).

DATA(ld_i_aennr) = 'Check type of data required'.
DATA(ld_i_modus) = 'Check type of data required'.
DATA(ld_is_appl_param) = 'Check type of data required'.
DATA(ld_it_input) = 'Check type of data required'.
DATA(ld_io_prot) = 'Check type of data required'.
DATA(ld_it_hdr_api) = 'Check type of data required'. . CALL FUNCTION 'FRML769_NCP_DATA_GET' EXPORTING * i_idlid = ld_i_idlid * i_aennr = ld_i_aennr * i_modus = ld_i_modus is_appl_param = ld_is_appl_param it_input = ld_it_input io_prot = ld_io_prot it_hdr_api = ld_it_hdr_api IMPORTING es_ncp_para = ld_es_ncp_para et_ncp_data = ld_et_ncp_data EXCEPTIONS ERROR = 1 . " FRML769_NCP_DATA_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_es_ncp_para  TYPE FRMLS_OTPT_RECO_NCP_PA ,
ld_i_idlid  TYPE TCG28-IDLID ,
ld_et_ncp_data  TYPE FRMLTY_OTPT_RECO_NCP_DA ,
ld_i_aennr  TYPE RMSAE_AENNR ,
ld_i_modus  TYPE FRMLE_MODE ,
ld_is_appl_param  TYPE FRMLS_APPL_PARAM_COMPAREOUT ,
ld_it_input  TYPE FRM75_CONNECTION_TAB_TYPE ,
ld_io_prot  TYPE CL_RMST_PROT ,
ld_it_hdr_api  TYPE FRM31_HDR_TAB_TYPE .


SELECT single IDLID
FROM TCG28
INTO ld_i_idlid.

ld_i_aennr = 'Check type of data required'.
ld_i_modus = 'Check type of data required'.
ld_is_appl_param = 'Check type of data required'.
ld_it_input = 'Check type of data required'.
ld_io_prot = 'Check type of data required'.
ld_it_hdr_api = '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 FRML769_NCP_DATA_GET or its description.