SAP Function Modules

BAPI_RE_AT_CHANGE SAP Function module







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

Associated Function Group: REAJ_BAPI_ADJUSTMENT_TASK
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_RE_AT_CHANGE - BAPI RE AT CHANGE





CALL FUNCTION 'BAPI_RE_AT_CHANGE' "
  EXPORTING
    adjustmenttaskid =          " bapi_re_adjust_task_key-adjustment_task_id
*   adjust_task =               " bapi_re_adjust_task_dat
*   adjust_task_x =             " bapi_re_adjust_task_datx
*   trans =                     " bapi_re_additional_fields-trans
*   test_run = SPACE            " bapi_re_additional_fields-testrun
  TABLES
*   adjust_task_obj =           " bapi_re_at_obj_datc
*   obj_assign =                " bapi_re_obj_assign_datc
*   object_rel =                " bapi_re_object_rel_datc
*   partner =                   " bapi_re_partner_datc
*   meas_cn =                   " bapi_re_meas_cn_datc
*   prestage =                  " bapi_re_prestage_datc
*   finplan =                   " bapi_re_finplan_datc
*   expense =                   " bapi_re_expense_datc
*   resubm_rule =               " bapi_re_resubm_rule_datc
*   resubm_date =               " bapi_re_resubm_date_datc
*   status =                    " bapi_re_status_datc
*   extension_in =              " bapiparex
    return =                    " bapiret2
    .  "  BAPI_RE_AT_CHANGE

ABAP code example for Function Module BAPI_RE_AT_CHANGE





The ABAP code below is a full code listing to execute function module BAPI_RE_AT_CHANGE 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_adjust_task_obj  TYPE STANDARD TABLE OF BAPI_RE_AT_OBJ_DATC,"TABLES PARAM
wa_adjust_task_obj  LIKE LINE OF it_adjust_task_obj ,
it_obj_assign  TYPE STANDARD TABLE OF BAPI_RE_OBJ_ASSIGN_DATC,"TABLES PARAM
wa_obj_assign  LIKE LINE OF it_obj_assign ,
it_object_rel  TYPE STANDARD TABLE OF BAPI_RE_OBJECT_REL_DATC,"TABLES PARAM
wa_object_rel  LIKE LINE OF it_object_rel ,
it_partner  TYPE STANDARD TABLE OF BAPI_RE_PARTNER_DATC,"TABLES PARAM
wa_partner  LIKE LINE OF it_partner ,
it_meas_cn  TYPE STANDARD TABLE OF BAPI_RE_MEAS_CN_DATC,"TABLES PARAM
wa_meas_cn  LIKE LINE OF it_meas_cn ,
it_prestage  TYPE STANDARD TABLE OF BAPI_RE_PRESTAGE_DATC,"TABLES PARAM
wa_prestage  LIKE LINE OF it_prestage ,
it_finplan  TYPE STANDARD TABLE OF BAPI_RE_FINPLAN_DATC,"TABLES PARAM
wa_finplan  LIKE LINE OF it_finplan ,
it_expense  TYPE STANDARD TABLE OF BAPI_RE_EXPENSE_DATC,"TABLES PARAM
wa_expense  LIKE LINE OF it_expense ,
it_resubm_rule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DATC,"TABLES PARAM
wa_resubm_rule  LIKE LINE OF it_resubm_rule ,
it_resubm_date  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_DATE_DATC,"TABLES PARAM
wa_resubm_date  LIKE LINE OF it_resubm_date ,
it_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DATC,"TABLES PARAM
wa_status  LIKE LINE OF it_status ,
it_extension_in  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extension_in  LIKE LINE OF it_extension_in ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_adjustmenttaskid) = some text here
DATA(ld_adjust_task) = 'Check type of data required'.
DATA(ld_adjust_task_x) = 'Check type of data required'.

DATA(ld_trans) = some text here

DATA(ld_test_run) = some text here

"populate fields of struture and append to itab
append wa_adjust_task_obj to it_adjust_task_obj.

"populate fields of struture and append to itab
append wa_obj_assign to it_obj_assign.

"populate fields of struture and append to itab
append wa_object_rel to it_object_rel.

"populate fields of struture and append to itab
append wa_partner to it_partner.

"populate fields of struture and append to itab
append wa_meas_cn to it_meas_cn.

"populate fields of struture and append to itab
append wa_prestage to it_prestage.

"populate fields of struture and append to itab
append wa_finplan to it_finplan.

"populate fields of struture and append to itab
append wa_expense to it_expense.

"populate fields of struture and append to itab
append wa_resubm_rule to it_resubm_rule.

"populate fields of struture and append to itab
append wa_resubm_date to it_resubm_date.

"populate fields of struture and append to itab
append wa_status to it_status.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_RE_AT_CHANGE' EXPORTING adjustmenttaskid = ld_adjustmenttaskid * adjust_task = ld_adjust_task * adjust_task_x = ld_adjust_task_x * trans = ld_trans * test_run = ld_test_run TABLES * adjust_task_obj = it_adjust_task_obj * obj_assign = it_obj_assign * object_rel = it_object_rel * partner = it_partner * meas_cn = it_meas_cn * prestage = it_prestage * finplan = it_finplan * expense = it_expense * resubm_rule = it_resubm_rule * resubm_date = it_resubm_date * status = it_status * extension_in = it_extension_in return = it_return . " BAPI_RE_AT_CHANGE
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_adjustmenttaskid  TYPE BAPI_RE_ADJUST_TASK_KEY-ADJUSTMENT_TASK_ID ,
it_adjust_task_obj  TYPE STANDARD TABLE OF BAPI_RE_AT_OBJ_DATC ,
wa_adjust_task_obj  LIKE LINE OF it_adjust_task_obj,
ld_adjust_task  TYPE BAPI_RE_ADJUST_TASK_DAT ,
it_obj_assign  TYPE STANDARD TABLE OF BAPI_RE_OBJ_ASSIGN_DATC ,
wa_obj_assign  LIKE LINE OF it_obj_assign,
ld_adjust_task_x  TYPE BAPI_RE_ADJUST_TASK_DATX ,
it_object_rel  TYPE STANDARD TABLE OF BAPI_RE_OBJECT_REL_DATC ,
wa_object_rel  LIKE LINE OF it_object_rel,
ld_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS ,
it_partner  TYPE STANDARD TABLE OF BAPI_RE_PARTNER_DATC ,
wa_partner  LIKE LINE OF it_partner,
ld_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN ,
it_meas_cn  TYPE STANDARD TABLE OF BAPI_RE_MEAS_CN_DATC ,
wa_meas_cn  LIKE LINE OF it_meas_cn,
it_prestage  TYPE STANDARD TABLE OF BAPI_RE_PRESTAGE_DATC ,
wa_prestage  LIKE LINE OF it_prestage,
it_finplan  TYPE STANDARD TABLE OF BAPI_RE_FINPLAN_DATC ,
wa_finplan  LIKE LINE OF it_finplan,
it_expense  TYPE STANDARD TABLE OF BAPI_RE_EXPENSE_DATC ,
wa_expense  LIKE LINE OF it_expense,
it_resubm_rule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DATC ,
wa_resubm_rule  LIKE LINE OF it_resubm_rule,
it_resubm_date  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_DATE_DATC ,
wa_resubm_date  LIKE LINE OF it_resubm_date,
it_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DATC ,
wa_status  LIKE LINE OF it_status,
it_extension_in  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extension_in  LIKE LINE OF it_extension_in,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_adjustmenttaskid = some text here

"populate fields of struture and append to itab
append wa_adjust_task_obj to it_adjust_task_obj.
ld_adjust_task = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_obj_assign to it_obj_assign.
ld_adjust_task_x = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_object_rel to it_object_rel.

ld_trans = some text here

"populate fields of struture and append to itab
append wa_partner to it_partner.

ld_test_run = some text here

"populate fields of struture and append to itab
append wa_meas_cn to it_meas_cn.

"populate fields of struture and append to itab
append wa_prestage to it_prestage.

"populate fields of struture and append to itab
append wa_finplan to it_finplan.

"populate fields of struture and append to itab
append wa_expense to it_expense.

"populate fields of struture and append to itab
append wa_resubm_rule to it_resubm_rule.

"populate fields of struture and append to itab
append wa_resubm_date to it_resubm_date.

"populate fields of struture and append to itab
append wa_status to it_status.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_return to it_return.

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