RHWFCOPY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter RHWFCOPY into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PFCP - Copy Workflow Tasks
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: T_PLVAR = Target task plan version
Selection Text: T_OTYPE = Target task type
Selection Text: T_ENDDA = End date of target task
Selection Text: T_BEGDA = Start date of target task
Selection Text: S_PLVAR = Source task plan version
Selection Text: S_OTYPE = Source task type
Selection Text: S_OBJID = Source task ID
Title: Copy Report for Workflow Tasks
Text Symbol: TPL = Target plan version:
Text Symbol: TOT = Target object type :
Text Symbol: TES = Target and source object are identical
Text Symbol: TDE = Existing target object could not be deleted
Text Symbol: TAT = Object type T can only be copied to T or TS!
Text Symbol: TA2 = Object type TS can only be copied to T or TS!
Text Symbol: SPL = Source plan version
Text Symbol: SOT = Source object type
Text Symbol: SOI = ID of source object:
Text Symbol: SOB = Source object
Text Symbol: SAW = Object type WS can only be copied to WF or WS!
Text Symbol: RFC = Address of source system (RFC) not available
Text Symbol: PLV = in plan version
Text Symbol: PL8 = For object type T or WF, you have to specify a plan version
Text Symbol: ONI = Object could not be created (1000)
Text Symbol: NWF = Copy of workflow definition could not be generated
Text Symbol: NPM = Authorizations missing!
Text Symbol: NOI = New object key could not be generated
Text Symbol: NOD = Target object type has no data definition
Text Symbol: NFD = does not exist
Text Symbol: NEO = New task
Text Symbol: NCR = New object could not be created
Text Symbol: NAR = New task could not be created
Text Symbol: KOT = Retaining ID is only possible with same object type
Text Symbol: INI = At least one entry parameter is initial
Text Symbol: FAW = Object type WF can only be copied to WF or WS!
Text Symbol: CRE = was created
Text Symbol: CPR = Copy log
Text Symbol: CAU = Reason:
Text Symbol: 001 = Only object type WF, WS TS and T allowed
INCLUDE RHHRSDAT.
No SAP DATABASE tables are accessed within this REPORT code!
RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING ASK_PLVAR_DIALOG = ' ' IMPORTING ACT_PLVAR = T_PLVAR EXCEPTIONS NO_ACTIVE_PLVAR = 01.
RH_DETERMINE_ORG_OBJID CALL FUNCTION 'RH_DETERMINE_ORG_OBJID' EXPORTING org_object_type = s_otype act_plvar = s_plvar IMPORTING org_object_objid = s_objid EXCEPTIONS NO_ACTIVE_PLVAR = 1 NO_OBJECT_ID_SELECTED = 2 OTHERS = 3.
RH_HRP_OBJECT_CLIENT_COPY CALL FUNCTION 'RH_HRP_OBJECT_CLIENT_COPY' EXPORTING SAME_OBJID_AS_SOURCE = ' ' SOURCE_PLVAR = S_PLVAR SOURCE_OTYPE = S_OTYPE SOURCE_OBJID = S_OBJID TARGET_PLVAR = T_PLVAR TARGET_OTYPE = T_OTYPE activation_autom = 'X' IMPORTING NEW_OBJID = NEW_OBJID EXCEPTIONS OBJECT_NOT_FOUND = 01 INVALID_IMPORT_PARAMETERS = 02 INVALID_RFC_DESTINATION = 03 CAN_NOT_GET_NEW_ID = 04 TROUBLE_AT_COPY_WF_DEFINITION = 05 OBJECT_DELETE_ERROR = 06 COPY_OBJECT_TO_ITSELF = 07 NO_PERMISSION = 08 CAN_NOT_INSERT_OBJECT = 09 KEEP_ID_AT_DIFFERENT_OTYPE = 10 OTHERS = 11.
RH_TASK_COPY CALL FUNCTION 'RH_TASK_COPY' EXPORTING ACT_OTYPE = S_OTYPE ACT_OBJID = S_OBJID IMPORTING ACT_OTYPE = S_OTYPE ACT_OBJID = NEW_OBJID EXCEPTIONS NO_ACTIVE_PLVAR = 1 TASK_NOT_FOUND = 2 TASK_NOT_COPIED = 3 TASK_TYPE_NOT_VALID = 4 MAINTENANCE_NOT_ALLOWED = 5 OTHERS = 6.
RH_HRSOBJECT_COPY_TO_HRPOBJECT CALL FUNCTION 'RH_HRSOBJECT_COPY_TO_HRPOBJECT' EXPORTING ACT_HRS_OTYPE = S_OTYPE ACT_HRS_OBJID = S_OBJID ACT_PLVAR = T_PLVAR ACT_BEGDA = SY-DATUM ACT_ENDDA = '99991231' DO_COMMIT = 'X' IMPORTING ACT_HRP_OTYPE = T_OTYPE ACT_HRP_OBJID = NEW_OBJID ACT_PLVAR = T_PLVAR ACT_BEGDA = T_BEGDA ACT_ENDDA = T_ENDDA EXCEPTIONS OBJECT_NOT_FOUND = 1 HRS_OTYPE_NOT_SUPPORTED = 2 NO_ACTIVE_PLVAR = 3 SNUM_ERROR = 4 T78NR_ENTRY_MISSING = 5 ERROR_DURING_INSERT = 6 CORR_EXIT = 7 CAN_NOT_COPY_WFD = 8 OTHERS = 9.
RH_HRPOBJECT_COPY_TO_HRSOBJECT CALL FUNCTION 'RH_HRPOBJECT_COPY_TO_HRSOBJECT' EXPORTING ACT_PLVAR = S_PLVAR ACT_HRP_OTYPE = S_OTYPE ACT_HRP_OBJID = S_OBJID UPDATE_DATABASE = 'X' IMPORTING ACT_HRS_OTYPE = T_OTYPE ACT_HRS_OBJID = NEW_OBJID EXCEPTIONS NO_ACTIVE_PLVAR = 1 OBJECT_NOT_FOUND = 2 COPY_NOT_ALLOWED = 3 HRP_OTYPE_NOT_SUPPORTED = 4 OTHERS = 5.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid is_layout = gs_layout it_fieldcat = gt_fcat * i_structure_name = 'ABAPTXT255' it_events = gt_events TABLES t_outtab = gt_err_msg EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING i_logo = '' it_list_commentary = gt_list_top_of_page.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = rt_events.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'ABAPTXT255' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RHWFCOPY - Copy Report for Workflow Tasks RHWFCOPY - Copy Report for Workflow Tasks RHWFCOPL - Copy Workflow Template to Active WF Plan Version RHWFCOPL - Copy Workflow Template to Active WF Plan Version RHWFCOP2 - Import PD Objects from Client 0 into Current Client RHWFCOP2 - Import PD Objects from Client 0 into Current Client