ABAP Select data from SAP table BBPS_CTR_UI_HEADER 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 BBPS_CTR_UI_HEADER 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 BBPS_CTR_UI_HEADER. 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 BBPS_CTR_UI_HEADER 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_BBPS_CTR_UI_HEADER TYPE STANDARD TABLE OF BBPS_CTR_UI_HEADER, WA_BBPS_CTR_UI_HEADER TYPE BBPS_CTR_UI_HEADER, 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: <BBPS_CTR_UI_HEADER> TYPE BBPS_CTR_UI_HEADER. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_BBPS_CTR_UI_HEADER. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM BBPS_CTR_UI_HEADER INTO TABLE IT_BBPS_CTR_UI_HEADER. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM BBPS_CTR_UI_HEADER * INTO TABLE @DATA(IT_BBPS_CTR_UI_HEADER2). *--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_BBPS_CTR_UI_HEADER INDEX 1 INTO DATA(WA_BBPS_CTR_UI_HEADER2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_BBPS_CTR_UI_HEADER ASSIGNING <BBPS_CTR_UI_HEADER>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<BBPS_CTR_UI_HEADER>-GUID = 1.
<BBPS_CTR_UI_HEADER>-DESCRIPTION = 1.
<BBPS_CTR_UI_HEADER>-CURRENCY = 1.
<BBPS_CTR_UI_HEADER>-VPER_START = 1.
<BBPS_CTR_UI_HEADER>-VPER_END = 1.
ENDLOOP. LOOP AT IT_BBPS_CTR_UI_HEADER INTO WA_BBPS_CTR_UI_HEADER. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_BBPS_CTR_UI_HEADER-PMNTTRMS, sy-vline,
WA_BBPS_CTR_UI_HEADER-INCOTERM_KEY, sy-vline,
WA_BBPS_CTR_UI_HEADER-INCOTERM_LOC, sy-vline,
WA_BBPS_CTR_UI_HEADER-CO_CODE, sy-vline,
WA_BBPS_CTR_UI_HEADER-LOGSYS_FI, sy-vline,
WA_BBPS_CTR_UI_HEADER-GUARANTEED_MIN, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BBPS_CTR_UI_HEADER 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_BBPS_CTR_UI_HEADER 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_BBPS_CTR_UI_HEADER INTO WA_BBPS_CTR_UI_HEADER. *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 LOGSYS_FI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-LOGSYS_FI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-LOGSYS_FI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PS_DOCB_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-PS_DOCB_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-PS_DOCB_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field PS_FISCAL_YEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-PS_FISCAL_YEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-PS_FISCAL_YEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PS_EMF_DOC_NUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-PS_EMF_DOC_NUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-PS_EMF_DOC_NUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PS_SC_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-PS_SC_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-PS_SC_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field OBJECT_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-OBJECT_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-OBJECT_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ISOLA, internal->external for field DOC_LANGU CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-DOC_LANGU IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-DOC_LANGU.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTPS, internal->external for field CREATED_AT CALL FUNCTION 'CONVERSION_EXIT_TSTPS_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-CREATED_AT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-CREATED_AT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTPS, internal->external for field CHANGED_AT CALL FUNCTION 'CONVERSION_EXIT_TSTPS_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-CHANGED_AT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-CHANGED_AT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field HIER_P_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBPS_CTR_UI_HEADER-HIER_P_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBPS_CTR_UI_HEADER-HIER_P_ID.
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_BBPS_CTR_UI_HEADER_STR,
GUID TYPE STRING,
DESCRIPTION TYPE STRING,
CURRENCY TYPE STRING,
VPER_START TYPE STRING,
VPER_END TYPE STRING,
PMNTTRMS TYPE STRING,
INCOTERM_KEY TYPE STRING,
INCOTERM_LOC TYPE STRING,
CO_CODE TYPE STRING,
LOGSYS_FI TYPE STRING,
GUARANTEED_MIN TYPE STRING,
POSTING_DATE TYPE STRING,
APPROVAL_IND TYPE STRING,
DELIV_DAYS TYPE STRING,
SK_COUNTRY TYPE STRING,
SK_SCENARIO1 TYPE STRING,
SK_SCENARIO2 TYPE STRING,
SK_SCENARIO3 TYPE STRING,
SK_SCENARIO4 TYPE STRING,
SK_SCENARIO5 TYPE STRING,
VAL_PO_E TYPE STRING,
TOTAL_VALUE TYPE STRING,
CATALOG_IND TYPE STRING,
DUMMY_EEW_PDHSS_CTR TYPE STRING,
PS_HIER_TEMPL TYPE STRING,
PS_NUMVRS TYPE STRING,
APCGK TYPE STRING,
APCGK_EXTEND TYPE STRING,
BAS_DATE TYPE STRING,
ADATTYP TYPE STRING,
START_DAT TYPE STRING,
DEV TYPE STRING,
INDANX TYPE STRING,
LIMIT_DAT TYPE STRING,
NUMERATOR TYPE STRING,
/LOCSRM/CIG_NUM TYPE STRING,
/LOCSRM/CUP_NUM TYPE STRING,
PS_PGS_ID TYPE STRING,
PS_CLOSEOUT TYPE STRING,
PS_DOCB_ID TYPE STRING,
PS_IN_DOCB_PROC TYPE STRING,
PS_SEND_TO_DB TYPE STRING,
PS_DB_SXMSGUID TYPE STRING,
PS_COMPANY_CODE TYPE STRING,
PS_POSTING_DATE TYPE STRING,
PS_ORDER_DATE TYPE STRING,
PS_FISCAL_YEAR TYPE STRING,
PS_POST_PERIOD TYPE STRING,
PS_DOC_DATE_BL TYPE STRING,
PS_FPDS_STATUS TYPE STRING,
PS_EMF_INITIAL_AMOUNT TYPE STRING,
PS_EMF_USED_AMOUNT TYPE STRING,
PS_EMF_OPEN_AMOUNT TYPE STRING,
PS_EMF_CREATE_DATE TYPE STRING,
PS_EMF_REVAL_DATE TYPE STRING,
PS_EMF_DOC_NUMBER TYPE STRING,
PS_GUARANT_MIN_PO TYPE STRING,
PS_GM_LEVEL TYPE STRING,
PS_GM_NO_EMF TYPE STRING,
PS_GM_CLOSED TYPE STRING,
PS_IDC_DOC TYPE STRING,
PS_MAX_VALUE_H TYPE STRING,
PS_MCNGUID TYPE STRING,
OPT_CPLX_DOC TYPE STRING,
PS_ULTIM_VALUE TYPE STRING,
PS_CURR_VALUE TYPE STRING,
PS_EST_VAL TYPE STRING,
PS_SC_ID TYPE STRING,
PS_PARK_IND TYPE STRING,
PS_PA_ID_HDR TYPE STRING,
PS_REASON_CODE TYPE STRING,
PS_SELPROM_BLOCK TYPE STRING,
PS_SELPROM_REL TYPE STRING,
PS_LONGNUM TYPE STRING,
PS_NUMTYPE TYPE STRING,
PS_EXTERNAL TYPE STRING,
PS_CHANGE_SERIAL TYPE STRING,
PS_SET_LPN_FINAL TYPE STRING,
PS_CLASSCODE TYPE STRING,
PS_NAICS TYPE STRING,
PS_SYNOPSISID TYPE STRING,
PS_SETASIDE TYPE STRING,
PS_EU_DOCB_ID TYPE STRING,
PS_EU_DOCB_GUID TYPE STRING,
PS_EU_DOCB_VER TYPE STRING,
PS_CLASSCODE_DESC TYPE STRING,
PS_NAICS_DESC TYPE STRING,
PS_SYNOPSISID_DESC TYPE STRING,
PS_TH_EXCEEDED TYPE STRING,
PS_CHANGE_TYPE TYPE STRING,
PS_US01 TYPE STRING,
PS_US02 TYPE STRING,
PS_US03 TYPE STRING,
PS_US04 TYPE STRING,
PS_US05 TYPE STRING,
PS_US06 TYPE STRING,
PS_US07 TYPE STRING,
PS_US08 TYPE STRING,
PS_US09 TYPE STRING,
PS_US10 TYPE STRING,
PS_US01_DATE TYPE STRING,
PS_US02_DATE TYPE STRING,
PS_US03_DATE TYPE STRING,
PS_US04_DATE TYPE STRING,
PS_US05_DATE TYPE STRING,
PS_US06_DATE TYPE STRING,
PS_US07_DATE TYPE STRING,
PS_US08_DATE TYPE STRING,
PS_US09_DATE TYPE STRING,
PS_US10_DATE TYPE STRING,
PS_USER_STATUS TYPE STRING,
PS_DESCRIPTION TYPE STRING,
PS_DATE TYPE STRING,
PS_WH_PRCNT_HDR TYPE STRING,
PS_WH_IND TYPE STRING,
ICC_BR_TAXAMT TYPE STRING,
VZSKZ TYPE STRING,
INT_IND_TEXT TYPE STRING,
DUMMY_EEW_PDHSC_CTR TYPE STRING,
PROCESS_TYPE TYPE STRING,
OBJECT_ID TYPE STRING,
DOC_LANGU TYPE STRING,
SUBTYPE TYPE STRING,
TEMPLATE_TYPE TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_AT TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_AT TYPE STRING,
TZONE TYPE STRING,
VERSION_TYPE TYPE STRING,
ACTIVE_HEADER TYPE STRING,
CHANGE_LOCK TYPE STRING,
VERSION_NO TYPE STRING,
VERSION_DESC TYPE STRING,
PROCESS_TYPE_DESC TYPE STRING,
CLIENT TYPE STRING,
ORG_DATA_GUID TYPE STRING,
PROC_ORG_RESP TYPE STRING,
PROC_ORG TYPE STRING,
PROC_ORG_DESC TYPE STRING,
PROC_GROUP TYPE STRING,
PROC_GROUP_DESC TYPE STRING,
STATUS_DOC TYPE STRING,
STATUS_DESC TYPE STRING,
STATUS_RELEASED TYPE STRING,
OUTPUT_DATE TYPE STRING,
CURRENCY_TEXT TYPE STRING,
CREATED_AT_CONV TYPE STRING,
CHANGED_AT_CONV TYPE STRING,
PMNTTRMS_DESC TYPE STRING,
NUMRANGE_ERROR TYPE STRING,
WF_EXISTS TYPE STRING,
WF_CHNG_EXISTS TYPE STRING,
CTR_CHANGEABLE TYPE STRING,
DISP_CURR TYPE STRING,
DISP_CURR_TEXT TYPE STRING,
DISP_CURR_DATE TYPE STRING,
PERCENT_LOW TYPE STRING,
PERCENT_HIGH TYPE STRING,
UNLIMITED TYPE STRING,
BACKGROUND_PROCESSING TYPE STRING,
CHANGE_CURR TYPE STRING,
TOL_CF_GUID TYPE STRING,
WF_NSTEP_EXISTS TYPE STRING,
WF_NSTEP_PARK TYPE STRING,
WF_NSTEP_RELEASE TYPE STRING,
WF_RETAINED TYPE STRING,
WF_RETAINED_BY_USER TYPE STRING,
NEGOTIATION_MODE TYPE STRING,
NO_ITEMS_ALLOWED TYPE STRING,
HIER_P_GUID TYPE STRING,
HIER_P_ID TYPE STRING,
SENSITIVE TYPE STRING,
EXPIRED_DESC TYPE STRING,
TARGET_VALUE TYPE STRING,
VALIDITY_PERIOD TYPE STRING,
VAL_PO_E_AGG TYPE STRING,
ROOT_IND TYPE STRING,
GRP_IND TYPE STRING,
TAR_HVAL TYPE STRING,
EXPIRY_DAYS TYPE STRING,
SIG_IND TYPE STRING,
DIST_IND TYPE STRING,END OF T_EKKO_STR. DATA: WA_BBPS_CTR_UI_HEADER_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_BBPS_CTR_UI_HEADER_STR-GUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DESCRIPTION sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CURRENCY sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VPER_START sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VPER_END sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PMNTTRMS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-INCOTERM_KEY sy-vline
WA_BBPS_CTR_UI_HEADER_STR-INCOTERM_LOC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CO_CODE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-LOGSYS_FI sy-vline
WA_BBPS_CTR_UI_HEADER_STR-GUARANTEED_MIN sy-vline
WA_BBPS_CTR_UI_HEADER_STR-POSTING_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-APPROVAL_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DELIV_DAYS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SK_COUNTRY sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SK_SCENARIO1 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SK_SCENARIO2 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SK_SCENARIO3 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SK_SCENARIO4 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SK_SCENARIO5 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VAL_PO_E sy-vline
WA_BBPS_CTR_UI_HEADER_STR-TOTAL_VALUE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CATALOG_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DUMMY_EEW_PDHSS_CTR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_HIER_TEMPL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_NUMVRS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-APCGK sy-vline
WA_BBPS_CTR_UI_HEADER_STR-APCGK_EXTEND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-BAS_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-ADATTYP sy-vline
WA_BBPS_CTR_UI_HEADER_STR-START_DAT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DEV sy-vline
WA_BBPS_CTR_UI_HEADER_STR-INDANX sy-vline
WA_BBPS_CTR_UI_HEADER_STR-LIMIT_DAT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-NUMERATOR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-/LOCSRM/CIG_NUM sy-vline
WA_BBPS_CTR_UI_HEADER_STR-/LOCSRM/CUP_NUM sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_PGS_ID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_CLOSEOUT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_DOCB_ID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_IN_DOCB_PROC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SEND_TO_DB sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_DB_SXMSGUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_COMPANY_CODE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_POSTING_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_ORDER_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_FISCAL_YEAR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_POST_PERIOD sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_DOC_DATE_BL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_FPDS_STATUS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EMF_INITIAL_AMOUNT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EMF_USED_AMOUNT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EMF_OPEN_AMOUNT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EMF_CREATE_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EMF_REVAL_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EMF_DOC_NUMBER sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_GUARANT_MIN_PO sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_GM_LEVEL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_GM_NO_EMF sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_GM_CLOSED sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_IDC_DOC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_MAX_VALUE_H sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_MCNGUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-OPT_CPLX_DOC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_ULTIM_VALUE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_CURR_VALUE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EST_VAL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SC_ID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_PARK_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_PA_ID_HDR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_REASON_CODE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SELPROM_BLOCK sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SELPROM_REL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_LONGNUM sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_NUMTYPE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EXTERNAL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_CHANGE_SERIAL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SET_LPN_FINAL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_CLASSCODE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_NAICS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SYNOPSISID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SETASIDE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EU_DOCB_ID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EU_DOCB_GUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_EU_DOCB_VER sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_CLASSCODE_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_NAICS_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_SYNOPSISID_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_TH_EXCEEDED sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_CHANGE_TYPE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US01 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US02 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US03 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US04 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US05 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US06 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US07 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US08 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US09 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US10 sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US01_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US02_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US03_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US04_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US05_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US06_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US07_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US08_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US09_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_US10_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_USER_STATUS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_DESCRIPTION sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_WH_PRCNT_HDR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PS_WH_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-ICC_BR_TAXAMT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VZSKZ sy-vline
WA_BBPS_CTR_UI_HEADER_STR-INT_IND_TEXT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DUMMY_EEW_PDHSC_CTR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROCESS_TYPE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-OBJECT_ID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DOC_LANGU sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SUBTYPE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-TEMPLATE_TYPE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CREATED_BY sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CREATED_AT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CHANGED_BY sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CHANGED_AT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-TZONE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VERSION_TYPE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-ACTIVE_HEADER sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CHANGE_LOCK sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VERSION_NO sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VERSION_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROCESS_TYPE_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CLIENT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-ORG_DATA_GUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROC_ORG_RESP sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROC_ORG sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROC_ORG_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROC_GROUP sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PROC_GROUP_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-STATUS_DOC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-STATUS_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-STATUS_RELEASED sy-vline
WA_BBPS_CTR_UI_HEADER_STR-OUTPUT_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CURRENCY_TEXT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CREATED_AT_CONV sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CHANGED_AT_CONV sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PMNTTRMS_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-NUMRANGE_ERROR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_EXISTS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_CHNG_EXISTS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CTR_CHANGEABLE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DISP_CURR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DISP_CURR_TEXT sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DISP_CURR_DATE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PERCENT_LOW sy-vline
WA_BBPS_CTR_UI_HEADER_STR-PERCENT_HIGH sy-vline
WA_BBPS_CTR_UI_HEADER_STR-UNLIMITED sy-vline
WA_BBPS_CTR_UI_HEADER_STR-BACKGROUND_PROCESSING sy-vline
WA_BBPS_CTR_UI_HEADER_STR-CHANGE_CURR sy-vline
WA_BBPS_CTR_UI_HEADER_STR-TOL_CF_GUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_NSTEP_EXISTS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_NSTEP_PARK sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_NSTEP_RELEASE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_RETAINED sy-vline
WA_BBPS_CTR_UI_HEADER_STR-WF_RETAINED_BY_USER sy-vline
WA_BBPS_CTR_UI_HEADER_STR-NEGOTIATION_MODE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-NO_ITEMS_ALLOWED sy-vline
WA_BBPS_CTR_UI_HEADER_STR-HIER_P_GUID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-HIER_P_ID sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SENSITIVE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-EXPIRED_DESC sy-vline
WA_BBPS_CTR_UI_HEADER_STR-TARGET_VALUE sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VALIDITY_PERIOD sy-vline
WA_BBPS_CTR_UI_HEADER_STR-VAL_PO_E_AGG sy-vline
WA_BBPS_CTR_UI_HEADER_STR-ROOT_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-GRP_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-TAR_HVAL sy-vline
WA_BBPS_CTR_UI_HEADER_STR-EXPIRY_DAYS sy-vline
WA_BBPS_CTR_UI_HEADER_STR-SIG_IND sy-vline
WA_BBPS_CTR_UI_HEADER_STR-DIST_IND sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.