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

CM25: Sort standard table based on custom table.

Former Member
0 Likes
705

Hi Experts,

I need to sort the CM25 capacity table based on a ZTABLE where we will define the sequence number of each material. So when CM25 is executed the material should get sorted based on sequence number maintained in Ztable. Now the challenge is how to achieve this sorting before we display the capacity table.

anybody has faced such scenerio please help us.

There are few user exits available but not able to find out how to achieve the required functionality.

Regards,

Raghav

Edited by: Julius Bussche on Jul 30, 2009 9:29 AM

In future threads with meaningless subject titles will simply be deleted as you appear to be doing this intentionally

Hi Experts,

I need to sort the CM25 capacity table based on a ZTABLE where we will define the sequence number of each material. So when CM25 is executed the material should get sorted based on sequence number maintained in Ztable. Now the challenge is how to achieve this sorting before we display the capacity table.

anybody has faced such scenerio please help us.

There are few user exits available but not able to find out how to achieve the required functionality.

Regards,

Raghav

Edited by: Julius Bussche on Jul 30, 2009 9:29 AM

In future threads with meaningless subject titles will simply be deleted as you appear to be doing this intentionally

4 REPLIES 4
Read only

faisalatsap
Active Contributor
0 Likes
627

Hi, Raghav

Posts: 91
Registered: 11/16/04 " From 2004 to till now you still didn't know that we must always use a meaningful Subject ?
Forum Points: 2

I think you have forgotten [Report DIsplay...!! |]

Other Used Subject Lines.

Display Heading

ALV Display

Report DIsplay...!!

Regards,

Faisal

Read only

p291102
Active Contributor
0 Likes
627

Dear,

Ask your BASIS Administrator and tell to them to raise the OSS note and ask the suggestion for this in Service Market Place.

Thanks,

Sankar M

Read only

Sm1tje
Active Contributor
0 Likes
627

First, let me say that I have no experience with this CM25 table and where/how it is used or displayed, but here's how I look at it:

But what is the real problem?

1. Don't know the user exit / BAdI to be used?

2. Don't know how to do the sorting?

3. .....?

Answer:

1. This will be a matter of trying I would say and reading the documentation of the exit/BAdI.

2. You can do dynamic sorting of an internal table (if it is an internal table that is used before displaying it).


DATA: lv_sort1 TYPE CHAR10 VALUE 'NAME_OF_COLUMN_FROM_ZTABLE',
           lv_sort2 TYPE CHAR10 VALUE 'NAME_OF_OTHER_COLUMN_FROM_ZTABLE'.

SORT itab BY (lv_sort1) ASCENDING (lv_sort2) DESCENDING.

Edited by: Micky Oestreich on Jul 30, 2009 7:34 AM

Read only

Former Member
0 Likes
627

k