Fonction SAP BAPI_THA_TRANS_FX_CREATE - Create Individual FX Transaction

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE_IN BAPI5105-COMPANY_CODE C 4 Company Code
HEDGEPLAN_IN BAPI5105-HEDGE_PLAN C 13 Hedge Management: Hedge Plan ID
TESTRUN BAPI5105-TESTRUN C 1 SPACE Switch to Simulation Mode for Write BAPIs
TRANSACTIONFX BAPI_THA_TRANS_FX u 112 BAPI: Create and Change FX Transaction Data
TRANSACTIONID_IN BAPI_THA_TRANS_FX_DETAIL-TRANSACTION_ID C 11 Hedge Management: Transaction

Paramètre Reférence Type Long. Description
RETURNCOMPANYCODE BAPI5105-COMPANY_CODE C 4 Company Code
RETURNEXPOSUREID BAPI_THA_TRANS_FX_DETAIL-EXPOSURE_ID N 5 Hedge Management: Exposure ID
RETURNHEDGEPLAN BAPI5105-HEDGE_PLAN C 13 Hedge Management: Hedge Plan ID
RETURNTRANSACTIONID BAPI_THA_TRANS_FX_DETAIL-TRANSACTION_ID C 11 Hedge Management: Transaction

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Parameter(s)

Functionality
You can create a FX transaction. Implicitly, the corresponding foreigncurrency exposure is created if the EXPOSURE_ID field is initial in thedata structure for the transaction.

Description
If the method is returned to the calling program due to a success, thisparameter contains the company code in which the FX transaction wascreated.
The field is initial in the case of errors.

Description
If the method is returned to the calling program due to a success, thisparameter contains the ID of the newly created or changed FX exposure towhich the FX transaction was assigned.
The field is initial in the case of errors.

Description
If the method is returned to the calling program due to a success, thisparameter contains the ID of the hedge plan in which the FX transactionwas created.
The field is initial in the case of errors.

Description
If the method is returned to the calling program due to a success, thisparameter contains the ID of the newly created FX transaction.
The field is initial in the case of errors.

Description
A parameter for transferring the company code for the BAPI methods ofthe business object FX transaction in hedge accouting (BUS5106). Youmust enter an existing company code.
This parameter implements the key field of the business object with thesame name.

Description
A parameter for transferring the hedge plan ID for the BAPI methods ofthe business object FX transaction in hedge accouting (BUS5106). Youmust enter the ID of an existing hedge plan.
This parameter implements the key field of the business object with thesame name.

Description
Used to check the instance details before the object instance isactually created in the database. The creation of the object instance isonly simulated and the data is not updated.
The following values are possible:
' ' (no value)
No value means that the update takes place. This is the standard settingand corresponds to the normal expectations of the calling program.
'X'
This value means that this BAPI is called in simulation mode only andthat no update takes place during the call.
Trados = TR

Description
A parameter for transferring the values of the FX transaction for theBAPI methods of the business object FX transaction in hedge accounting(BUS5106).
The transaction is assigned to a specific exposure in hedge accountingusing the EXPOSURE_ID component. If the EXPOSURE_ID component isinitial, then a new FX exposure is created for the transaction. Theexposure ID is assigned automatically by the system. If the Exposure_IDis not initial, then the EXPOSURE_ID must already exist. The newlycreated transaction is assigned to this exposure.
The TRANSACTION_ORIGIN field remains initial. It is only filled byexposure management to recognize that the FX transaction in hedgemanagement comes from exposure management.
Refer to the relevant data element documentation in the ABAP dictionaryfor information about the remaining parameter fields.

Description
A parameter for transferring the FX transaction ID for the BAPI methodsof the business object FX transaction in hedge accouting (BUS5106). Ifthe parameter is initial, the ID is assigned internally.
This parameter implements the key field of the business object with thesame name.

Description
Compare the documentation on CREATE-BAPI for the business object HedgePlan (BUS5105).