SAP WCHC_API_WCMOBJ_POST Function Module for WCM: API - Post WCM Objects









WCHC_API_WCMOBJ_POST is a standard wchc api wcmobj post 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: API - Post WCM Objects 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 wchc api wcmobj post FM, simply by entering the name WCHC_API_WCMOBJ_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function WCHC_API_WCMOBJ_POST 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 'WCHC_API_WCMOBJ_POST'"WCM: API - Post WCM Objects
EXPORTING
IV_COMMITFLG = "Final COMMIT Requested = X

IMPORTING
ET_RESULT_WAPO = "Data Posting Results for Operational WAPs
ET_RESULT_WCAT = "Data Posting Results for WCA Templates
ET_OBJKEY_WCAT = "New Permanent Object Keys for WCA Templates (1:1 to ET_OBJTMP_WCAT)
ET_OBJTMP_WCAT = "Corresponding Temporary Object Keys for WCA Templates (Sorted)
ET_RESULT_WCDO = "Data Posting Results for Operational WCDs
ET_OBJKEY_WCDO = "New Permanent Object Keys for Op.WCDs (1:1 to ET_OBJTMP_WCDO)
ET_OBJTMP_WCDO = "Corresponding Temporary Object Keys for Op.WCDs (Sorted)
ET_RESULT_WCDT = "Data Posting Results for WCD Templates
ET_OBJKEY_WCDT = "New Permanent Object Keys for WCD Templates (1:1 to ET_OBJTMP_WCDT)
ET_OBJTMP_WCDT = "Corresponding Temporary Object Keys for WCD Templates (Sorted)
ET_OBJKEY_WAPO = "New Permanent Object Keys for Op.WAPs (1:1 to ET_OBJTMP_WAPO)
ET_OBJTMP_WAPO = "Corresponding Temporary Object Keys for Op.WAPs (Sorted)
ET_RESULT_WAPT = "Data Posting Results for WAP Templates
ET_OBJKEY_WAPT = "New Permanent Object Keys for WAP Templates (1:1 to ET_OBJTMP_WAPT)
ET_OBJTMP_WAPT = "Corresponding Temporary Object Keys for WAP Templates (Sorted)
ET_RESULT_WCAO = "Data Posting Results for Operational WCAs
ET_OBJKEY_WCAO = "New Permanent Object Keys for Op.WCAs (1:1 to ET_OBJTMP_WCAO)
ET_OBJTMP_WCAO = "Corresponding Temporary Object Keys for Op.WCAs (Sorted)

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for WCHC_API_WCMOBJ_POST

IV_COMMITFLG - Final COMMIT Requested = X

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

EXPORTING Parameters details for WCHC_API_WCMOBJ_POST

ET_RESULT_WAPO - Data Posting Results for Operational WAPs

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

ET_RESULT_WCAT - Data Posting Results for WCA Templates

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

ET_OBJKEY_WCAT - New Permanent Object Keys for WCA Templates (1:1 to ET_OBJTMP_WCAT)

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

ET_OBJTMP_WCAT - Corresponding Temporary Object Keys for WCA Templates (Sorted)

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

ET_RESULT_WCDO - Data Posting Results for Operational WCDs

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

ET_OBJKEY_WCDO - New Permanent Object Keys for Op.WCDs (1:1 to ET_OBJTMP_WCDO)

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

ET_OBJTMP_WCDO - Corresponding Temporary Object Keys for Op.WCDs (Sorted)

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

ET_RESULT_WCDT - Data Posting Results for WCD Templates

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

ET_OBJKEY_WCDT - New Permanent Object Keys for WCD Templates (1:1 to ET_OBJTMP_WCDT)

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

ET_OBJTMP_WCDT - Corresponding Temporary Object Keys for WCD Templates (Sorted)

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

ET_OBJKEY_WAPO - New Permanent Object Keys for Op.WAPs (1:1 to ET_OBJTMP_WAPO)

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

ET_OBJTMP_WAPO - Corresponding Temporary Object Keys for Op.WAPs (Sorted)

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

ET_RESULT_WAPT - Data Posting Results for WAP Templates

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

ET_OBJKEY_WAPT - New Permanent Object Keys for WAP Templates (1:1 to ET_OBJTMP_WAPT)

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

ET_OBJTMP_WAPT - Corresponding Temporary Object Keys for WAP Templates (Sorted)

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

ET_RESULT_WCAO - Data Posting Results for Operational WCAs

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

ET_OBJKEY_WCAO - New Permanent Object Keys for Op.WCAs (1:1 to ET_OBJTMP_WCAO)

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

ET_OBJTMP_WCAO - Corresponding Temporary Object Keys for Op.WCAs (Sorted)

Data type: WCTP1_OBJKEYTAB_TYPE
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 WCHC_API_WCMOBJ_POST 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_iv_commitflg  TYPE WCTP1_FLG_TYPE, "   
lv_et_result_wapo  TYPE WCTP1_MSGLOGTAB_TYPE, "   
lv_et_result_wcat  TYPE WCTP1_MSGLOGTAB_TYPE, "   
lv_et_objkey_wcat  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objtmp_wcat  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_result_wcdo  TYPE WCTP1_MSGLOGTAB_TYPE, "   
lv_et_objkey_wcdo  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objtmp_wcdo  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_result_wcdt  TYPE WCTP1_MSGLOGTAB_TYPE, "   
lv_et_objkey_wcdt  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objtmp_wcdt  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objkey_wapo  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objtmp_wapo  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_result_wapt  TYPE WCTP1_MSGLOGTAB_TYPE, "   
lv_et_objkey_wapt  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objtmp_wapt  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_result_wcao  TYPE WCTP1_MSGLOGTAB_TYPE, "   
lv_et_objkey_wcao  TYPE WCTP1_OBJKEYTAB_TYPE, "   
lv_et_objtmp_wcao  TYPE WCTP1_OBJKEYTAB_TYPE. "   

  CALL FUNCTION 'WCHC_API_WCMOBJ_POST'  "WCM: API - Post WCM Objects
    EXPORTING
         IV_COMMITFLG = lv_iv_commitflg
    IMPORTING
         ET_RESULT_WAPO = lv_et_result_wapo
         ET_RESULT_WCAT = lv_et_result_wcat
         ET_OBJKEY_WCAT = lv_et_objkey_wcat
         ET_OBJTMP_WCAT = lv_et_objtmp_wcat
         ET_RESULT_WCDO = lv_et_result_wcdo
         ET_OBJKEY_WCDO = lv_et_objkey_wcdo
         ET_OBJTMP_WCDO = lv_et_objtmp_wcdo
         ET_RESULT_WCDT = lv_et_result_wcdt
         ET_OBJKEY_WCDT = lv_et_objkey_wcdt
         ET_OBJTMP_WCDT = lv_et_objtmp_wcdt
         ET_OBJKEY_WAPO = lv_et_objkey_wapo
         ET_OBJTMP_WAPO = lv_et_objtmp_wapo
         ET_RESULT_WAPT = lv_et_result_wapt
         ET_OBJKEY_WAPT = lv_et_objkey_wapt
         ET_OBJTMP_WAPT = lv_et_objtmp_wapt
         ET_RESULT_WCAO = lv_et_result_wcao
         ET_OBJKEY_WCAO = lv_et_objkey_wcao
         ET_OBJTMP_WCAO = lv_et_objtmp_wcao
    EXCEPTIONS
        ERROR = 1
. " WCHC_API_WCMOBJ_POST




ABAP code using 7.40 inline data declarations to call FM WCHC_API_WCMOBJ_POST

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!