SAP EHPRC_CP_IM52_GET_ID_AND_COMP Function Module for









EHPRC_CP_IM52_GET_ID_AND_COMP is a standard ehprc cp im52 get id and comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ehprc cp im52 get id and comp FM, simply by entering the name EHPRC_CP_IM52_GET_ID_AND_COMP into the relevant SAP transaction such as SE37 or SE38.

Function Group: EHPRC_CP_IM52
Program Name: SAPLEHPRC_CP_IM52
Main Program: SAPLEHPRC_CP_IM52
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EHPRC_CP_IM52_GET_ID_AND_COMP pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'EHPRC_CP_IM52_GET_ID_AND_COMP'"
EXPORTING
I_FATHER = "
* I_IMPTYP = "
* I_SEGMENT = "
* I_NO_OBJ_ADD = ' ' "

IMPORTING
E_COMP = "
E_OBJECT = "
E_ABORT = "
ES_ERROR = "
E_NEW_OBJ = "

CHANGING
XT_DATA = "
XT_IM_OBJECTS = "
XT_ERROR = "

TABLES
IT_SEGFIELDS = "
.



IMPORTING Parameters details for EHPRC_CP_IM52_GET_ID_AND_COMP

I_FATHER -

Data type: EHPRC_EXTID
Optional: No
Call by Reference: No ( called with pass by value option)

I_IMPTYP -

Data type: EHPRC_IMPTYP
Optional: Yes
Call by Reference: Yes

I_SEGMENT -

Data type: EHPRC_SEG
Optional: Yes
Call by Reference: Yes

I_NO_OBJ_ADD -

Data type: ESP1_BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for EHPRC_CP_IM52_GET_ID_AND_COMP

E_COMP -

Data type: EHPRCS_IMPCOMP
Optional: No
Call by Reference: Yes

E_OBJECT -

Data type: EHPRCS_IMPOBJ
Optional: No
Call by Reference: Yes

E_ABORT -

Data type: ESP1_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

ES_ERROR -

Data type: EHPRCS_IMERROR
Optional: No
Call by Reference: No ( called with pass by value option)

E_NEW_OBJ -

Data type: ESP1_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for EHPRC_CP_IM52_GET_ID_AND_COMP

XT_DATA -

Data type: EHPRCT_IMDATA
Optional: No
Call by Reference: Yes

XT_IM_OBJECTS -

Data type: EHPRCT_IMOBJ
Optional: No
Call by Reference: Yes

XT_ERROR -

Data type: EHPRCT_IMERROR
Optional: No
Call by Reference: Yes

TABLES Parameters details for EHPRC_CP_IM52_GET_ID_AND_COMP

IT_SEGFIELDS -

Data type: EHPRCC_IMSEGF
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EHPRC_CP_IM52_GET_ID_AND_COMP Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_e_comp  TYPE EHPRCS_IMPCOMP, "   
lv_xt_data  TYPE EHPRCT_IMDATA, "   
lv_i_father  TYPE EHPRC_EXTID, "   
lt_it_segfields  TYPE STANDARD TABLE OF EHPRCC_IMSEGF, "   
lv_e_object  TYPE EHPRCS_IMPOBJ, "   
lv_i_imptyp  TYPE EHPRC_IMPTYP, "   
lv_xt_im_objects  TYPE EHPRCT_IMOBJ, "   
lv_e_abort  TYPE ESP1_BOOLEAN, "   
lv_xt_error  TYPE EHPRCT_IMERROR, "   
lv_i_segment  TYPE EHPRC_SEG, "   
lv_es_error  TYPE EHPRCS_IMERROR, "   
lv_i_no_obj_add  TYPE ESP1_BOOLEAN, "   SPACE
lv_e_new_obj  TYPE ESP1_BOOLEAN. "   

  CALL FUNCTION 'EHPRC_CP_IM52_GET_ID_AND_COMP'  "
    EXPORTING
         I_FATHER = lv_i_father
         I_IMPTYP = lv_i_imptyp
         I_SEGMENT = lv_i_segment
         I_NO_OBJ_ADD = lv_i_no_obj_add
    IMPORTING
         E_COMP = lv_e_comp
         E_OBJECT = lv_e_object
         E_ABORT = lv_e_abort
         ES_ERROR = lv_es_error
         E_NEW_OBJ = lv_e_new_obj
    CHANGING
         XT_DATA = lv_xt_data
         XT_IM_OBJECTS = lv_xt_im_objects
         XT_ERROR = lv_xt_error
    TABLES
         IT_SEGFIELDS = lt_it_segfields
. " EHPRC_CP_IM52_GET_ID_AND_COMP




ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_IM52_GET_ID_AND_COMP

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_no_obj_add) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!