ABAP Select data from SAP table THXS_DETAILED_LOG into internal table

Get Example source ABAP code based on a different SAP table
  

Below is a number of ABAP code snippets to demonstrate how to select data from SAP THXS_DETAILED_LOG table and store it within an internal table, including using the newer @DATA inline declaration methods. It also shows you various ways to process this data using ABAP work area, inline declaration or field symbols including executing all the relevant CONVERSION_EXIT routines specific to THXS_DETAILED_LOG. See here for more generic Select statement tips.

Sometimes data within SAP is stored within the database table in a different format to what it is displayed to the user. These input/output conversation FM routines are what translates the data between the two formats.

There is also a full declaration of the THXS_DETAILED_LOG table where each field has a char/string type for you to simply copy and paste. This allows you to use processing that is only available to these field types such as the CONCATENATE statement.

DATA: IT_THXS_DETAILED_LOG TYPE STANDARD TABLE OF THXS_DETAILED_LOG,
      WA_THXS_DETAILED_LOG TYPE THXS_DETAILED_LOG,
      GD_STR TYPE STRING.

DATA: lo_typedescr type REF TO cl_abap_typedescr.
DATA: lv_fieldname type fieldname.

FIELD-SYMBOLS: <FIELD> TYPE any.
FIELD-SYMBOLS: <THXS_DETAILED_LOG> TYPE THXS_DETAILED_LOG.

*Process all fields in table header/work area as string values
  PERFORM process_as_string_field_values CHANGING wa_THXS_DETAILED_LOG.

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM THXS_DETAILED_LOG
  INTO TABLE IT_THXS_DETAILED_LOG.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM THXS_DETAILED_LOG
*  INTO TABLE @DATA(IT_THXS_DETAILED_LOG2).
*--Further methods of using ABAP code to  select data from SAP database tables

*You can also declare the header/work area using the in-line DATA declaration method
READ TABLE IT_THXS_DETAILED_LOG INDEX 1 INTO DATA(WA_THXS_DETAILED_LOG2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_THXS_DETAILED_LOG ASSIGNING <THXS_DETAILED_LOG>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<THXS_DETAILED_LOG>-POS_ID = 1.
<THXS_DETAILED_LOG>-COMPANY_CODE = 1.
<THXS_DETAILED_LOG>-VALUATION_AREA = 1.
<THXS_DETAILED_LOG>-PRODUCT_TYPE = 1.
<THXS_DETAILED_LOG>-HREL_NUMBER = 1.
ENDLOOP.

LOOP AT IT_THXS_DETAILED_LOG INTO WA_THXS_DETAILED_LOG.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_THXS_DETAILED_LOG-FISCAL_YEAR, sy-vline,
WA_THXS_DETAILED_LOG-HREL_SCENARIO, sy-vline,
WA_THXS_DETAILED_LOG-HREL_CATEGORY, sy-vline,
WA_THXS_DETAILED_LOG-HINST_TRANSACTION_ID, sy-vline,
WA_THXS_DETAILED_LOG-HITEM_TRANSACTION_ID, sy-vline,
WA_THXS_DETAILED_LOG-HACC_RULE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_THXS_DETAILED_LOG you want to display... WRITE:/ sy-uline. * Aternatively use generic code to Write field values (and NAME) to screen report DO. ASSIGN COMPONENT sy-index OF STRUCTURE wa_THXS_DETAILED_LOG TO <field>. IF sy-subrc <> 0. EXIT. ENDIF. WRITE:/ 'Field Value', <field>, sy-vline. gd_str = <field> . lo_typedescr ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_DATA( <field> ). lv_fieldname = lo_typedescr->GET_RELATIVE_NAME( ). WRITE:/ 'Field Name', lv_fieldname. ENDDO. *Redo loop but convert all fields from internal to out value LOOP AT IT_THXS_DETAILED_LOG INTO WA_THXS_DETAILED_LOG. *Write horizonal line to screen report. WRITE:/ sy-uline. *Convert all fields to display/output versions using conversion routines PERFORM convert_all_field_values CHANGING wa_EKKO. ENDLOOP. *&---------------------------------------------------------------------* *& Form convert_all_field_values *&---------------------------------------------------------------------* FORM convert_all_field_values CHANGING p_EKKO LIKE wa_EKKO. DATA: ld_input(1000) TYPE c, ld_output(1000) TYPE C.

*Conversion exit ALPHA, internal->external for field HREL_NUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_THXS_DETAILED_LOG-HREL_NUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_THXS_DETAILED_LOG-HREL_NUMBER.
WRITE:/ 'New Value:', ld_input.

*Conversion exit GJAHR, internal->external for field FISCAL_YEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_THXS_DETAILED_LOG-FISCAL_YEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_THXS_DETAILED_LOG-FISCAL_YEAR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field HINST_TRANSACTION_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_THXS_DETAILED_LOG-HINST_TRANSACTION_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_THXS_DETAILED_LOG-HINST_TRANSACTION_ID.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field HITEM_TRANSACTION_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_THXS_DETAILED_LOG-HITEM_TRANSACTION_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_THXS_DETAILED_LOG-HITEM_TRANSACTION_ID.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field EXPOSURE_ITEM CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_THXS_DETAILED_LOG-EXPOSURE_ITEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_THXS_DETAILED_LOG-EXPOSURE_ITEM.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field EXPOSURE_SUBITEM CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_THXS_DETAILED_LOG-EXPOSURE_SUBITEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_THXS_DETAILED_LOG-EXPOSURE_SUBITEM.
WRITE:/ 'New Value:', ld_input.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_THXS_DETAILED_LOG_STR,
POS_ID TYPE STRING,
COMPANY_CODE TYPE STRING,
VALUATION_AREA TYPE STRING,
PRODUCT_TYPE TYPE STRING,
HREL_NUMBER TYPE STRING,
FISCAL_YEAR TYPE STRING,
HREL_SCENARIO TYPE STRING,
HREL_CATEGORY TYPE STRING,
HINST_TRANSACTION_ID TYPE STRING,
HITEM_TRANSACTION_ID TYPE STRING,
HACC_RULE TYPE STRING,
FX_OPTION_HACC_RULE TYPE STRING,
HRES_CALC_RULE TYPE STRING,
BUSTRANSCAT TYPE STRING,
BUSTRANSCAT_TEXT TYPE STRING,
EXPOSURE_ITEM TYPE STRING,
EXPOSURE_SUBITEM TYPE STRING,
CLASS_KEYDATE TYPE STRING,
CALC_FOR_UNDERL_PRODUCT_CAT TYPE STRING,
1300_VALUATION_CURRENCY TYPE STRING,
1300_POSITION_CURRENCY TYPE STRING,
1300_VALUATION_AMOUNT TYPE STRING,
1300_POSITION_AMOUNT TYPE STRING,
1302_VALUATION_AMOUNT TYPE STRING,
1322_VALUATION_AMOUNT TYPE STRING,
1323_VALUATION_AMOUNT TYPE STRING,
1333_VALUATION_AMOUNT TYPE STRING,
1303_VALUATION_AMOUNT TYPE STRING,
1324_VALUATION_AMOUNT TYPE STRING,
1343_VALUATION_AMOUNT TYPE STRING,
1334_VALUATION_AMOUNT TYPE STRING,
1344_VALUATION_AMOUNT TYPE STRING,
HITEM_PROPORTION TYPE STRING,
HINST_PROPORTION TYPE STRING,
SPOT_HITEM_NPV_DES_DATE TYPE STRING,
FWD_HITEM_NPV_DES_DATE TYPE STRING,
CCBS_HITEM_NPV_DES_DATE TYPE STRING,
OCI1_COMP1_HITEM_NPV_DES_DATE TYPE STRING,
OCI1_COMP2_HITEM_NPV_DES_DATE TYPE STRING,
OCI1_COMP3_HITEM_NPV_DES_DATE TYPE STRING,
OCI1_HITEM_NPV_DES_DATE TYPE STRING,
OCI1_HITEM_NPV_DES_DATE_F TYPE STRING,
OCI2_COMP1_HITEM_NPV_DES_DATE TYPE STRING,
OCI2_COMP2_HITEM_NPV_DES_DATE TYPE STRING,
OCI2_COMP3_HITEM_NPV_DES_DATE TYPE STRING,
OCI2_COMP4_HITEM_NPV_DES_DATE TYPE STRING,
OCI2_HITEM_NPV_DES_DATE TYPE STRING,
OCI2_HITEM_NPV_DES_DATE_F TYPE STRING,
SPOT_HINST_NPV_DES_DATE TYPE STRING,
FWD_HINST_NPV_DES_DATE TYPE STRING,
CCBS_HINST_NPV_DES_DATE TYPE STRING,
OCI1_COMP1_HINST_NPV_DES_DATE TYPE STRING,
OCI1_COMP2_HINST_NPV_DES_DATE TYPE STRING,
OCI1_COMP3_HINST_NPV_DES_DATE TYPE STRING,
OCI1_COMP4_HINST_NPV_DES_DATE TYPE STRING,
OCI1_HINST_NPV_DES_DATE TYPE STRING,
OCI1_HINST_NPV_DES_DATE_F TYPE STRING,
OCI2_COMP1_HINST_NPV_DES_DATE TYPE STRING,
OCI2_COMP2_HINST_NPV_DES_DATE TYPE STRING,
OCI2_COMP3_HINST_NPV_DES_DATE TYPE STRING,
OCI2_COMP4_HINST_NPV_DES_DATE TYPE STRING,
OCI2_HINST_NPV_DES_DATE TYPE STRING,
OCI2_HINST_NPV_DES_DATE_F TYPE STRING,
SPOT_HITEM_NPV_VAL_DATE TYPE STRING,
FWD_HITEM_NPV_VAL_DATE TYPE STRING,
CCBS_HITEM_NPV_VAL_DATE TYPE STRING,
OCI1_COMP1_HITEM_NPV_VAL_DATE TYPE STRING,
OCI1_COMP2_HITEM_NPV_VAL_DATE TYPE STRING,
OCI1_COMP3_HITEM_NPV_VAL_DATE TYPE STRING,
OCI1_HITEM_NPV_VAL_DATE TYPE STRING,
OCI1_HITEM_NPV_VAL_DATE_F TYPE STRING,
OCI2_COMP1_HITEM_NPV_VAL_DATE TYPE STRING,
OCI2_COMP2_HITEM_NPV_VAL_DATE TYPE STRING,
OCI2_COMP3_HITEM_NPV_VAL_DATE TYPE STRING,
OCI2_HITEM_NPV_VAL_DATE TYPE STRING,
OCI2_HITEM_NPV_VAL_DATE_F TYPE STRING,
SPOT_HINST_NPV_VAL_DATE TYPE STRING,
FWD_HINST_NPV_VAL_DATE TYPE STRING,
CCBS_HINST_NPV_VAL_DATE TYPE STRING,
OCI1_COMP1_HINST_NPV_VAL_DATE TYPE STRING,
OCI1_COMP2_HINST_NPV_VAL_DATE TYPE STRING,
OCI1_COMP3_HINST_NPV_VAL_DATE TYPE STRING,
OCI1_COMP4_HINST_NPV_VAL_DATE TYPE STRING,
OCI1_HINST_NPV_VAL_DATE TYPE STRING,
OCI1_HINST_NPV_VAL_DATE_F TYPE STRING,
OCI2_COMP1_HINST_NPV_VAL_DATE TYPE STRING,
OCI2_COMP2_HINST_NPV_VAL_DATE TYPE STRING,
OCI2_COMP3_HINST_NPV_VAL_DATE TYPE STRING,
OCI2_HINST_NPV_VAL_DATE TYPE STRING,
OCI2_HINST_NPV_VAL_DATE_F TYPE STRING,
OCI1_HITEM_TOTAL_CHANGE TYPE STRING,
OCI1_HINST_TOTAL_CHANGE TYPE STRING,
OCI2_HITEM_TOTAL_CHANGE TYPE STRING,
OCI2_HINST_TOTAL_CHANGE TYPE STRING,
OCI1_VALUATION_AMOUNT TYPE STRING,
INEFF1_VALUATION_AMOUNT TYPE STRING,
OCI2_VALUATION_AMOUNT TYPE STRING,
INEFF2_VALUATION_AMOUNT TYPE STRING,
OCI1_VALUATION_POSTED_AMOUNT TYPE STRING,
INEFF1_VALUATION_POSTED_AMOUNT TYPE STRING,
OCI2_VALUATION_POSTED_AMOUNT TYPE STRING,
INEFF2_VALUATION_POSTED_AMOUNT TYPE STRING,
PROFIT_LOSS_VALUATION_AMOUNT TYPE STRING,
TOTAL_TOBE_AMORTIZED_AMOUNT TYPE STRING,
DESIGNATION_DATE TYPE STRING,
MATURITY_DATE TYPE STRING,
DAYS_TO_CLASS_DATE TYPE STRING,
DAYS_TO_MATURITY TYPE STRING,
AMORTIZATION_AMOUNT TYPE STRING,
AMORTIZATION_AMOUNT_F TYPE STRING,
PREV_AMORTIZATION_AMOUNT TYPE STRING,
AMORTIZATION_POSTED_AMOUNT TYPE STRING,
OCI2_POSTING_RULE TYPE STRING,
OCI2_POSTED_AMOUNT_FROM_AMORT TYPE STRING,END OF T_EKKO_STR. DATA: WA_THXS_DETAILED_LOG_STR type T_EKKO_STR. DATA: ld_text TYPE string. LOOP AT IT_EKKO INTO WA_EKKO. MOVE-CORRESPONDING wa_EKKO TO WA_EKKO_STR. CONCATENATE: sy-vline
WA_THXS_DETAILED_LOG_STR-POS_ID sy-vline
WA_THXS_DETAILED_LOG_STR-COMPANY_CODE sy-vline
WA_THXS_DETAILED_LOG_STR-VALUATION_AREA sy-vline
WA_THXS_DETAILED_LOG_STR-PRODUCT_TYPE sy-vline
WA_THXS_DETAILED_LOG_STR-HREL_NUMBER sy-vline
WA_THXS_DETAILED_LOG_STR-FISCAL_YEAR sy-vline
WA_THXS_DETAILED_LOG_STR-HREL_SCENARIO sy-vline
WA_THXS_DETAILED_LOG_STR-HREL_CATEGORY sy-vline
WA_THXS_DETAILED_LOG_STR-HINST_TRANSACTION_ID sy-vline
WA_THXS_DETAILED_LOG_STR-HITEM_TRANSACTION_ID sy-vline
WA_THXS_DETAILED_LOG_STR-HACC_RULE sy-vline
WA_THXS_DETAILED_LOG_STR-FX_OPTION_HACC_RULE sy-vline
WA_THXS_DETAILED_LOG_STR-HRES_CALC_RULE sy-vline
WA_THXS_DETAILED_LOG_STR-BUSTRANSCAT sy-vline
WA_THXS_DETAILED_LOG_STR-BUSTRANSCAT_TEXT sy-vline
WA_THXS_DETAILED_LOG_STR-EXPOSURE_ITEM sy-vline
WA_THXS_DETAILED_LOG_STR-EXPOSURE_SUBITEM sy-vline
WA_THXS_DETAILED_LOG_STR-CLASS_KEYDATE sy-vline
WA_THXS_DETAILED_LOG_STR-CALC_FOR_UNDERL_PRODUCT_CAT sy-vline
WA_THXS_DETAILED_LOG_STR-1300_VALUATION_CURRENCY sy-vline
WA_THXS_DETAILED_LOG_STR-1300_POSITION_CURRENCY sy-vline
WA_THXS_DETAILED_LOG_STR-1300_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1300_POSITION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1302_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1322_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1323_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1333_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1303_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1324_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1343_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1334_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-1344_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-HITEM_PROPORTION sy-vline
WA_THXS_DETAILED_LOG_STR-HINST_PROPORTION sy-vline
WA_THXS_DETAILED_LOG_STR-SPOT_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-FWD_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-CCBS_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP1_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP2_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP3_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HITEM_NPV_DES_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP1_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP2_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP3_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP4_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HITEM_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HITEM_NPV_DES_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-SPOT_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-FWD_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-CCBS_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP1_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP2_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP3_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP4_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HINST_NPV_DES_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP1_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP2_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP3_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP4_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HINST_NPV_DES_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HINST_NPV_DES_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-SPOT_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-FWD_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-CCBS_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP1_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP2_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP3_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HITEM_NPV_VAL_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP1_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP2_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP3_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HITEM_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HITEM_NPV_VAL_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-SPOT_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-FWD_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-CCBS_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP1_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP2_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP3_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_COMP4_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HINST_NPV_VAL_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP1_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP2_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_COMP3_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HINST_NPV_VAL_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HINST_NPV_VAL_DATE_F sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HITEM_TOTAL_CHANGE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_HINST_TOTAL_CHANGE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HITEM_TOTAL_CHANGE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_HINST_TOTAL_CHANGE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-INEFF1_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-INEFF2_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-OCI1_VALUATION_POSTED_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-INEFF1_VALUATION_POSTED_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_VALUATION_POSTED_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-INEFF2_VALUATION_POSTED_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-PROFIT_LOSS_VALUATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-TOTAL_TOBE_AMORTIZED_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-DESIGNATION_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-MATURITY_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-DAYS_TO_CLASS_DATE sy-vline
WA_THXS_DETAILED_LOG_STR-DAYS_TO_MATURITY sy-vline
WA_THXS_DETAILED_LOG_STR-AMORTIZATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-AMORTIZATION_AMOUNT_F sy-vline
WA_THXS_DETAILED_LOG_STR-PREV_AMORTIZATION_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-AMORTIZATION_POSTED_AMOUNT sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_POSTING_RULE sy-vline
WA_THXS_DETAILED_LOG_STR-OCI2_POSTED_AMOUNT_FROM_AMORT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.