ABAP Select data from SAP table /PM0/ABD_ENTRYPOLICY_SMT 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 /PM0/ABD_ENTRYPOLICY_SMT 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 /PM0/ABD_ENTRYPOLICY_SMT. 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 /PM0/ABD_ENTRYPOLICY_SMT 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_/PM0/ABD_ENTRYPOLICY_SMT TYPE STANDARD TABLE OF /PM0/ABD_ENTRYPOLICY_SMT,
      WA_/PM0/ABD_ENTRYPOLICY_SMT TYPE /PM0/ABD_ENTRYPOLICY_SMT,
      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: </PM0/ABD_ENTRYPOLICY_SMT> TYPE /PM0/ABD_ENTRYPOLICY_SMT.

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

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM /PM0/ABD_ENTRYPOLICY_SMT
  INTO TABLE IT_/PM0/ABD_ENTRYPOLICY_SMT.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM /PM0/ABD_ENTRYPOLICY_SMT
*  INTO TABLE @DATA(IT_/PM0/ABD_ENTRYPOLICY_SMT2).
*--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_/PM0/ABD_ENTRYPOLICY_SMT INDEX 1 INTO DATA(WA_/PM0/ABD_ENTRYPOLICY_SMT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/PM0/ABD_ENTRYPOLICY_SMT ASSIGNING </PM0/ABD_ENTRYPOLICY_SMT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</PM0/ABD_ENTRYPOLICY_SMT>-APPLNR_CD = 1.
</PM0/ABD_ENTRYPOLICY_SMT>-APPL_RESUME = 1.
</PM0/ABD_ENTRYPOLICY_SMT>-POLICY_ID = 1.
</PM0/ABD_ENTRYPOLICY_SMT>-POLICYNR_TT = 1.
</PM0/ABD_ENTRYPOLICY_SMT>-PM_ID = 1.
ENDLOOP.

LOOP AT IT_/PM0/ABD_ENTRYPOLICY_SMT INTO WA_/PM0/ABD_ENTRYPOLICY_SMT.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/PM0/ABD_ENTRYPOLICY_SMT-SALESPROD_TT, sy-vline,
WA_/PM0/ABD_ENTRYPOLICY_SMT-PARTNER_ID, sy-vline,
WA_/PM0/ABD_ENTRYPOLICY_SMT-PARTNERNAME_TT, sy-vline,
WA_/PM0/ABD_ENTRYPOLICY_SMT-GENDER_TT, sy-vline,
WA_/PM0/ABD_ENTRYPOLICY_SMT-BIRTH_DT, sy-vline,
WA_/PM0/ABD_ENTRYPOLICY_SMT-ADDRESS_TT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/PM0/ABD_ENTRYPOLICY_SMT 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_/PM0/ABD_ENTRYPOLICY_SMT 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_/PM0/ABD_ENTRYPOLICY_SMT INTO WA_/PM0/ABD_ENTRYPOLICY_SMT. *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 APPLNR_CD CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PM0/ABD_ENTRYPOLICY_SMT-APPLNR_CD IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PM0/ABD_ENTRYPOLICY_SMT-APPLNR_CD.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ISOLA, internal->external for field CORRESPONDLANGUAGE CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_/PM0/ABD_ENTRYPOLICY_SMT-CORRESPONDLANGUAGE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PM0/ABD_ENTRYPOLICY_SMT-CORRESPONDLANGUAGE.
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_/PM0/ABD_ENTRYPOLICY_SMT_STR,
APPLNR_CD TYPE STRING,
APPL_RESUME TYPE STRING,
POLICY_ID TYPE STRING,
POLICYNR_TT TYPE STRING,
PM_ID TYPE STRING,
SALESPROD_TT TYPE STRING,
PARTNER_ID TYPE STRING,
PARTNERNAME_TT TYPE STRING,
GENDER_TT TYPE STRING,
BIRTH_DT TYPE STRING,
ADDRESS_TT TYPE STRING,
ROLECD_TT TYPE STRING,
POLBEG_DT TYPE STRING,
POLEND_DT TYPE STRING,
MPOLICY_NR TYPE STRING,
MPOLICY_TT TYPE STRING,
POLICYSTATUS_ID TYPE STRING,
POLICYSTATUS_TT TYPE STRING,
APPLSTATUS_TT TYPE STRING,
BIZPRC_TT TYPE STRING,
APPL_DT TYPE STRING,
APPLIN_DT TYPE STRING,
MASTERPOLICY_ID TYPE STRING,
MPOLJOURNO_ID TYPE STRING,
ACCEPTREJECT_DT TYPE STRING,
REFUSALREASON_CD TYPE STRING,
REFUSALREASON_TT TYPE STRING,
POLPRNO_VL TYPE STRING,
BIZPRC_ID TYPE STRING,
POLSTAT_TT TYPE STRING,
COMPANYKEY_ID TYPE STRING,
COMPANYKEY_TT TYPE STRING,
APPLNR_TT TYPE STRING,
BREAKREASON_ID TYPE STRING,
BREAKREASON_TT TYPE STRING,
FORWARDREASON_ID TYPE STRING,
FORWARDREASON_TT TYPE STRING,
CHANGEUSR_TT TYPE STRING,
NAME_TEXT TYPE STRING,
EFFECTIVE_DT TYPE STRING,
AUTHSTATE_ID TYPE STRING,
AUTHSTATE_TT TYPE STRING,
STARTTIME_TM TYPE STRING,
STARTTIMEZONE_TT TYPE STRING,
STANDARDADDRESS TYPE STRING,
C_O_NAME TYPE STRING,
CITY TYPE STRING,
DISTRICT TYPE STRING,
REGIOGROUP TYPE STRING,
POSTL_COD1 TYPE STRING,
POSTL_COD2 TYPE STRING,
POSTL_COD3 TYPE STRING,
PCODE1_EXT TYPE STRING,
PCODE2_EXT TYPE STRING,
PCODE3_EXT TYPE STRING,
PO_BOX TYPE STRING,
PO_W_O_NO TYPE STRING,
PO_BOX_CIT TYPE STRING,
PO_BOX_REG TYPE STRING,
POBOX_CTRY TYPE STRING,
PO_CTRYISO TYPE STRING,
STREET TYPE STRING,
STR_ABBR TYPE STRING,
HOUSE_NO TYPE STRING,
HOUSE_NO2 TYPE STRING,
HOUSE_NO3 TYPE STRING,
STR_SUPPL1 TYPE STRING,
STR_SUPPL2 TYPE STRING,
STR_SUPPL3 TYPE STRING,
LOCATION TYPE STRING,
BUILDING TYPE STRING,
FLOOR TYPE STRING,
ROOM_NO TYPE STRING,
COUNTRY TYPE STRING,
COUNTRYISO TYPE STRING,
REGION TYPE STRING,
TIME_ZONE TYPE STRING,
TAXJURCODE TYPE STRING,
HOME_CITY TYPE STRING,
TRANSPZONE TYPE STRING,
LANGU TYPE STRING,
LANGUISO TYPE STRING,
COMM_TYPE TYPE STRING,
EXTADDRESSNUMBER TYPE STRING,
DONT_USE_P TYPE STRING,
DONT_USE_S TYPE STRING,
MOVE_DATE TYPE STRING,
MOVE_ADDRESS TYPE STRING,
VALIDFROMDATE TYPE STRING,
VALIDTODATE TYPE STRING,
MOVE_ADDR_GUID TYPE STRING,
CITY_NO TYPE STRING,
DISTRCT_NO TYPE STRING,
CHCKSTATUS TYPE STRING,
PBOXCIT_NO TYPE STRING,
STREET_NO TYPE STRING,
HOMECITYNO TYPE STRING,
PO_BOX_LOBBY TYPE STRING,
DELI_SERV_TYPE TYPE STRING,
DELI_SERV_NUMBER TYPE STRING,
COUNTY TYPE STRING,
COUNTY_NO TYPE STRING,
TOWNSHIP TYPE STRING,
TOWNSHIP_NO TYPE STRING,
FIRSTNAME TYPE STRING,
LASTNAME TYPE STRING,
BIRTHNAME TYPE STRING,
MIDDLENAME TYPE STRING,
SECONDNAME TYPE STRING,
TITLE_ACA1 TYPE STRING,
TITLE_ACA2 TYPE STRING,
TITLE_SPPL TYPE STRING,
PREFIX1 TYPE STRING,
PREFIX2 TYPE STRING,
NICKNAME TYPE STRING,
INITIALS TYPE STRING,
NAMEFORMAT TYPE STRING,
NAMCOUNTRY TYPE STRING,
NAMCOUNTRYISO TYPE STRING,
SEX TYPE STRING,
BIRTHPLACE TYPE STRING,
BIRTHDATE TYPE STRING,
DEATHDATE TYPE STRING,
MARITALSTATUS TYPE STRING,
CORRESPONDLANGUAGE TYPE STRING,
CORRESPONDLANGUAGEISO TYPE STRING,
FULLNAME TYPE STRING,
EMPLOYER TYPE STRING,
OCCUPATION TYPE STRING,
NATIONALITY TYPE STRING,
NATIONALITYISO TYPE STRING,
COUNTRYORIGIN TYPE STRING,
BIRTHDT_STATUS TYPE STRING,
GENDER TYPE STRING,
NAME1 TYPE STRING,
NAME2 TYPE STRING,
NAME3 TYPE STRING,
NAME4 TYPE STRING,
LEGALFORM TYPE STRING,
INDUSTRYSECTOR TYPE STRING,
FOUNDATIONDATE TYPE STRING,
LIQUIDATIONDATE TYPE STRING,
LOC_NO_1 TYPE STRING,
LOC_NO_2 TYPE STRING,
CHK_DIGIT TYPE STRING,
LEGALORG TYPE STRING,
ENDTIMEZONE_TT TYPE STRING,
ENDTIME_TM TYPE STRING,END OF T_EKKO_STR. DATA: WA_/PM0/ABD_ENTRYPOLICY_SMT_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_/PM0/ABD_ENTRYPOLICY_SMT_STR-APPLNR_CD sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-APPL_RESUME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLICY_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLICYNR_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PM_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-SALESPROD_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PARTNER_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PARTNERNAME_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-GENDER_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIRTH_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-ADDRESS_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-ROLECD_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLBEG_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLEND_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MPOLICY_NR sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MPOLICY_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLICYSTATUS_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLICYSTATUS_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-APPLSTATUS_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIZPRC_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-APPL_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-APPLIN_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MASTERPOLICY_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MPOLJOURNO_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-ACCEPTREJECT_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-REFUSALREASON_CD sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-REFUSALREASON_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLPRNO_VL sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIZPRC_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POLSTAT_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COMPANYKEY_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COMPANYKEY_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-APPLNR_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BREAKREASON_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BREAKREASON_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-FORWARDREASON_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-FORWARDREASON_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CHANGEUSR_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAME_TEXT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-EFFECTIVE_DT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-AUTHSTATE_ID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-AUTHSTATE_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STARTTIME_TM sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STARTTIMEZONE_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STANDARDADDRESS sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-C_O_NAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CITY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DISTRICT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-REGIOGROUP sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POSTL_COD1 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POSTL_COD2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POSTL_COD3 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PCODE1_EXT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PCODE2_EXT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PCODE3_EXT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PO_BOX sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PO_W_O_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PO_BOX_CIT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PO_BOX_REG sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-POBOX_CTRY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PO_CTRYISO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STREET sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STR_ABBR sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-HOUSE_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-HOUSE_NO2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-HOUSE_NO3 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STR_SUPPL1 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STR_SUPPL2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STR_SUPPL3 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LOCATION sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BUILDING sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-FLOOR sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-ROOM_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COUNTRY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COUNTRYISO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-REGION sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TIME_ZONE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TAXJURCODE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-HOME_CITY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TRANSPZONE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LANGU sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LANGUISO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COMM_TYPE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-EXTADDRESSNUMBER sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DONT_USE_P sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DONT_USE_S sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MOVE_DATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MOVE_ADDRESS sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-VALIDFROMDATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-VALIDTODATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MOVE_ADDR_GUID sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CITY_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DISTRCT_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CHCKSTATUS sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PBOXCIT_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-STREET_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-HOMECITYNO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PO_BOX_LOBBY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DELI_SERV_TYPE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DELI_SERV_NUMBER sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COUNTY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COUNTY_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TOWNSHIP sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TOWNSHIP_NO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-FIRSTNAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LASTNAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIRTHNAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MIDDLENAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-SECONDNAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TITLE_ACA1 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TITLE_ACA2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-TITLE_SPPL sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PREFIX1 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-PREFIX2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NICKNAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-INITIALS sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAMEFORMAT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAMCOUNTRY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAMCOUNTRYISO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-SEX sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIRTHPLACE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIRTHDATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-DEATHDATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-MARITALSTATUS sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CORRESPONDLANGUAGE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CORRESPONDLANGUAGEISO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-FULLNAME sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-EMPLOYER sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-OCCUPATION sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NATIONALITY sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NATIONALITYISO sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-COUNTRYORIGIN sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-BIRTHDT_STATUS sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-GENDER sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAME1 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAME2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAME3 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-NAME4 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LEGALFORM sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-INDUSTRYSECTOR sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-FOUNDATIONDATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LIQUIDATIONDATE sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LOC_NO_1 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LOC_NO_2 sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-CHK_DIGIT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-LEGALORG sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-ENDTIMEZONE_TT sy-vline
WA_/PM0/ABD_ENTRYPOLICY_SMT_STR-ENDTIME_TM sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.