SAP Function Modules

EHPRC_CP_IM52S_PROCESS_SEG_MC SAP Function module - CP: Processing IMDS Segments MC, MI, C, H, M, R







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

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


Pattern for FM EHPRC_CP_IM52S_PROCESS_SEG_MC - EHPRC CP IM52S PROCESS SEG MC





CALL FUNCTION 'EHPRC_CP_IM52S_PROCESS_SEG_MC' "CP: Processing IMDS Segments MC, MI, C, H, M, R
  EXPORTING
    i_imptyp =                  " ehprc_imptyp  Import type
    it_data_file =              " ehprct_imsegdatl  CP: Import Tool Segment Data Table
    its_segfields =             " ehprct_imsegfields  CP: Segment Fields Import Configuration
  IMPORTING
    e_flg_abort =               " eseboole      Truth Value
  CHANGING
    xt_data =                   " ehprct_imdata
    xt_comp =                   " ehprct_imcomp
    xt_ltext =                  " ehprct_rcgapipl  CP: Table type for RCGAPIPL (Phrases long texts)
    xts_obj =                   " ehprct_imobjident1_unique  CP: Import Object with Unique key Ident1
    xt_msg =                    " ehprct_imerror
    .  "  EHPRC_CP_IM52S_PROCESS_SEG_MC

ABAP code example for Function Module EHPRC_CP_IM52S_PROCESS_SEG_MC





The ABAP code below is a full code listing to execute function module EHPRC_CP_IM52S_PROCESS_SEG_MC 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_flg_abort  TYPE ESEBOOLE .

DATA(ld_xt_data) = 'Check type of data required'.
DATA(ld_xt_comp) = 'Check type of data required'.
DATA(ld_xt_ltext) = 'Check type of data required'.
DATA(ld_xts_obj) = 'Check type of data required'.
DATA(ld_xt_msg) = 'Check type of data required'.
DATA(ld_i_imptyp) = 'Check type of data required'.
DATA(ld_it_data_file) = 'Check type of data required'.
DATA(ld_its_segfields) = 'Check type of data required'. . CALL FUNCTION 'EHPRC_CP_IM52S_PROCESS_SEG_MC' EXPORTING i_imptyp = ld_i_imptyp it_data_file = ld_it_data_file its_segfields = ld_its_segfields IMPORTING e_flg_abort = ld_e_flg_abort CHANGING xt_data = ld_xt_data xt_comp = ld_xt_comp xt_ltext = ld_xt_ltext xts_obj = ld_xts_obj xt_msg = ld_xt_msg . " EHPRC_CP_IM52S_PROCESS_SEG_MC
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_xt_data  TYPE EHPRCT_IMDATA ,
ld_e_flg_abort  TYPE ESEBOOLE ,
ld_i_imptyp  TYPE EHPRC_IMPTYP ,
ld_xt_comp  TYPE EHPRCT_IMCOMP ,
ld_it_data_file  TYPE EHPRCT_IMSEGDATL ,
ld_xt_ltext  TYPE EHPRCT_RCGAPIPL ,
ld_its_segfields  TYPE EHPRCT_IMSEGFIELDS ,
ld_xts_obj  TYPE EHPRCT_IMOBJIDENT1_UNIQUE ,
ld_xt_msg  TYPE EHPRCT_IMERROR .

ld_xt_data = 'Check type of data required'.
ld_i_imptyp = 'Check type of data required'.
ld_xt_comp = 'Check type of data required'.
ld_it_data_file = 'Check type of data required'.
ld_xt_ltext = 'Check type of data required'.
ld_its_segfields = 'Check type of data required'.
ld_xts_obj = 'Check type of data required'.
ld_xt_msg = 'Check type of data required'.

SAP Documentation for FM EHPRC_CP_IM52S_PROCESS_SEG_MC

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