SAP AIPR_BP_MOVE_SOURCE_TO_TARGET Function Module for









AIPR_BP_MOVE_SOURCE_TO_TARGET is a standard aipr bp move source to target 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 aipr bp move source to target FM, simply by entering the name AIPR_BP_MOVE_SOURCE_TO_TARGET into the relevant SAP transaction such as SE37 or SE38.

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



Function AIPR_BP_MOVE_SOURCE_TO_TARGET 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 'AIPR_BP_MOVE_SOURCE_TO_TARGET'"
EXPORTING
ID_KOKRS = "
ID_VORGA = "
ID_WRTTP = "
* ID_VERSN = '000' "
* ID_TRGKZ = 'N' "
* ID_POSIT = ' ' "
ID_WRTTP_FROM_1 = "
* ID_WRTTP_FROM_2 = "
* ID_VERSN_FROM = '000' "
* ID_TRGKZ_FROM = 'N' "
* ID_POSIT_FROM = ' ' "
ID_OBJNR = "
* IFLG_SUBTRACT_VALUES = ' ' "
* IFLG_OBJCURR_VAL_TRANSFERRED = 'X' "
* IFLG_PARCURR_VAL_TRANSFERRED = ' ' "
* IFLG_GEBCURR_VAL_TRANSFERRED = ' ' "
* IFLG_POST_IN_OBJCURR = ' ' "
* IFLG_POST_IN_TRACURR = ' ' "
* ID_TWAER = ' ' "
* IFLG_TRACURR_VAL_TRANSFERRED = ' ' "
* ID_PROFIL = "
* ID_APPLIK = "
* ID_WAERS_OBJ = "
* ID_GNJHR = "
* ID_VERSN_IQ = ' ' "
* ID_LEDNR_OBJ = "
* ID_WAERS_PAROBJ = "
* ID_LEDNR_PAROBJ = "
* ID_WAERS_GEBOBJ = "
* ID_LEDNR_GEBOBJ = "
* ID_YDIST = "

TABLES
* CT_BPGE = "
* CT_BPJA = "

EXCEPTIONS
ABEND_OCCURED = 1
.



IMPORTING Parameters details for AIPR_BP_MOVE_SOURCE_TO_TARGET

ID_KOKRS -

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

ID_VORGA -

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

ID_WRTTP -

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

ID_VERSN -

Data type: BPGE-VERSN
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_TRGKZ -

Data type: BPGE-TRGKZ
Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_POSIT -

Data type: BPGE-POSIT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_WRTTP_FROM_1 -

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

ID_WRTTP_FROM_2 -

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

ID_VERSN_FROM -

Data type: BPGE-VERSN
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_TRGKZ_FROM -

Data type: BPGE-TRGKZ
Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_POSIT_FROM -

Data type: BPGE-POSIT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_OBJNR -

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

IFLG_SUBTRACT_VALUES -

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

IFLG_OBJCURR_VAL_TRANSFERRED -

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

IFLG_PARCURR_VAL_TRANSFERRED -

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

IFLG_GEBCURR_VAL_TRANSFERRED -

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

IFLG_POST_IN_OBJCURR -

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

IFLG_POST_IN_TRACURR -

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

ID_TWAER -

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

IFLG_TRACURR_VAL_TRANSFERRED -

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

ID_PROFIL -

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

ID_APPLIK -

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

ID_WAERS_OBJ -

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

ID_GNJHR -

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

ID_VERSN_IQ -

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

ID_LEDNR_OBJ -

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

ID_WAERS_PAROBJ -

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

ID_LEDNR_PAROBJ -

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

ID_WAERS_GEBOBJ -

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

ID_LEDNR_GEBOBJ -

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

ID_YDIST -

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

TABLES Parameters details for AIPR_BP_MOVE_SOURCE_TO_TARGET

CT_BPGE -

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

CT_BPJA -

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

EXCEPTIONS details

ABEND_OCCURED -

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

Copy and paste ABAP code example for AIPR_BP_MOVE_SOURCE_TO_TARGET 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:
lt_ct_bpge  TYPE STANDARD TABLE OF BPGE, "   
lv_id_kokrs  TYPE KOKRS, "   
lv_abend_occured  TYPE KOKRS, "   
lv_id_vorga  TYPE BPGE-VORGA, "   
lv_id_wrttp  TYPE BPGE-WRTTP, "   
lv_id_versn  TYPE BPGE-VERSN, "   '000'
lv_id_trgkz  TYPE BPGE-TRGKZ, "   'N'
lv_id_posit  TYPE BPGE-POSIT, "   ' '
lv_id_wrttp_from_1  TYPE BPGE-WRTTP, "   
lv_id_wrttp_from_2  TYPE BPGE-WRTTP, "   
lv_id_versn_from  TYPE BPGE-VERSN, "   '000'
lv_id_trgkz_from  TYPE BPGE-TRGKZ, "   'N'
lv_id_posit_from  TYPE BPGE-POSIT, "   ' '
lt_ct_bpja  TYPE STANDARD TABLE OF BPJA, "   
lv_id_objnr  TYPE BPGE-OBJNR, "   
lv_iflg_subtract_values  TYPE XFELD, "   ' '
lv_iflg_objcurr_val_transferred  TYPE XFELD, "   'X'
lv_iflg_parcurr_val_transferred  TYPE XFELD, "   ' '
lv_iflg_gebcurr_val_transferred  TYPE XFELD, "   ' '
lv_iflg_post_in_objcurr  TYPE IM_FLG_POST_IN_OBJCURR, "   ' '
lv_iflg_post_in_tracurr  TYPE XFELD, "   ' '
lv_id_twaer  TYPE WAERS, "   ' '
lv_iflg_tracurr_val_transferred  TYPE XFELD, "   ' '
lv_id_profil  TYPE BP_PROFIL, "   
lv_id_applik  TYPE BP_APPLIK, "   
lv_id_waers_obj  TYPE TKA01-WAERS, "   
lv_id_gnjhr  TYPE IM_GNJHR, "   
lv_id_versn_iq  TYPE VERSN, "   ' '
lv_id_lednr_obj  TYPE BPGE-LEDNR, "   
lv_id_waers_parobj  TYPE TKA01-WAERS, "   
lv_id_lednr_parobj  TYPE BPGE-LEDNR, "   
lv_id_waers_gebobj  TYPE TKA01-WAERS, "   
lv_id_lednr_gebobj  TYPE BPGE-LEDNR, "   
lv_id_ydist  TYPE IMTP-YDIST. "   

  CALL FUNCTION 'AIPR_BP_MOVE_SOURCE_TO_TARGET'  "
    EXPORTING
         ID_KOKRS = lv_id_kokrs
         ID_VORGA = lv_id_vorga
         ID_WRTTP = lv_id_wrttp
         ID_VERSN = lv_id_versn
         ID_TRGKZ = lv_id_trgkz
         ID_POSIT = lv_id_posit
         ID_WRTTP_FROM_1 = lv_id_wrttp_from_1
         ID_WRTTP_FROM_2 = lv_id_wrttp_from_2
         ID_VERSN_FROM = lv_id_versn_from
         ID_TRGKZ_FROM = lv_id_trgkz_from
         ID_POSIT_FROM = lv_id_posit_from
         ID_OBJNR = lv_id_objnr
         IFLG_SUBTRACT_VALUES = lv_iflg_subtract_values
         IFLG_OBJCURR_VAL_TRANSFERRED = lv_iflg_objcurr_val_transferred
         IFLG_PARCURR_VAL_TRANSFERRED = lv_iflg_parcurr_val_transferred
         IFLG_GEBCURR_VAL_TRANSFERRED = lv_iflg_gebcurr_val_transferred
         IFLG_POST_IN_OBJCURR = lv_iflg_post_in_objcurr
         IFLG_POST_IN_TRACURR = lv_iflg_post_in_tracurr
         ID_TWAER = lv_id_twaer
         IFLG_TRACURR_VAL_TRANSFERRED = lv_iflg_tracurr_val_transferred
         ID_PROFIL = lv_id_profil
         ID_APPLIK = lv_id_applik
         ID_WAERS_OBJ = lv_id_waers_obj
         ID_GNJHR = lv_id_gnjhr
         ID_VERSN_IQ = lv_id_versn_iq
         ID_LEDNR_OBJ = lv_id_lednr_obj
         ID_WAERS_PAROBJ = lv_id_waers_parobj
         ID_LEDNR_PAROBJ = lv_id_lednr_parobj
         ID_WAERS_GEBOBJ = lv_id_waers_gebobj
         ID_LEDNR_GEBOBJ = lv_id_lednr_gebobj
         ID_YDIST = lv_id_ydist
    TABLES
         CT_BPGE = lt_ct_bpge
         CT_BPJA = lt_ct_bpja
    EXCEPTIONS
        ABEND_OCCURED = 1
. " AIPR_BP_MOVE_SOURCE_TO_TARGET




ABAP code using 7.40 inline data declarations to call FM AIPR_BP_MOVE_SOURCE_TO_TARGET

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 VORGA FROM BPGE INTO @DATA(ld_id_vorga).
 
"SELECT single WRTTP FROM BPGE INTO @DATA(ld_id_wrttp).
 
"SELECT single VERSN FROM BPGE INTO @DATA(ld_id_versn).
DATA(ld_id_versn) = '000'.
 
"SELECT single TRGKZ FROM BPGE INTO @DATA(ld_id_trgkz).
DATA(ld_id_trgkz) = 'N'.
 
"SELECT single POSIT FROM BPGE INTO @DATA(ld_id_posit).
DATA(ld_id_posit) = ' '.
 
"SELECT single WRTTP FROM BPGE INTO @DATA(ld_id_wrttp_from_1).
 
"SELECT single WRTTP FROM BPGE INTO @DATA(ld_id_wrttp_from_2).
 
"SELECT single VERSN FROM BPGE INTO @DATA(ld_id_versn_from).
DATA(ld_id_versn_from) = '000'.
 
"SELECT single TRGKZ FROM BPGE INTO @DATA(ld_id_trgkz_from).
DATA(ld_id_trgkz_from) = 'N'.
 
"SELECT single POSIT FROM BPGE INTO @DATA(ld_id_posit_from).
DATA(ld_id_posit_from) = ' '.
 
 
"SELECT single OBJNR FROM BPGE INTO @DATA(ld_id_objnr).
 
DATA(ld_iflg_subtract_values) = ' '.
 
DATA(ld_iflg_objcurr_val_transferred) = 'X'.
 
DATA(ld_iflg_parcurr_val_transferred) = ' '.
 
DATA(ld_iflg_gebcurr_val_transferred) = ' '.
 
DATA(ld_iflg_post_in_objcurr) = ' '.
 
DATA(ld_iflg_post_in_tracurr) = ' '.
 
DATA(ld_id_twaer) = ' '.
 
DATA(ld_iflg_tracurr_val_transferred) = ' '.
 
 
 
"SELECT single WAERS FROM TKA01 INTO @DATA(ld_id_waers_obj).
 
 
DATA(ld_id_versn_iq) = ' '.
 
"SELECT single LEDNR FROM BPGE INTO @DATA(ld_id_lednr_obj).
 
"SELECT single WAERS FROM TKA01 INTO @DATA(ld_id_waers_parobj).
 
"SELECT single LEDNR FROM BPGE INTO @DATA(ld_id_lednr_parobj).
 
"SELECT single WAERS FROM TKA01 INTO @DATA(ld_id_waers_gebobj).
 
"SELECT single LEDNR FROM BPGE INTO @DATA(ld_id_lednr_gebobj).
 
"SELECT single YDIST FROM IMTP INTO @DATA(ld_id_ydist).
 


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!