SAP WCHD_API_OWCA_CREATE Function Module for WCM: API - Create Op. WCA
WCHD_API_OWCA_CREATE is a standard wchd api owca create 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 - Create Op. WCA 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 wchd api owca create FM, simply by entering the name WCHD_API_OWCA_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WCHD
Program Name: SAPLWCHD
Main Program: SAPLWCHD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function WCHD_API_OWCA_CREATE 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 'WCHD_API_OWCA_CREATE'"WCM: API - Create Op. WCA.
EXPORTING
IS_HEADER = "WCA Header Data
* IT_ASGNMT = "WCA Object Assignments
* IV_UPD_MODE = WCTP1_UPD_MODE-POST "Requested Mode for Data Update
* IS_WKNEED = "WCA Work Type/Need Indicators
* IT_HEADTEXT = "WCA Header Long Text
* IT_REM1TEXT = "WCA 1. Remark Long Text
* IT_REM2TEXT = "WCA 2. Remark Long Text
* IT_RQLFTEXT = "WCA Requalification Long Text
* IT_PERMIT = "WCA Approvals
* IT_CATALOG = "WCA Catalog Entries
* IT_OBJLST = "WCA Object List Entries
IMPORTING
ES_RESULT = "Data Check Results
EV_OBJKEY = "WCA Key
EV_OBJNR = "Object Number
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for WCHD_API_OWCA_CREATE
IS_HEADER - WCA Header Data
Data type: WCTP1_WCAAPWA_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
IT_ASGNMT - WCA Object Assignments
Data type: WCTP3_OBJTAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_UPD_MODE - Requested Mode for Data Update
Data type: WCTP1_UPD_MODE_TYPEDefault: WCTP1_UPD_MODE-POST
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_WKNEED - WCA Work Type/Need Indicators
Data type: WCTP1_WCA2WA_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_HEADTEXT - WCA Header Long Text
Data type: TLINE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_REM1TEXT - WCA 1. Remark Long Text
Data type: TLINE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_REM2TEXT - WCA 2. Remark Long Text
Data type: TLINE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_RQLFTEXT - WCA Requalification Long Text
Data type: TLINE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PERMIT - WCA Approvals
Data type: WCTP1_PMSOGTAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CATALOG - WCA Catalog Entries
Data type: WCTP1_WCACGTAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_OBJLST - WCA Object List Entries
Data type: WCTP1_WCAODTAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for WCHD_API_OWCA_CREATE
ES_RESULT - Data Check Results
Data type: WCTP1_MSGLOGWA_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EV_OBJKEY - WCA Key
Data type: WCEWAPINROptional: No
Call by Reference: No ( called with pass by value option)
EV_OBJNR - Object Number
Data type: WCTP1_OBJNR_TYPEOptional: 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 WCHD_API_OWCA_CREATE 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_es_result | TYPE WCTP1_MSGLOGWA_TYPE, " | |||
| lv_is_header | TYPE WCTP1_WCAAPWA_TYPE, " | |||
| lv_it_asgnmt | TYPE WCTP3_OBJTAB_TYPE, " | |||
| lv_iv_upd_mode | TYPE WCTP1_UPD_MODE_TYPE, " WCTP1_UPD_MODE-POST | |||
| lv_ev_objkey | TYPE WCEWAPINR, " | |||
| lv_is_wkneed | TYPE WCTP1_WCA2WA_TYPE, " | |||
| lv_ev_objnr | TYPE WCTP1_OBJNR_TYPE, " | |||
| lv_it_headtext | TYPE TLINE_TAB, " | |||
| lv_it_rem1text | TYPE TLINE_TAB, " | |||
| lv_it_rem2text | TYPE TLINE_TAB, " | |||
| lv_it_rqlftext | TYPE TLINE_TAB, " | |||
| lv_it_permit | TYPE WCTP1_PMSOGTAB_TYPE, " | |||
| lv_it_catalog | TYPE WCTP1_WCACGTAB_TYPE, " | |||
| lv_it_objlst | TYPE WCTP1_WCAODTAB_TYPE. " |
|   CALL FUNCTION 'WCHD_API_OWCA_CREATE' "WCM: API - Create Op. WCA |
| EXPORTING | ||
| IS_HEADER | = lv_is_header | |
| IT_ASGNMT | = lv_it_asgnmt | |
| IV_UPD_MODE | = lv_iv_upd_mode | |
| IS_WKNEED | = lv_is_wkneed | |
| IT_HEADTEXT | = lv_it_headtext | |
| IT_REM1TEXT | = lv_it_rem1text | |
| IT_REM2TEXT | = lv_it_rem2text | |
| IT_RQLFTEXT | = lv_it_rqlftext | |
| IT_PERMIT | = lv_it_permit | |
| IT_CATALOG | = lv_it_catalog | |
| IT_OBJLST | = lv_it_objlst | |
| IMPORTING | ||
| ES_RESULT | = lv_es_result | |
| EV_OBJKEY | = lv_ev_objkey | |
| EV_OBJNR | = lv_ev_objnr | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " WCHD_API_OWCA_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM WCHD_API_OWCA_CREATE
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_upd_mode) | = WCTP1_UPD_MODE-POST. | |||
Search for further information about these or an SAP related objects