SAP WCFH_MODIFY Function Module for WCM: Add Entries to the Object List









WCFH_MODIFY is a standard wcfh modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for WCM: Add Entries to the Object List 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 wcfh modify FM, simply by entering the name WCFH_MODIFY into the relevant SAP transaction such as SE37 or SE38.

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



Function WCFH_MODIFY 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 'WCFH_MODIFY'"WCM: Add Entries to the Object List
EXPORTING
I_IWERK = "Planning Plant
I_OBJART = "Object Type
I_OBJTYP = "Subobject Type
I_OBJNR = "Object Number
I_TPLNR = "Functional Location
I_EQUNR = "Equipment
I_AKTYP = "Activity Category

CHANGING
LNKFLG = "Entries does Exist = X
UPDFLG = "Data has Changed = X

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for WCFH_MODIFY

I_IWERK - Planning Plant

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

I_OBJART - Object Type

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

I_OBJTYP - Subobject Type

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

I_OBJNR - Object Number

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

I_TPLNR - Functional Location

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

I_EQUNR - Equipment

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

I_AKTYP - Activity Category

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

CHANGING Parameters details for WCFH_MODIFY

LNKFLG - Entries does Exist = X

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

UPDFLG - Data has Changed = X

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

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for WCFH_MODIFY 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_lnkflg  TYPE WCELNKFLG, "   
lv_i_iwerk  TYPE WCTP1_IWERK_TYPE, "   
lv_updflg  TYPE WCEUPDFLG, "   
lv_i_objart  TYPE WCTP1_OBJART_TYPE, "   
lv_i_objtyp  TYPE WCTP1_OBJTYP_TYPE, "   
lv_i_objnr  TYPE WCTP1_OBJNR_TYPE, "   
lv_i_tplnr  TYPE TPLNR, "   
lv_i_equnr  TYPE EQUNR, "   
lv_i_aktyp  TYPE WCTP1_AKTYP_TYPE. "   

  CALL FUNCTION 'WCFH_MODIFY'  "WCM: Add Entries to the Object List
    EXPORTING
         I_IWERK = lv_i_iwerk
         I_OBJART = lv_i_objart
         I_OBJTYP = lv_i_objtyp
         I_OBJNR = lv_i_objnr
         I_TPLNR = lv_i_tplnr
         I_EQUNR = lv_i_equnr
         I_AKTYP = lv_i_aktyp
    CHANGING
         LNKFLG = lv_lnkflg
         UPDFLG = lv_updflg
    EXCEPTIONS
        ERROR = 1
. " WCFH_MODIFY




ABAP code using 7.40 inline data declarations to call FM WCFH_MODIFY

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.

 
 
 
 
 
 
 
 
 
 


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!