SAP OIA_EXGAGRMNT_CREATE_TEST Function Module for Test module for BAPI_EXGAGRMNT_CREATE
OIA_EXGAGRMNT_CREATE_TEST is a standard oia exgagrmnt create test SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Test module for BAPI_EXGAGRMNT_CREATE processing and below is the pattern details for this FM, 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 oia exgagrmnt create test FM, simply by entering the name OIA_EXGAGRMNT_CREATE_TEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIA_IF_EXGAGRMNT
Program Name: SAPLOIA_IF_EXGAGRMNT
Main Program: SAPLOIA_IF_EXGAGRMNT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIA_EXGAGRMNT_CREATE_TEST 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 'OIA_EXGAGRMNT_CREATE_TEST'"Test module for BAPI_EXGAGRMNT_CREATE.
EXPORTING
* EXCHANGE_TYPE_STRING = "
* PRODUCT_POSTING_RULE_STRING = "
* FEE_POSTING_RULE_STRING = "
* TAX_POSTING_RULE_STRING = "
* IS_NETTING_ACTIVE_STRING = "
* IS_FEE_REQUIRED_STRING = "
* IS_VAT_ON_PRODUCT_STRING = "
* NETTING_CYCLE_STRING = "
* QTY_SCHED_BRKDWN_PERIOD_STRING = "
* QTY_SCHED_SPLIT_INDICAT_STRING = "
* SUB_BASE_PRODUCT_REL_STRING = "
* EXCHANGE_PARTNER_STRING = "
* SUB_BASE_PRODUCT_CHK_STRING = "
* BASE_LOCATION_STRING = "
* TESTRUN = "Switch to Simulation Session for Write BAPIs
* EXT_EXCHANGE_NUMBER_STRING = "
* PARTNER_REF_NUMBER_STRING = "
* EVERGREEN_TYPE_STRING = "
* START_ON_STRING = "
* CLOSE_ON_STRING = "
* REVIEW_ON_STRING = "
* NOTICE_PERIOD_STRING = "
IMPORTING
EXCHANGE_NUMBER = "Exchange agreement number
EXCHANGE_HEADER_OUT = "Exchange agreement header export data
TABLES
* EXCHANGE_HEADER_TEXT = "Exchange header text data for BAPI
* RETURN = "Return parameter
IMPORTING Parameters details for OIA_EXGAGRMNT_CREATE_TEST
EXCHANGE_TYPE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PRODUCT_POSTING_RULE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
FEE_POSTING_RULE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TAX_POSTING_RULE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_NETTING_ACTIVE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_FEE_REQUIRED_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_VAT_ON_PRODUCT_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
NETTING_CYCLE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
QTY_SCHED_BRKDWN_PERIOD_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
QTY_SCHED_SPLIT_INDICAT_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SUB_BASE_PRODUCT_REL_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCHANGE_PARTNER_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SUB_BASE_PRODUCT_CHK_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
BASE_LOCATION_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Session for Write BAPIs
Data type: TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXT_EXCHANGE_NUMBER_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_REF_NUMBER_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EVERGREEN_TYPE_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
START_ON_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
CLOSE_ON_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
REVIEW_ON_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
NOTICE_PERIOD_STRING -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OIA_EXGAGRMNT_CREATE_TEST
EXCHANGE_NUMBER - Exchange agreement number
Data type: BAPI_OIA_EXGAGRMNT_HDR_OUT-EXCHANGE_NUMBEROptional: No
Call by Reference: No ( called with pass by value option)
EXCHANGE_HEADER_OUT - Exchange agreement header export data
Data type: BAPI_OIA_EXGAGRMNT_HDR_OUTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OIA_EXGAGRMNT_CREATE_TEST
EXCHANGE_HEADER_TEXT - Exchange header text data for BAPI
Data type: BAPI_OIA_EXGAGRMNT_HDR_TXTOptional: Yes
Call by Reference: Yes
RETURN - Return parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for OIA_EXGAGRMNT_CREATE_TEST 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_exchange_number | TYPE BAPI_OIA_EXGAGRMNT_HDR_OUT-EXCHANGE_NUMBER, " | |||
| lt_exchange_header_text | TYPE STANDARD TABLE OF BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_exchange_type_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_product_posting_rule_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_fee_posting_rule_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_tax_posting_rule_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_is_netting_active_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_is_fee_required_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_is_vat_on_product_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_netting_cycle_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_qty_sched_brkdwn_period_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_qty_sched_split_indicat_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lv_sub_base_product_rel_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_TXT, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_exchange_header_out | TYPE BAPI_OIA_EXGAGRMNT_HDR_OUT, " | |||
| lv_exchange_partner_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_OUT, " | |||
| lv_sub_base_product_chk_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_OUT, " | |||
| lv_base_location_string | TYPE BAPI_OIA_EXGAGRMNT_HDR_OUT, " | |||
| lv_testrun | TYPE TESTRUN, " | |||
| lv_ext_exchange_number_string | TYPE TESTRUN, " | |||
| lv_partner_ref_number_string | TYPE TESTRUN, " | |||
| lv_evergreen_type_string | TYPE TESTRUN, " | |||
| lv_start_on_string | TYPE TESTRUN, " | |||
| lv_close_on_string | TYPE TESTRUN, " | |||
| lv_review_on_string | TYPE TESTRUN, " | |||
| lv_notice_period_string | TYPE TESTRUN. " |
|   CALL FUNCTION 'OIA_EXGAGRMNT_CREATE_TEST' "Test module for BAPI_EXGAGRMNT_CREATE |
| EXPORTING | ||
| EXCHANGE_TYPE_STRING | = lv_exchange_type_string | |
| PRODUCT_POSTING_RULE_STRING | = lv_product_posting_rule_string | |
| FEE_POSTING_RULE_STRING | = lv_fee_posting_rule_string | |
| TAX_POSTING_RULE_STRING | = lv_tax_posting_rule_string | |
| IS_NETTING_ACTIVE_STRING | = lv_is_netting_active_string | |
| IS_FEE_REQUIRED_STRING | = lv_is_fee_required_string | |
| IS_VAT_ON_PRODUCT_STRING | = lv_is_vat_on_product_string | |
| NETTING_CYCLE_STRING | = lv_netting_cycle_string | |
| QTY_SCHED_BRKDWN_PERIOD_STRING | = lv_qty_sched_brkdwn_period_string | |
| QTY_SCHED_SPLIT_INDICAT_STRING | = lv_qty_sched_split_indicat_string | |
| SUB_BASE_PRODUCT_REL_STRING | = lv_sub_base_product_rel_string | |
| EXCHANGE_PARTNER_STRING | = lv_exchange_partner_string | |
| SUB_BASE_PRODUCT_CHK_STRING | = lv_sub_base_product_chk_string | |
| BASE_LOCATION_STRING | = lv_base_location_string | |
| TESTRUN | = lv_testrun | |
| EXT_EXCHANGE_NUMBER_STRING | = lv_ext_exchange_number_string | |
| PARTNER_REF_NUMBER_STRING | = lv_partner_ref_number_string | |
| EVERGREEN_TYPE_STRING | = lv_evergreen_type_string | |
| START_ON_STRING | = lv_start_on_string | |
| CLOSE_ON_STRING | = lv_close_on_string | |
| REVIEW_ON_STRING | = lv_review_on_string | |
| NOTICE_PERIOD_STRING | = lv_notice_period_string | |
| IMPORTING | ||
| EXCHANGE_NUMBER | = lv_exchange_number | |
| EXCHANGE_HEADER_OUT | = lv_exchange_header_out | |
| TABLES | ||
| EXCHANGE_HEADER_TEXT | = lt_exchange_header_text | |
| RETURN | = lt_return | |
| . " OIA_EXGAGRMNT_CREATE_TEST | ||
ABAP code using 7.40 inline data declarations to call FM OIA_EXGAGRMNT_CREATE_TEST
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 EXCHANGE_NUMBER FROM BAPI_OIA_EXGAGRMNT_HDR_OUT INTO @DATA(ld_exchange_number). | ||||
Search for further information about these or an SAP related objects