Sorting sequence disturbed
Hello Friends,
I am sorting an internal table like
sort ITAB by F1 F3 F4.
but after this sort I lost my sequence and grouping of VBELN PONR. which is as below:
VBELN-----POSNR---F1 F2F3--
F4
80011864- 40 300730---- V100----- GER--
CSL
80011866- 10 300730---- V110----- GER--
CSL
80011866- 20 300730---- V110----- GER--
CSL
80011864- 10 300730---- V100----- GER--
CSL
80011864- 20 300730---- V100----- GER--
CSL
80011867- 10 300730---- V150----- GER--
CSL
80011864- 30 300730---- V100----- GER--
CSL
80011865- 10 300730---- V000 <<< GER----
CSL
I can't add VBELN and POSNR in the sort statment coz it ll make my o/p like
VBELN-----POSNR---F1 F2F3--
F4
80011864- 10 300730---- V100----- GER--
CSL
80011864- 20 300730---- V100----- GER--
CSL
80011864- 30 300730---- V100----- GER--
CSL
80011864- 40 300730---- V100----- GER--
CSL
80011865- 10 300730---- V000 <<< GER----
CSL
80011866- 10 300730---- V100----- GER--
CSL
80011866- 20 300730---- V100----- GER--
CSL
80011867- 10 300730---- V150----- GER--
CSL
Here F2 with value 'V000' is placed in between the 80011864 and 80011866 data which is useless as we have to sort on only F1 F3 and F4. So i can't add F2 in sort sequence.
i want my output like
VBELN-----POSNR---F1 F2F3--
F4
80011864- 10 300730---- V100----- GER--
CSL
80011864- 20 300730---- V100----- GER--
CSL
80011864- 30 300730---- V100----- GER--
CSL
80011864- 40 300730---- V100----- GER--
CSL
80011866- 10 300730---- V100----- GER--
CSL
80011866- 20 300730---- V100----- GER--
CSL
80011865- 10 300730---- V000----- GER--
CSL
80011867- 10 300730---- V150----- GER--
CSL
Please Help to solve this sorting problem.
-Maharshi
HI,
SORT ITAB by F1 F3 F4 F2 VBELN POSNR.
You get the out as follows
VBELN-------POSNR-------F1------------- F2-------------F3-------------F4
80011865--- 10----------- 300730------ V000------- GER--------- CSL
80011867--- 10----------- 300730------ V150------- GER--------- CSL
80011864--- 10----------- 300730------ V100------- GER--------- CSL
80011864--- 20----------- 300730------ V100------- GER--------- CSL
80011864--- 30----------- 300730------ V100------- GER--------- CSL
80011864--- 40----------- 300730------ V100------- GER--------- CSL
80011866--- 10----------- 300730------ V100------- GER--------- CSL
80011866--- 20----------- 300730------ V100------- GER--------- CSL
Similar Messages
-
Sort sequence functionality in Batch management
Hi All,
I have a doubt in batch management. I am not sure whether it is a basic doubt. But obviously confusing me a lot and I am not able to find appropriate for that.
In our company, we have two characteristics assigned to the batch class 023. Shelf life expiration date (LOBM_VFDAT) and Manufacturing date (LOBM_HSDAT).
Our Sort sequence is FIFO.
Please find the following example given below.
Material GR date SLED Manufacturing date Batch
M1 21.05.2014 21.06.2014 21.05.2014 0001
M1 22.05.2014 22.06.2014 20.05.2014 0002
As per the above example, when SLED (LOBM_VFDAT) is concerned, batch 0001 will get selected, when Manufacturing date (LOBM_HSDAT) is concerned, batch 0002 will get selected.
But which particular batch will be copied into the outbound delivery. I am confused how system can sort out based on multiple characteristics.
Could someone please exlplain the logic behind this.
Regards,
Raja DuraiI assume in your system
Ascending = TO
Descending = From
But, strange to see no material in key combination.
Whereas, you said
when SLED (LOBM_VFDAT) is concerned, batch 0001 will get selected, when Manufacturing date (LOBM_HSDAT) is concerned, batch 0002 will get selected
Frankly, based on above statement I was expecting batch of the key combination. But, that would very tedious task while maintaining individual sort for each batch & material combination. And that is reason I asked you about the key combination.
Based on screenshot provided, system will consider sort in following sequence:
1. LOBM_BSDAT
2. LOBM_VFDAT
provided you have dependency maintained for SORT in CU71.
There in dependency editor may be you have logic to control this behaviour, for example
Thanks, JP -
Report not initially sorted as defined by Report Attributes "Sort Sequence"
I have a Report Region with Type SQL Query and Source "SELECT * FROM <table>" where <table> has a primary key from a sequence. Under Report Attributes, I have Report Column "ST_NM" with Show and Sort checked and having a Sort Sequence of "1". I assume this is to set the iniital display sequence but regardless, the report rows display in Primary key order initially.
To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever
1) How do I set the initial display sequence to be other than the primary key sequence?
[Note: It seems to work part (or all?) of the time under our 4.1 implementation.]
Thanks,
Howard
I thought this one would be easy!Howard (DBA in Training) wrote:
I have a Report Region with Type SQL Query and Source "SELECT * FROM <table>" where <table> has a primary key from a sequence. Under Report Attributes, I have Report Column "ST_NM" with Show and Sort checked and having a Sort Sequence of "1". I assume this is to set the iniital display sequence but regardless, the report rows display in Primary key order initially.
To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever
1) How do I set the initial display sequence to be other than the primary key sequence?
[Note: It seems to work part (or all?) of the time under our 4.1 implementation.]Standard reports store sort columns persistently across sessions as user preferences. It's likely that Dever user has at some point clicked to sort on the PK column and created a persistent preference. Try it with a new user that has never viewed the page before...
See +{thread:id=2433320}+ for more on this, including how to reset it. -
BOM sort sequence of text items in ECC 6.0
Hello,
In release 4.6C the text items belonging to stock items are listed after the stock item. In ECC 6.0 the sort sequence is different - the text item is listed prior to the stock item. I would like to change it in ECC 6.0, so that the text items again are displayed after the stock items in ECC 6.0. Does anybody know how to do this?
Thanks in advance!
Kind regards,
SimoneDear Simone,
when you are in CS01 or CS02, at extrem right side you can find button Configuration
just Drag the coloums as required & click that button
Now give the variant name & save
Next time when you open same changed settings will appear
Regards
Madhu -
Help with Sort sequence and reset preferences
Hi,
I have checked the "sort" checkboxes and the "sort sequence" in my first 5 columns of the sql report. The sequence are straight 1,2,3,4,5.
I have also create two buttons. The first one that will trigger a pl/sql that would execute RESET_USER_PREFERENCES built-in package, and a second button that just submit. The page submit to itself by default.
It appears that the Reset Preferences does not follow the "sort sequences". Take a look at: http://htmldb.oracle.com/pls/otn/f?p=15031:2:
Check what happen with the second column OBJECT NAME: I expect to see CUSTOM_AUTH first and then CUSTOM_HASH second once you Reset User Preferences. Interesting is that when I just press the refresh button, then i get what I want, but i think that is just coincidence as there is not guarantee that the data are going to be displayed in that order once you start deleting and inserting in the middle.
Any help in order to understand the "sort sequences" concept is appreciated.
ThanksAnybody?
-
Hello friends,
In batch determination at delivery level
In strategy type SD01, if I don't maintain sort sequence
can sytem automatically determines the batch at delivery level?
Please clarify my doubt.
regards,
Sekhar_sd consultant.Hi Harrison,
Noted. Thanks.
Best practice to achieve optimal performance also states that in all the look up tables (includes Qualified), sort index for DF must be set to Normal.
Ref:SAP Note 1258982 ; Read 'Please Note' which states the above .
Please put your thoughts on this.
Reards,
Vinay -
Sort Sequence for Product Catalogue ISA B2B
Hi there
I'm trying to find another way of sorting items within a catalogue area. As it is in the standard system , the products are simply sorted according to the Product number (acceding).
The requirement is to be able to rearrange the sequence according to alternate means such as product description. So that when it comes to browsing the product catalogue in the web shop the specific sort sequence is reflected.
we are using CRM4.0 E-Selling B2B
thanks in advanceThanks for the responce,
No, we use Both Manual and Automatic too.
In this program can you re-import or is that only used for first time uploads ?
secondly does the sequence of products, within a catalogue area remain as it is in your spread sheet after the upload, or does it revert back to the accending oprder of the product numbers ?
thanks -
I have a sql report. I have enabled sorting for all columns through Report Attributes tab. Didn't pick anything in sort sequence.
When I run the report, it sorts results based on first column. That I understand because apex requires one sort sequence at least and probably by default it sorts by first column.
I then set sort sequence as : 1desc, 2
Still the results are same. I don't see any effect of sort sequence. What should I do?
Also, is it possible to allow user to sort based on multiple columns together just as we do in order by col1, col2?
But also want to keep sorting enabled for all columns.Probably a better-er chance of getting some help here:
Oracle Application Express (APEX) -
Hi,
I need to configure the sort sequence for mutliple TOs with different materials (Fixed bin picking). I hope bin coordinate needs to be configured for this. How to assign site to the warehouse number? or please explain the configuration steps for sort sequence?
Appreciate your help on this.
Thanks,
RajaHi Raja,
In SPRO Logistics Execution --> Warehouse Mgt --> Activities --> Define Print Control
Define the Sorting Fields under button Sort Profile/coll proc for the corresponding Warehousee number.
This is the thing responsible for sorting transfer orders.
Along with this you will also have to Define
1. Spool Code
2. Print Code
3. Printer Lables
Than make assignments to Warehouse Number Strg Type & rest all as per your requirement
Njoy....!!!
Hiren Panchal -
Hello,
I have an internal table and am trying to sort the table by three fields. The internal table contains some 400 records and all the three fields that are used in the sort have same values for all the 400 records. I am expecting that the internal table ignore the sort and maintain the order of the 400 records ( 1 - 400 ) but instead it simply reverses the contents i.e after sort the internal table holds values from 400 - 1.
This is not my custom code and it is in one of the standard program of SAP. I am just wondering why the sort gets reversed irrespective of the fact that all the three fields specified in the sort has same values for all the 400 rows. Can some one throw some light?
Thanks.
PremHi,
There is nothing mentioned in the same. It is simply sort ( internal table ) by field 1 , field 10 , field 14.
There are fields in between the sort fields i.e the table is sorted by field1, field 10 and field 14. If all these fields are the same would the system consider a different sort sequence i.e Field 2 , field 3 etc.I am really not sure how the internal table gets sorted in this condition. -
How to read sort sequence and other properties of a specification in Cg02 .
hello ,
i need to update the specification properties in CG02 basing on sort sequence for hazards and mariane pollutant of a specification.
do we have any standard Bapi or Fm to read the properties of Specification .
thanks for your help
Anantawell -
specifications are rather complicated - there are many tables linked by internal keys. As most of them (and all in the folowing overview) begin with 'EST' I only use the subseqent letters - so table ESTRH is written as RH below.
Here an - uncomplete - overview
Header: RH
2nd level:
- RR References
- RI Identifiers
- MJ Material Joins
- VH Valuation Headers (containing field ESTCAT for valuation type)
3rd level:
- VA - Valuation (instance - containing sequence number (field ORD - non unique!)
4th level - data of the valuation:
- PR Data stored in class system (such as regulation, DG-Class)
- DU Usage
- VP Components
- 0F Transport Classification (containing Hazard Inducers)
In general you can determine the related table if you look at the technical info at CG02. The structure name will be like
"RCGxxIOT" where xx stands for the last two letters of the table ESTxx. The structure of interfaces in FUGR C1F5 are defined with a similar pattern: ESPRH_APIxx_TAB_TYPE.
To read the data, you may use FM C1F5_SPECIFICATIONS_READ which has sufficient documentation. You may refer to the documentation of obsolete FM C1F2_SUBSTANCES_READ as well.
A good alternative is BAPI_BUS1077_GETDETAIL - as this is a BAPI Function it should work after an upgrade while FM of C1F5 migh make some adaption necessary.
However - it will take some days to understand both - the data model of specifications and the related FMs. I personally would recommend a developer familar with this 1yr+ before asking for implementations that are not only reading data - but they are hard to find....
have fun!
hp -
Sort sequence changes for batch determination
Dear pankaj
my client already using the "batch number" acending order sort method.
now i have to change to the FEFO concept.
i have to create new sort sequence in CU70..........?
because i deleted the existing one in CU71 and enter the FEFO .but it is not working.
PLEASE GIVE THE HIGH PRIORITY
regardshi pankaj again i am distrubting you
1)The character and class are already existing for shelf life expiry so i think no need to create again.
2)my client using class type 22 (MCH1) for FIFO method.now i am using the same class type.
3) In CU70 i created one new sort sequence by coping the existing one and change the name.
4) Sort rule is maintaining the plant level.already the are maintain the "0" value in the selection type in MSC1.
5)In IMG side ,i maintained the strategy type for production and inventory.
still i have problem.
for normal goods issue MB1A-261 (based on the manual reservation) .If i put * in batch no column,then it will take the sort sequence.but it is not giving.if i gothough the WITH OUT BATCH view it is giving the all batches by order.
If i check the batch details of the received batch,it has "INCOMPLETE" status.
what i have to do?
please reply me -
I have produced a template which outputs a stacked bar chart which outputs the data on the x axis in a random sequence rather than in order. What do i need to do to apply a sort sequence to the chart?
Edited by: mike_p on Oct 23, 2009 4:36 PMHi Tim,
Your answer makes sense - although I may need to use the approach of amending the graph code if other graphs are needed. I looked at the code from my graph & it doesn't match yours - mine looks like:
<DataValues>
<xsl:for-each-group select="//ROW" group-by="./AGE_RANGE" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="G1" select="current-group()" />
<RowData>
<xsl:for-each-group select="//ROW" group-by="./IMPLANT_YEAR">
<Cell>
<xsl:value-of select="count($G1[(./IMPLANT_YEAR=current()/IMPLANT_YEAR)]/PATIENT_NO)" />
</Cell>
</xsl:for-each-group>
</RowData>
</xsl:for-each-group>
</DataValues>
The value I would like to sort on is implant_year
where would I put the sort statement in this?
Thanks,
Mike -
AFS Sort - Sequence (table J_3ASORT)
We are in the process of upgrading from SAP 4.5B (AFS 2.5B) to ECC 5 (AFS 5). Table J_3ASORT has been marked as 'obsolete' by SAP and no new/substitute table is mentioned (in the SAP documentation nor notes - that I could find) that will contain data that I can use in its place.
J_3ASORT is used in many of our customer applications to control the sequence of our sizes / dimensions as they are presented on the screen or report.
If I let the screen display in the sequence based on the dimension then we will get (for example):
Dimension value Sort sequence
1X 00001350
28 00000100
2X 00001400
30 00000200
32 00000300
34 00000400
36 00000500
38 00000600
3X 00001500
40 00000700
42 00000800
44 00000900
46 00001000
48 00001100
4X 00001600
50 00001200
52 00001300
The dimensions are not in the correct 'size' sequence, but rather they are in the ASCII sort sequence.
When I use the sort sequence, I get the better readable version of:
Dimension value Sort sequence
28 00000100
30 00000200
32 00000300
34 00000400
36 00000500
38 00000600
40 00000700
42 00000800
44 00000900
46 00001000
48 00001100
50 00001200
52 00001300
1X 00001350
2X 00001400
3X 00001500
4X 00001600
Short of creating a new Z table does somebody know of a table that can be used to the same effect of being able to assign a sort sequence to the various dimensions?
I very much appreciate your time and effort.
HenryHenry,
Did you try out this note - Note 856352 - AFS 5.0 upgrade: Wrong values order for grid characteristics. Now in AFS 5.0 the characteristics maintenance is thro ct04. The dimension sort sequence for the relevant grids are now maintained in the following table - J_3APGDI . I guess you will have to populate this table using your dimension and grid relationships.
I hope this piece of information was useful to you.
Regards,
Gary -
Sort Sequence for mutli dimension table in SAP Lumira
Hi Experts,
I notice one interesting point in SAP Lumira for multi dimension
For example, we have a table like below
Country City GSV
A1 B 100
C 150
D 130
A2 E 200
A3 F 100
G 150
if you turn on the subtotal for GSV in Lumira table, result will be like below
Country City GSV
A1 B 100
C 150
D 130
Total 380
A2 E 200
Total 200
A3 F 100
G 150
Total 250
Sort by GSV descending, result will like this
Country City GSV
A1 C 150
D 130
B 100
Total 380
A2 E 200
Total 200
A3 G 150
F 100
Total 250
Here the sort sequence for City under each country is correct
But the sequence for country is incorrect and I think the correct sequence for country will be
Country City GSV
A1 C 150
D 130
B 100
Total 380
A3 G 150
F 100
Total 250
A3 E 200
Total 200
It looks like this issue is not only for Lumira and other company tools behaviors same as well
Would you kindly let me know whether whether for sorting, the sort sequence should consider from 1st level to lowest level
Best regards
Alex yangHi,
I think you've got a typo in the last block.
with regards to next steps - if you feel you have identified a defect, please log a support ticket via the normal routes.
if this is considered an enhancement, please submit a request at the Ideas Place for Lumira.
Many thanks,
H
Maybe you are looking for
-
Sales order item gets "Fully delivered" status even if partial qty
Hello, We have a depot sales configuration in SAP. I found that some sales order lines are getting completed (delivery status "Fully delivered") even if partial quantity is pending for the order line. I checked the status in VBUP table where LFSTA ge
-
I read in numerous forums and never came up with a real answer if it is possible to add a SSD (solid state drive) drive to your MacBook. My test model was a new aluminum MacBook 2.4 already updated to 4 gigs from OWC for $80 delivered. (which I might
-
Hi, Please help me in resolving the issue while changing the database dynamically in crystal reports using JSP. I followed the below link to change DB connection dynamically. CRJava Modify DB Location Please help me on this. While switching from one
-
Result row problem in query.
Hi, There is a hierarchy at the query level. When the report is run with disabling the hierarchy i am getting following output in result row =1 which is correct. Column A StoreA 1
-
Help for RT PC timed loop in us?
I have created realtime target quadcore PC and created a pulse pattern(500kHz) using DIO pin0.1 and both counters. I want to repeat the pattern or send manny patterns after 512us. I am using time loop. It is not providing more than 28ms however it