PREPARE_SINGLE_RECORD SAP Method Prepares Single Profit Record
Below is documentation, parameters and attributes of ABAP Method PREPARE_SINGLE_RECORD within SAP class /EACA/CL_BTA_PROFIT_PROCESS. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /EACA/CL_BTA_PROFIT_PROCESS into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method PREPARE_SINGLE_RECORD can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method PREPARE_SINGLE_RECORD
.| Name | Type | Data Type | Description | Default Value |
| IO_ACC_DOC | Importing | TYPE REF TO /EACC/IF_DOCUMENT | Document Initial Screen | |
| IO_ACC_LINE_ITEMS_ROOT | Importing | TYPE REF TO /EACC/IF_LINE_ITEMS_ROOT | Document Line Initial Screen | |
| IO_CHARS_STRUCT_HEADER | Importing | TYPE REF TO CL_FINB_KF_CHARS_STRUCTURE | Characteristic Vector | |
| IO_CHARS_STRUCT_RECORD | Importing | TYPE REF TO CL_FINB_KF_CHARS_STRUCTURE | Characteristic Vector | |
| IS_DESCRIPTION | Importing | TYPE /EACA/BTA_INPUT_DESCRIPTION | BTA Profit: Structure for Description of Input Data | |
| CB_ERROR_OCCURED | Changing | TYPE /EACC/BOOLEAN | Boolean Type for e-Accounting |
Exceptions of Method PREPARE_SINGLE_RECORD
/EACC/CX_PROCESS_ERROR - Processing Cannot Be ContinuedExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO /EACA/CL_BTA_PROFIT_PROCESS.
DATA: lv_CB_ERROR_OCCURED TYPE /EACC/BOOLEAN,
lv_IO_ACC_DOC TYPE /EACC/IF_DOCUMENT,
lv_IO_ACC_LINE_ITEMS_ROOT TYPE /EACC/IF_LINE_ITEMS_ROOT,
lv_IO_CHARS_STRUCT_HEADER TYPE CL_FINB_KF_CHARS_STRUCTURE,
lv_IO_CHARS_STRUCT_RECORD TYPE CL_FINB_KF_CHARS_STRUCTURE,
lv_IS_DESCRIPTION TYPE /EACA/BTA_INPUT_DESCRIPTION,
lv_other TYPE c.
CALL METHOD lo_class=>PREPARE_SINGLE_RECORD(
EXPORTING
IO_ACC_DOC = lv_IO_ACC_DOC
IO_ACC_LINE_ITEMS_ROOT = lv_IO_ACC_LINE_ITEMS_ROOT
IO_CHARS_STRUCT_HEADER = lv_IO_CHARS_STRUCT_HEADER
IO_CHARS_STRUCT_RECORD = lv_IO_CHARS_STRUCT_RECORD
IS_DESCRIPTION = lv_IS_DESCRIPTION
CHANGING
CB_ERROR_OCCURED = lv_CB_ERROR_OCCURED ).
Links to Related Class(s)
/EACA/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects