2009 Jul 30 6:20 AM
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
2009 Jul 30 6:25 AM
2009 Jul 30 6:27 AM
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
2009 Jul 30 6:34 AM
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
2009 Aug 10 8:01 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |