Hotspot on a record instead of column.
Hi All,
Is it possible to have a hotspot defined for a record i.e row instead of a column(fieldname) in an ALV ?
Please suggest.
Thanks,
Swati
Hi
I think it's possbile to do for ALV GRID OO only:
A) Insert a field for the output style of a single cell in the output table
DATA: BEGIN OF GT_OUTTAB OCCURS 0,
FIELD1,
FIELDN.
DATA: Celltab TYPE LVC_T_STYL,
END OF GT_OUTTAB.
B) While appending data to output table decide if the hot spot has to be active:
DATA: LVC_S_STYL TYPE LVC_S_STYL.
REFRESH GT_OUTTAB-CELLTAB.
IF WA-FIELD1 = ............
CLEAR LVC_S_STYL.
LVC_S_STYL-FIELDNAME = 'FIELD1'.
LVC_S_STYL-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT.
APPEND LVC_S_STYL TO GT_OUTTAB-CELLTAB.
ENDIF.
GT_OUTTAB-FIELD1 = ...
GT_OUTTAB-FIELD2 = ...
GT_OUTTAB-FIELDN = ...
APPEND GT_OUTTAB.
C) Indicate the name of style field in the layout structure
DATA: LAYOUT TYPE LVC_S_LAYO.
LAYOUT-STYLEFNAME = 'CELLTAB'.
D) Call the method to display the grid:
CALL METHOD my_grid->set_table_for_first_display
EXPORTING
is_layout = layout
CHANGING
it_outtab = gt_outtab[]
it_fieldcatalog = gt_fieldcat.
Max
Similar Messages
-
Merge records of one column in ALV?
Hi friends,
i am creating alv grid report(with out oops). i am calculating value for one field that value is common for all the records . so i want to display that as common value instead of displaying number of lines .
is there any possibility to merge records of one column. using it_sort i tried . but it is not coming. since it is a currency field and i need to do display in the subtotal field.
please let me know if u have the solution.
regards,
kani.
Edited by: Julius Bussche on Sep 8, 2008 7:31 AMkani,
refwer sample code.
DATA: gt_sort TYPE slis_t_sortinfo_alv,
gs_sort TYPE slis_sortinfo_alv.
CLEAR gs_sort.
gs_sort-fieldname = 'LDDAT'.
gs_sort-spos = 1.
gs_sort-up = 'X'.
gs_sort-subtot = 'X'.
APPEND gs_sort TO gt_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
i_callback_user_command = 'PROCESS_USER_COMMANDS'
is_layout = w_layout
it_fieldcat = i_fieldcat[]
it_sort = gt_sort[]
i_default = 'X'
i_save = 'A'
it_events = v_events
is_print = w_print
TABLES
t_outtab = i_final1 -
Why order by clause maintains column number values instead of column names
why order by clause maintains column number values instead of column names ?
we can use oder by 1,2 as column number
UGNo one said that it can't be used. What's your point?
To OP: It can be written with the column's 'select list positional number' just because for the support of laziness. :)
There's no difference between 'ORDER BY name, address' and 'ORDER BY 1,2'. -
Creating new record instead of update existing one in Bank application
HI Mate
Here is my issue and I want from ur help
Bank information iview---when i am doing "EDIT" option in that it will edit the bank details,But when i check the records in SAP HR system.it is creating extra record instead of replace that record with payroll date.
Could anyone please help me to fine the solution ASAP.as it is very import for me
Thanks
KeshariNote 965324
Check your time contraints
As per the timeconstraint validation if you edit the record it is
changing this validity for the future and the gap is included. That is
the system standard behavior as per the configuration. To achieve the
desired behavior you need to create a new record or change
timeconstraint to 1 (but in this case only one record may exist at a
given period).
I kindly ask you to refer to note 818957 which explains the Use Cases x
Timeconstraint configuration.
ie
to achieve the functionality you have to create new future record.
Reason is you are using TC:3, in which gaps are allowed, but you dont
want gap in between.
When an employee wanted to change his/her bank details
via portal effective future date, system is
giving error as "Change in the payroll past not possible". This error
appears for the scenario as mention below :
1. Payroll is processed and Exited for the period 16th Dec 2010 to
31st Dec 2010 on 28th Dec 2010 (3 days in advance).
2. Employee wanted to change bank details on 29th Dec 2010 effective
1st Jan 2011 via ESS portal.
3. An error Change in the payroll past not possible" is shown while
saving the data.
In your case either you have to use TC:1, since you don't want gap in
between, or you have use new button to create future record. -
Duplicate records in a column of a table
Hi,
Can someone tell me how to get the duplicate records in a column of a table
what is the sql query.
Can anyone pls give an exampleCan someone tell me how to get the duplicate records in a column of a table select your_column, count(*)
from your_table
group by your_column
having count(*) > 1; -
Output data in row wise instead of column
hi all,
i need to get the output data in row wise which is getting now as column wise.
for eg:
below is my final internal table.
HEADING DATE MATNR BUKRS DMBTR
jan/08 200801 567 10 800
feb/08 200802 567 10 900
mar/08 200803 567 10 200
apr/09 200804 567 10 400
the output should come as
MATNR BUKRS Jan/08 Feb/08 Mar/08 Apr/08
567 10 800 900 200 400.
instead of column wise the output should display as row as above.
please help how to get this.
thanks in advanceHi Vignesh,
Please use below program which I created for you reference. It will work for your requirement.
DATA:BEGIN OF it_test OCCURS 1,
date(6),
matnr(5),
bukrs(3),
END OF it_test.
it_test-date = 'jan/08'.
it_test-matnr = '01234'.
it_test-bukrs = 'AE1'.
APPEND it_test.
it_test-date = 'feb8'.
it_test-matnr = '56789'.
it_test-bukrs = 'AE1'.
APPEND it_test.
it_test-date = 'mar8'.
it_test-matnr = '23478'.
it_test-bukrs = 'AE1'.
APPEND it_test.
START-OF-SELECTION.
LOOP AT it_test.
WRITE :/ 'DATE', 'MATNR', 'BUKRS', it_test-date, it_test-matnr, it_test-bukrs .
ENDLOOP.
Output Will be as follows :-
DATE MATNR BUKRS jan/08 01234 AE1
DATE MATNR BUKRS feb8 56789 AE2
DATE MATNR BUKRS mar8 23478 AE3
Please set to resolve if this satisfies your requirement.
Regards
Abhii.. -
Displaying jtable as rows instead of columns
This may be really simple, but I can't figure it out. I want to display information in a JTable as rows instead of columns. Can anyone help me with this?
Thanks in advance,
mCheck here:
http://www2.gol.com/users/tame/swing/examples/SwingExam
les.html
They may well have what you want, if not they will
probably have some ideas you can use.There's always the swing tutorial, also. I learned JTables from the tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/table.html and it gave me a lot of good ideas and points to start from.
You could probably create your own cell renderer (or use the header renderer) and set the first column to use that to display their text. -
Want to Count Number of records in one Column in a page
Hi all,
According to the requirement I am using format with multiple columns in the report page, i want to count the records in each column, according to the count i want to display one message at the end of the column like "***continue in next column ***" &
"***continue in next page **" & "*End of Records**"
Note: My report may contain multiple pages r will end up with only single column
Can any one help me on this....
Edited by: Sridhar Naljala on Mar 16, 2009 5:39 PMPlease re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
WebService get list 750 records with 8 columns in mx:DataGrid atleast 2 minutes
I am using WebService (ASP.NET) to get a list of customers (around 750) records with 8 columns using mx:DataGrid. It takes to list data in the mx grid atleast 2 minutes from offline development data server[SQL SERVER 2005]. It could be better if the list populate the datagrid with-in 1 minute. I didn't find how to resolve the problem. My WebService returns the ArrayCollection within 1 minute.
Any hints would appreciate!
T. GhoshIt doesn’t matter how many records, what matters is how many attributes and sub-objects. One customer returned 100 records, each with a transaction history of some 10,000 transactions, although the transactions were not displayed in the datagrid (it would be later in the detail view). Then the app was configured to convert the records to typed objects. As one would expect, it took forever. You might have to create a custom converter or just use the SOAP/XML.
-
How can I select random records from one column
How can I random select 400 records from a column contains more than 500,000 records? And how long will it take in oracle? Thanks.
here is one option: (just change 5 to suit your needs...)
SQL>select * from (
2 select object_name
3 from all_objects
4 order by dbms_random.random
5 ) where rownum < 5
6 /
OBJECT_NAME
UTL_SYS_COMPRESS
GV_$LOG_HISTORY
GV_$LOGMNR_LOGS
WWV_FLOW_THEME_7
SQL>/
OBJECT_NAME
WWV_FLOW_UPGRADE_REPORT
WRI$_ADV_SQLT_STATISTICS_PK
V_$DATABASE
GV_$SERVICEMETRIC
SQL>/
OBJECT_NAME
WWV_FLOW_CREATE_FLOW_API
WRH$_SERVICE_WAIT_CLASS_BL
EXU8SNAPL
GV$SERVICEMETRIC_HISTORY
SQL> well, regarding how long will it take... it depends from lots of variables...
Cheers,
Andrea -
Displaying SQL Query results in rows instead of Columns
Hi,
I'm fairly new to Oracle so forgive me if this is a really stupid question.
I used Mysql for a while and if I wanted to display query results in rows instead of columns I could end the SQL command with '\G' instead of a semicolon.
This would give me output like...
Column_1: AAAA
Column_2: BBBB
Column_3: CCCC
Instead of the normal
Column_1 Column_2 Column_3
AAAAAA BBBBBBB CCCCCCC
Is there an equivalent in SQLPlus to the MySQL \G termination?
Thanks.
John> so forgive me if this is a really stupid question.
It is certainly not a stupid question, but pivoting is a very frequently asked and answered question:
[url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15
In 11g you have special PIVOT and UNPIVOT functions.
Regards,
Rob. -
Hi Gurus! how to count number of records in any column of ALV Grid report
Hi Guys!
I want to know how can we count the number of records in any column selected by the user. Like for oe customer there might be 20 sale order that means for 10 customer there will be 200 Sale order. So if i select cutomer number column ti should give 10 out put and whern select sale order it should give 200 as output.
-Anurag JainHi,
Either you can use the hotspot_click event or double_click to show the Pop-up info of the Sales Order count or customer Count depending on the selection.
In the hotspot_click event method you have E_ROW_ID E_COLUMN_ID..using these you can find the Sales Ordert or customer Number.. Loop the internal table and find the Count.
In the double_click event method you have E_ROW E_COLUMN..using these you can find the Sales Ordert or customer Number.. Loop the internal table and find the Count. -
How to transpose the data records (rows) to column(lists) using apd
Hi,
how to transpose the data records (rows) to column (lists) using apd in sap bw.
I do not want to use abap routine.only use the transpose rows to list transformation .
Pls provide the step by step procedure .
thanks,
NimaiSave youe file to transpose as a csv and in the header row of your file for the columns you want to transpose you need to put some soer of a tag before the column name (ie your colum header was for a period budget will be something lie 2011001:ZFIBDD)
1. You will need to create a new apd process (rsanwb)
2. Insert a "Read from Data File" data source object and map it file (,csv)
3. insert a transpose object into your apd process (middle row 4th one over in the transformations section)
4. under the definition tab in the transformation object select all the columns that are to be transposed into rows and move them to the transformed area, the grouping fields section should contain the rows that you want to now be columns
5.under the transformation tab enter in the seperator you selected under the Field Name/Infoobject area (ie. ZFIBDD)
6. under the details tab you need to enter in all the fields to be transformed and tner the transposition field (ie ZFIBDD)
7. Then you can insert a set of transformations and a DSO and link the newly transposed fields into that.
hope that helps -
Displaying single value (Record) into multiple columns
Hi All,
I want to display the single record into multiple columns. Please let me know How to achieve this..
Record:
Lvl Activity Acre
6 Week 4 (Same value to be displayed into 3 columns.)
REquired output:
lvl Activity PH1 PH2 PH3
6 Week 4 4 4
Thanks
Kaviuser533671 wrote:
Hi,
Thanks for immediate reply.
PH1, PH2, PH3, ... will go more columns based on parameter , what we are passing.An single SQL statement cannot have a dynamic number of columns based on the data itself. The projection (columns returned) have to be known before any data is fetched... and that includes some 'parameter' value.
{thread:id=2309172}
You can build a query dynamically, based on a parameter or even on the data, but 99 times out 100 people use dynamic queries where they are not needed.
Perhaps explain to us what you are really trying to achieve and why, and we could suggest some better way. -
Formula to select first record on the column
Hi All
I need a formula to select a first record on the column, here is my query
SELECT DISTINCT
dbo.OWOR.DocNum, dbo.OWOR.ItemCode, dbo.OWOR.Status, dbo.OWOR.PlannedQty, dbo.ITM1.Price, dbo.OWOR.Warehouse,
dbo.OWOR.PlannedQty * dbo.ITM1.Price AS Total
FROM dbo.OWOR INNER JOIN
dbo.ITM1 ON dbo.OWOR.ItemCode = dbo.ITM1.ItemCode
WHERE (dbo.OWOR.Status = 'P') OR
(dbo.OWOR.Status = 'R') AND dbo.ITM1.Price
I need to select the first price on the price list for (dbo.ITM1.Price).
Regards
BonganiBongani,
Are you sure you don't want to link a pricelist? Because the unique key on ITM1 consists of ItemCode and PriceList and taking the first price for an item in ITM1 could result in kind of random prices for different items, depending on whice pricelist gets filled first for a certain item.
Maybe you are looking for
-
Can WEBUTIL_C_API call dll coded in visual basic
Hi all I wonder if WEBUTIL_C_API supports calling methods in a dll coded in Visual Basic? Or it only supports C, C++ and Visual C++? Thank you
-
Hello guys.. Is it possible to add procurement type in mm60 report(output). like in mb51,MSEG table is used and you can add fields for output from mseg .. spro->mat mgmt>inv phy invt->reporting--->field selection for material docu
-
MailBox Move Request Statistics
Hello, I am performing some mailbox moves on one of our systems here in testing for a migration. I believe I need to increase the number of CPUs on the virtual machine I am using but wanted to ask to be sure. Currently we have one of the return value
-
I just installed Adobe Reader 8.1.2 on Windows XP Pro. I took a PDF, with which I added a signature field to with Acrobat Pro 8.1.2, and opened it in Reader. It finds the signature field, but does not allow me to sign it. I created a digital signatur
-
Where do i choose a update for mac os x 10.5?
where do i choose a update for mac os x 10.5?