SAP AFWGO_UPDATE_EVALPROC2 Function Module for Write Single Records Procedure Definition









AFWGO_UPDATE_EVALPROC2 is a standard afwgo update evalproc2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Write Single Records Procedure Definition 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 afwgo update evalproc2 FM, simply by entering the name AFWGO_UPDATE_EVALPROC2 into the relevant SAP transaction such as SE37 or SE38.

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



Function AFWGO_UPDATE_EVALPROC2 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 'AFWGO_UPDATE_EVALPROC2'"Write Single Records Procedure Definition
EXPORTING
I_EVALP = "Procedure for Single Records
I_DATE = "Key date for evaluation
* I_LANGU = SY-LANGU "Language key
* I_EP1 = "View of an Analysis Structure
* IT_PHID = "Filter: Name
* I_TEXT = "Language-Dependent Description: 50 Characteristics

CHANGING
CT_MSG = "Table of Log Entries

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for AFWGO_UPDATE_EVALPROC2

I_EVALP - Procedure for Single Records

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

I_DATE - Key date for evaluation

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

I_LANGU - Language key

Data type: SPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

I_EP1 - View of an Analysis Structure

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

IT_PHID - Filter: Name

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

I_TEXT - Language-Dependent Description: 50 Characteristics

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

CHANGING Parameters details for AFWGO_UPDATE_EVALPROC2

CT_MSG - Table of Log Entries

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

EXCEPTIONS details

ERROR -

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

Copy and paste ABAP code example for AFWGO_UPDATE_EVALPROC2 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_error  TYPE STRING, "   
lv_ct_msg  TYPE AFW_MSG_T, "   
lv_i_evalp  TYPE AFWGO_EVALPROC_2, "   
lv_i_date  TYPE AFW_KEYDATE, "   
lv_i_langu  TYPE SPRAS, "   SY-LANGU
lv_i_ep1  TYPE AFWGO_EVALPROC, "   
lv_it_phid  TYPE AFWCH_PHID_T, "   
lv_i_text  TYPE AFW_TEXT50. "   

  CALL FUNCTION 'AFWGO_UPDATE_EVALPROC2'  "Write Single Records Procedure Definition
    EXPORTING
         I_EVALP = lv_i_evalp
         I_DATE = lv_i_date
         I_LANGU = lv_i_langu
         I_EP1 = lv_i_ep1
         IT_PHID = lv_it_phid
         I_TEXT = lv_i_text
    CHANGING
         CT_MSG = lv_ct_msg
    EXCEPTIONS
        ERROR = 1
. " AFWGO_UPDATE_EVALPROC2




ABAP code using 7.40 inline data declarations to call FM AFWGO_UPDATE_EVALPROC2

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_langu) = SY-LANGU.
 
 
 
 


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!