SAP EHPRC_RCS_COM4_PROCESS_UPDATE Function Module for Update attachments









EHPRC_RCS_COM4_PROCESS_UPDATE is a standard ehprc rcs com4 process update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update attachments processing and below is the pattern details for this FM, 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 rcs com4 process update FM, simply by entering the name EHPRC_RCS_COM4_PROCESS_UPDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function EHPRC_RCS_COM4_PROCESS_UPDATE 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_RCS_COM4_PROCESS_UPDATE'"Update attachments
EXPORTING
IS_EMAIL_BODY = "CP: Attachment data, header and body
IS_EMAIL_DOC = "CP: E-mail data, content and attachment list
IS_PROC_ROOT = "Process Control - Root
* IV_UPDATE_EMAIL_WF = ' ' "Use the E-mail Workflow

IMPORTING
E_FLG_ERROR = "Truth Value

TABLES
* IT_ATT_DATA = "CP: Table type for EHPRCS_ATT2HDR2BDY
ET_MESSAGE = "Return parameter table
.



IMPORTING Parameters details for EHPRC_RCS_COM4_PROCESS_UPDATE

IS_EMAIL_BODY - CP: Attachment data, header and body

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

IS_EMAIL_DOC - CP: E-mail data, content and attachment list

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

IS_PROC_ROOT - Process Control - Root

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

IV_UPDATE_EMAIL_WF - Use the E-mail Workflow

Data type: EHFND_BOOLEAN
Default: ' '
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for EHPRC_RCS_COM4_PROCESS_UPDATE

E_FLG_ERROR - Truth Value

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

TABLES Parameters details for EHPRC_RCS_COM4_PROCESS_UPDATE

IT_ATT_DATA - CP: Table type for EHPRCS_ATT2HDR2BDY

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

ET_MESSAGE - Return parameter table

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

Copy and paste ABAP code example for EHPRC_RCS_COM4_PROCESS_UPDATE 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_flg_error  TYPE ESEBOOLE, "   
lt_it_att_data  TYPE STANDARD TABLE OF EHPRCT_ATT2IMF2BDY, "   
lv_is_email_body  TYPE EHPRCS_ATT2IMF2BDY, "   
lt_et_message  TYPE STANDARD TABLE OF BAPIRET2_T, "   
lv_is_email_doc  TYPE EHPRCS_DOC2CNT2ATT, "   
lv_is_proc_root  TYPE EHFNDS_PRC_ROOT, "   
lv_iv_update_email_wf  TYPE EHFND_BOOLEAN. "   ' '

  CALL FUNCTION 'EHPRC_RCS_COM4_PROCESS_UPDATE'  "Update attachments
    EXPORTING
         IS_EMAIL_BODY = lv_is_email_body
         IS_EMAIL_DOC = lv_is_email_doc
         IS_PROC_ROOT = lv_is_proc_root
         IV_UPDATE_EMAIL_WF = lv_iv_update_email_wf
    IMPORTING
         E_FLG_ERROR = lv_e_flg_error
    TABLES
         IT_ATT_DATA = lt_it_att_data
         ET_MESSAGE = lt_et_message
. " EHPRC_RCS_COM4_PROCESS_UPDATE




ABAP code using 7.40 inline data declarations to call FM EHPRC_RCS_COM4_PROCESS_UPDATE

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_iv_update_email_wf) = ' '.
 


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!