Decending Order of a CHAR
Hi,
I am loading numbers with decimal point (NN.NN) to a Characteristic with data type CHAR (5)
When i run a report and sort the char in decending order it is giving me the below sequence which is error
(i would expect 81.03 in the top of the list)
where i was doing wrong
9.11
9.09
81.03
80.03
8.05
78.06
77.10
77.10
77.09
Hi,
As this a CHAR type of object, you will have the descending order like this only. Being CHAR, it considers the values by its positions (from Left) and not by its exact value. That means it will first check the first digit and then sort it. After that it will check for second digit.
To have a value wise descending order, you have to store them into NUMC. But it will not allow you the decimal places in the data.
Hope this info helps you.
Regards,
Yogesh.
Similar Messages
-
Unable to sort profit center as ascending & Decending order in KE80 & KE30
Hi,
When viewing KE30/KE80 reports and navigating by a field such as profit centre, appear to be unable to sort in ascending/descending order.
e.g. run a KE80 Report: i.e. ZPC-9000 & i.e. variant SMKT, and execute the report click on "Profit Center" under the navigation line to navigate it out to the right. Then click on the magnify glass next to the PC number (should bring up the list of all available PCs, 1259 entries found).
From this pop-up box, unable to sort the PCs by ascending/descending order regardless of what you click.Also unable to sort the Long Text by ascending/descending order regardless of what you click
Can anyone pls help on the above issue.We have to apply any note for this???.
Thanks & Regards
ManiDear Mani,
you can sort the entries by right-clicking on the column header and chosing the sorting order in the appearing menu.
Cheers,
Daniela -
API which can sort array in decending order
hi all,
i just want to know is there any API available in Java which can sort an array of integers in desending orderhttp://www.google.co.uk/search?hl=en&q=java+quicksort+API&btnG=Search&meta=
will bring this right up:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html -
Open Purchase Order UPload Using the BAPI 's
i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out using the BAIP's for upload the PO, i need sample code for this ........
Thanks & Regards
Raghu
<u>Field Name Field Description Type Length</u>
<b>EBELN Purchasing Document Number CHAR 010 X
BUKRS Company Code CHAR 004 MN10 C
EKORG Purchasing Organization CHAR 004 MN00 C
EKGRP Purchasing group CHAR 003 X
BSART Order type (Purchasing) CHAR 004 X
LIFNR Account Number of Vendor or Creditor CHAR 010 X
BEDAT Purchase Order Date DATS 010 X
ZTERM Terms of payment key CHAR 004 X
WAERS Currency Key CUKY 005 X
INCO1 Incoterms (part 1) CHAR 003 X
INCO2 Incoterms (part 2) CHAR 028 X</b>
EBELP Item Number of Purchasing Document NUMC 005 X
EMATN Material number CHAR 018 X
WERKS Plant CHAR 004 X
LGORT Storage location CHAR 004 X
EPSTP Item category in purchasing document CHAR 001 X
KNTTP Account assignment category CHAR 001 X
EINDT Item delivery date DATS 010 X
MENGE "Purchase order quantity (direct input, transfer of POs)" CHAR 013 X
MEINS Order unit UNIT 003 X
NETPR "Net price: Document currency (direct input, transfer of" CHAR 011 X
PEINH "Price unit (direct input, transfer of POs)" CHAR 005 X
BPRME Order Price Unit (Purchasing) UNIT 003 X
BPUMZ Numerator: Conversion OPUn into OUn (direct input of POs CHAR 005 X
BPUMN Denominator: Conversion OPUn into OUn (direct input of P CHAR 005 X
SAKTO Cost element CHAR 010 X
KOSTL Cost Center CHAR 010 X
VBELN Sales and Distribution Document Number CHAR 010 X
VBELP Sales document item NUMC 006 X
WEMPF Goods recipient CHAR 012 X
WEBTH "Amount in local currency (direct input, transfer of POs)" CHAR 013 X
WEBTF "Amount in document currency (direct input, transfer of P" CHAR 013 X
WEREF Flag for treatment of GR/IR (direct input of POs) CHAR 001 X
SPINF Indicator: Update info record CHAR 001 X
WEPOS Goods Receipt Indicator CHAR 001 X
REPOS Invoice receipt indicator CHAR 001 Xi need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out using the BAIP's for upload the PO, i need sample code for this ........
Thanks & Regards
Raghu
<u>Field Name Field Description Type Length</u>
<b>EBELN Purchasing Document Number CHAR 010 X
BUKRS Company Code CHAR 004 MN10 C
EKORG Purchasing Organization CHAR 004 MN00 C
EKGRP Purchasing group CHAR 003 X
BSART Order type (Purchasing) CHAR 004 X
LIFNR Account Number of Vendor or Creditor CHAR 010 X
BEDAT Purchase Order Date DATS 010 X
ZTERM Terms of payment key CHAR 004 X
WAERS Currency Key CUKY 005 X
INCO1 Incoterms (part 1) CHAR 003 X
INCO2 Incoterms (part 2) CHAR 028 X</b>
EBELP Item Number of Purchasing Document NUMC 005 X
EMATN Material number CHAR 018 X
WERKS Plant CHAR 004 X
LGORT Storage location CHAR 004 X
EPSTP Item category in purchasing document CHAR 001 X
KNTTP Account assignment category CHAR 001 X
EINDT Item delivery date DATS 010 X
MENGE "Purchase order quantity (direct input, transfer of POs)" CHAR 013 X
MEINS Order unit UNIT 003 X
NETPR "Net price: Document currency (direct input, transfer of" CHAR 011 X
PEINH "Price unit (direct input, transfer of POs)" CHAR 005 X
BPRME Order Price Unit (Purchasing) UNIT 003 X
BPUMZ Numerator: Conversion OPUn into OUn (direct input of POs CHAR 005 X
BPUMN Denominator: Conversion OPUn into OUn (direct input of P CHAR 005 X
SAKTO Cost element CHAR 010 X
KOSTL Cost Center CHAR 010 X
VBELN Sales and Distribution Document Number CHAR 010 X
VBELP Sales document item NUMC 006 X
WEMPF Goods recipient CHAR 012 X
WEBTH "Amount in local currency (direct input, transfer of POs)" CHAR 013 X
WEBTF "Amount in document currency (direct input, transfer of P" CHAR 013 X
WEREF Flag for treatment of GR/IR (direct input of POs) CHAR 001 X
SPINF Indicator: Update info record CHAR 001 X
WEPOS Goods Receipt Indicator CHAR 001 X
REPOS Invoice receipt indicator CHAR 001 X -
F4 help needed in deccending order in variable screen
Hi,
I have one scenerio, in the variable screen when we press <b>f4</b> it wil display the values in decending order but i want to get that in assending order if it is the calyear that should start from the current year, let us say 2007, 2006,2005.........
Pls let me know the solution how can i do this.
if you have any links related to this pls let me know.
Thanks in advance, points will be rewarded for solutions.
Regards,
vishali.Hi,
I have one scenerio, in the variable screen when we press <b>f4</b> it wil display the values in decending order but i want to get that in assending order if it is the calyear that should start from the current year, let us say 2007, 2006,2005.........
Pls let me know the solution how can i do this.
if you have any links related to this pls let me know.
Thanks in advance, points will be rewarded for solutions.
Regards,
vishali. -
How to arrange files in trash folder by date, both ascending and decending?
My trash folder is ordered by date. Currently, it is ascending order. I would like to change to decending order.
If any more info is needed, I would be only too happy to provide it for you.
Thank you,
Dennis Guidi
[email protected]Clicking on an column header will sort on that column. Clicking that same header a second time will reverse the sort order. Click the Date header.
-
SELECT statement INTO TABLE - what determines order of entries in in.table?
Hello everyone.
I habe a question: A select statement selects multiple entries from a data base table that are put into an internal table.
The question : What determines the order of the entries in the internal table?
And what might change the order all of a suddden in that internal table?
Could reorg. activities/archiving (even ongoing) cause any different result in the order as before ?
I do not mean different entries but I rather refer to the sorting of the internal table, if it is not explicitly stated in the select or in parts of the coding.
Any explaination is appreciated!
Thanks!
CN.Hi,
Its not the order in which you specify the fields in the where clause that affects the sequence of the selection.
What I said is that by default the entries are sorted by the primary key of the table.
I did a bit of a test out of curiosity and after seeing so many different replies on the thread. I was surprised to see the results of the different scenarios.
REPORT Z_TEST_SELECTION .
tables vbap.
data it_vbap type table of vbap.
data it_vbak type table of vbak.
select-options s_vbeln for vbap-vbeln.
select-options s_posnr for vbap-posnr.
"======================================================================
"s_vbeln has following entries
" 5
" 6
" 1
" 2
"s_posnr has following entries.
" 10
" Sorts in ascending order by VBELN and POSNR by default
select * up to 20 rows from vbap into table it_vbap.
refresh it_vbap.
"Below two cases are absolutely unreliable and I would suggest that a
"sort should be mentioned after these statements. So when we use select
"options specify values with the in clause, the sort is not reliable.
"Strangely , neither the sequence is not determined by the order in
"which the data was entered in the select option nor in the sequence of
"the primary key. And this is still a mystery to me about the order in which
"the entries are selected.
" Any answeres anyone ?
"1.
select * from vbap into table it_vbap
where vbeln in ('0000000002','0000000006','0000000005','0000000001')
and posnr in s_posnr.
* Resulted in
*900 |0000000001|000010|
*900 |0000000005|000010|
*900 |0000000006|000010|
*900 |0000000002|000010|
"=========================================================
"2.
select * from vbap into table it_vbap
where posnr in s_posnr
and vbeln in s_vbeln.
* Resulted in
*900 |0000000002|000010|
*900 |0000000001|000010|
*900 |0000000005|000010|
*900 |0000000006|000010|
refresh it_vbap.
"Here the orders were selected in Decending order of Sales order, however
"the posnr is not mentioned in the order by clause, hence posnr was
"still in ascending order.
select * from vbap into table it_vbap
where posnr in s_posnr and vbeln in s_vbeln
order by vbeln descending.
write : 'done!'.
refresh it_vbap.
"Here the orders were selected in Descending order of Sales order.
select * from vbak into table it_vbak where vbeln in s_vbeln
order by vbeln descending.
" The entries were selected in the ascending order of the key VBELN and
" POSNR, so it seems that for all entries does not affect the selection of records.
select * from vbap into table it_vbap
for all entries in it_vbak
where vbeln = it_vbak-vbeln
and posnr in s_posnr.
Of course if you change the order of the primary key (in the transparent table, not in the where clause), the entries will be sorted as per the changed key.
But we seldom change the the sequence of the primary key. In most cases we normally add a new field and make it a key field in addition to the existing key fields.
I hope this helps you.
There might be many more cases and examples than given above, which you can try and reply on this post. Lets see what we come up with.
regards,
Advait -
Descending order for arrays by name
Hi, thank you to all the people who previously helped me before....
Is there a way to sort an array in decending order by name?
I was trying to figure out what to do but this is what i have so far
double [] Salary = new double [10];
String [] Names = new String [10];
int i, j;
for ( i = 0; i < 10; i++)
System.out.print(" Name is: " + Names);
Names[i] = ReadInput.StringRead(); //asks user for Salry
System.out.println(" Salary is: " + Salary[i] );
Salary[i] = ReadInput.readDouble(); //asks user for Names
for (j=0; j < 10; j++)
System.out.println(Names[j] + ": " + Salary[j]);Smckee6452, thank you for helping me.....
i think i am getting close, but the sorting part (descending by names)part of the code is not working too well
did i miss something??
public class Compare {
public Compare() {
double [] Salary = new double [10];
String [] Names = new String [10];
String nameTemp = new String();
double salaryTemp = 0.0;
for (int i = 0; i < 10; i++)
System.out.print(" Name is: " + Names);
Names[i] = ReadInput.StringRead(); //asks user for Salry
System.out.println(" Salary is: " + Salary[i] );
Salary[i] = ReadInput.readDouble(); //asks user for Names
// for (int j=0; j < 10; j++)
// System.out.println(Names[j] + ": " + Salary[j]);
for (int i = 0; i < 9; i++)
for ( int j = 1; j < 10; j++)
{ //do compare and swapping in here
nameTemp = Names[i];
Names[i] = Names[j];
Names[j] = nameTemp;
salaryTemp = Salary[i];
Salary[i] = Salary[j];
Salary[j] = salaryTemp;
System.out.print(nameTemp);
System.out.println(salaryTemp); -
Hi,
I have a simple question.
What is back order reporting? and howz it done!
This is not a technical term i know. What is the market significance of backorder reporting? i need to know this.
And howz a proposal is created?
Please help me with this!!
Thanks and Regards
ObilyObily,
We have a service level report that measures the volume delivered V's ordered and also compare the dates delivered V's expected delivery date.
Weput the Expected Delivery Date from the Order into a Char called Service Level Date, then when our delivered is made it copies that Actual Delivery Date to the same characteristic.
Therefore we can compare orders based on the service level date to delivers.
Regards
Gill -
I am using Aperature on my MacBook and have the photos set to show in descending order but when I sync with my Ipad 2 the photos show in ascending order. I want them in decending order on the ipad. Any ideas?
I did a test case and it did. Here is what the "king" wrote:
"Albums/events synced fron iPhoto via iTunes should copy over in the same order that they appear in iPhoto, and I'm not aware that that has changed in iOS 5. You could try deleting the photo cache from your computer and then re-try the photo sync and see if they then copy over in the correct order - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314 "
I followed the steps in the link for deleting my photo cache and it worked like a charm. I tested by date order and title order and they sync just fine. My photos were in an ALBUM created in iPhoto. Give it a try. -
WBS planned cost in Sales order cost estimate
HI Experts,
Can you please help me in below:
Will it be possible to include WBS planned cost in Sales order cost estimate.
ETO Scenario
Creating Project and booking planned cost
Creating Sales order and assigned the WBS at line item level
WHen i do the sales order cost estimate it calculating cost from Sales order BOM includeing Chars value for KMAT.
I want to know if there is any way to include the WBS planned cost also in the sale order cost estimate.
Can anyonce please provide inputs.
Thanks,
SudhaHi Sudha
Are you saying the WBS Planned cost is in addition to the Sales Order cost estimate? Well, as far as I know, there is no such possibility
you can use Unit Costing feature in Req Class instead of Quantity Structure Based Costing... Then you can enter whatever items you want
br, Ajay M -
Release Strategy with New Class and Char.
Dear All,
I have facing problem when creating the new release strategy for different country. i have create new Characteristic and class for new Release streategy.
when i going to add in Release group.. system giving the error.
Diagnosis
Here you can assign release groups to release classes. Only one release class should be used within the release groups for overall release and the release groups without overall release in each case. However, in this instance several release classes have been used.
My existing Characteristic for india :
ZP0_GNETW Total net order value CURR 15 2 INR
ZPO_BSART Order type (Purchasing) CHAR 4 0
ZPO_EKORG Purchasing Organization CHAR 4 0
ZPO_EKGRP Purchasing group CHAR 3 0
New Characteristic for South africa :
ZPOSA_BSART PO Order Type ATSA CHAR 4 0
ZPOSA_EKGRP Purchasing Group ATSA CHAR 3 0
ZPOSA_EKORG Purchasing Organization ATSA CHAR 4 0
ZPOSA_GNETW Total net PO value ATSA CURR 15 2 ZAR
ZPOSA_WERKS Plant CHAR 4 0
Please help me how do configure 2 release strategy for 2 country.
I will be very thankfull to u.
Regards,
Vishal GargHI Biju K,
I can use exising Characteristic Like Purchasing Organization & Purchasing Group & Plant etc. But in the case of Net order value : ZPO_GNETW Total net PO value for my indian company Currency is INR and for My SA company currency is ZAR. What will i do in that case.
Please explain..
And aslo clear the concept of creation of new Characteristic as Company Code & design different release strategies based on company code. How i can do that..??
Please explain in details.
I will be highly thankfull to u.
Regards,
Vishal Garg
9810402156 -
How to Display drop down list in descending order on the web
Dear BW Guru,
I am Thambi, Currently I have the user's requirement to display <b>drop down</b> list in descending order on the web.
1. In my Bw system <b>0calweek</b> we have 3year's calweeks data (156 - Values), If we list this in <u>Bex Value Help of Info object for Ocalweek</u> Pop up window opens , By clicking on Info object name we can able to see the values ascending or descending according our wish.
2. If we veiw the report in Web, I can able to see only first 25 values in ascending order web.
3. How to view those valuse in <b>decending order</b> in web.
Pls help me to solve this problem.
Thanks in advance.Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
cameron rautmann -
Updating resource in planned order using reference characteristics
hi,
Please let me know the table and field to be used to map corresponding field (PLPOD - ARBPL) in ECC. I am trying to update work center in planned order using reference char.
Regards,
YogeshYogesh,
table and field PLPOD-ARBPL are correct , and same shoild be reflected into characterstic data.
check syntex of dependencies once again , and test configuration using CU50 , and see the result.
while running transaction you can have trace on which can help you to see your dependencies are gettinmg trigered or not.
hope it helps you.
Regards -
Process Order - Empty or User Field HDR level
Dear PP friends,
I am looking for an empty field or to add a new field, at process order HEADER level (char type). Apart from the user defined fields at operation level I cannot find anything else.
Do you have any suggestions?
Thanks in advance for yr assistance.
Kind Regards,
Elly LeondiDear Elly,
Please find below the standard fields used in Process order header while creating inspection lot-
PRUEFLOS
defines the Insp. Lot number which was created during MIGO or COR2.
MATNR
Material for which Insp. Lot was created. This comes from GR.
CHARG
Batch for which Insp. Lot was created. This number is created by system during GR.
AUFNR
This is the process order number for which lot was created
PLNTY
Task list type
PLNNR
Key for task list group
PLNAL
Group counter
AUFPL
Routing number for operations in the order
Apart from these above tables if you atr looking for any empty field then you should be specific enough with the requiremnts/objects foe particular development for that take some help from ABAP people
Moreover new field is subject to business/process need.
Please revert if i missed anything.
Regards
chandra
Regards
Maybe you are looking for
-
Can't open adobe reader in safari on my Macbook
When I click on a link to open a pdf document while on the internet, a new tab opens in safari and begins to load but freezes up. The only way I've been able to view the document is to actually right click and download it onto my computer. I've tried
-
Address book - labels layout - other formats
Hello Forum Does anyone know of a collection of other layouts for the address book label layouts. At the moment I only see Avery std, Avery A4 and DYMO. There's a whole set of labels of other label makers eg DECAdry that I don't find in the list. Nor
-
Podcasts synching in reverse order
I use an iPod Touch w/iTunes on the Mac and despite how I sort my podcasts inside iTunes, they sync up from newest to oldest on my Touch. I want them to sync up oldest to newest so I can listen in that order. Is there any way to do this?? Thanks in a
-
Disable auto Pick confirmation for EK00 output - Outbound Delivery
Hello experts, Need help with Outbound Delivery Picking output typ EK00, I have setup the output type to be triggered automatically upon Delivery creation, It's printing the pick List as desired, But the problem is it's also confirming the Pick quant
-
How to send SMS Message with Automator
I find the Action listed but I don't know where I type my message.