ABAP Select data from SAP table BAPI_INSOBJECT_P_DISPLAY 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 BAPI_INSOBJECT_P_DISPLAY 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 BAPI_INSOBJECT_P_DISPLAY. 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 BAPI_INSOBJECT_P_DISPLAY 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_BAPI_INSOBJECT_P_DISPLAY TYPE STANDARD TABLE OF BAPI_INSOBJECT_P_DISPLAY,
      WA_BAPI_INSOBJECT_P_DISPLAY TYPE BAPI_INSOBJECT_P_DISPLAY,
      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: <BAPI_INSOBJECT_P_DISPLAY> TYPE BAPI_INSOBJECT_P_DISPLAY.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM BAPI_INSOBJECT_P_DISPLAY
*  INTO TABLE @DATA(IT_BAPI_INSOBJECT_P_DISPLAY2).
*--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_BAPI_INSOBJECT_P_DISPLAY INDEX 1 INTO DATA(WA_BAPI_INSOBJECT_P_DISPLAY2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_BAPI_INSOBJECT_P_DISPLAY ASSIGNING <BAPI_INSOBJECT_P_DISPLAY>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<BAPI_INSOBJECT_P_DISPLAY>-PARTNER = 1.
<BAPI_INSOBJECT_P_DISPLAY>-ACCOUNT = 1.
<BAPI_INSOBJECT_P_DISPLAY>-ACCOUNT_CATEGORY = 1.
<BAPI_INSOBJECT_P_DISPLAY>-IND_PAYMENT_PARAM_ACTIVE = 1.
<BAPI_INSOBJECT_P_DISPLAY>-ADDR_PARTNER = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_BAPI_INSOBJECT_P_DISPLAY-PART_PAID_BY, sy-vline,
WA_BAPI_INSOBJECT_P_DISPLAY-ACCT_PAID_BY, sy-vline,
WA_BAPI_INSOBJECT_P_DISPLAY-PAYMENT_METHOD_INC, sy-vline,
WA_BAPI_INSOBJECT_P_DISPLAY-ALTERNATE_PAYER, sy-vline,
WA_BAPI_INSOBJECT_P_DISPLAY-ADDR_ALTERNATE_PAYER, sy-vline,
WA_BAPI_INSOBJECT_P_DISPLAY-BANK_ID_INC, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BAPI_INSOBJECT_P_DISPLAY 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_BAPI_INSOBJECT_P_DISPLAY 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_BAPI_INSOBJECT_P_DISPLAY INTO WA_BAPI_INSOBJECT_P_DISPLAY. *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 PARTNER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BAPI_INSOBJECT_P_DISPLAY-PARTNER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BAPI_INSOBJECT_P_DISPLAY-PARTNER.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field COLLECTION_CONTACTPERSON CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BAPI_INSOBJECT_P_DISPLAY-COLLECTION_CONTACTPERSON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BAPI_INSOBJECT_P_DISPLAY-COLLECTION_CONTACTPERSON.
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_BAPI_INSOBJECT_P_DISPLAY_STR,
PARTNER TYPE STRING,
ACCOUNT TYPE STRING,
ACCOUNT_CATEGORY TYPE STRING,
IND_PAYMENT_PARAM_ACTIVE TYPE STRING,
ADDR_PARTNER TYPE STRING,
PART_PAID_BY TYPE STRING,
ACCT_PAID_BY TYPE STRING,
PAYMENT_METHOD_INC TYPE STRING,
ALTERNATE_PAYER TYPE STRING,
ADDR_ALTERNATE_PAYER TYPE STRING,
BANK_ID_INC TYPE STRING,
CARD_ID_INC TYPE STRING,
PAYMENT_METHOD_OUT TYPE STRING,
ALTERNATE_PAYEE TYPE STRING,
ADDR_ALTERNATE_PAYEE TYPE STRING,
BANK_ID_OUT TYPE STRING,
CARD_ID_OUT TYPE STRING,
MULT_ALTPAYTREC TYPE STRING,
OUTG_ALLOCTYPE TYPE STRING,
CLEARING_ACCOUNT TYPE STRING,
VARIABLE_CLEARING TYPE STRING,
CM_PLANNING_GROUP TYPE STRING,
CM_EXTRA_DAYS TYPE STRING,
DUNNING_VARIANT TYPE STRING,
INTEREST_KEY TYPE STRING,
INTEREST_CALC_TO TYPE STRING,
INTEREST_BASE_PERIOD TYPE STRING,
INTEREST_BASE_DAYS TYPE STRING,
OWN_BANK_DETAILS TYPE STRING,
PAYMENT_OPTION_KEY TYPE STRING,
PAYMENT_PLAN_KEY TYPE STRING,
PAYMENT_PLAN_VALID_FROM TYPE STRING,
PAYMENT_PLAN_VALID_FROM_TIME TYPE STRING,
PPLAN_GROUPING TYPE STRING,
PPLAN_SUMMARIZATION TYPE STRING,
PPLAN_DEFERRAL_BASE_PERIOD TYPE STRING,
PPLAN_DEFERRAL_BASE_DAYS TYPE STRING,
PPLAN_PLANNING_GROUP TYPE STRING,
PPLAN_EXTRA_DAYS TYPE STRING,
PPLAN_RESERVE_ON_ACCOUNT TYPE STRING,
PPLAN_ALGORITHM_KEY TYPE STRING,
IND_CORRESP_PARAM_ACTIVE TYPE STRING,
CORRESPONDENCE_VARIANT TYPE STRING,
INVOICE_TYPE TYPE STRING,
INVOICE_BASE_DATE TYPE STRING,
ALTERNATE_CORRESP_RECIPIENT TYPE STRING,
CORRESP_ACTIVITY_ID TYPE STRING,
COLL_INVOICE_ACCT TYPE STRING,
COLL_INVOICE_PARTNER TYPE STRING,
CORRESP_DUNNING_PROCEDURE TYPE STRING,
CLAIMS_REF_INSOBJECT TYPE STRING,
CLAIMS_REF_PARTNER TYPE STRING,
IND_ARCHIVE TYPE STRING,
AUTHORIZATIONGROUP TYPE STRING,
USERNAME_CREATE TYPE STRING,
USERNAME_BUSINESS_CREATE TYPE STRING,
DATE_CREATE TYPE STRING,
USERNAME_LASTCHANGE TYPE STRING,
USERNAME_BUSINESS_LASTCHANGE TYPE STRING,
DATE_LASTCHANGE TYPE STRING,
COLLECTION_GROUP TYPE STRING,
COLLECTION_STRATEGY TYPE STRING,
COLLECTION_CONTACTPERSON TYPE STRING,
W_TAX_CODE_IN TYPE STRING,
W_TAX_CODE_OUT TYPE STRING,
SEPA_MANDATE_ID TYPE STRING,END OF T_EKKO_STR. DATA: WA_BAPI_INSOBJECT_P_DISPLAY_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_BAPI_INSOBJECT_P_DISPLAY_STR-PARTNER sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ACCOUNT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ACCOUNT_CATEGORY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-IND_PAYMENT_PARAM_ACTIVE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ADDR_PARTNER sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PART_PAID_BY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ACCT_PAID_BY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PAYMENT_METHOD_INC sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ALTERNATE_PAYER sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ADDR_ALTERNATE_PAYER sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-BANK_ID_INC sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CARD_ID_INC sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PAYMENT_METHOD_OUT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ALTERNATE_PAYEE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ADDR_ALTERNATE_PAYEE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-BANK_ID_OUT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CARD_ID_OUT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-MULT_ALTPAYTREC sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-OUTG_ALLOCTYPE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CLEARING_ACCOUNT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-VARIABLE_CLEARING sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CM_PLANNING_GROUP sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CM_EXTRA_DAYS sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-DUNNING_VARIANT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-INTEREST_KEY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-INTEREST_CALC_TO sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-INTEREST_BASE_PERIOD sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-INTEREST_BASE_DAYS sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-OWN_BANK_DETAILS sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PAYMENT_OPTION_KEY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PAYMENT_PLAN_KEY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PAYMENT_PLAN_VALID_FROM sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PAYMENT_PLAN_VALID_FROM_TIME sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_GROUPING sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_SUMMARIZATION sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_DEFERRAL_BASE_PERIOD sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_DEFERRAL_BASE_DAYS sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_PLANNING_GROUP sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_EXTRA_DAYS sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_RESERVE_ON_ACCOUNT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-PPLAN_ALGORITHM_KEY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-IND_CORRESP_PARAM_ACTIVE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CORRESPONDENCE_VARIANT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-INVOICE_TYPE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-INVOICE_BASE_DATE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-ALTERNATE_CORRESP_RECIPIENT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CORRESP_ACTIVITY_ID sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-COLL_INVOICE_ACCT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-COLL_INVOICE_PARTNER sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CORRESP_DUNNING_PROCEDURE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CLAIMS_REF_INSOBJECT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-CLAIMS_REF_PARTNER sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-IND_ARCHIVE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-AUTHORIZATIONGROUP sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-USERNAME_CREATE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-USERNAME_BUSINESS_CREATE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-DATE_CREATE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-USERNAME_LASTCHANGE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-USERNAME_BUSINESS_LASTCHANGE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-DATE_LASTCHANGE sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-COLLECTION_GROUP sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-COLLECTION_STRATEGY sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-COLLECTION_CONTACTPERSON sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-W_TAX_CODE_IN sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-W_TAX_CODE_OUT sy-vline
WA_BAPI_INSOBJECT_P_DISPLAY_STR-SEPA_MANDATE_ID sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.