SAP Function Modules

CO_BO_OPR_SEQ_COPY SAP Function module







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

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


Pattern for FM CO_BO_OPR_SEQ_COPY - CO BO OPR SEQ COPY





CALL FUNCTION 'CO_BO_OPR_SEQ_COPY' "
* EXPORTING
*   flg_copy_imp = 'X'          " rc62c-copy_opr
*   settle_imp =                " rc62c-copy_sm
*   flg_enlrg =                 " rc27x-flg_sel
*   flg_seq_no_status = ' '     " rc27x-flg_sel
*   assg_imp =                  " rc62c-copy_assg
*   flg_copy_docl =             " rc62c-copy_docl  Indicator: Copy document links
*   flg_copy_sm_olc = SPACE     " rc62c-copy_sm_olc  Copy Settlement Rule at Operation Level
*   i_subnet_later = SPACE      " rc27x-flg_sel
*   flg_create_banf = 'X'       " xfeld
  TABLES
    ord_idx_tab =               " typ_ord_idx_tab  TYP_ORD_IDX
    opr_idx_tab =               " co_opr_tab
    .  "  CO_BO_OPR_SEQ_COPY

ABAP code example for Function Module CO_BO_OPR_SEQ_COPY





The ABAP code below is a full code listing to execute function module CO_BO_OPR_SEQ_COPY 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_ord_idx_tab  TYPE STANDARD TABLE OF TYP_ORD_IDX_TAB,"TABLES PARAM
wa_ord_idx_tab  LIKE LINE OF it_ord_idx_tab ,
it_opr_idx_tab  TYPE STANDARD TABLE OF CO_OPR_TAB,"TABLES PARAM
wa_opr_idx_tab  LIKE LINE OF it_opr_idx_tab .


DATA(ld_flg_copy_imp) = some text here

DATA(ld_settle_imp) = some text here

DATA(ld_flg_enlrg) = some text here

DATA(ld_flg_seq_no_status) = some text here

DATA(ld_assg_imp) = some text here

DATA(ld_flg_copy_docl) = some text here

DATA(ld_flg_copy_sm_olc) = some text here

DATA(ld_i_subnet_later) = some text here
DATA(ld_flg_create_banf) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ord_idx_tab to it_ord_idx_tab.

"populate fields of struture and append to itab
append wa_opr_idx_tab to it_opr_idx_tab. . CALL FUNCTION 'CO_BO_OPR_SEQ_COPY' * EXPORTING * flg_copy_imp = ld_flg_copy_imp * settle_imp = ld_settle_imp * flg_enlrg = ld_flg_enlrg * flg_seq_no_status = ld_flg_seq_no_status * assg_imp = ld_assg_imp * flg_copy_docl = ld_flg_copy_docl * flg_copy_sm_olc = ld_flg_copy_sm_olc * i_subnet_later = ld_i_subnet_later * flg_create_banf = ld_flg_create_banf TABLES ord_idx_tab = it_ord_idx_tab opr_idx_tab = it_opr_idx_tab . " CO_BO_OPR_SEQ_COPY
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_copy_imp  TYPE RC62C-COPY_OPR ,
it_ord_idx_tab  TYPE STANDARD TABLE OF TYP_ORD_IDX_TAB ,
wa_ord_idx_tab  LIKE LINE OF it_ord_idx_tab,
ld_settle_imp  TYPE RC62C-COPY_SM ,
it_opr_idx_tab  TYPE STANDARD TABLE OF CO_OPR_TAB ,
wa_opr_idx_tab  LIKE LINE OF it_opr_idx_tab,
ld_flg_enlrg  TYPE RC27X-FLG_SEL ,
ld_flg_seq_no_status  TYPE RC27X-FLG_SEL ,
ld_assg_imp  TYPE RC62C-COPY_ASSG ,
ld_flg_copy_docl  TYPE RC62C-COPY_DOCL ,
ld_flg_copy_sm_olc  TYPE RC62C-COPY_SM_OLC ,
ld_i_subnet_later  TYPE RC27X-FLG_SEL ,
ld_flg_create_banf  TYPE XFELD .


ld_flg_copy_imp = some text here

"populate fields of struture and append to itab
append wa_ord_idx_tab to it_ord_idx_tab.

ld_settle_imp = some text here

"populate fields of struture and append to itab
append wa_opr_idx_tab to it_opr_idx_tab.

ld_flg_enlrg = some text here

ld_flg_seq_no_status = some text here

ld_assg_imp = some text here

ld_flg_copy_docl = some text here

ld_flg_copy_sm_olc = some text here

ld_i_subnet_later = some text here
ld_flg_create_banf = 'Check type of data required'.

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