SAP Function Modules

CO_BC_ORDER_POST SAP Function module







CO_BC_ORDER_POST 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_BC_ORDER_POST into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CO_BC_ORDER_POST - CO BC ORDER POST





CALL FUNCTION 'CO_BC_ORDER_POST' "
  EXPORTING
*   flg_user = SPACE            " rc27x-flg_sel  Indicator that no person changing update in the order
    trans_typ =                 " tc10-trtyp
*   check_vbkz = 'X'            " rc27x-flg_sel
  TABLES
    resbtab =                   " resbb
    resbtab_old =               " aresb
    rsdbtab =                   " rsdb
*   rsadd_old =                 " arsadd
    .  "  CO_BC_ORDER_POST

ABAP code example for Function Module CO_BC_ORDER_POST





The ABAP code below is a full code listing to execute function module CO_BC_ORDER_POST 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:
it_resbtab  TYPE STANDARD TABLE OF RESBB,"TABLES PARAM
wa_resbtab  LIKE LINE OF it_resbtab ,
it_resbtab_old  TYPE STANDARD TABLE OF ARESB,"TABLES PARAM
wa_resbtab_old  LIKE LINE OF it_resbtab_old ,
it_rsdbtab  TYPE STANDARD TABLE OF RSDB,"TABLES PARAM
wa_rsdbtab  LIKE LINE OF it_rsdbtab ,
it_rsadd_old  TYPE STANDARD TABLE OF ARSADD,"TABLES PARAM
wa_rsadd_old  LIKE LINE OF it_rsadd_old .


DATA(ld_flg_user) = some text here

SELECT single TRTYP
FROM TC10
INTO @DATA(ld_trans_typ).


DATA(ld_check_vbkz) = some text here

"populate fields of struture and append to itab
append wa_resbtab to it_resbtab.

"populate fields of struture and append to itab
append wa_resbtab_old to it_resbtab_old.

"populate fields of struture and append to itab
append wa_rsdbtab to it_rsdbtab.

"populate fields of struture and append to itab
append wa_rsadd_old to it_rsadd_old. . CALL FUNCTION 'CO_BC_ORDER_POST' EXPORTING * flg_user = ld_flg_user trans_typ = ld_trans_typ * check_vbkz = ld_check_vbkz TABLES resbtab = it_resbtab resbtab_old = it_resbtab_old rsdbtab = it_rsdbtab * rsadd_old = it_rsadd_old . " CO_BC_ORDER_POST
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_flg_user  TYPE RC27X-FLG_SEL ,
it_resbtab  TYPE STANDARD TABLE OF RESBB ,
wa_resbtab  LIKE LINE OF it_resbtab,
ld_trans_typ  TYPE TC10-TRTYP ,
it_resbtab_old  TYPE STANDARD TABLE OF ARESB ,
wa_resbtab_old  LIKE LINE OF it_resbtab_old,
ld_check_vbkz  TYPE RC27X-FLG_SEL ,
it_rsdbtab  TYPE STANDARD TABLE OF RSDB ,
wa_rsdbtab  LIKE LINE OF it_rsdbtab,
it_rsadd_old  TYPE STANDARD TABLE OF ARSADD ,
wa_rsadd_old  LIKE LINE OF it_rsadd_old.


ld_flg_user = some text here

"populate fields of struture and append to itab
append wa_resbtab to it_resbtab.

SELECT single TRTYP
FROM TC10
INTO ld_trans_typ.


"populate fields of struture and append to itab
append wa_resbtab_old to it_resbtab_old.

ld_check_vbkz = some text here

"populate fields of struture and append to itab
append wa_rsdbtab to it_rsdbtab.

"populate fields of struture and append to itab
append wa_rsadd_old to it_rsadd_old.

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_BC_ORDER_POST or its description.