ABAP Select data from SAP table BUPA_BPERPCRTE_CONF_S_BPADDR_5 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 BUPA_BPERPCRTE_CONF_S_BPADDR_5 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 BUPA_BPERPCRTE_CONF_S_BPADDR_5. 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 BUPA_BPERPCRTE_CONF_S_BPADDR_5 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_BUPA_BPERPCRTE_CONF_S_BPADDR_5 TYPE STANDARD TABLE OF BUPA_BPERPCRTE_CONF_S_BPADDR_5, WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5 TYPE BUPA_BPERPCRTE_CONF_S_BPADDR_5, 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: <BUPA_BPERPCRTE_CONF_S_BPADDR_5> TYPE BUPA_BPERPCRTE_CONF_S_BPADDR_5. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_BUPA_BPERPCRTE_CONF_S_BPADDR_5. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM BUPA_BPERPCRTE_CONF_S_BPADDR_5 INTO TABLE IT_BUPA_BPERPCRTE_CONF_S_BPADDR_5. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM BUPA_BPERPCRTE_CONF_S_BPADDR_5 * INTO TABLE @DATA(IT_BUPA_BPERPCRTE_CONF_S_BPADDR_52). *--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_BUPA_BPERPCRTE_CONF_S_BPADDR_5 INDEX 1 INTO DATA(WA_BUPA_BPERPCRTE_CONF_S_BPADDR_52). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_BUPA_BPERPCRTE_CONF_S_BPADDR_5 ASSIGNING <BUPA_BPERPCRTE_CONF_S_BPADDR_5>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<BUPA_BPERPCRTE_CONF_S_BPADDR_5>-CONTROLLER = 1.
<BUPA_BPERPCRTE_CONF_S_BPADDR_5>-ADDRESS_REPRESENTATION_CODE = 1.
<BUPA_BPERPCRTE_CONF_S_BPADDR_5>-CONTROLLER = 1.
<BUPA_BPERPCRTE_CONF_S_BPADDR_5>-LIST_VERSION_ID = 1.
<BUPA_BPERPCRTE_CONF_S_BPADDR_5>-LIST_AGENCY_ID = 1.
ENDLOOP. LOOP AT IT_BUPA_BPERPCRTE_CONF_S_BPADDR_5 INTO WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5-LIST_AGENCY_SCHEME_ID, sy-vline,
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5-LIST_AGENCY_SCHEME_AGENCY_ID, sy-vline,
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5-CONTENT, sy-vline,
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5-ADDRESS_REPRESENTATION_NAME, sy-vline,
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5-COUNTRY_CODE, sy-vline,
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5-COUNTRY_NAME, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5 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_BUPA_BPERPCRTE_CONF_S_BPADDR_5 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_BUPA_BPERPCRTE_CONF_S_BPADDR_5 INTO WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5. *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.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR,
CONTROLLER TYPE STRING,
ADDRESS_REPRESENTATION_CODE TYPE STRING,
CONTROLLER TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
ADDRESS_REPRESENTATION_NAME TYPE STRING,
COUNTRY_CODE TYPE STRING,
COUNTRY_NAME TYPE STRING,
REGION_CODE TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGION_NAME TYPE STRING,
CITY_NAME TYPE STRING,
REGIONAL_STRUCTURE_CITY_CODE TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGIONAL_STRUCTURE_CITY_NAME TYPE STRING,
ADDITIONAL_CITY_NAME TYPE STRING,
REGIONAL_STRUCTURE_ADDITIONAL1 TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGIONAL_STRUCTURE_ADDITIONAL TYPE STRING,
DISTRICT_NAME TYPE STRING,
REGIONAL_STRUCTURE_DISTRICT_CO TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGIONAL_STRUCTURE_DISTRICT_NA TYPE STRING,
STREET_POSTAL_CODE TYPE STRING,
POBOX_POSTAL_CODE TYPE STRING,
COMPANY_POSTAL_CODE TYPE STRING,
STREET_PREFIX_NAME TYPE STRING,
ADDITIONAL_STREET_PREFIX_NAME TYPE STRING,
STREET_NAME TYPE STRING,
REGIONAL_STRUCTURE_STREET_CODE TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGIONAL_STRUCTURE_STREET_NAME TYPE STRING,
STREET_SUFFIX_NAME TYPE STRING,
ADDITIONAL_STREET_SUFFIX_NAME TYPE STRING,
HOUSE_ID TYPE STRING,
ADDITIONAL_HOUSE_ID TYPE STRING,
BUILDING_ID TYPE STRING,
ROOM_ID TYPE STRING,
FLOOR_ID TYPE STRING,
CARE_OF_NAME TYPE STRING,
STREET_ADDRESS_MAIL_NON_DELIV1 TYPE STRING,
STREET_ADDRESS_MAIL_NON_DELIVE TYPE STRING,
REGIONAL_STRUCTURE_ELEMENT_GR1 TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGIONAL_STRUCTURE_ELEMENT_GRO TYPE STRING,
POBOX_DEVIATING_COUNTRY_CODE TYPE STRING,
POBOX_DEVIATING_COUNTRY_NAME TYPE STRING,
POBOX_DEVIATING_REGION_CODE TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
POBOX_DEVIATING_REGION_NAME TYPE STRING,
POBOX_DEVIATING_CITY_NAME TYPE STRING,
REGIONAL_STRUCTURE_POBOX_DEVI1 TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
REGIONAL_STRUCTURE_POBOX_DEVIA TYPE STRING,
POBOX_ID TYPE STRING,
POBOX_INDICATOR TYPE STRING,
POBOX_ADDRESS_MAIL_NON_DELIVER TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
TAX_JURISDICTION_CODE TYPE STRING,
CONTROLLER TYPE STRING,
LIST_ID TYPE STRING,
LIST_VERSION_ID TYPE STRING,
LIST_AGENCY_ID TYPE STRING,
LIST_AGENCY_SCHEME_ID TYPE STRING,
LIST_AGENCY_SCHEME_AGENCY_ID TYPE STRING,
CONTENT TYPE STRING,
TIME_ZONE_CODE TYPE STRING,
TIME_ZONE_NAME TYPE STRING,
REGIONAL_STRUCTURE_ADDRESS_CO1 TYPE STRING,
REGIONAL_STRUCTURE_ADDRESS_CON TYPE STRING,END OF T_EKKO_STR. DATA: WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_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_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ADDRESS_REPRESENTATION_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ADDRESS_REPRESENTATION_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-COUNTRY_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-COUNTRY_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGION_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGION_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CITY_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_CITY_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_CITY_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ADDITIONAL_CITY_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_ADDITIONAL1 sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_ADDITIONAL sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-DISTRICT_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_DISTRICT_CO sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_DISTRICT_NA sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-STREET_POSTAL_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_POSTAL_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-COMPANY_POSTAL_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-STREET_PREFIX_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ADDITIONAL_STREET_PREFIX_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-STREET_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_STREET_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_STREET_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-STREET_SUFFIX_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ADDITIONAL_STREET_SUFFIX_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-HOUSE_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ADDITIONAL_HOUSE_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-BUILDING_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-ROOM_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-FLOOR_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CARE_OF_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-STREET_ADDRESS_MAIL_NON_DELIV1 sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-STREET_ADDRESS_MAIL_NON_DELIVE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_ELEMENT_GR1 sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_ELEMENT_GRO sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_DEVIATING_COUNTRY_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_DEVIATING_COUNTRY_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_DEVIATING_REGION_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_DEVIATING_REGION_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_DEVIATING_CITY_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_POBOX_DEVI1 sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_POBOX_DEVIA sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_INDICATOR sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-POBOX_ADDRESS_MAIL_NON_DELIVER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-TAX_JURISDICTION_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTROLLER sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_VERSION_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-LIST_AGENCY_SCHEME_AGENCY_ID sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-CONTENT sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-TIME_ZONE_CODE sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-TIME_ZONE_NAME sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_ADDRESS_CO1 sy-vline
WA_BUPA_BPERPCRTE_CONF_S_BPADDR_5_STR-REGIONAL_STRUCTURE_ADDRESS_CON sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.