ABAP Select data from SAP table PRPS_CRM_EXT 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 PRPS_CRM_EXT 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 PRPS_CRM_EXT. 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 PRPS_CRM_EXT 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_PRPS_CRM_EXT TYPE STANDARD TABLE OF PRPS_CRM_EXT,
      WA_PRPS_CRM_EXT TYPE PRPS_CRM_EXT,
      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: <PRPS_CRM_EXT> TYPE PRPS_CRM_EXT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM PRPS_CRM_EXT
*  INTO TABLE @DATA(IT_PRPS_CRM_EXT2).
*--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_PRPS_CRM_EXT INDEX 1 INTO DATA(WA_PRPS_CRM_EXT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_PRPS_CRM_EXT ASSIGNING <PRPS_CRM_EXT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<PRPS_CRM_EXT>-MANDT = 1.
<PRPS_CRM_EXT>-PSPNR = 1.
<PRPS_CRM_EXT>-POSID = 1.
<PRPS_CRM_EXT>-POST1 = 1.
<PRPS_CRM_EXT>-OBJNR = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_PRPS_CRM_EXT-PSPHI, sy-vline,
WA_PRPS_CRM_EXT-POSKI, sy-vline,
WA_PRPS_CRM_EXT-ERNAM, sy-vline,
WA_PRPS_CRM_EXT-ERDAT, sy-vline,
WA_PRPS_CRM_EXT-AENAM, sy-vline,
WA_PRPS_CRM_EXT-AEDAT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_PRPS_CRM_EXT 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_PRPS_CRM_EXT 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_PRPS_CRM_EXT INTO WA_PRPS_CRM_EXT. *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 ABPSP, internal->external for field PSPNR CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-PSPNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-PSPNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ABPSN, internal->external for field POSID CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-POSID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-POSID.
WRITE:/ 'New Value:', ld_input.

*Conversion exit KONPD, internal->external for field PSPHI CALL FUNCTION 'CONVERSION_EXIT_KONPD_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-PSPHI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-PSPHI.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit TPLNR, internal->external for field TPLNR CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-TPLNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-TPLNR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit KONPT, internal->external for field SPSNR CALL FUNCTION 'CONVERSION_EXIT_KONPT_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-SPSNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-SPSNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit SCOPE, internal->external for field SCOPE CALL FUNCTION 'CONVERSION_EXIT_SCOPE_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-SCOPE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-SCOPE.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit MATN5, internal->external for field MATNR CALL FUNCTION 'CONVERSION_EXIT_MATN5_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-MATNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-MATNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ABPSP, internal->external for field VLPSP CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-VLPSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-VLPSP.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

*Conversion exit MATN1, internal->external for field MATNR_LONG CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_PRPS_CRM_EXT-MATNR_LONG IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PRPS_CRM_EXT-MATNR_LONG.
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_PRPS_CRM_EXT_STR,
MANDT TYPE STRING,
PSPNR TYPE STRING,
POSID TYPE STRING,
POST1 TYPE STRING,
OBJNR TYPE STRING,
PSPHI TYPE STRING,
POSKI TYPE STRING,
ERNAM TYPE STRING,
ERDAT TYPE STRING,
AENAM TYPE STRING,
AEDAT TYPE STRING,
VERNR TYPE STRING,
VERNA TYPE STRING,
ASTNR TYPE STRING,
ASTNA TYPE STRING,
PBUKR TYPE STRING,
PGSBR TYPE STRING,
PKOKR TYPE STRING,
PRCTR TYPE STRING,
PRART TYPE STRING,
STUFE TYPE STRING,
PLAKZ TYPE STRING,
BELKZ TYPE STRING,
FAKKZ TYPE STRING,
NPFAZ TYPE STRING,
ZUORD TYPE STRING,
TRMEQ TYPE STRING,
KVEWE TYPE STRING,
KAPPL TYPE STRING,
KALSM TYPE STRING,
ZSCHL TYPE STRING,
ABGSL TYPE STRING,
AKOKR TYPE STRING,
AKSTL TYPE STRING,
FKOKR TYPE STRING,
FKSTL TYPE STRING,
FABKL TYPE STRING,
PSPRI TYPE STRING,
EQUNR TYPE STRING,
TPLNR TYPE STRING,
PWPOS TYPE STRING,
WERKS TYPE STRING,
TXTSP TYPE STRING,
SLWID TYPE STRING,
USR00 TYPE STRING,
USR01 TYPE STRING,
USR02 TYPE STRING,
USR03 TYPE STRING,
USR04 TYPE STRING,
USE04 TYPE STRING,
USR05 TYPE STRING,
USE05 TYPE STRING,
USR06 TYPE STRING,
USE06 TYPE STRING,
USR07 TYPE STRING,
USE07 TYPE STRING,
USR08 TYPE STRING,
USR09 TYPE STRING,
USR10 TYPE STRING,
USR11 TYPE STRING,
KOSTL TYPE STRING,
KTRG TYPE STRING,
BERST TYPE STRING,
BERTR TYPE STRING,
BERKO TYPE STRING,
BERBU TYPE STRING,
CLASF TYPE STRING,
SPSNR TYPE STRING,
SCOPE TYPE STRING,
XSTAT TYPE STRING,
TXJCD TYPE STRING,
ZSCHM TYPE STRING,
IMPRF TYPE STRING,
EVGEW TYPE STRING,
AENNR TYPE STRING,
SUBPR TYPE STRING,
POSTU TYPE STRING,
PLINT TYPE STRING,
LOEVM TYPE STRING,
KZBWS TYPE STRING,
FPLNR TYPE STRING,
TADAT TYPE STRING,
IZWEK TYPE STRING,
ISIZE TYPE STRING,
IUMKZ TYPE STRING,
ABUKR TYPE STRING,
GRPKZ TYPE STRING,
PGPRF TYPE STRING,
LOGSYSTEM TYPE STRING,
PSPNR_LOGS TYPE STRING,
STORT TYPE STRING,
FUNC_AREA TYPE STRING,
KLVAR TYPE STRING,
KALNR TYPE STRING,
POSID_EDIT TYPE STRING,
PSPKZ TYPE STRING,
MATNR TYPE STRING,
VLPSP TYPE STRING,
VLPKZ TYPE STRING,
SORT1 TYPE STRING,
SORT2 TYPE STRING,
SORT3 TYPE STRING,
VNAME TYPE STRING,
RECID TYPE STRING,
ETYPE TYPE STRING,
OTYPE TYPE STRING,
JIBCL TYPE STRING,
JIBSA TYPE STRING,
CGPL_GUID16 TYPE STRING,
CGPL_LOGSYS TYPE STRING,
CGPL_OBJTYPE TYPE STRING,
ADPSP TYPE STRING,
RFIPPNT TYPE STRING,
EEW_PRPS_PS_DUMMY TYPE STRING,
CPD_UPDAT TYPE STRING,
FERC_IND TYPE STRING,
PRPS_STATUS TYPE STRING,
MATNR_LONG TYPE STRING,END OF T_EKKO_STR. DATA: WA_PRPS_CRM_EXT_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_PRPS_CRM_EXT_STR-MANDT sy-vline
WA_PRPS_CRM_EXT_STR-PSPNR sy-vline
WA_PRPS_CRM_EXT_STR-POSID sy-vline
WA_PRPS_CRM_EXT_STR-POST1 sy-vline
WA_PRPS_CRM_EXT_STR-OBJNR sy-vline
WA_PRPS_CRM_EXT_STR-PSPHI sy-vline
WA_PRPS_CRM_EXT_STR-POSKI sy-vline
WA_PRPS_CRM_EXT_STR-ERNAM sy-vline
WA_PRPS_CRM_EXT_STR-ERDAT sy-vline
WA_PRPS_CRM_EXT_STR-AENAM sy-vline
WA_PRPS_CRM_EXT_STR-AEDAT sy-vline
WA_PRPS_CRM_EXT_STR-VERNR sy-vline
WA_PRPS_CRM_EXT_STR-VERNA sy-vline
WA_PRPS_CRM_EXT_STR-ASTNR sy-vline
WA_PRPS_CRM_EXT_STR-ASTNA sy-vline
WA_PRPS_CRM_EXT_STR-PBUKR sy-vline
WA_PRPS_CRM_EXT_STR-PGSBR sy-vline
WA_PRPS_CRM_EXT_STR-PKOKR sy-vline
WA_PRPS_CRM_EXT_STR-PRCTR sy-vline
WA_PRPS_CRM_EXT_STR-PRART sy-vline
WA_PRPS_CRM_EXT_STR-STUFE sy-vline
WA_PRPS_CRM_EXT_STR-PLAKZ sy-vline
WA_PRPS_CRM_EXT_STR-BELKZ sy-vline
WA_PRPS_CRM_EXT_STR-FAKKZ sy-vline
WA_PRPS_CRM_EXT_STR-NPFAZ sy-vline
WA_PRPS_CRM_EXT_STR-ZUORD sy-vline
WA_PRPS_CRM_EXT_STR-TRMEQ sy-vline
WA_PRPS_CRM_EXT_STR-KVEWE sy-vline
WA_PRPS_CRM_EXT_STR-KAPPL sy-vline
WA_PRPS_CRM_EXT_STR-KALSM sy-vline
WA_PRPS_CRM_EXT_STR-ZSCHL sy-vline
WA_PRPS_CRM_EXT_STR-ABGSL sy-vline
WA_PRPS_CRM_EXT_STR-AKOKR sy-vline
WA_PRPS_CRM_EXT_STR-AKSTL sy-vline
WA_PRPS_CRM_EXT_STR-FKOKR sy-vline
WA_PRPS_CRM_EXT_STR-FKSTL sy-vline
WA_PRPS_CRM_EXT_STR-FABKL sy-vline
WA_PRPS_CRM_EXT_STR-PSPRI sy-vline
WA_PRPS_CRM_EXT_STR-EQUNR sy-vline
WA_PRPS_CRM_EXT_STR-TPLNR sy-vline
WA_PRPS_CRM_EXT_STR-PWPOS sy-vline
WA_PRPS_CRM_EXT_STR-WERKS sy-vline
WA_PRPS_CRM_EXT_STR-TXTSP sy-vline
WA_PRPS_CRM_EXT_STR-SLWID sy-vline
WA_PRPS_CRM_EXT_STR-USR00 sy-vline
WA_PRPS_CRM_EXT_STR-USR01 sy-vline
WA_PRPS_CRM_EXT_STR-USR02 sy-vline
WA_PRPS_CRM_EXT_STR-USR03 sy-vline
WA_PRPS_CRM_EXT_STR-USR04 sy-vline
WA_PRPS_CRM_EXT_STR-USE04 sy-vline
WA_PRPS_CRM_EXT_STR-USR05 sy-vline
WA_PRPS_CRM_EXT_STR-USE05 sy-vline
WA_PRPS_CRM_EXT_STR-USR06 sy-vline
WA_PRPS_CRM_EXT_STR-USE06 sy-vline
WA_PRPS_CRM_EXT_STR-USR07 sy-vline
WA_PRPS_CRM_EXT_STR-USE07 sy-vline
WA_PRPS_CRM_EXT_STR-USR08 sy-vline
WA_PRPS_CRM_EXT_STR-USR09 sy-vline
WA_PRPS_CRM_EXT_STR-USR10 sy-vline
WA_PRPS_CRM_EXT_STR-USR11 sy-vline
WA_PRPS_CRM_EXT_STR-KOSTL sy-vline
WA_PRPS_CRM_EXT_STR-KTRG sy-vline
WA_PRPS_CRM_EXT_STR-BERST sy-vline
WA_PRPS_CRM_EXT_STR-BERTR sy-vline
WA_PRPS_CRM_EXT_STR-BERKO sy-vline
WA_PRPS_CRM_EXT_STR-BERBU sy-vline
WA_PRPS_CRM_EXT_STR-CLASF sy-vline
WA_PRPS_CRM_EXT_STR-SPSNR sy-vline
WA_PRPS_CRM_EXT_STR-SCOPE sy-vline
WA_PRPS_CRM_EXT_STR-XSTAT sy-vline
WA_PRPS_CRM_EXT_STR-TXJCD sy-vline
WA_PRPS_CRM_EXT_STR-ZSCHM sy-vline
WA_PRPS_CRM_EXT_STR-IMPRF sy-vline
WA_PRPS_CRM_EXT_STR-EVGEW sy-vline
WA_PRPS_CRM_EXT_STR-AENNR sy-vline
WA_PRPS_CRM_EXT_STR-SUBPR sy-vline
WA_PRPS_CRM_EXT_STR-POSTU sy-vline
WA_PRPS_CRM_EXT_STR-PLINT sy-vline
WA_PRPS_CRM_EXT_STR-LOEVM sy-vline
WA_PRPS_CRM_EXT_STR-KZBWS sy-vline
WA_PRPS_CRM_EXT_STR-FPLNR sy-vline
WA_PRPS_CRM_EXT_STR-TADAT sy-vline
WA_PRPS_CRM_EXT_STR-IZWEK sy-vline
WA_PRPS_CRM_EXT_STR-ISIZE sy-vline
WA_PRPS_CRM_EXT_STR-IUMKZ sy-vline
WA_PRPS_CRM_EXT_STR-ABUKR sy-vline
WA_PRPS_CRM_EXT_STR-GRPKZ sy-vline
WA_PRPS_CRM_EXT_STR-PGPRF sy-vline
WA_PRPS_CRM_EXT_STR-LOGSYSTEM sy-vline
WA_PRPS_CRM_EXT_STR-PSPNR_LOGS sy-vline
WA_PRPS_CRM_EXT_STR-STORT sy-vline
WA_PRPS_CRM_EXT_STR-FUNC_AREA sy-vline
WA_PRPS_CRM_EXT_STR-KLVAR sy-vline
WA_PRPS_CRM_EXT_STR-KALNR sy-vline
WA_PRPS_CRM_EXT_STR-POSID_EDIT sy-vline
WA_PRPS_CRM_EXT_STR-PSPKZ sy-vline
WA_PRPS_CRM_EXT_STR-MATNR sy-vline
WA_PRPS_CRM_EXT_STR-VLPSP sy-vline
WA_PRPS_CRM_EXT_STR-VLPKZ sy-vline
WA_PRPS_CRM_EXT_STR-SORT1 sy-vline
WA_PRPS_CRM_EXT_STR-SORT2 sy-vline
WA_PRPS_CRM_EXT_STR-SORT3 sy-vline
WA_PRPS_CRM_EXT_STR-VNAME sy-vline
WA_PRPS_CRM_EXT_STR-RECID sy-vline
WA_PRPS_CRM_EXT_STR-ETYPE sy-vline
WA_PRPS_CRM_EXT_STR-OTYPE sy-vline
WA_PRPS_CRM_EXT_STR-JIBCL sy-vline
WA_PRPS_CRM_EXT_STR-JIBSA sy-vline
WA_PRPS_CRM_EXT_STR-CGPL_GUID16 sy-vline
WA_PRPS_CRM_EXT_STR-CGPL_LOGSYS sy-vline
WA_PRPS_CRM_EXT_STR-CGPL_OBJTYPE sy-vline
WA_PRPS_CRM_EXT_STR-ADPSP sy-vline
WA_PRPS_CRM_EXT_STR-RFIPPNT sy-vline
WA_PRPS_CRM_EXT_STR-EEW_PRPS_PS_DUMMY sy-vline
WA_PRPS_CRM_EXT_STR-CPD_UPDAT sy-vline
WA_PRPS_CRM_EXT_STR-FERC_IND sy-vline
WA_PRPS_CRM_EXT_STR-PRPS_STATUS sy-vline
WA_PRPS_CRM_EXT_STR-MATNR_LONG sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.