ABAP Select data from SAP table EIAC_ENROLLMENT 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 EIAC_ENROLLMENT 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 EIAC_ENROLLMENT. 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 EIAC_ENROLLMENT 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_EIAC_ENROLLMENT TYPE STANDARD TABLE OF EIAC_ENROLLMENT,
      WA_EIAC_ENROLLMENT TYPE EIAC_ENROLLMENT,
      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: <EIAC_ENROLLMENT> TYPE EIAC_ENROLLMENT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM EIAC_ENROLLMENT
*  INTO TABLE @DATA(IT_EIAC_ENROLLMENT2).
*--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_EIAC_ENROLLMENT INDEX 1 INTO DATA(WA_EIAC_ENROLLMENT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_EIAC_ENROLLMENT ASSIGNING <EIAC_ENROLLMENT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<EIAC_ENROLLMENT>-PARTNER = 1.
<EIAC_ENROLLMENT>-VKONT = 1.
<EIAC_ENROLLMENT>-SMTP_ADDR = 1.
<EIAC_ENROLLMENT>-TITLE_KEY = 1.
<EIAC_ENROLLMENT>-PAY_NOCHANGE = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_EIAC_ENROLLMENT-PAY_BILL, sy-vline,
WA_EIAC_ENROLLMENT-PAY_BANK, sy-vline,
WA_EIAC_ENROLLMENT-PAY_CREDITCARD, sy-vline,
WA_EIAC_ENROLLMENT-PAY_METHODIN, sy-vline,
WA_EIAC_ENROLLMENT-PAY_METHODOUT, sy-vline,
WA_EIAC_ENROLLMENT-PRODID, sy-vline.
ENDLOOP. *Add any further fields from structure WA_EIAC_ENROLLMENT 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_EIAC_ENROLLMENT 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_EIAC_ENROLLMENT INTO WA_EIAC_ENROLLMENT. *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_EIAC_ENROLLMENT-PARTNER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EIAC_ENROLLMENT-PARTNER.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit SXIDN, internal->external for field SMTP_ADDR CALL FUNCTION 'CONVERSION_EXIT_SXIDN_OUTPUT' EXPORTING input = WA_EIAC_ENROLLMENT-SMTP_ADDR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EIAC_ENROLLMENT-SMTP_ADDR.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit ISOLA, internal->external for field CORRESPONDLANGUAGE CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_EIAC_ENROLLMENT-CORRESPONDLANGUAGE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EIAC_ENROLLMENT-CORRESPONDLANGUAGE.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ISOLA, internal->external for field PARTNERLANGUAGE CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_EIAC_ENROLLMENT-PARTNERLANGUAGE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EIAC_ENROLLMENT-PARTNERLANGUAGE.
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_EIAC_ENROLLMENT_STR,
PARTNER TYPE STRING,
VKONT TYPE STRING,
SMTP_ADDR TYPE STRING,
TITLE_KEY TYPE STRING,
PAY_NOCHANGE TYPE STRING,
PAY_BILL TYPE STRING,
PAY_BANK TYPE STRING,
PAY_CREDITCARD TYPE STRING,
PAY_METHODIN TYPE STRING,
PAY_METHODOUT TYPE STRING,
PRODID TYPE STRING,
SERVICEID TYPE STRING,
SRVPRVREF TYPE STRING,
MOVEINDATE TYPE STRING,
MOVEOUTDATE TYPE STRING,
CLERK_VIEW TYPE STRING,
CLERK_CHECKED TYPE STRING,
OUTOFADDRRANGE TYPE STRING,
LOADREGIONSOF TYPE STRING,
DONTLOADPROVKEYS TYPE STRING,
FIELDNAME TYPE STRING,
DONTIDENTIFYCONNOBJ TYPE STRING,
MR_DATA TYPE STRING,
ALREADYMOVEDOUT TYPE STRING,
BPKIND TYPE STRING,
BP_EXT TYPE STRING,
BU_SORT1 TYPE STRING,
BU_SORT2 TYPE STRING,
SOURCE TYPE STRING,
TITLE TYPE STRING,
MARKED_FOR_DEL TYPE STRING,
BLOCKED TYPE STRING,
AUTH_GROUP TYPE STRING,
NAME_ORG1 TYPE STRING,
NAME_ORG2 TYPE STRING,
NAME_ORG3 TYPE STRING,
NAME_ORG4 TYPE STRING,
LEGAL_ENTY TYPE STRING,
IND_SECTOR TYPE STRING,
NAME_LAST TYPE STRING,
NAME_FIRST TYPE STRING,
NAME_LAST2 TYPE STRING,
TITLE_ACA1 TYPE STRING,
TITLE_ACA2 TYPE STRING,
TITLE_ROYL TYPE STRING,
PREFIX1 TYPE STRING,
PREFIX2 TYPE STRING,
NAME1_TEXT TYPE STRING,
NICKNAME TYPE STRING,
SEX_M TYPE STRING,
SEX_F TYPE STRING,
BIRTHDATE TYPE STRING,
BIRTH_PLACE TYPE STRING,
DEATH_DATE TYPE STRING,
PERS_NUMB TYPE STRING,
MARRIAGE_STATE TYPE STRING,
EMPLO TYPE STRING,
JOB_GROUP TYPE STRING,
NATIO TYPE STRING,
COUNTRY_TAX TYPE STRING,
COUNTRY_TAX_ISO TYPE STRING,
COUNTRY_DSC TYPE STRING,
COUNTRY_DSC_ISO TYPE STRING,
PARTGRPTYP TYPE STRING,
NAME_GRP1 TYPE STRING,
NAME_GRP2 TYPE STRING,
LEG_TYPE TYPE STRING,
LEG_NUMB TYPE STRING,
INFCT TYPE STRING,
COM_REG TYPE STRING,
ASS_REG TYPE STRING,
COOP_REG TYPE STRING,
MAN_CRED_WORTH TYPE STRING,
DATE_MAN_CRED_WORTH TYPE STRING,
NAME1 TYPE STRING,
NAME2 TYPE STRING,
EMPL_CLASS TYPE STRING,
ISTALL_COMP TYPE STRING,
COMP_WORK_FIELD TYPE STRING,
MEM_SHIP_INST TYPE STRING,
DIV_LICENSE TYPE STRING,
INST_LIC_TYPE TYPE STRING,
NUMB_IDS TYPE STRING,
SEAL_PLIER TYPE STRING,
MAIN_UTIL_COMP TYPE STRING,
STATUS_INST TYPE STRING,
STATUS_DATE TYPE STRING,
INIT_LIC_DATE TYPE STRING,
WORKSHOP_INSP_DATE TYPE STRING,
LIC_RENEWAL_DATE TYPE STRING,
LIC_RENEWED_DATE TYPE STRING,
NUMB_UTIL_COMP TYPE STRING,
NUMB_BRANCHES TYPE STRING,
ID_NUMBER TYPE STRING,
DR_LICENSE_LAND1 TYPE STRING,
DR_LICENSE_REGIO TYPE STRING,
DR_LICENSE TYPE STRING,
SOC_SECURE TYPE STRING,
WELFARE TYPE STRING,
PLACE_EMPL TYPE STRING,
ACCOUNT_CLASS TYPE STRING,
NAMEMIDDLE TYPE STRING,
INITIALS TYPE STRING,
NAMEFORMAT TYPE STRING,
NAMCOUNTRY TYPE STRING,
PERS_NO TYPE STRING,
XSEXU TYPE STRING,
USERNAME TYPE STRING,
REGIOGROUP TYPE STRING,
PCODE1_EXT TYPE STRING,
PCODE2_EXT TYPE STRING,
PCODE3_EXT TYPE STRING,
BUPINFOREL TYPE STRING,
CLERK_ID TYPE STRING,
RECPTYPE TYPE STRING,
PMNT_METH TYPE STRING,
BK_DETAILS TYPE STRING,
G_L_ACCT TYPE STRING,
TITLELETTER TYPE STRING,
CONTACTALLOWANCE TYPE STRING,
LEGALORG TYPE STRING,
BIRTHNAME TYPE STRING,
MIDDLENAME TYPE STRING,
CORRESPONDLANGUAGE TYPE STRING,
CORRESPONDLANGUAGE_ISO TYPE STRING,
PARTNERLANGUAGE TYPE STRING,
PARTNERLANGUAGE_ISO TYPE STRING,
NOTRELEASED TYPE STRING,
SECONDNAME TYPE STRING,
CLASSIFICATION TYPE STRING,
VIP TYPE STRING,
IDENT_INSTALLER TYPE STRING,
NATURALPERSON TYPE STRING,
GENDER TYPE STRING,
BKVID TYPE STRING,
BANK_CTRY TYPE STRING,
BANK_CTRY_ISO TYPE STRING,
BANK_KEY TYPE STRING,
BANK_ACCT TYPE STRING,
CTRL_KEY TYPE STRING,
BANK_REF TYPE STRING,
ACCOUNT_HOLDER TYPE STRING,
BANK_KEY_EXT TYPE STRING,
COLL_AUTH TYPE STRING,
BANKACCOUNTNAME TYPE STRING,
BANKDETAILVALIDFROM TYPE STRING,
BANKDETAILVALIDTO TYPE STRING,
BANKDETAILMOVEDATE TYPE STRING,
BANKDETAILMOVEID TYPE STRING,
BANK_ACCOUNT_TYPE TYPE STRING,
BANK_IBAN TYPE STRING,
CCARD_ID TYPE STRING,
CCARD_INSTITUTE TYPE STRING,
CCARD_NUMBER TYPE STRING,
CCARD_DEFAULT TYPE STRING,
CCARD_HOLDER TYPE STRING,
CCARD_FROMDATE TYPE STRING,
CCARD_TODATE TYPE STRING,
CCARD_EXP_DATE TYPE STRING,
CCARD_ISS_BANK TYPE STRING,
CCARD_CATEGORY TYPE STRING,
CCARD_REASON TYPE STRING,END OF T_EKKO_STR. DATA: WA_EIAC_ENROLLMENT_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_EIAC_ENROLLMENT_STR-PARTNER sy-vline
WA_EIAC_ENROLLMENT_STR-VKONT sy-vline
WA_EIAC_ENROLLMENT_STR-SMTP_ADDR sy-vline
WA_EIAC_ENROLLMENT_STR-TITLE_KEY sy-vline
WA_EIAC_ENROLLMENT_STR-PAY_NOCHANGE sy-vline
WA_EIAC_ENROLLMENT_STR-PAY_BILL sy-vline
WA_EIAC_ENROLLMENT_STR-PAY_BANK sy-vline
WA_EIAC_ENROLLMENT_STR-PAY_CREDITCARD sy-vline
WA_EIAC_ENROLLMENT_STR-PAY_METHODIN sy-vline
WA_EIAC_ENROLLMENT_STR-PAY_METHODOUT sy-vline
WA_EIAC_ENROLLMENT_STR-PRODID sy-vline
WA_EIAC_ENROLLMENT_STR-SERVICEID sy-vline
WA_EIAC_ENROLLMENT_STR-SRVPRVREF sy-vline
WA_EIAC_ENROLLMENT_STR-MOVEINDATE sy-vline
WA_EIAC_ENROLLMENT_STR-MOVEOUTDATE sy-vline
WA_EIAC_ENROLLMENT_STR-CLERK_VIEW sy-vline
WA_EIAC_ENROLLMENT_STR-CLERK_CHECKED sy-vline
WA_EIAC_ENROLLMENT_STR-OUTOFADDRRANGE sy-vline
WA_EIAC_ENROLLMENT_STR-LOADREGIONSOF sy-vline
WA_EIAC_ENROLLMENT_STR-DONTLOADPROVKEYS sy-vline
WA_EIAC_ENROLLMENT_STR-FIELDNAME sy-vline
WA_EIAC_ENROLLMENT_STR-DONTIDENTIFYCONNOBJ sy-vline
WA_EIAC_ENROLLMENT_STR-MR_DATA sy-vline
WA_EIAC_ENROLLMENT_STR-ALREADYMOVEDOUT sy-vline
WA_EIAC_ENROLLMENT_STR-BPKIND sy-vline
WA_EIAC_ENROLLMENT_STR-BP_EXT sy-vline
WA_EIAC_ENROLLMENT_STR-BU_SORT1 sy-vline
WA_EIAC_ENROLLMENT_STR-BU_SORT2 sy-vline
WA_EIAC_ENROLLMENT_STR-SOURCE sy-vline
WA_EIAC_ENROLLMENT_STR-TITLE sy-vline
WA_EIAC_ENROLLMENT_STR-MARKED_FOR_DEL sy-vline
WA_EIAC_ENROLLMENT_STR-BLOCKED sy-vline
WA_EIAC_ENROLLMENT_STR-AUTH_GROUP sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_ORG1 sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_ORG2 sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_ORG3 sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_ORG4 sy-vline
WA_EIAC_ENROLLMENT_STR-LEGAL_ENTY sy-vline
WA_EIAC_ENROLLMENT_STR-IND_SECTOR sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_LAST sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_FIRST sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_LAST2 sy-vline
WA_EIAC_ENROLLMENT_STR-TITLE_ACA1 sy-vline
WA_EIAC_ENROLLMENT_STR-TITLE_ACA2 sy-vline
WA_EIAC_ENROLLMENT_STR-TITLE_ROYL sy-vline
WA_EIAC_ENROLLMENT_STR-PREFIX1 sy-vline
WA_EIAC_ENROLLMENT_STR-PREFIX2 sy-vline
WA_EIAC_ENROLLMENT_STR-NAME1_TEXT sy-vline
WA_EIAC_ENROLLMENT_STR-NICKNAME sy-vline
WA_EIAC_ENROLLMENT_STR-SEX_M sy-vline
WA_EIAC_ENROLLMENT_STR-SEX_F sy-vline
WA_EIAC_ENROLLMENT_STR-BIRTHDATE sy-vline
WA_EIAC_ENROLLMENT_STR-BIRTH_PLACE sy-vline
WA_EIAC_ENROLLMENT_STR-DEATH_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-PERS_NUMB sy-vline
WA_EIAC_ENROLLMENT_STR-MARRIAGE_STATE sy-vline
WA_EIAC_ENROLLMENT_STR-EMPLO sy-vline
WA_EIAC_ENROLLMENT_STR-JOB_GROUP sy-vline
WA_EIAC_ENROLLMENT_STR-NATIO sy-vline
WA_EIAC_ENROLLMENT_STR-COUNTRY_TAX sy-vline
WA_EIAC_ENROLLMENT_STR-COUNTRY_TAX_ISO sy-vline
WA_EIAC_ENROLLMENT_STR-COUNTRY_DSC sy-vline
WA_EIAC_ENROLLMENT_STR-COUNTRY_DSC_ISO sy-vline
WA_EIAC_ENROLLMENT_STR-PARTGRPTYP sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_GRP1 sy-vline
WA_EIAC_ENROLLMENT_STR-NAME_GRP2 sy-vline
WA_EIAC_ENROLLMENT_STR-LEG_TYPE sy-vline
WA_EIAC_ENROLLMENT_STR-LEG_NUMB sy-vline
WA_EIAC_ENROLLMENT_STR-INFCT sy-vline
WA_EIAC_ENROLLMENT_STR-COM_REG sy-vline
WA_EIAC_ENROLLMENT_STR-ASS_REG sy-vline
WA_EIAC_ENROLLMENT_STR-COOP_REG sy-vline
WA_EIAC_ENROLLMENT_STR-MAN_CRED_WORTH sy-vline
WA_EIAC_ENROLLMENT_STR-DATE_MAN_CRED_WORTH sy-vline
WA_EIAC_ENROLLMENT_STR-NAME1 sy-vline
WA_EIAC_ENROLLMENT_STR-NAME2 sy-vline
WA_EIAC_ENROLLMENT_STR-EMPL_CLASS sy-vline
WA_EIAC_ENROLLMENT_STR-ISTALL_COMP sy-vline
WA_EIAC_ENROLLMENT_STR-COMP_WORK_FIELD sy-vline
WA_EIAC_ENROLLMENT_STR-MEM_SHIP_INST sy-vline
WA_EIAC_ENROLLMENT_STR-DIV_LICENSE sy-vline
WA_EIAC_ENROLLMENT_STR-INST_LIC_TYPE sy-vline
WA_EIAC_ENROLLMENT_STR-NUMB_IDS sy-vline
WA_EIAC_ENROLLMENT_STR-SEAL_PLIER sy-vline
WA_EIAC_ENROLLMENT_STR-MAIN_UTIL_COMP sy-vline
WA_EIAC_ENROLLMENT_STR-STATUS_INST sy-vline
WA_EIAC_ENROLLMENT_STR-STATUS_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-INIT_LIC_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-WORKSHOP_INSP_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-LIC_RENEWAL_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-LIC_RENEWED_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-NUMB_UTIL_COMP sy-vline
WA_EIAC_ENROLLMENT_STR-NUMB_BRANCHES sy-vline
WA_EIAC_ENROLLMENT_STR-ID_NUMBER sy-vline
WA_EIAC_ENROLLMENT_STR-DR_LICENSE_LAND1 sy-vline
WA_EIAC_ENROLLMENT_STR-DR_LICENSE_REGIO sy-vline
WA_EIAC_ENROLLMENT_STR-DR_LICENSE sy-vline
WA_EIAC_ENROLLMENT_STR-SOC_SECURE sy-vline
WA_EIAC_ENROLLMENT_STR-WELFARE sy-vline
WA_EIAC_ENROLLMENT_STR-PLACE_EMPL sy-vline
WA_EIAC_ENROLLMENT_STR-ACCOUNT_CLASS sy-vline
WA_EIAC_ENROLLMENT_STR-NAMEMIDDLE sy-vline
WA_EIAC_ENROLLMENT_STR-INITIALS sy-vline
WA_EIAC_ENROLLMENT_STR-NAMEFORMAT sy-vline
WA_EIAC_ENROLLMENT_STR-NAMCOUNTRY sy-vline
WA_EIAC_ENROLLMENT_STR-PERS_NO sy-vline
WA_EIAC_ENROLLMENT_STR-XSEXU sy-vline
WA_EIAC_ENROLLMENT_STR-USERNAME sy-vline
WA_EIAC_ENROLLMENT_STR-REGIOGROUP sy-vline
WA_EIAC_ENROLLMENT_STR-PCODE1_EXT sy-vline
WA_EIAC_ENROLLMENT_STR-PCODE2_EXT sy-vline
WA_EIAC_ENROLLMENT_STR-PCODE3_EXT sy-vline
WA_EIAC_ENROLLMENT_STR-BUPINFOREL sy-vline
WA_EIAC_ENROLLMENT_STR-CLERK_ID sy-vline
WA_EIAC_ENROLLMENT_STR-RECPTYPE sy-vline
WA_EIAC_ENROLLMENT_STR-PMNT_METH sy-vline
WA_EIAC_ENROLLMENT_STR-BK_DETAILS sy-vline
WA_EIAC_ENROLLMENT_STR-G_L_ACCT sy-vline
WA_EIAC_ENROLLMENT_STR-TITLELETTER sy-vline
WA_EIAC_ENROLLMENT_STR-CONTACTALLOWANCE sy-vline
WA_EIAC_ENROLLMENT_STR-LEGALORG sy-vline
WA_EIAC_ENROLLMENT_STR-BIRTHNAME sy-vline
WA_EIAC_ENROLLMENT_STR-MIDDLENAME sy-vline
WA_EIAC_ENROLLMENT_STR-CORRESPONDLANGUAGE sy-vline
WA_EIAC_ENROLLMENT_STR-CORRESPONDLANGUAGE_ISO sy-vline
WA_EIAC_ENROLLMENT_STR-PARTNERLANGUAGE sy-vline
WA_EIAC_ENROLLMENT_STR-PARTNERLANGUAGE_ISO sy-vline
WA_EIAC_ENROLLMENT_STR-NOTRELEASED sy-vline
WA_EIAC_ENROLLMENT_STR-SECONDNAME sy-vline
WA_EIAC_ENROLLMENT_STR-CLASSIFICATION sy-vline
WA_EIAC_ENROLLMENT_STR-VIP sy-vline
WA_EIAC_ENROLLMENT_STR-IDENT_INSTALLER sy-vline
WA_EIAC_ENROLLMENT_STR-NATURALPERSON sy-vline
WA_EIAC_ENROLLMENT_STR-GENDER sy-vline
WA_EIAC_ENROLLMENT_STR-BKVID sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_CTRY sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_CTRY_ISO sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_KEY sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_ACCT sy-vline
WA_EIAC_ENROLLMENT_STR-CTRL_KEY sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_REF sy-vline
WA_EIAC_ENROLLMENT_STR-ACCOUNT_HOLDER sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_KEY_EXT sy-vline
WA_EIAC_ENROLLMENT_STR-COLL_AUTH sy-vline
WA_EIAC_ENROLLMENT_STR-BANKACCOUNTNAME sy-vline
WA_EIAC_ENROLLMENT_STR-BANKDETAILVALIDFROM sy-vline
WA_EIAC_ENROLLMENT_STR-BANKDETAILVALIDTO sy-vline
WA_EIAC_ENROLLMENT_STR-BANKDETAILMOVEDATE sy-vline
WA_EIAC_ENROLLMENT_STR-BANKDETAILMOVEID sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_ACCOUNT_TYPE sy-vline
WA_EIAC_ENROLLMENT_STR-BANK_IBAN sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_ID sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_INSTITUTE sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_NUMBER sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_DEFAULT sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_HOLDER sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_FROMDATE sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_TODATE sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_EXP_DATE sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_ISS_BANK sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_CATEGORY sy-vline
WA_EIAC_ENROLLMENT_STR-CCARD_REASON sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.