ABAP Select data from SAP table PIN_EMP_STRUCT 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 PIN_EMP_STRUCT 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 PIN_EMP_STRUCT. 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 PIN_EMP_STRUCT 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_PIN_EMP_STRUCT TYPE STANDARD TABLE OF PIN_EMP_STRUCT, WA_PIN_EMP_STRUCT TYPE PIN_EMP_STRUCT, 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: <PIN_EMP_STRUCT> TYPE PIN_EMP_STRUCT. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_PIN_EMP_STRUCT. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM PIN_EMP_STRUCT INTO TABLE IT_PIN_EMP_STRUCT. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM PIN_EMP_STRUCT * INTO TABLE @DATA(IT_PIN_EMP_STRUCT2). *--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_PIN_EMP_STRUCT INDEX 1 INTO DATA(WA_PIN_EMP_STRUCT2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_PIN_EMP_STRUCT ASSIGNING <PIN_EMP_STRUCT>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<PIN_EMP_STRUCT>-REFNR = 1.
<PIN_EMP_STRUCT>-PRCSF = 1.
<PIN_EMP_STRUCT>-MLCCH = 1.
<PIN_EMP_STRUCT>-TRNSD = 1.
<PIN_EMP_STRUCT>-PERNR = 1.
ENDLOOP. LOOP AT IT_PIN_EMP_STRUCT INTO WA_PIN_EMP_STRUCT. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_PIN_EMP_STRUCT-REFNR, sy-vline,
WA_PIN_EMP_STRUCT-RETYP, sy-vline,
WA_PIN_EMP_STRUCT-RQTYP, sy-vline,
WA_PIN_EMP_STRUCT-CREFM, sy-vline,
WA_PIN_EMP_STRUCT-RQCID, sy-vline,
WA_PIN_EMP_STRUCT-RQCDT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_PIN_EMP_STRUCT 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_PIN_EMP_STRUCT 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_PIN_EMP_STRUCT INTO WA_PIN_EMP_STRUCT. *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_PIN_EMP_STRUCT_STR,
REFNR TYPE STRING,
PRCSF TYPE STRING,
MLCCH TYPE STRING,
TRNSD TYPE STRING,
PERNR TYPE STRING,
REFNR TYPE STRING,
RETYP TYPE STRING,
RQTYP TYPE STRING,
CREFM TYPE STRING,
RQCID TYPE STRING,
RQCDT TYPE STRING,
RQCTM TYPE STRING,
RQCAN TYPE STRING,
RSNCD TYPE STRING,
ARDDT TYPE STRING,
ITUDT TYPE STRING,
PAYDT TYPE STRING,
CODAT TYPE STRING,
ITBDT TYPE STRING,
PHASE TYPE STRING,
CSTAT TYPE STRING,
ASREF TYPE STRING,
TSR01 TYPE STRING,
TSR02 TYPE STRING,
OCFLG TYPE STRING,
TEXRQ TYPE STRING,
WRKID TYPE STRING,
OCPVD TYPE STRING,
DCLAG TYPE STRING,
ERRFG TYPE STRING,
ERRNO TYPE STRING,
APUID TYPE STRING,
APLVL TYPE STRING,
APGRP TYPE STRING,
LCUID TYPE STRING,
LCHDT TYPE STRING,
LCHTM TYPE STRING,
ISMST TYPE STRING,
EEMOB TYPE STRING,
APMOB TYPE STRING,
ADMOB TYPE STRING,
SCMCD TYPE STRING,
PCLMD TYPE STRING,
ISCMP TYPE STRING,
PRTNO TYPE STRING,
TRPNO TYPE STRING,
BEGDA TYPE STRING,
ENNDA TYPE STRING,
CLREC TYPE STRING,
HEADR TYPE STRING,
RQAMT TYPE STRING,
APAMT TYPE STRING,
RQNUM TYPE STRING,
APNUM TYPE STRING,
RQTEX TYPE STRING,
APTEX TYPE STRING,
UNIT TYPE STRING,
WAERS TYPE STRING,
SDAT1 TYPE STRING,
SDAT2 TYPE STRING,
SDAT3 TYPE STRING,
SDAT4 TYPE STRING,
SNUM1 TYPE STRING,
SNUM2 TYPE STRING,
SNUM3 TYPE STRING,
SNUM4 TYPE STRING,
ADREP TYPE STRING,
DEPDT TYPE STRING,
RQRMK TYPE STRING,
ATCHM TYPE STRING,
HAEDC TYPE STRING,
CDT01 TYPE STRING,
CDT02 TYPE STRING,
CDT03 TYPE STRING,
CDT04 TYPE STRING,
CDT05 TYPE STRING,
CDT06 TYPE STRING,
CDT07 TYPE STRING,
CDT08 TYPE STRING,
CDT09 TYPE STRING,
CDT10 TYPE STRING,
C01T1 TYPE STRING,
C01T2 TYPE STRING,
C01T3 TYPE STRING,
C01T4 TYPE STRING,
C01T5 TYPE STRING,
C03T1 TYPE STRING,
C03T2 TYPE STRING,
C03T3 TYPE STRING,
C03T4 TYPE STRING,
C03T5 TYPE STRING,
C10T1 TYPE STRING,
C10T2 TYPE STRING,
C10T3 TYPE STRING,
C10T4 TYPE STRING,
C10T5 TYPE STRING,
C20T1 TYPE STRING,
C20T2 TYPE STRING,
C20T3 TYPE STRING,
C20T4 TYPE STRING,
C20T5 TYPE STRING,
C40T1 TYPE STRING,
C40T2 TYPE STRING,
C40T3 TYPE STRING,
C40T4 TYPE STRING,
C40T5 TYPE STRING,
N02N1 TYPE STRING,
N02N2 TYPE STRING,
N02N3 TYPE STRING,
N02N4 TYPE STRING,
N02N5 TYPE STRING,
N05N1 TYPE STRING,
N05N2 TYPE STRING,
N05N3 TYPE STRING,
N05N4 TYPE STRING,
N05N5 TYPE STRING,
N10N1 TYPE STRING,
N10N2 TYPE STRING,
N10N3 TYPE STRING,
N10N4 TYPE STRING,
N10N5 TYPE STRING,
N20N1 TYPE STRING,
N20N2 TYPE STRING,
N20N3 TYPE STRING,
N20N4 TYPE STRING,
N20N5 TYPE STRING,
N16N1 TYPE STRING,
N16N2 TYPE STRING,
N16N3 TYPE STRING,
N16N4 TYPE STRING,
N16N5 TYPE STRING,
CKB01 TYPE STRING,
CKB02 TYPE STRING,
CKB03 TYPE STRING,
CKB04 TYPE STRING,
CKB05 TYPE STRING,
CKB06 TYPE STRING,
CKB07 TYPE STRING,
CKB08 TYPE STRING,
CKB09 TYPE STRING,
CKB10 TYPE STRING,
AMT01 TYPE STRING,
AMT02 TYPE STRING,
AMT03 TYPE STRING,
AMT04 TYPE STRING,
AMT05 TYPE STRING,
AMT06 TYPE STRING,
AMT07 TYPE STRING,
AMT08 TYPE STRING,
AMT09 TYPE STRING,
AMT10 TYPE STRING,
DEC01 TYPE STRING,
DEC02 TYPE STRING,
DEC03 TYPE STRING,
DEC04 TYPE STRING,
DEC05 TYPE STRING,
C04T1 TYPE STRING,
C04T2 TYPE STRING,
C04T3 TYPE STRING,
C04T4 TYPE STRING,
C04T5 TYPE STRING,
C80T1 TYPE STRING,
C80T2 TYPE STRING,
C80T3 TYPE STRING,
C80T4 TYPE STRING,
C80T5 TYPE STRING,
C200T1 TYPE STRING,
C200T2 TYPE STRING,
C200T3 TYPE STRING,
C500T1 TYPE STRING,
C500T2 TYPE STRING,
C1000T1 TYPE STRING,
WAERM TYPE STRING,
MINCK TYPE STRING,
JBGDT TYPE STRING,
JENDT TYPE STRING,
STPNT TYPE STRING,
DESTN TYPE STRING,
MTRVL TYPE STRING,
CTRVL TYPE STRING,
TKTNO TYPE STRING,
SLFTR TYPE STRING,
CLMCF TYPE STRING,
MLCNT TYPE STRING,
FDATA TYPE STRING,
APRVL TYPE STRING,
ADJCL TYPE STRING,
ADJTE TYPE STRING,
ADJPM TYPE STRING,
VIEFL TYPE STRING,END OF T_EKKO_STR. DATA: WA_PIN_EMP_STRUCT_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_PIN_EMP_STRUCT_STR-REFNR sy-vline
WA_PIN_EMP_STRUCT_STR-PRCSF sy-vline
WA_PIN_EMP_STRUCT_STR-MLCCH sy-vline
WA_PIN_EMP_STRUCT_STR-TRNSD sy-vline
WA_PIN_EMP_STRUCT_STR-PERNR sy-vline
WA_PIN_EMP_STRUCT_STR-REFNR sy-vline
WA_PIN_EMP_STRUCT_STR-RETYP sy-vline
WA_PIN_EMP_STRUCT_STR-RQTYP sy-vline
WA_PIN_EMP_STRUCT_STR-CREFM sy-vline
WA_PIN_EMP_STRUCT_STR-RQCID sy-vline
WA_PIN_EMP_STRUCT_STR-RQCDT sy-vline
WA_PIN_EMP_STRUCT_STR-RQCTM sy-vline
WA_PIN_EMP_STRUCT_STR-RQCAN sy-vline
WA_PIN_EMP_STRUCT_STR-RSNCD sy-vline
WA_PIN_EMP_STRUCT_STR-ARDDT sy-vline
WA_PIN_EMP_STRUCT_STR-ITUDT sy-vline
WA_PIN_EMP_STRUCT_STR-PAYDT sy-vline
WA_PIN_EMP_STRUCT_STR-CODAT sy-vline
WA_PIN_EMP_STRUCT_STR-ITBDT sy-vline
WA_PIN_EMP_STRUCT_STR-PHASE sy-vline
WA_PIN_EMP_STRUCT_STR-CSTAT sy-vline
WA_PIN_EMP_STRUCT_STR-ASREF sy-vline
WA_PIN_EMP_STRUCT_STR-TSR01 sy-vline
WA_PIN_EMP_STRUCT_STR-TSR02 sy-vline
WA_PIN_EMP_STRUCT_STR-OCFLG sy-vline
WA_PIN_EMP_STRUCT_STR-TEXRQ sy-vline
WA_PIN_EMP_STRUCT_STR-WRKID sy-vline
WA_PIN_EMP_STRUCT_STR-OCPVD sy-vline
WA_PIN_EMP_STRUCT_STR-DCLAG sy-vline
WA_PIN_EMP_STRUCT_STR-ERRFG sy-vline
WA_PIN_EMP_STRUCT_STR-ERRNO sy-vline
WA_PIN_EMP_STRUCT_STR-APUID sy-vline
WA_PIN_EMP_STRUCT_STR-APLVL sy-vline
WA_PIN_EMP_STRUCT_STR-APGRP sy-vline
WA_PIN_EMP_STRUCT_STR-LCUID sy-vline
WA_PIN_EMP_STRUCT_STR-LCHDT sy-vline
WA_PIN_EMP_STRUCT_STR-LCHTM sy-vline
WA_PIN_EMP_STRUCT_STR-ISMST sy-vline
WA_PIN_EMP_STRUCT_STR-EEMOB sy-vline
WA_PIN_EMP_STRUCT_STR-APMOB sy-vline
WA_PIN_EMP_STRUCT_STR-ADMOB sy-vline
WA_PIN_EMP_STRUCT_STR-SCMCD sy-vline
WA_PIN_EMP_STRUCT_STR-PCLMD sy-vline
WA_PIN_EMP_STRUCT_STR-ISCMP sy-vline
WA_PIN_EMP_STRUCT_STR-PRTNO sy-vline
WA_PIN_EMP_STRUCT_STR-TRPNO sy-vline
WA_PIN_EMP_STRUCT_STR-BEGDA sy-vline
WA_PIN_EMP_STRUCT_STR-ENNDA sy-vline
WA_PIN_EMP_STRUCT_STR-CLREC sy-vline
WA_PIN_EMP_STRUCT_STR-HEADR sy-vline
WA_PIN_EMP_STRUCT_STR-RQAMT sy-vline
WA_PIN_EMP_STRUCT_STR-APAMT sy-vline
WA_PIN_EMP_STRUCT_STR-RQNUM sy-vline
WA_PIN_EMP_STRUCT_STR-APNUM sy-vline
WA_PIN_EMP_STRUCT_STR-RQTEX sy-vline
WA_PIN_EMP_STRUCT_STR-APTEX sy-vline
WA_PIN_EMP_STRUCT_STR-UNIT sy-vline
WA_PIN_EMP_STRUCT_STR-WAERS sy-vline
WA_PIN_EMP_STRUCT_STR-SDAT1 sy-vline
WA_PIN_EMP_STRUCT_STR-SDAT2 sy-vline
WA_PIN_EMP_STRUCT_STR-SDAT3 sy-vline
WA_PIN_EMP_STRUCT_STR-SDAT4 sy-vline
WA_PIN_EMP_STRUCT_STR-SNUM1 sy-vline
WA_PIN_EMP_STRUCT_STR-SNUM2 sy-vline
WA_PIN_EMP_STRUCT_STR-SNUM3 sy-vline
WA_PIN_EMP_STRUCT_STR-SNUM4 sy-vline
WA_PIN_EMP_STRUCT_STR-ADREP sy-vline
WA_PIN_EMP_STRUCT_STR-DEPDT sy-vline
WA_PIN_EMP_STRUCT_STR-RQRMK sy-vline
WA_PIN_EMP_STRUCT_STR-ATCHM sy-vline
WA_PIN_EMP_STRUCT_STR-HAEDC sy-vline
WA_PIN_EMP_STRUCT_STR-CDT01 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT02 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT03 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT04 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT05 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT06 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT07 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT08 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT09 sy-vline
WA_PIN_EMP_STRUCT_STR-CDT10 sy-vline
WA_PIN_EMP_STRUCT_STR-C01T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C01T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C01T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C01T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C01T5 sy-vline
WA_PIN_EMP_STRUCT_STR-C03T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C03T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C03T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C03T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C03T5 sy-vline
WA_PIN_EMP_STRUCT_STR-C10T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C10T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C10T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C10T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C10T5 sy-vline
WA_PIN_EMP_STRUCT_STR-C20T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C20T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C20T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C20T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C20T5 sy-vline
WA_PIN_EMP_STRUCT_STR-C40T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C40T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C40T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C40T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C40T5 sy-vline
WA_PIN_EMP_STRUCT_STR-N02N1 sy-vline
WA_PIN_EMP_STRUCT_STR-N02N2 sy-vline
WA_PIN_EMP_STRUCT_STR-N02N3 sy-vline
WA_PIN_EMP_STRUCT_STR-N02N4 sy-vline
WA_PIN_EMP_STRUCT_STR-N02N5 sy-vline
WA_PIN_EMP_STRUCT_STR-N05N1 sy-vline
WA_PIN_EMP_STRUCT_STR-N05N2 sy-vline
WA_PIN_EMP_STRUCT_STR-N05N3 sy-vline
WA_PIN_EMP_STRUCT_STR-N05N4 sy-vline
WA_PIN_EMP_STRUCT_STR-N05N5 sy-vline
WA_PIN_EMP_STRUCT_STR-N10N1 sy-vline
WA_PIN_EMP_STRUCT_STR-N10N2 sy-vline
WA_PIN_EMP_STRUCT_STR-N10N3 sy-vline
WA_PIN_EMP_STRUCT_STR-N10N4 sy-vline
WA_PIN_EMP_STRUCT_STR-N10N5 sy-vline
WA_PIN_EMP_STRUCT_STR-N20N1 sy-vline
WA_PIN_EMP_STRUCT_STR-N20N2 sy-vline
WA_PIN_EMP_STRUCT_STR-N20N3 sy-vline
WA_PIN_EMP_STRUCT_STR-N20N4 sy-vline
WA_PIN_EMP_STRUCT_STR-N20N5 sy-vline
WA_PIN_EMP_STRUCT_STR-N16N1 sy-vline
WA_PIN_EMP_STRUCT_STR-N16N2 sy-vline
WA_PIN_EMP_STRUCT_STR-N16N3 sy-vline
WA_PIN_EMP_STRUCT_STR-N16N4 sy-vline
WA_PIN_EMP_STRUCT_STR-N16N5 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB01 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB02 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB03 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB04 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB05 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB06 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB07 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB08 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB09 sy-vline
WA_PIN_EMP_STRUCT_STR-CKB10 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT01 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT02 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT03 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT04 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT05 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT06 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT07 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT08 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT09 sy-vline
WA_PIN_EMP_STRUCT_STR-AMT10 sy-vline
WA_PIN_EMP_STRUCT_STR-DEC01 sy-vline
WA_PIN_EMP_STRUCT_STR-DEC02 sy-vline
WA_PIN_EMP_STRUCT_STR-DEC03 sy-vline
WA_PIN_EMP_STRUCT_STR-DEC04 sy-vline
WA_PIN_EMP_STRUCT_STR-DEC05 sy-vline
WA_PIN_EMP_STRUCT_STR-C04T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C04T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C04T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C04T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C04T5 sy-vline
WA_PIN_EMP_STRUCT_STR-C80T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C80T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C80T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C80T4 sy-vline
WA_PIN_EMP_STRUCT_STR-C80T5 sy-vline
WA_PIN_EMP_STRUCT_STR-C200T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C200T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C200T3 sy-vline
WA_PIN_EMP_STRUCT_STR-C500T1 sy-vline
WA_PIN_EMP_STRUCT_STR-C500T2 sy-vline
WA_PIN_EMP_STRUCT_STR-C1000T1 sy-vline
WA_PIN_EMP_STRUCT_STR-WAERM sy-vline
WA_PIN_EMP_STRUCT_STR-MINCK sy-vline
WA_PIN_EMP_STRUCT_STR-JBGDT sy-vline
WA_PIN_EMP_STRUCT_STR-JENDT sy-vline
WA_PIN_EMP_STRUCT_STR-STPNT sy-vline
WA_PIN_EMP_STRUCT_STR-DESTN sy-vline
WA_PIN_EMP_STRUCT_STR-MTRVL sy-vline
WA_PIN_EMP_STRUCT_STR-CTRVL sy-vline
WA_PIN_EMP_STRUCT_STR-TKTNO sy-vline
WA_PIN_EMP_STRUCT_STR-SLFTR sy-vline
WA_PIN_EMP_STRUCT_STR-CLMCF sy-vline
WA_PIN_EMP_STRUCT_STR-MLCNT sy-vline
WA_PIN_EMP_STRUCT_STR-FDATA sy-vline
WA_PIN_EMP_STRUCT_STR-APRVL sy-vline
WA_PIN_EMP_STRUCT_STR-ADJCL sy-vline
WA_PIN_EMP_STRUCT_STR-ADJTE sy-vline
WA_PIN_EMP_STRUCT_STR-ADJPM sy-vline
WA_PIN_EMP_STRUCT_STR-VIEFL sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.