SAP Function Modules

CO_WIPB_OK_CODE SAP Function module







CO_WIPB_OK_CODE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CO_WIPB_OK_CODE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: COWIPB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CO_WIPB_OK_CODE - CO WIPB OK CODE





CALL FUNCTION 'CO_WIPB_OK_CODE' "
  EXPORTING
    i_ok_code =                 " sytcode       ABAP Program, Current Transaction Code
    i_check_modus =             " char01
    i_flg_clear_data =          " char01
    is_afrud =                  " afrud         Dialog Table for Order Completion Confirmation
    is_caufvd =                 " caufvd        Dialog Structure for Order Headers and Items
    is_afvgd =                  " afvgd         Order: Dialog Table for Table AFVG (Order Operation)
  IMPORTING
    e_ok_code =                 " sytcode       ABAP Program, Current Transaction Code
    ev_wip_batch =              " charg_d
    .  "  CO_WIPB_OK_CODE

ABAP code example for Function Module CO_WIPB_OK_CODE





The ABAP code below is a full code listing to execute function module CO_WIPB_OK_CODE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_ok_code  TYPE SYTCODE ,
ld_ev_wip_batch  TYPE CHARG_D .

DATA(ld_i_ok_code) = 'some text here'.
DATA(ld_i_check_modus) = 'some text here'.
DATA(ld_i_flg_clear_data) = 'some text here'.
DATA(ld_is_afrud) = 'some text here'.
DATA(ld_is_caufvd) = 'some text here'.
DATA(ld_is_afvgd) = 'some text here'. . CALL FUNCTION 'CO_WIPB_OK_CODE' EXPORTING i_ok_code = ld_i_ok_code i_check_modus = ld_i_check_modus i_flg_clear_data = ld_i_flg_clear_data is_afrud = ld_is_afrud is_caufvd = ld_is_caufvd is_afvgd = ld_is_afvgd IMPORTING e_ok_code = ld_e_ok_code ev_wip_batch = ld_ev_wip_batch . " CO_WIPB_OK_CODE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_ok_code  TYPE SYTCODE ,
ld_i_ok_code  TYPE SYTCODE ,
ld_ev_wip_batch  TYPE CHARG_D ,
ld_i_check_modus  TYPE CHAR01 ,
ld_i_flg_clear_data  TYPE CHAR01 ,
ld_is_afrud  TYPE AFRUD ,
ld_is_caufvd  TYPE CAUFVD ,
ld_is_afvgd  TYPE AFVGD .

ld_i_ok_code = 'some text here'.
ld_i_check_modus = 'some text here'.
ld_i_flg_clear_data = 'some text here'.
ld_is_afrud = 'some text here'.
ld_is_caufvd = 'some text here'.
ld_is_afvgd = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CO_WIPB_OK_CODE or its description.