SAP FM13_CARRCOPY_COPY_BSP Function Module for









FM13_CARRCOPY_COPY_BSP is a standard fm13 carrcopy copy bsp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fm13 carrcopy copy bsp FM, simply by entering the name FM13_CARRCOPY_COPY_BSP into the relevant SAP transaction such as SE37 or SE38.

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



Function FM13_CARRCOPY_COPY_BSP 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 'FM13_CARRCOPY_COPY_BSP'"
EXPORTING
I_FIKRS = "
* I_FLG_COPY_COCAR_PAY = ' ' "
* I_FLG_PROT_MODE = ' ' "
* I_FLG_TEST_MODE = ' ' "
* I_FLG_HEADER = ' ' "
* I_FLG_COPY_GROUPS = 'X' "
* I_GEBER_SRC = "
* I_GJAHR_SRC = "
* I_GEBER_DEST = "
* I_GJAHR_DEST = "
* I_FLG_RESET_DEST = ' ' "
* I_FLG_COPY_BUCAR = ' ' "
* I_FLG_COPY_ACCAR = ' ' "
* I_FLG_COPY_COCAR_COM = ' ' "

IMPORTING
E_DATA_CHANGED = "
E_FLG_GROUPS_COPIED = "

TABLES
* T_COPY_PROT = "
.



IMPORTING Parameters details for FM13_CARRCOPY_COPY_BSP

I_FIKRS -

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

I_FLG_COPY_COCAR_PAY -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_PROT_MODE -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_TEST_MODE -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_HEADER -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_COPY_GROUPS -

Data type: BPIN-IND_1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GEBER_SRC -

Data type: BPIN-GEBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR_SRC -

Data type: BPIN-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GEBER_DEST -

Data type: BPIN-GEBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR_DEST -

Data type: BPIN-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_RESET_DEST -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_COPY_BUCAR -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_COPY_ACCAR -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_COPY_COCAR_COM -

Data type: BPIN-IND_1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FM13_CARRCOPY_COPY_BSP

E_DATA_CHANGED -

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

E_FLG_GROUPS_COPIED -

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

TABLES Parameters details for FM13_CARRCOPY_COPY_BSP

T_COPY_PROT -

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

Copy and paste ABAP code example for FM13_CARRCOPY_COPY_BSP 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_i_fikrs  TYPE BPIN-FIKRS, "   
lt_t_copy_prot  TYPE STANDARD TABLE OF FMBSP_T_COPY_PROT, "   
lv_e_data_changed  TYPE FMBSP_T_COPY_PROT, "   
lv_i_flg_copy_cocar_pay  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_prot_mode  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_test_mode  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_header  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_copy_groups  TYPE BPIN-IND_1, "   'X'
lv_i_geber_src  TYPE BPIN-GEBER, "   
lv_e_flg_groups_copied  TYPE BPIN, "   
lv_i_gjahr_src  TYPE BPIN-GJAHR, "   
lv_i_geber_dest  TYPE BPIN-GEBER, "   
lv_i_gjahr_dest  TYPE BPIN-GJAHR, "   
lv_i_flg_reset_dest  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_copy_bucar  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_copy_accar  TYPE BPIN-IND_1, "   SPACE
lv_i_flg_copy_cocar_com  TYPE BPIN-IND_1. "   SPACE

  CALL FUNCTION 'FM13_CARRCOPY_COPY_BSP'  "
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_FLG_COPY_COCAR_PAY = lv_i_flg_copy_cocar_pay
         I_FLG_PROT_MODE = lv_i_flg_prot_mode
         I_FLG_TEST_MODE = lv_i_flg_test_mode
         I_FLG_HEADER = lv_i_flg_header
         I_FLG_COPY_GROUPS = lv_i_flg_copy_groups
         I_GEBER_SRC = lv_i_geber_src
         I_GJAHR_SRC = lv_i_gjahr_src
         I_GEBER_DEST = lv_i_geber_dest
         I_GJAHR_DEST = lv_i_gjahr_dest
         I_FLG_RESET_DEST = lv_i_flg_reset_dest
         I_FLG_COPY_BUCAR = lv_i_flg_copy_bucar
         I_FLG_COPY_ACCAR = lv_i_flg_copy_accar
         I_FLG_COPY_COCAR_COM = lv_i_flg_copy_cocar_com
    IMPORTING
         E_DATA_CHANGED = lv_e_data_changed
         E_FLG_GROUPS_COPIED = lv_e_flg_groups_copied
    TABLES
         T_COPY_PROT = lt_t_copy_prot
. " FM13_CARRCOPY_COPY_BSP




ABAP code using 7.40 inline data declarations to call FM FM13_CARRCOPY_COPY_BSP

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.

"SELECT single FIKRS FROM BPIN INTO @DATA(ld_i_fikrs).
 
 
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_copy_cocar_pay).
DATA(ld_i_flg_copy_cocar_pay) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_prot_mode).
DATA(ld_i_flg_prot_mode) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_test_mode).
DATA(ld_i_flg_test_mode) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_header).
DATA(ld_i_flg_header) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_copy_groups).
DATA(ld_i_flg_copy_groups) = 'X'.
 
"SELECT single GEBER FROM BPIN INTO @DATA(ld_i_geber_src).
 
 
"SELECT single GJAHR FROM BPIN INTO @DATA(ld_i_gjahr_src).
 
"SELECT single GEBER FROM BPIN INTO @DATA(ld_i_geber_dest).
 
"SELECT single GJAHR FROM BPIN INTO @DATA(ld_i_gjahr_dest).
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_reset_dest).
DATA(ld_i_flg_reset_dest) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_copy_bucar).
DATA(ld_i_flg_copy_bucar) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_copy_accar).
DATA(ld_i_flg_copy_accar) = ' '.
 
"SELECT single IND_1 FROM BPIN INTO @DATA(ld_i_flg_copy_cocar_com).
DATA(ld_i_flg_copy_cocar_com) = ' '.
 


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!