Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

I am using the "slis_t_sortinfo_alv" for sorting the two fileds STAT2 and PERSK from my internal table. But i am getting the dump error as below

hi,

I am using the "slis_t_sortinfo_alv" for sorting the two fileds STAT2 and PERSK from my internal table. But i am getting the dump error as below.

Please help me to rectify it by pointing the mistake i had made in the program.

main part of the program is below.

TYPES:  BEGIN  OF final,

         pernr TYPE string ,"PA0000-PERNR

         stat2 TYPE string ,"PA0000-STAT2

         werks TYPE string, "PA0001-WERKS,

         btrtl TYPE string,  "PA0001-BTRTL,

         persg TYPE string, "PA0001-PERSG,

         persk TYPE string,"PA0001-PERSK

         plans TYPE p0001-plans,

         vorna TYPE p0002-vorna,

         nachn TYPE p0002-nachn,

         date TYPE budat,

         date1 TYPE string,

         END OF final.

DATA : itabfinal TYPE STANDARD TABLE OF final ,

         wa_itabfinal LIKE LINE OF  itabfinal.

DATA:   fcat TYPE slis_t_fieldcat_alv,

         fwa  TYPE slis_fieldcat_alv.

CLEAR fwa.

fwa-fieldname = 'PERNR'.

fwa-seltext_l = 'PERSONAL ID '.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'VORNA'.

fwa-seltext_l = 'FIRST NAME'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'NACHN'.

fwa-seltext_l = 'LAST NAME'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'STAT2'.

fwa-seltext_l = 'STATUS'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'WERKS'.

fwa-seltext_l = 'PERSONAL AREA'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'BTRTL'.

fwa-seltext_l = 'PERSONAL SUBAREA'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'PERSG'.

fwa-seltext_l ='EMPLOYEE GROUP'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'PERSK'.

fwa-seltext_l = 'EMPLOYEE SUBGROUP'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'PLANS'.

fwa-seltext_l = 'POSITION'.

APPEND fwa TO fcat.

CLEAR fwa.

fwa-fieldname = 'DATE1'.

fwa-seltext_l = 'DATE TYPES'.

APPEND fwa TO fcat.

DATA: i_sort  type slis_t_sortinfo_alv,

       wa_sort TYPE slis_sortinfo_alv.

CLEAR wa_sort.

wa_sort-fieldname = 'stat2'.

wa_sort-up      = 'X'.

wa_sort-subtot = 'X'.

wa_sort-tabname = 'ITABfinal'.

append wa_sort to i_sort.

CLEAR wa_sort.

wa_sort-fieldname = 'persk'.

wa_sort-up      = 'X'.

wa_sort-subtot = 'X'.

wa_sort-tabname = 'ITABfinal'.

append wa_sort to i_sort.

Former Member
Former Member replied

Make sure all your field and table names are in UPPER CASE.

Rob

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question