SAP RH_HRP_OBJECT_CLIENT_COPY Function Module for









RH_HRP_OBJECT_CLIENT_COPY is a standard rh hrp object client copy 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 rh hrp object client copy FM, simply by entering the name RH_HRP_OBJECT_CLIENT_COPY into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_HRP_OBJECT_CLIENT_COPY 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 'RH_HRP_OBJECT_CLIENT_COPY'"
EXPORTING
* RFCDEST_TO_SOURCE = 'NONE' "
* NEW_STEXT = "
* ACT_TEXT_LANGU = SY-LANGU "
* SAME_OBJID_AS_SOURCE = ' ' "
SOURCE_PLVAR = "
SOURCE_OTYPE = "
SOURCE_OBJID = "
TARGET_PLVAR = "
TARGET_OTYPE = "
* ACTIVATION_AUTOM = 'X' "
* NEW_SHORT = "

IMPORTING
NEW_OBJID = "

EXCEPTIONS
OBJECT_NOT_FOUND = 1 KEEP_ID_AT_DIFFERENT_OTYPE = 10 INVALID_IMPORT_PARAMETERS = 2 INVALID_RFC_DESTINATION = 3 CAN_NOT_GET_NEW_ID = 4 TROUBLE_AT_COPY_WF_DEFINITION = 5 OBJECT_DELETE_ERROR = 6 COPY_OBJECT_TO_ITSELF = 7 NO_PERMISSION = 8 CAN_NOT_INSERT_OBJECT = 9
.



IMPORTING Parameters details for RH_HRP_OBJECT_CLIENT_COPY

RFCDEST_TO_SOURCE -

Data type: RFCDES-RFCDEST
Default: 'NONE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NEW_STEXT -

Data type: HRP1000-STEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACT_TEXT_LANGU -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAME_OBJID_AS_SOURCE -

Data type: T77FC-MAINT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SOURCE_PLVAR -

Data type: HROBJECT-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

SOURCE_OTYPE -

Data type: HROBJECT-OTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

SOURCE_OBJID -

Data type: HROBJECT-OBJID
Optional: No
Call by Reference: No ( called with pass by value option)

TARGET_PLVAR -

Data type: HROBJECT-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

TARGET_OTYPE -

Data type: HROBJECT-OTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

ACTIVATION_AUTOM -

Data type: T77FC-MAINT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NEW_SHORT -

Data type: HRP1000-SHORT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_HRP_OBJECT_CLIENT_COPY

NEW_OBJID -

Data type: HROBJECT-OBJID
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

OBJECT_NOT_FOUND -

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

KEEP_ID_AT_DIFFERENT_OTYPE -

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

INVALID_IMPORT_PARAMETERS -

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

INVALID_RFC_DESTINATION -

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

CAN_NOT_GET_NEW_ID -

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

TROUBLE_AT_COPY_WF_DEFINITION -

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

OBJECT_DELETE_ERROR -

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

COPY_OBJECT_TO_ITSELF -

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

NO_PERMISSION -

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

CAN_NOT_INSERT_OBJECT -

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

Copy and paste ABAP code example for RH_HRP_OBJECT_CLIENT_COPY 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_new_objid  TYPE HROBJECT-OBJID, "   
lv_object_not_found  TYPE HROBJECT, "   
lv_rfcdest_to_source  TYPE RFCDES-RFCDEST, "   'NONE'
lv_new_stext  TYPE HRP1000-STEXT, "   
lv_keep_id_at_different_otype  TYPE HRP1000, "   
lv_act_text_langu  TYPE SY-LANGU, "   SY-LANGU
lv_same_objid_as_source  TYPE T77FC-MAINT, "   ' '
lv_invalid_import_parameters  TYPE T77FC, "   
lv_source_plvar  TYPE HROBJECT-PLVAR, "   
lv_invalid_rfc_destination  TYPE HROBJECT, "   
lv_source_otype  TYPE HROBJECT-OTYPE, "   
lv_can_not_get_new_id  TYPE HROBJECT, "   
lv_source_objid  TYPE HROBJECT-OBJID, "   
lv_trouble_at_copy_wf_definition  TYPE HROBJECT, "   
lv_target_plvar  TYPE HROBJECT-PLVAR, "   
lv_object_delete_error  TYPE HROBJECT, "   
lv_target_otype  TYPE HROBJECT-OTYPE, "   
lv_copy_object_to_itself  TYPE HROBJECT, "   
lv_no_permission  TYPE HROBJECT, "   
lv_activation_autom  TYPE T77FC-MAINT, "   'X'
lv_new_short  TYPE HRP1000-SHORT, "   
lv_can_not_insert_object  TYPE HRP1000. "   

  CALL FUNCTION 'RH_HRP_OBJECT_CLIENT_COPY'  "
    EXPORTING
         RFCDEST_TO_SOURCE = lv_rfcdest_to_source
         NEW_STEXT = lv_new_stext
         ACT_TEXT_LANGU = lv_act_text_langu
         SAME_OBJID_AS_SOURCE = lv_same_objid_as_source
         SOURCE_PLVAR = lv_source_plvar
         SOURCE_OTYPE = lv_source_otype
         SOURCE_OBJID = lv_source_objid
         TARGET_PLVAR = lv_target_plvar
         TARGET_OTYPE = lv_target_otype
         ACTIVATION_AUTOM = lv_activation_autom
         NEW_SHORT = lv_new_short
    IMPORTING
         NEW_OBJID = lv_new_objid
    EXCEPTIONS
        OBJECT_NOT_FOUND = 1
        KEEP_ID_AT_DIFFERENT_OTYPE = 10
        INVALID_IMPORT_PARAMETERS = 2
        INVALID_RFC_DESTINATION = 3
        CAN_NOT_GET_NEW_ID = 4
        TROUBLE_AT_COPY_WF_DEFINITION = 5
        OBJECT_DELETE_ERROR = 6
        COPY_OBJECT_TO_ITSELF = 7
        NO_PERMISSION = 8
        CAN_NOT_INSERT_OBJECT = 9
. " RH_HRP_OBJECT_CLIENT_COPY




ABAP code using 7.40 inline data declarations to call FM RH_HRP_OBJECT_CLIENT_COPY

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.

"SELECT single OBJID FROM HROBJECT INTO @DATA(ld_new_objid).
 
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_rfcdest_to_source).
DATA(ld_rfcdest_to_source) = 'NONE'.
 
"SELECT single STEXT FROM HRP1000 INTO @DATA(ld_new_stext).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_act_text_langu).
DATA(ld_act_text_langu) = SY-LANGU.
 
"SELECT single MAINT FROM T77FC INTO @DATA(ld_same_objid_as_source).
DATA(ld_same_objid_as_source) = ' '.
 
 
"SELECT single PLVAR FROM HROBJECT INTO @DATA(ld_source_plvar).
 
 
"SELECT single OTYPE FROM HROBJECT INTO @DATA(ld_source_otype).
 
 
"SELECT single OBJID FROM HROBJECT INTO @DATA(ld_source_objid).
 
 
"SELECT single PLVAR FROM HROBJECT INTO @DATA(ld_target_plvar).
 
 
"SELECT single OTYPE FROM HROBJECT INTO @DATA(ld_target_otype).
 
 
 
"SELECT single MAINT FROM T77FC INTO @DATA(ld_activation_autom).
DATA(ld_activation_autom) = 'X'.
 
"SELECT single SHORT FROM HRP1000 INTO @DATA(ld_new_short).
 
 


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!