Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alv sort

Former Member
0 Likes
635

Hi,

I have regarding problem of ALV Sort .

My Field name 'PEND' and data type is KWMENG. when i pass field name to alv sort it give me runtime error.

My Code like

it_sort-spos = 7.

it_sort-fieldname = 'PEND'.

it_sort-tabname = 'IT_VBAP'.

it_sort-up = 'X'.

it_sort-subtot = 'X'.

  • it_sort-group = '*'.

  • it_sort-expa = 'X'.

APPEND it_sort.

Regard

Sam.

Edited by: sam on Jan 13, 2009 7:17 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
611

Hi,

Check whether you have added PEND field in your fieldcatalog.

Thanks,

Srilakshmi.

4 REPLIES 4
Read only

Former Member
0 Likes
612

Hi,

Check whether you have added PEND field in your fieldcatalog.

Thanks,

Srilakshmi.

Read only

Former Member
0 Likes
611

Hi,

first of all check that whether u have given your field name in the field catalog correctly or not and while passing ur field name in your code check whether it is in caps or not.

Regards,

anand

Read only

Former Member
0 Likes
611

I think you can not sort a quantity field.

Read only

Former Member
0 Likes
611

we cannot sort quantity fields check with SAP Documentation