Sorting in table maintainence
hi
i need to have sorting icon in a table maintainece i have crated
a table maintainece tcod in se93 for a table but when i execure teh tcode and go to table maintianece
no sorting icons are shown
my requirment is that user is able to sort on basis or the fields in the table also
pls suggest how to do it.
regards
Arora
first u need to go to /nse11->give the table ->table maintainence generator->click on the Maintain screen-> ..it will take u to a module pool program.
then go to screen .place a button for sort and then write logic for sort in the PAI of the module pool.This should work...
Revert back if any doubt
Reema
Similar Messages
-
To implement sort in table maintianence
Hi
can anyone let me know how to implement sorting icon in table maintainence
reqirment is to user be able to sorton basis of all fields.
regards
AroraHi Kumar,
Already did that. However, our users want to control the sorting. I've come accross a document to sort node or sort all nodes it's just that I can't figure out how to do such thing.
Regards,
Elmer -
Error while creating table maintainence generator !
Hi All ,
I want to create a table maintainence generator for table ZZFTLPNT . However I am getting the following error :
Typ Message text LTxt
Field ZZZFTLPNT-RRCTY shortened (new visible length: 000015)
Field ZZZFTLPNT-DRCRK shortened (new visible length: 000015)
Field ZZZFTLPNT-ROBJNR shortened (new visible length: 000009)
Field ZZZFTLPNT-SOBJNR shortened (new visible length: 000009)
Field ZZZFTLPNT-RRCTY shortened (new visible length: 000007)
Field ZZZFTLPNT-DRCRK shortened (new visible length: 000007)
Field ZZZFTLPNT-ROBJNR shortened (new visible length: 000004)
Field ZZZFTLPNT-SOBJNR shortened (new visible length: 000004)
Field ZZZFTLPNT-RRCTY shortened (new visible length: 000003)
Screen SAPLZZZFTLPNT 0001 could not be gene
Memory for screen LOAD is used up. bytes) is not
Please advise .Hi Pankaj
it is "Display/Maintenace allowed" and delivery class is 'A' .
Edited by: Ambar Patil on Dec 9, 2008 11:59 AM
Edited by: Ambar Patil on Dec 9, 2008 12:01 PM -
Table Maintainence generator Error Special Character '_' in generic key
Hello,
I have created a Table which contain 6 fields. All the fields of the table are primary key. The combined length of all the primary key is 163 characters. In the activation Log of the table we have a warning message which states "Key length > 120 (Restricted functionality)". Initially we are able maintain the entries using SM30. BUt now when we are making the entreis in the table an error message comes. The error is Special character "_" in generic key.and we are not able to save the entries.
I have deleted the table maintainence generator and have regenerated it. But the same error is coming.
Please provide your suggestion.
Thanks,
MohitPlease provide your suggestions
Thanks,
Mohit -
Issue with value of transient attribute after filtering or sorting a table
Hi guys,
i'm using jdev 11.1.1.4.0 .
i've the use case :
- a table with a column containing a checkbox to mark the selection of a row
<af:column align="center" sortProperty="TemIsChosen" filterable="true"
sortable="true" id="c6">
<af:selectBooleanCheckbox value="#{row.bindings.TemIsChosen.inputValue}" autoSubmit="true"
shortDesc="#{bindings.ServersIndicTempVVO.hints.TemIsChosen.tooltip}"
id="sbc1"
valueChangeListener="#{backing_initIndicatorsTemp.onSelectTemp}"/>
</af:column>
- i select one or more rows with checkboxes
- if i filter or sort the table, the selection of the checkboxes reset to not selected (value false by default).
I understand that for the framework, it's a normal behavior because for filtering or sorting , it re-executes the query from database. And transient attribute is not persistent, so it goes back to the default initial value "false".
What i would appreciate, it's that filtering or sorting has no effect on the value of the transient attribute, ie end user selection remains.
I tried to modify query mode of the ViewObject to filter with in-memory data. It works fine but if you reset filter inputs you can't retrieve correct RowSet. Only new RowSet is stored, old is lost.
So now it's the filtering feature that doesn't work as expected.
How can i implement my use case withouth the troubles i've described.
Best regards,
DavidHi Frank,
no it's a view object level attribute inside a read-only view object.
The view object doesn't use any entity.
Here is the definition of the attribute in the xml file of the VO, if can help you :
<ViewAttribute
Name="TemIsChosen"
IsSelected="false"
IsPersistent="false"
PrecisionRule="true"
Type="java.lang.Boolean"
ColumnType="BIT"
AliasName="VIEW_ATTR"
SQLType="BIT"
Passivate="true">
<Properties>
<SchemaBasedProperties>
<TOOLTIP
ResId="ADD"/>
<DISPLAYWIDTH
Value="50"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
David -
Creation of Table Maintainence Generator for Standard table
Hi,
I need to create a table maintainence generator for a standard SAP table.
The end user need have to delete certain entries from the table.
Is it viable to go for a table maintaninence generator or go for program which will delete the entry from the standard SAP table.
Which is the best method to go.
Thanks in Advance,
Irfan HussainHi,
But i think there is a differtent procedure to create a table maintainenece generator for the standard SAP tables than normal Ztables.
I thinl we need to take access key and do the modification.
Thanks in Advance,
Irfan Hussain -
How to find min and max of a field from sorted internal table
Hi,
I have sorted Internal Table by field f1.
How do I find max and min value of f1.
For min value of f1 I am using,
READ TABLE IT1 INDEX 1.
IT1-F1 = MIN.
Is this correct? And how do I find the max value of f1 from this table.
Thanks,
CDYes, that is right, and you can get the max like this.
data: lv_lines type i.
* get min
READ TABLE IT1 INDEX 1.
MIN = IT1-F1.
* get max
lv_lines = lines( it1 ).
read table it1 index lv_lines.
MAX = IT1-F1.
Regards,
Rich Heilman -
Sorting a table in numbers for iPad
Hello,
can anyone help me figure out how to sort a table, such as a league table sorted by points?
ThanksGenerally, you are more likely to get an answer if you post in the iWork for iOS forum at
https://discussions.apple.com/community/app_store/iwork_for_ios
Cheers, Tom -
Hi,
I like to use the Sort Filter Table function (right click on the Matrix, plus the SAP icon to be activated) in my Add-On, Matrix.
Could you please provide me the code?
Thank you,
RuneHi Szymon Lipnicki,
I will open a new Forum ticket, because I cannot give you 10 points in this ticket anymore...
I will post a new ticket and please drop your answer in the new ticket. The Subject is "Filtering User Matrix"
Thank you very much, this is good news!!!
Thank you,
Rune -
Validate the records in table maintainence generator
hi to all experts,
this is raj.............
i have query to ask to all experts...
"i have to validate the records or entries before populating
into the table using table maintainence generator"
can anybody help out in this...
regards,
raj
Edited by: Julius Bussche on Oct 24, 2008 11:52 AMhi...
write u r code in the screen number spicefied ...in PAI
MODULE CHECK_BEFORE_INSERT ON CHAIN-REQUEST.
in this module u can write code for validation
thanks
sam -
I am using a hash table with 2 columns. The first one has strings and is the key. The second column has integers.
I need to sort this table on the first column and print the contents of the table.
Then i need to sort it on the second column and print the results.
How do i sort the hastables.
Please let me know as soon as possible.
Thanks and Regards,
VijayYou got it all wrong. Hashtables cannot be sorted because then it would not be a hashtable. The content of the Hashtable can be sorted.
What you want to do is get the key Set (keySet() method) of the Hashtable, wrap it in a List (e.g. LinkedList), sort that (see java.util.Collections for sorting) and then print out the contents of the Hashtable in the order pointed out by the keys in the sorted List.
Then you can do the same for the values() Collection of the Hashtable.
Pointers:
http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html
http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html
http://java.sun.com/j2se/1.4/docs/api/java/util/List.html
http://java.sun.com/j2se/1.4/docs/api/java/util/LinkedList.html
http://java.sun.com/j2se/1.4/docs/api/java/util/Collections.html -
Hi friends,
I am having a problem when sorting the table control dynamically based on the fields selectd.
sorting is not working, when you select multiple fields ( one numeric field and one character field ) I have written code for handling multiple field sort,gettting field names correctly, everything looks fine but internal table is not getting sorted.
Is it related unicode issue..?
Any help will be appreciated.
Sample code:
loop at tc_control into lc_cols.
case lc_cols-selected.
wehn 'X'.
split lc_cols-screen-name at '-' into gv_tabname gv_fieldname.
move gv_fieldname gs_struc+lv_off(20)
add 20 to lv_off.
endcase.
endloop.
if ok_code = 'ASCE'.
sort itab by (gs_struc-field1) (gs_struc-field2) ..... ascending
endif.
Thanks in advance
Thiru.pHi
Try using an internal table for the field names..
Example
DATA: BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
WERKS TYPE WERKS_D,
END OF ITAB.
DATA: ITAB_FIELD(30) OCCURS 0 WITH HEADER LINE.
DATA
ITAB-MATNR = 'ABC'.
ITAB-WERKS = 'ABCD'.
APPEND ITAB.
ITAB-MATNR = 'ABC'.
ITAB-WERKS = 'ABC'.
APPEND ITAB.
SORT INTERNAL TABLE
ITAB_FIELD = 'MATNR'.
<b>APPEND ITAB_FIELD.</b>
ITAB_FIELD = 'WERKS'.
<b>APPEND ITAB_FIELD.</b>
<b>SORT ITAB BY (ITAB_FIELD).</b>
LOOP AT ITAB.
WRITE: / ITAB-MATNR,ITAB-WERKS.
ENDLOOP.
Thanks
Naren -
Problem in sorting of table data
Hi all,
I had gone through the PDF given (Developing with tables in webdynpro).
i got struck in creating TableSorter.java file...
can any one tell me how to create that java file in my project and how to send the colum which i want to sort to TableSorter.java
Regards
PadmaTo implement it ,create a value attribute say "sorter" of java native type
com.sap.tc.webdynpro.tests.utils.TableSorter. (The package name MIGHT be different.)
In wdDoModifyView,obtaine a refernce to the table objject like
table = (IWDTable)view.getElement("table ui name);
and use
wdContext.currentContextElement().setSorter(
new TableSorter(table, wdThis.wdGet
<action name for sort>Action(), null));
Now inside that action handler,
wdContext.currentContextElement().getTableSorter().sort(wdEvent,
wdContext.node<nodename>());
also chk it
Re: Sort a table
sort table columns
Table Sorting ( In Case Insensitive order)
null -
Hello -
I need to sort the table view by the sub-totals. So if I have a table view like
Car red 2
blue 2
green 2
Total Car 6
Bike black 5
blue 5
Total Bike 10
Trucks Yellow 3
Grey 4
Total Trucks 7
And I want to sort them on the subtotals. My expected report should be like:
Bike black 5
blue 5
Total Bike 10
Trucks Yellow 3
Grey 4
Total Trucks 7
Car red 2
blue 2
green 2
Total Car 6
When I do Sum(measure by Vehicle), and sort on it, I loose the grouping (or suppression of data) for Bike, Car and Trucks. What I get is:
Bike black 5 10
Total Bike 5 10
Bike blue 5 10
Total Bike 5 10
Trucks Yellow 3 7
Total Trucks 3 7
Trucks Grey 4 7
Total Trucks 4 7
Car red 2 6
Total Car 2 6
Car blue 2 6
Total Car 2 6
Car green 2 6
Total Car 2 6
Is this a bug that the suppression on the column is lost or am I not following some steps. I dont want to put this in a pivot table view.
Thanks in advance.Hello -
I need to sort the table view by the sub-totals. So if I have a table view like
Car red 2
blue 2
green 2
Total Car 6
Bike black 5
blue 5
Total Bike 10
Trucks Yellow 3
Grey 4
Total Trucks 7
And I want to sort them on the subtotals. My expected report should be like:
Bike black 5
blue 5
Total Bike 10
Trucks Yellow 3
Grey 4
Total Trucks 7
Car red 2
blue 2
green 2
Total Car 6
When I do Sum(measure by Vehicle), and sort on it, I loose the grouping (or suppression of data) for Bike, Car and Trucks. What I get is:
Bike black 5 10
Total Bike 5 10
Bike blue 5 10
Total Bike 5 10
Trucks Yellow 3 7
Total Trucks 3 7
Trucks Grey 4 7
Total Trucks 4 7
Car red 2 6
Total Car 2 6
Car blue 2 6
Total Car 2 6
Car green 2 6
Total Car 2 6
Is this a bug that the suppression on the column is lost or am I not following some steps. I dont want to put this in a pivot table view.
Thanks in advance. -
Dear SAP Experts,
For this problem I recd the reply and also followed this step, but still there is the problem.
Step 1:
Insert a module line after the module "LISTE_INITIALISIEREN" .
e.g.
PROCESS BEFORE OUTPUT.
MODULE LISTE_INITIALISIEREN.
MODULE sort .
LOOP AT EXTRACT ...
Step 2:
In your new module (in my example "sort"), do the sorting as follows. I will sort my table by the field "f3" .Thank God because ABAP gives assignment regardless of structures of both sides. Here what I mean:
e.g.
MODULE sort OUTPUT.
DATA gt_ztest LIKE ztest OCCURS 1 WITH HEADER LINE .
*--Getting the content of extract in an internal table
*-having the structure of my table.
gt_ztest] = extract[ .
*--Sorting it
SORT gt_ztest BY f3 .
*--Restoring extract from my sorted table
extract] = gt_ztest[ .
ENDMODULE. " sort OUTPUT
here in this code, which is given above:
gt_ztest] = extract[ .
when I put this code it shows syntax error...
PLease help me to solve the problem.
Regards
Lakshmikanth KDear SAP Experts,
For this problem I recd the reply and also followed this step, but still there is the problem.
Step 1:
Insert a module line after the module "LISTE_INITIALISIEREN" .
e.g.
PROCESS BEFORE OUTPUT.
MODULE LISTE_INITIALISIEREN.
MODULE sort .
LOOP AT EXTRACT ...
Step 2:
In your new module (in my example "sort"), do the sorting as follows. I will sort my table by the field "f3" .Thank God because ABAP gives assignment regardless of structures of both sides. Here what I mean:
e.g.
MODULE sort OUTPUT.
DATA gt_ztest LIKE ztest OCCURS 1 WITH HEADER LINE .
*--Getting the content of extract in an internal table
*-having the structure of my table.
gt_ztest] = extract[ .
*--Sorting it
SORT gt_ztest BY f3 .
*--Restoring extract from my sorted table
extract] = gt_ztest[ .
ENDMODULE. " sort OUTPUT
here in this code, which is given above:
gt_ztest] = extract[ .
when I put this code it shows syntax error...
PLease help me to solve the problem.
Regards
Lakshmikanth K
Maybe you are looking for
-
How to Convert MM/DD/YYYY to YYYY/MM/DD in SQL Reporting Services
i am having difficulty of converting a parameter field, called @startdate, on sql reporting services report to YYYY/MM/DD format. the parameter @Startdate was set to Data/Time. @Startdate is 6/1/2014 12:00:00 and I want to convert it to 2014/06/01.
-
Unable to Login Cisco Prime Collaboation (10.5.1) Web GUI
Hi all, I cound not login CPC web GUI with credentials which i have configured during installation. With same credentials i could login to CLI. I have used "cpc-provisioning-10.5.1-320-small.ova" to install CPC. Best Regards, Mesut
-
Can I use apps from my itunes account on my pc.
I want to use an app on my computer but can't figure out how. Is it possible?
-
IPod Touch will not show up in iTunes...Please Help
Here is what I know/can remember. My iPod has not worked in 3 months! Not sure at what point it stopped but it worked fine for a year. Now when I plug it in it charges just fine just will not show up in iTunes. Sometimes it shows up as an unknown dev
-
Best practice with respect to wcf configuration files for SSIS
So after reading a lot of posts and blogs on how to configure SSIS to read from configuration files , I am still not clear and would like any expert to provide a definitive stance. In my case the WCF service consumption is wrapped into a separate ass