ABAP Select data from SAP table BBP_PDVIEW_IAP 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 BBP_PDVIEW_IAP 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 BBP_PDVIEW_IAP. 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 BBP_PDVIEW_IAP 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_BBP_PDVIEW_IAP TYPE STANDARD TABLE OF BBP_PDVIEW_IAP,
      WA_BBP_PDVIEW_IAP TYPE BBP_PDVIEW_IAP,
      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: <BBP_PDVIEW_IAP> TYPE BBP_PDVIEW_IAP.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM BBP_PDVIEW_IAP
*  INTO TABLE @DATA(IT_BBP_PDVIEW_IAP2).
*--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_BBP_PDVIEW_IAP INDEX 1 INTO DATA(WA_BBP_PDVIEW_IAP2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_BBP_PDVIEW_IAP ASSIGNING <BBP_PDVIEW_IAP>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<BBP_PDVIEW_IAP>-CLIENT = 1.
<BBP_PDVIEW_IAP>-GUID = 1.
<BBP_PDVIEW_IAP>-CATEGORY = 1.
<BBP_PDVIEW_IAP>-CATEGORY_ID = 1.
<BBP_PDVIEW_IAP>-SCHEMA_TYPE = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_BBP_PDVIEW_IAP-CT_CATEGORY_ID, sy-vline,
WA_BBP_PDVIEW_IAP-ITM_EX_CT_UN_ID, sy-vline,
WA_BBP_PDVIEW_IAP-MANU_PROD, sy-vline,
WA_BBP_PDVIEW_IAP-MFR_NO_EXT, sy-vline,
WA_BBP_PDVIEW_IAP-CATALOGID, sy-vline,
WA_BBP_PDVIEW_IAP-CATALOGITEM, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BBP_PDVIEW_IAP 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_BBP_PDVIEW_IAP 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_BBP_PDVIEW_IAP INTO WA_BBP_PDVIEW_IAP. *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 CUNIT, internal->external for field UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-UNIT.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

*Conversion exit CFOBR, internal->external for field ICC_BR_CFOP CALL FUNCTION 'CONVERSION_EXIT_CFOBR_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-ICC_BR_CFOP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-ICC_BR_CFOP.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit CUNIT, internal->external for field PR_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-PR_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-PR_UNIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit NUMCV, internal->external for field REV_LEV CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-REV_LEV IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-REV_LEV.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTLC, internal->external for field EXT_DEM_CH_AT CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-EXT_DEM_CH_AT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-EXT_DEM_CH_AT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTLC, internal->external for field CREATED_AT CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-CREATED_AT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-CREATED_AT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTLC, internal->external for field CHANGED_AT CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-CHANGED_AT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-CHANGED_AT.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit TSTPS, internal->external for field ORDER_DATE CALL FUNCTION 'CONVERSION_EXIT_TSTPS_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-ORDER_DATE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-ORDER_DATE.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field LOG_SYSTEM_EXT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PDVIEW_IAP-LOG_SYSTEM_EXT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PDVIEW_IAP-LOG_SYSTEM_EXT.
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_BBP_PDVIEW_IAP_STR,
CLIENT TYPE STRING,
GUID TYPE STRING,
CATEGORY TYPE STRING,
CATEGORY_ID TYPE STRING,
SCHEMA_TYPE TYPE STRING,
CT_CATEGORY_ID TYPE STRING,
ITM_EX_CT_UN_ID TYPE STRING,
MANU_PROD TYPE STRING,
MFR_NO_EXT TYPE STRING,
CATALOGID TYPE STRING,
CATALOGITEM TYPE STRING,
EXT_QUOTE_ID TYPE STRING,
EXT_QUOTE_ITEM TYPE STRING,
PRODUCT_TYPE TYPE STRING,
DEL_DATCAT TYPE STRING,
DELIV_DATE TYPE STRING,
DELIV_TIME TYPE STRING,
LEADTIME TYPE STRING,
VPER_START TYPE STRING,
VPER_END TYPE STRING,
QUANTITY TYPE STRING,
UNIT TYPE STRING,
GROSS_PRICE TYPE STRING,
PRICE TYPE STRING,
PRICE_UNIT TYPE STRING,
PRICE_ORIGIN TYPE STRING,
VALUE TYPE STRING,
CURRENCY TYPE STRING,
TAX_CODE TYPE STRING,
BBP_MOVE_TYPE TYPE STRING,
UNASSIGNED TYPE STRING,
SRC_OBJECT_TYPE TYPE STRING,
SRC_OBJECT_ID TYPE STRING,
SRC_ITM_ID TYPE STRING,
SRC_LOG_SYS TYPE STRING,
SRC_GUID TYPE STRING,
CTR_LOG_SYS TYPE STRING,
CTR_GUID TYPE STRING,
CTR_ITEM_NUMBER TYPE STRING,
CTR_HDR_NUMBER TYPE STRING,
CTR_HDR_GUID TYPE STRING,
COMM_ID TYPE STRING,
DEL_IND TYPE STRING,
FINAL_INV TYPE STRING,
FINAL_ENTRY TYPE STRING,
DEDUCT_IND TYPE STRING,
REJECT_WI TYPE STRING,
VAL_ASN_E TYPE STRING,
VAL_ASN TYPE STRING,
VAL_CF_E TYPE STRING,
VAL_CF TYPE STRING,
VAL_IV_E TYPE STRING,
VAL_IV TYPE STRING,
VAL_PO_E TYPE STRING,
VAL_PO_E_AGG TYPE STRING,
QUAN_ASN_E TYPE STRING,
QUAN_ASN TYPE STRING,
QUAN_CF_E TYPE STRING,
QUAN_CF TYPE STRING,
QUAN_IV_E TYPE STRING,
QUAN_IV TYPE STRING,
QUAN_PO_E TYPE STRING,
NUM_ASN TYPE STRING,
NUM_CONF TYPE STRING,
NUM_INV TYPE STRING,
DCIND TYPE STRING,
SUBDCIND TYPE STRING,
SUBTYPE TYPE STRING,
SOURCE_REL_IND TYPE STRING,
EXT_DEMID TYPE STRING,
EXT_DEM_POSID TYPE STRING,
EXT_DEM_LOGSYS TYPE STRING,
PCINS TYPE STRING,
PCNUM TYPE STRING,
PCNAME TYPE STRING,
PCDAT_TO TYPE STRING,
LOGSYS_FI TYPE STRING,
ITM_RELEASED TYPE STRING,
ACTIVE_ITEM TYPE STRING,
TIME_FROM TYPE STRING,
TIME_TO TYPE STRING,
ORIGIN_ORDER_ID TYPE STRING,
ORIGIN_ITEM_ID TYPE STRING,
NUM_SOS TYPE STRING,
GROUPING_LEVEL TYPE STRING,
ICC_BR_NETPRI TYPE STRING,
ICC_BR_GROPRI TYPE STRING,
ICC_BR_NETVAL TYPE STRING,
ICC_BR_GROVAL TYPE STRING,
ICC_BR_NETDIS TYPE STRING,
ICC_BR_GRODIS TYPE STRING,
ICC_BR_NETFRE TYPE STRING,
ICC_BR_GROFRE TYPE STRING,
ICC_BR_NETINS TYPE STRING,
ICC_BR_GROINS TYPE STRING,
ICC_BR_NETOTH TYPE STRING,
ICC_BR_GROOTH TYPE STRING,
ICC_BR_NETTOT TYPE STRING,
ICC_BR_GROTOT TYPE STRING,
ICC_BR_ICMSLAW TYPE STRING,
ICC_BR_IPILAW TYPE STRING,
ICC_BR_CFOP TYPE STRING,
ICC_BR_STEUC TYPE STRING,
ICC_BR_MATUSE TYPE STRING,
ICC_BR_MATORG TYPE STRING,
ICC_BR_OWNPRO TYPE STRING,
ICC_BR_INDUST TYPE STRING,
ICC_BR_MANCHG TYPE STRING,
ESRPZ TYPE STRING,
ESRNR TYPE STRING,
ESRRE TYPE STRING,
ICC_IN_TXJCD TYPE STRING,
DELIV_DAYS TYPE STRING,
INCOTERM_KEY TYPE STRING,
INCOTERM_LOC TYPE STRING,
GTIN TYPE STRING,
TAX_CODE_ORIGIN TYPE STRING,
MIN_ORDER_VALUE TYPE STRING,
MIN_ORDER_QUAN TYPE STRING,
GUARANTEED_MIN TYPE STRING,
EXT_DEM_SUBPOSID TYPE STRING,
ACCEPT_STAT_CODE TYPE STRING,
GROSS_WEIGHT TYPE STRING,
GROSSWEIGHT_UNIT TYPE STRING,
NET_WEIGHT TYPE STRING,
NETWEIGHT_UNIT TYPE STRING,
VOLUME_VAL TYPE STRING,
VOLUME_UNIT TYPE STRING,
SHIPPING_TS TYPE STRING,
DEL_NOTE_NUMBER TYPE STRING,
DEL_NOTE_ITEM_NO TYPE STRING,
FIX_LINE_IND TYPE STRING,
CHECK_IND TYPE STRING,
HIER_CHECK_IND TYPE STRING,
UOM_DENOMINATOR TYPE STRING,
UOM_NUMERATOR TYPE STRING,
DOC_PRIORITY TYPE STRING,
LUMP_SUM_IND TYPE STRING,
CO_CODE TYPE STRING,
PROJECT_ID TYPE STRING,
PROJECT_TASK_ID TYPE STRING,
PROJECT_ROLE_ID TYPE STRING,
EXT_DEM_KEY TYPE STRING,
EXT_DEM_POSKEY TYPE STRING,
QUOTA_RELEVANT TYPE STRING,
DOC_FLOW_CTRL TYPE STRING,
EXPSV_ITEM_TYPE TYPE STRING,
ORIG_GUID TYPE STRING,
PR_UNIT TYPE STRING,
TAR_IVAL TYPE STRING,
TAR_QTY TYPE STRING,
PMNTTRMS TYPE STRING,
ITEM_PROCESS_TYP TYPE STRING,
EXLIN TYPE STRING,
REV_LEV TYPE STRING,
BLK_LOCAL_SRC TYPE STRING,
EXT_DEM_CH_AT TYPE STRING,
EXT_DEM_EXLIN TYPE STRING,
CTR_SRV_NUM TYPE STRING,
PRC_CHG_IND TYPE STRING,
ACC_STAT_SUS TYPE STRING,
CREATED_AT TYPE STRING,
CREATED_BY TYPE STRING,
CHANGED_AT TYPE STRING,
CHANGED_BY TYPE STRING,
OBJECT_TYPE TYPE STRING,
DESCRIPTION_UC TYPE STRING,
HEADER TYPE STRING,
PARENT TYPE STRING,
ALTERNATIVE TYPE STRING,
PRODUCT TYPE STRING,
PRODUCT_SRC_SYS TYPE STRING,
ORDERED_PROD TYPE STRING,
PARTNER_PROD TYPE STRING,
DESCRIPTION TYPE STRING,
ITM_LANGUAGE TYPE STRING,
NUMBER_INT TYPE STRING,
NUMBER_EXT TYPE STRING,
ITM_TYPE TYPE STRING,
ORDER_DATE TYPE STRING,
SUBST_REASON TYPE STRING,
ITM_USAGE TYPE STRING,
ITM_TYPE_USAGE TYPE STRING,
PRODUCT_KIND TYPE STRING,
LOG_SYSTEM_EXT TYPE STRING,
ORDERADM_I_DUMMY TYPE STRING,END OF T_EKKO_STR. DATA: WA_BBP_PDVIEW_IAP_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_BBP_PDVIEW_IAP_STR-CLIENT sy-vline
WA_BBP_PDVIEW_IAP_STR-GUID sy-vline
WA_BBP_PDVIEW_IAP_STR-CATEGORY sy-vline
WA_BBP_PDVIEW_IAP_STR-CATEGORY_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-SCHEMA_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-CT_CATEGORY_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-ITM_EX_CT_UN_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-MANU_PROD sy-vline
WA_BBP_PDVIEW_IAP_STR-MFR_NO_EXT sy-vline
WA_BBP_PDVIEW_IAP_STR-CATALOGID sy-vline
WA_BBP_PDVIEW_IAP_STR-CATALOGITEM sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_QUOTE_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_QUOTE_ITEM sy-vline
WA_BBP_PDVIEW_IAP_STR-PRODUCT_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-DEL_DATCAT sy-vline
WA_BBP_PDVIEW_IAP_STR-DELIV_DATE sy-vline
WA_BBP_PDVIEW_IAP_STR-DELIV_TIME sy-vline
WA_BBP_PDVIEW_IAP_STR-LEADTIME sy-vline
WA_BBP_PDVIEW_IAP_STR-VPER_START sy-vline
WA_BBP_PDVIEW_IAP_STR-VPER_END sy-vline
WA_BBP_PDVIEW_IAP_STR-QUANTITY sy-vline
WA_BBP_PDVIEW_IAP_STR-UNIT sy-vline
WA_BBP_PDVIEW_IAP_STR-GROSS_PRICE sy-vline
WA_BBP_PDVIEW_IAP_STR-PRICE sy-vline
WA_BBP_PDVIEW_IAP_STR-PRICE_UNIT sy-vline
WA_BBP_PDVIEW_IAP_STR-PRICE_ORIGIN sy-vline
WA_BBP_PDVIEW_IAP_STR-VALUE sy-vline
WA_BBP_PDVIEW_IAP_STR-CURRENCY sy-vline
WA_BBP_PDVIEW_IAP_STR-TAX_CODE sy-vline
WA_BBP_PDVIEW_IAP_STR-BBP_MOVE_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-UNASSIGNED sy-vline
WA_BBP_PDVIEW_IAP_STR-SRC_OBJECT_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-SRC_OBJECT_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-SRC_ITM_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-SRC_LOG_SYS sy-vline
WA_BBP_PDVIEW_IAP_STR-SRC_GUID sy-vline
WA_BBP_PDVIEW_IAP_STR-CTR_LOG_SYS sy-vline
WA_BBP_PDVIEW_IAP_STR-CTR_GUID sy-vline
WA_BBP_PDVIEW_IAP_STR-CTR_ITEM_NUMBER sy-vline
WA_BBP_PDVIEW_IAP_STR-CTR_HDR_NUMBER sy-vline
WA_BBP_PDVIEW_IAP_STR-CTR_HDR_GUID sy-vline
WA_BBP_PDVIEW_IAP_STR-COMM_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-DEL_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-FINAL_INV sy-vline
WA_BBP_PDVIEW_IAP_STR-FINAL_ENTRY sy-vline
WA_BBP_PDVIEW_IAP_STR-DEDUCT_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-REJECT_WI sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_ASN_E sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_ASN sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_CF_E sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_CF sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_IV_E sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_IV sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_PO_E sy-vline
WA_BBP_PDVIEW_IAP_STR-VAL_PO_E_AGG sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_ASN_E sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_ASN sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_CF_E sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_CF sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_IV_E sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_IV sy-vline
WA_BBP_PDVIEW_IAP_STR-QUAN_PO_E sy-vline
WA_BBP_PDVIEW_IAP_STR-NUM_ASN sy-vline
WA_BBP_PDVIEW_IAP_STR-NUM_CONF sy-vline
WA_BBP_PDVIEW_IAP_STR-NUM_INV sy-vline
WA_BBP_PDVIEW_IAP_STR-DCIND sy-vline
WA_BBP_PDVIEW_IAP_STR-SUBDCIND sy-vline
WA_BBP_PDVIEW_IAP_STR-SUBTYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-SOURCE_REL_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEMID sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_POSID sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_LOGSYS sy-vline
WA_BBP_PDVIEW_IAP_STR-PCINS sy-vline
WA_BBP_PDVIEW_IAP_STR-PCNUM sy-vline
WA_BBP_PDVIEW_IAP_STR-PCNAME sy-vline
WA_BBP_PDVIEW_IAP_STR-PCDAT_TO sy-vline
WA_BBP_PDVIEW_IAP_STR-LOGSYS_FI sy-vline
WA_BBP_PDVIEW_IAP_STR-ITM_RELEASED sy-vline
WA_BBP_PDVIEW_IAP_STR-ACTIVE_ITEM sy-vline
WA_BBP_PDVIEW_IAP_STR-TIME_FROM sy-vline
WA_BBP_PDVIEW_IAP_STR-TIME_TO sy-vline
WA_BBP_PDVIEW_IAP_STR-ORIGIN_ORDER_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-ORIGIN_ITEM_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-NUM_SOS sy-vline
WA_BBP_PDVIEW_IAP_STR-GROUPING_LEVEL sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETPRI sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GROPRI sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETVAL sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GROVAL sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETDIS sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GRODIS sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETFRE sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GROFRE sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETINS sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GROINS sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETOTH sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GROOTH sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_NETTOT sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_GROTOT sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_ICMSLAW sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_IPILAW sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_CFOP sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_STEUC sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_MATUSE sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_MATORG sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_OWNPRO sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_INDUST sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_BR_MANCHG sy-vline
WA_BBP_PDVIEW_IAP_STR-ESRPZ sy-vline
WA_BBP_PDVIEW_IAP_STR-ESRNR sy-vline
WA_BBP_PDVIEW_IAP_STR-ESRRE sy-vline
WA_BBP_PDVIEW_IAP_STR-ICC_IN_TXJCD sy-vline
WA_BBP_PDVIEW_IAP_STR-DELIV_DAYS sy-vline
WA_BBP_PDVIEW_IAP_STR-INCOTERM_KEY sy-vline
WA_BBP_PDVIEW_IAP_STR-INCOTERM_LOC sy-vline
WA_BBP_PDVIEW_IAP_STR-GTIN sy-vline
WA_BBP_PDVIEW_IAP_STR-TAX_CODE_ORIGIN sy-vline
WA_BBP_PDVIEW_IAP_STR-MIN_ORDER_VALUE sy-vline
WA_BBP_PDVIEW_IAP_STR-MIN_ORDER_QUAN sy-vline
WA_BBP_PDVIEW_IAP_STR-GUARANTEED_MIN sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_SUBPOSID sy-vline
WA_BBP_PDVIEW_IAP_STR-ACCEPT_STAT_CODE sy-vline
WA_BBP_PDVIEW_IAP_STR-GROSS_WEIGHT sy-vline
WA_BBP_PDVIEW_IAP_STR-GROSSWEIGHT_UNIT sy-vline
WA_BBP_PDVIEW_IAP_STR-NET_WEIGHT sy-vline
WA_BBP_PDVIEW_IAP_STR-NETWEIGHT_UNIT sy-vline
WA_BBP_PDVIEW_IAP_STR-VOLUME_VAL sy-vline
WA_BBP_PDVIEW_IAP_STR-VOLUME_UNIT sy-vline
WA_BBP_PDVIEW_IAP_STR-SHIPPING_TS sy-vline
WA_BBP_PDVIEW_IAP_STR-DEL_NOTE_NUMBER sy-vline
WA_BBP_PDVIEW_IAP_STR-DEL_NOTE_ITEM_NO sy-vline
WA_BBP_PDVIEW_IAP_STR-FIX_LINE_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-CHECK_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-HIER_CHECK_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-UOM_DENOMINATOR sy-vline
WA_BBP_PDVIEW_IAP_STR-UOM_NUMERATOR sy-vline
WA_BBP_PDVIEW_IAP_STR-DOC_PRIORITY sy-vline
WA_BBP_PDVIEW_IAP_STR-LUMP_SUM_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-CO_CODE sy-vline
WA_BBP_PDVIEW_IAP_STR-PROJECT_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-PROJECT_TASK_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-PROJECT_ROLE_ID sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_KEY sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_POSKEY sy-vline
WA_BBP_PDVIEW_IAP_STR-QUOTA_RELEVANT sy-vline
WA_BBP_PDVIEW_IAP_STR-DOC_FLOW_CTRL sy-vline
WA_BBP_PDVIEW_IAP_STR-EXPSV_ITEM_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-ORIG_GUID sy-vline
WA_BBP_PDVIEW_IAP_STR-PR_UNIT sy-vline
WA_BBP_PDVIEW_IAP_STR-TAR_IVAL sy-vline
WA_BBP_PDVIEW_IAP_STR-TAR_QTY sy-vline
WA_BBP_PDVIEW_IAP_STR-PMNTTRMS sy-vline
WA_BBP_PDVIEW_IAP_STR-ITEM_PROCESS_TYP sy-vline
WA_BBP_PDVIEW_IAP_STR-EXLIN sy-vline
WA_BBP_PDVIEW_IAP_STR-REV_LEV sy-vline
WA_BBP_PDVIEW_IAP_STR-BLK_LOCAL_SRC sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_CH_AT sy-vline
WA_BBP_PDVIEW_IAP_STR-EXT_DEM_EXLIN sy-vline
WA_BBP_PDVIEW_IAP_STR-CTR_SRV_NUM sy-vline
WA_BBP_PDVIEW_IAP_STR-PRC_CHG_IND sy-vline
WA_BBP_PDVIEW_IAP_STR-ACC_STAT_SUS sy-vline
WA_BBP_PDVIEW_IAP_STR-CREATED_AT sy-vline
WA_BBP_PDVIEW_IAP_STR-CREATED_BY sy-vline
WA_BBP_PDVIEW_IAP_STR-CHANGED_AT sy-vline
WA_BBP_PDVIEW_IAP_STR-CHANGED_BY sy-vline
WA_BBP_PDVIEW_IAP_STR-OBJECT_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-DESCRIPTION_UC sy-vline
WA_BBP_PDVIEW_IAP_STR-HEADER sy-vline
WA_BBP_PDVIEW_IAP_STR-PARENT sy-vline
WA_BBP_PDVIEW_IAP_STR-ALTERNATIVE sy-vline
WA_BBP_PDVIEW_IAP_STR-PRODUCT sy-vline
WA_BBP_PDVIEW_IAP_STR-PRODUCT_SRC_SYS sy-vline
WA_BBP_PDVIEW_IAP_STR-ORDERED_PROD sy-vline
WA_BBP_PDVIEW_IAP_STR-PARTNER_PROD sy-vline
WA_BBP_PDVIEW_IAP_STR-DESCRIPTION sy-vline
WA_BBP_PDVIEW_IAP_STR-ITM_LANGUAGE sy-vline
WA_BBP_PDVIEW_IAP_STR-NUMBER_INT sy-vline
WA_BBP_PDVIEW_IAP_STR-NUMBER_EXT sy-vline
WA_BBP_PDVIEW_IAP_STR-ITM_TYPE sy-vline
WA_BBP_PDVIEW_IAP_STR-ORDER_DATE sy-vline
WA_BBP_PDVIEW_IAP_STR-SUBST_REASON sy-vline
WA_BBP_PDVIEW_IAP_STR-ITM_USAGE sy-vline
WA_BBP_PDVIEW_IAP_STR-ITM_TYPE_USAGE sy-vline
WA_BBP_PDVIEW_IAP_STR-PRODUCT_KIND sy-vline
WA_BBP_PDVIEW_IAP_STR-LOG_SYSTEM_EXT sy-vline
WA_BBP_PDVIEW_IAP_STR-ORDERADM_I_DUMMY sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.