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

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/RPM/BAPI_BUS2002_CHG_ATTR ASSIGNING </RPM/BAPI_BUS2002_CHG_ATTR>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</RPM/BAPI_BUS2002_CHG_ATTR>-CONTROL_KEY = 1.
</RPM/BAPI_BUS2002_CHG_ATTR>-PLANT = 1.
</RPM/BAPI_BUS2002_CHG_ATTR>-WORK_CNTR = 1.
</RPM/BAPI_BUS2002_CHG_ATTR>-DESCRIPTION = 1.
</RPM/BAPI_BUS2002_CHG_ATTR>-WBS_ELEMENT = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/RPM/BAPI_BUS2002_CHG_ATTR-WORK_ACTIVITY, sy-vline,
WA_/RPM/BAPI_BUS2002_CHG_ATTR-UN_WORK, sy-vline,
WA_/RPM/BAPI_BUS2002_CHG_ATTR-UN_WORK_ISO, sy-vline,
WA_/RPM/BAPI_BUS2002_CHG_ATTR-CALCULATION_KEY, sy-vline,
WA_/RPM/BAPI_BUS2002_CHG_ATTR-ACTTYPE, sy-vline,
WA_/RPM/BAPI_BUS2002_CHG_ATTR-PRIORITY, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/RPM/BAPI_BUS2002_CHG_ATTR 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_/RPM/BAPI_BUS2002_CHG_ATTR 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_/RPM/BAPI_BUS2002_CHG_ATTR INTO WA_/RPM/BAPI_BUS2002_CHG_ATTR. *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 ABPSN, internal->external for field WBS_ELEMENT CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_/RPM/BAPI_BUS2002_CHG_ATTR-WBS_ELEMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/RPM/BAPI_BUS2002_CHG_ATTR-WBS_ELEMENT.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit CUNIT, internal->external for field DURATION_MINIMUM_FC_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/RPM/BAPI_BUS2002_CHG_ATTR-DURATION_MINIMUM_FC_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/RPM/BAPI_BUS2002_CHG_ATTR-DURATION_MINIMUM_FC_UNIT.
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_/RPM/BAPI_BUS2002_CHG_ATTR_STR,
CONTROL_KEY TYPE STRING,
PLANT TYPE STRING,
WORK_CNTR TYPE STRING,
DESCRIPTION TYPE STRING,
WBS_ELEMENT TYPE STRING,
WORK_ACTIVITY TYPE STRING,
UN_WORK TYPE STRING,
UN_WORK_ISO TYPE STRING,
CALCULATION_KEY TYPE STRING,
ACTTYPE TYPE STRING,
PRIORITY TYPE STRING,
MILESTONE TYPE STRING,
DISTRIBUTION_KEY TYPE STRING,
NUMBER_OF_CAPACITIES TYPE STRING,
PERCENT_OF_WORK TYPE STRING,
EXEC_FACTOR TYPE STRING,
STD_TEXT_KEY TYPE STRING,
DURATION_NORMAL TYPE STRING,
DURATION_NORMAL_UNIT TYPE STRING,
DURATION_NORMAL_UNIT_ISO TYPE STRING,
DURATION_MINIMUM TYPE STRING,
DURATION_MINIMUM_UNIT TYPE STRING,
DURATION_MINIMUM_UNIT_ISO TYPE STRING,
FLEXIBLE_DURATION TYPE STRING,
FACTORY_CALENDAR TYPE STRING,
REDUCTION_STRATEGY TYPE STRING,
INFO_REC TYPE STRING,
VENDOR_NO TYPE STRING,
PURCH_ORG TYPE STRING,
PUR_GROUP TYPE STRING,
MATL_GROUP TYPE STRING,
AGREEMENT TYPE STRING,
AGMT_ITEM TYPE STRING,
PRICE TYPE STRING,
PRICE_UNIT TYPE STRING,
CURRENCY TYPE STRING,
CURRENCY_ISO TYPE STRING,
COST_ELEM TYPE STRING,
PUR_INFO_RECORD_DATA_FIXED TYPE STRING,
PLND_DELRY TYPE STRING,
OPERATION_QTY TYPE STRING,
OPERATION_MEASURE_UNIT TYPE STRING,
OPERATION_MEASURE_UNIT_ISO TYPE STRING,
NOT_MRP_APPLICABLE TYPE STRING,
SORTED_BY TYPE STRING,
PREQ_NAME TYPE STRING,
GR_RCPT TYPE STRING,
TRACKINGNO TYPE STRING,
UNLOAD_PT TYPE STRING,
CONSTRAINT_TYPE_START TYPE STRING,
CONSTRAINT_TYPE_FINISH TYPE STRING,
CONSTRAINT_START_DATE TYPE STRING,
CONSTRAINT_START_TIME TYPE STRING,
CONSTRAINT_FINISH_DATE TYPE STRING,
CONSTRAINT_FINISH_TIME TYPE STRING,
CONSTRAINT_TYPE_FINISH_FC TYPE STRING,
CONSTRAINT_TYPE_START_FC TYPE STRING,
CONSTRAINT_START_DATE_FC TYPE STRING,
CONSTRAINT_START_TIME_FC TYPE STRING,
CONSTRAINT_FINISH_DATE_FC TYPE STRING,
CONSTRAINT_FINISH_TIME_FC TYPE STRING,
BUS_AREA TYPE STRING,
PROFIT_CTR TYPE STRING,
CHANGE_NO TYPE STRING,
REFERENCE_POINT TYPE STRING,
CSTG_SHEET TYPE STRING,
OVERHEAD_KEY TYPE STRING,
TAXJURCODE TYPE STRING,
OBJECTCLASS TYPE STRING,
ACTIVITY_COSTS TYPE STRING,
PROJECT_SUMMARIZATION TYPE STRING,
REQ_COST_CENTER TYPE STRING,
EARLY_START_DATE TYPE STRING,
EARLY_START_TIME TYPE STRING,
EARLY_FINISH_DATE TYPE STRING,
EARLY_FINISH_TIME TYPE STRING,
LATEST_START_DATE TYPE STRING,
LATEST_START_TIME TYPE STRING,
LATEST_FINISH_DATE TYPE STRING,
LATEST_FINISH_TIME TYPE STRING,
FLOAT_FREE TYPE STRING,
FLOAT_TOTAL TYPE STRING,
USER_FIELD_KEY TYPE STRING,
USER_FIELD_CHAR20_1 TYPE STRING,
USER_FIELD_CHAR20_2 TYPE STRING,
USER_FIELD_CHAR10_1 TYPE STRING,
USER_FIELD_CHAR10_2 TYPE STRING,
USER_FIELD_QUAN1 TYPE STRING,
USER_FIELD_UNIT1 TYPE STRING,
USER_FIELD_UNIT1_ISO TYPE STRING,
USER_FIELD_QUAN2 TYPE STRING,
USER_FIELD_UNIT2 TYPE STRING,
USER_FIELD_UNIT2_ISO TYPE STRING,
USER_FIELD_CURR1 TYPE STRING,
USER_FIELD_CUKY1 TYPE STRING,
USER_FIELD_CUKY1_ISO TYPE STRING,
USER_FIELD_CURR2 TYPE STRING,
USER_FIELD_CUKY2 TYPE STRING,
USER_FIELD_CUKY2_ISO TYPE STRING,
USER_FIELD_DATE1 TYPE STRING,
USER_FIELD_DATE2 TYPE STRING,
USER_FIELD_FLAG1 TYPE STRING,
USER_FIELD_FLAG2 TYPE STRING,
DURATION_NORMAL_FC TYPE STRING,
DURATION_NORMAL_FC_UNIT TYPE STRING,
DURATION_NORMAL_FC_UNIT_ISO TYPE STRING,
DURATION_MINIMUM_FC TYPE STRING,
DURATION_MINIMUM_FC_UNIT TYPE STRING,
DURATION_MINIMUM_FC_UNIT_ISO TYPE STRING,
EARLY_START_DATE_FC TYPE STRING,
EARLY_START_TIME_FC TYPE STRING,
EARLY_FINISH_DATE_FC TYPE STRING,
EARLY_FINISH_TIME_FC TYPE STRING,
LATEST_START_DATE_FC TYPE STRING,
LATEST_START_TIME_FC TYPE STRING,
LATEST_FINISH_DATE_FC TYPE STRING,
LATEST_FINISH_TIME_FC TYPE STRING,
FLOAT_FREE_FC TYPE STRING,
FLOAT_TOTAL_FC TYPE STRING,
FUNC_AREA TYPE STRING,END OF T_EKKO_STR. DATA: WA_/RPM/BAPI_BUS2002_CHG_ATTR_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_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONTROL_KEY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PLANT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-WORK_CNTR sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DESCRIPTION sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-WBS_ELEMENT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-WORK_ACTIVITY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-UN_WORK sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-UN_WORK_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CALCULATION_KEY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-ACTTYPE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PRIORITY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-MILESTONE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DISTRIBUTION_KEY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-NUMBER_OF_CAPACITIES sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PERCENT_OF_WORK sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EXEC_FACTOR sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-STD_TEXT_KEY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_NORMAL sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_NORMAL_UNIT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_NORMAL_UNIT_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_MINIMUM sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_MINIMUM_UNIT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_MINIMUM_UNIT_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FLEXIBLE_DURATION sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FACTORY_CALENDAR sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-REDUCTION_STRATEGY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-INFO_REC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-VENDOR_NO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PURCH_ORG sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PUR_GROUP sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-MATL_GROUP sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-AGREEMENT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-AGMT_ITEM sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PRICE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PRICE_UNIT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CURRENCY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CURRENCY_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-COST_ELEM sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PUR_INFO_RECORD_DATA_FIXED sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PLND_DELRY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-OPERATION_QTY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-OPERATION_MEASURE_UNIT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-OPERATION_MEASURE_UNIT_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-NOT_MRP_APPLICABLE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-SORTED_BY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PREQ_NAME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-GR_RCPT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-TRACKINGNO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-UNLOAD_PT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_TYPE_START sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_TYPE_FINISH sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_START_DATE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_START_TIME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_FINISH_DATE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_FINISH_TIME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_TYPE_FINISH_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_TYPE_START_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_START_DATE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_START_TIME_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_FINISH_DATE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CONSTRAINT_FINISH_TIME_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-BUS_AREA sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PROFIT_CTR sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CHANGE_NO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-REFERENCE_POINT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-CSTG_SHEET sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-OVERHEAD_KEY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-TAXJURCODE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-OBJECTCLASS sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-ACTIVITY_COSTS sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-PROJECT_SUMMARIZATION sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-REQ_COST_CENTER sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_START_DATE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_START_TIME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_FINISH_DATE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_FINISH_TIME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_START_DATE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_START_TIME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_FINISH_DATE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_FINISH_TIME sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FLOAT_FREE sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FLOAT_TOTAL sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_KEY sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CHAR20_1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CHAR20_2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CHAR10_1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CHAR10_2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_QUAN1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_UNIT1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_UNIT1_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_QUAN2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_UNIT2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_UNIT2_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CURR1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CUKY1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CUKY1_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CURR2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CUKY2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_CUKY2_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_DATE1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_DATE2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_FLAG1 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-USER_FIELD_FLAG2 sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_NORMAL_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_NORMAL_FC_UNIT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_NORMAL_FC_UNIT_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_MINIMUM_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_MINIMUM_FC_UNIT sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-DURATION_MINIMUM_FC_UNIT_ISO sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_START_DATE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_START_TIME_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_FINISH_DATE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-EARLY_FINISH_TIME_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_START_DATE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_START_TIME_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_FINISH_DATE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-LATEST_FINISH_TIME_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FLOAT_FREE_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FLOAT_TOTAL_FC sy-vline
WA_/RPM/BAPI_BUS2002_CHG_ATTR_STR-FUNC_AREA sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.