SAP CO_WIPB_SPLIT Function Module for NOTRANSL: WIP-Chargensplit in der Rückmeldung









CO_WIPB_SPLIT is a standard co wipb split SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: WIP-Chargensplit in der Rückmeldung 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 co wipb split FM, simply by entering the name CO_WIPB_SPLIT into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_WIPB_SPLIT 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 'CO_WIPB_SPLIT'"NOTRANSL: WIP-Chargensplit in der Rückmeldung
EXPORTING
I_OK_CODE = "ABAP Program, Current Transaction Code
I_DARK = "Boolean Variable (X=True, -=False, Space=Unknown)
I_NO_COMMIT = "Boolean Variable (X=True, -=False, Space=Unknown)
* I_AFRUD = "Dialog Table for Order Completion Confirmation

IMPORTING
E_AFRUD = "Dialog Table for Order Completion Confirmation

TABLES
IT_REF = "Confirmation/WIP Batches and Reference Fields
CT_COWIPB_CHVW = "WIP Batches with Where-Used List
CT_PROOB = "Original Batch for Production Order
* CT_WIPB = "Runtime Structure for WIP Batches

EXCEPTIONS
ERROR = 1 ERROR_SPLIT_COMBINATION = 2 ERROR_OF_COMBINATION = 3 CANCEL = 4
.



IMPORTING Parameters details for CO_WIPB_SPLIT

I_OK_CODE - ABAP Program, Current Transaction Code

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

I_DARK - Boolean Variable (X=True, -=False, Space=Unknown)

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

I_NO_COMMIT - Boolean Variable (X=True, -=False, Space=Unknown)

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

I_AFRUD - Dialog Table for Order Completion Confirmation

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

EXPORTING Parameters details for CO_WIPB_SPLIT

E_AFRUD - Dialog Table for Order Completion Confirmation

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

TABLES Parameters details for CO_WIPB_SPLIT

IT_REF - Confirmation/WIP Batches and Reference Fields

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

CT_COWIPB_CHVW - WIP Batches with Where-Used List

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

CT_PROOB - Original Batch for Production Order

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

CT_WIPB - Runtime Structure for WIP Batches

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

EXCEPTIONS details

ERROR -

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

ERROR_SPLIT_COMBINATION -

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

ERROR_OF_COMBINATION -

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

CANCEL -

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

Copy and paste ABAP code example for CO_WIPB_SPLIT 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, "   
lt_it_ref  TYPE STANDARD TABLE OF AFRU_INC_REF, "   
lv_e_afrud  TYPE AFRUD, "   
lv_i_ok_code  TYPE SYTCODE, "   
lv_i_dark  TYPE BOOLEAN, "   
lt_ct_cowipb_chvw  TYPE STANDARD TABLE OF COWIPB_CHVW_UPD, "   
lv_error_split_combination  TYPE COWIPB_CHVW_UPD, "   
lt_ct_proob  TYPE STANDARD TABLE OF PROOB_UPD, "   
lv_i_no_commit  TYPE BOOLEAN, "   
lv_error_of_combination  TYPE BOOLEAN, "   
lv_cancel  TYPE BOOLEAN, "   
lt_ct_wipb  TYPE STANDARD TABLE OF AFRU_WIPB_RT, "   
lv_i_afrud  TYPE AFRUD. "   

  CALL FUNCTION 'CO_WIPB_SPLIT'  "NOTRANSL: WIP-Chargensplit in der Rückmeldung
    EXPORTING
         I_OK_CODE = lv_i_ok_code
         I_DARK = lv_i_dark
         I_NO_COMMIT = lv_i_no_commit
         I_AFRUD = lv_i_afrud
    IMPORTING
         E_AFRUD = lv_e_afrud
    TABLES
         IT_REF = lt_it_ref
         CT_COWIPB_CHVW = lt_ct_cowipb_chvw
         CT_PROOB = lt_ct_proob
         CT_WIPB = lt_ct_wipb
    EXCEPTIONS
        ERROR = 1
        ERROR_SPLIT_COMBINATION = 2
        ERROR_OF_COMBINATION = 3
        CANCEL = 4
. " CO_WIPB_SPLIT




ABAP code using 7.40 inline data declarations to call FM CO_WIPB_SPLIT

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!