How to enable row selection conditionally in ADF 11g Table
Hi,
i am using ADF 11g.
My use cae is:
we need to display a table component in which only those rows that have a particular value in one of its columns should be selectable, other rows should be viewable but not selectable.
That is, to say only those rows should be displayed as selectable in which the user name column is having the value same as the logged in user, suppose. And all the other rows having user name other than logged in user should be viewable , but not selectable for the user.
I know in ADF 10.1.3 it is possible to conditionally enabling selection of rows in af.table by using "selection"-facet. But with 11g there is no such table facet.
Does anyone have some idea how to do it in 11g?
Thanks
Frank,
thank for your suggestion.
so i tried to use clientLister like this:
selectMatCat = function(event) {
var matCatTable = event.getSource();
rwKeySet = event.getAddedSet();
for (rowKey in rwKeySet) {
firstRowKey = rowKey;
break;
var cellhandler = matCatTable.findComponent("matCatCode", firstRowKey);
if (cellhandler != null) {
alert (cellhandler.getValue());
event.cancel();
but the row in which cellhandler != null is still selected so that i can get its value on the sever side by using code like : "matCatTable.getSelectedRowData()".
I also noticed that the selection event will not automatically notify the server so the event.cancel() seems like not make so much sense.
Any suggestion?
Thanks.
Peng
Similar Messages
-
Not able to select and copy from adf table in IE and chrome if we enable row selection
Hi All,
We have an adf table and user wants to select and copy table cell values.
We enabled row selection on adf table. Ifrow selection is in place, IE and Chrome are not allowing user to select and copy data. But Firefox is allowing.
Do we have any solution to this? For our customer IE is the standard browser and they do test app on IE.
Regards
PavanKumarHi Timo,
Sorry forgot to mention versions.
We are using 11.1.1.7 and IE 9.
I tried in Google but could not get the solution.
Kindly let me know solution for this.
PavanKumar -
How to make row selection by checkbox in ADF table
hello,
using jdev11g TP4 , fusion web application
when i drag my view object as ADF table into jsf page,
i want to know how to make row selection by checkbox
thanks
greenApple
Edited by: greenApple on Nov 10, 2008 11:33 AMHi,
the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
Frank -
How to create a "Selection Conditions" table similar to that found in se11?
Hi,
My team is trying to develop a SAP data migration tool (DMT) using ABAP.
One of the functionalities in the DMT is to validate the data imported to the staging area tables against some reference tables (e.g. SAP tables).
To do this, I would need to have a "Selection Conditions" table similar to that found in se11 (se11--> Display "View" --> Select "Selection Conditions" tab). This table would allow me to specify my 'referencing' conditions (e.g. Table = "ZMYTAB", Field = "ZMYFLD", OPERATOR = "EQ", Comparison Value = "ZMYTAB2", AND/OR = "").
Are there any ready-made codes out there for such a "Selection Conditions" table? Or did SAP provide a built-in object for such a table?
Any help would be greatly appreciated. Thanks!personnally I do use the standard FMs for dynamic selections
see FM FREE_SELECTIONS_DIALOG
Look at this sample code:
http://sap.ittoolbox.com/code/archives.asp?i=10&d=2919&a=s -
How to enable users change password in obiee 11g?
Is there anyone know how to enable users change password in obiee 11g?
And I have tried the method in obiee 10g, bu it didn't work.
Any help would be appreciate.As per I understand your requirement,
In your Dashboard create a Presentation variable which receives the value of year you select.
Now in your analysis, select the year column along with all the measures you want (Actual, plan, Forecast, and what-if, etc).
Create a filter on Year column and convert it into SQL. Put the condition as:
"Year" BETWEEN @{Presentaion_Variable} - 1 AND @{Presentation_Variable}
You will get the result for selected year and the previous year.
Hope it helps..
Regards,
A.K. -
HOW to enable oracle advance compression for EXIST partitioned table
Hi All,
I have to enable oracle advance compression for existing table which PARTITION BY RANGE then SUBPARTITION BY HASH.
ORacle version: 11.2.0.2.0
Please provide me any relevant doc or any exp.
Thanks in advance.could not see any text for how to enable oracle advance compression for EXIST partitioned table.RTFM.
From the resource above:
How do I compress an existing table?
There are multiple options available to compress existing tables. For offline compression, one could use ALTER TABLE Table_Name MOVE COMPRESS statement. A compressed copy of an existing table can be created by using CREATE TABLE Table_Name COMPRESS FOR ALL OPERATIONS AS SELECT *. For online compression, Oracle’s online redefinition utility can be used. More details for online redefinition are available here.
" -
How can i decleare select-options in module pool table control?
Hi everybody!!
Can anyone tell me how can I decleare select-options in module pool table control screen?. I have declared it in a screen with a table control but a dump is triggered due to an error when generating the selection screen.
Regards...My suggestion will be try to use fm
call function 'FREE_SELECTIONS_DIALOG'
Please search this forum you can find lot of threads related to this.
a® -
How to develop a 'creation form' in ADF 11g?
Dear friends,
How to develop a 'creation form' in ADF 11g? it seems no such type of form in 11g.
Thank you.
Regards,
TonyIf you are using ADFBC, the easiest way is
- drop the data control as ADF form
- add CreateInsert method binding to the pagedef
- add an invokeAction for the createInsert with a refresh property set to renderModel so that an empty creation form will be shown on page load
for insertion
- Finally, add the commit action as button
Sireesha -
How can I programmatically select row to edit in ADF - 11g
Hello,
I'm having a table with rowSelection="single" and editingMode="clickToEdit". Currently i'm facing two issues.
First issue: the first click on a table row makes the row selected, on second click it becomes editable. If I click on another row it gets selected, but previously selected row remains editable. I would like to change this, so when I select another row, the previously selected one to become read-only again. By now, I didn't find any solution to set programmatically the 'editable' state of a row.
The second issue might be a bug and is related to deleting an editable row. I select a row, click to edit it, and then delete it. The next row get's selected, but clicking on it to edit, has no effect unless I press the 'ESC' select another row before. Does anyone have a tip how to workaround it?
Thank you very much!
Enikotry adding this method in the table selectionListener.
public void table1_selectionListener(SelectionEvent selectionEvent) {
public String getCurrentRow() {
BindingContainer bindings = getBindingsForDCB();
RichTable table=table1;
DCIteratorBinding outListIter = getBindingsForDCB().findIteratorBinding("outlistOutIterator");
RowKeySet rowSet = table.getSelectedRowKeys();
Iterator rowKeySetIter = rowSet.iterator();
while (rowKeySetIter.hasNext()) {
List l = (List) rowKeySetIter.next();
Key key = (Key)l.get(0);
outListIter.setCurrentRowWithKey(key.toStringFormat(true));
Row r = outListIter.getCurrentRow();
return null;
} -
I need to divide selected row into multiple rows when i navigate ADF 11g
Hi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I need to divide selected row into multiple rows when i navigate to other page . Scenario - in first page i'm displaying some records with columns like empno , empstatus , empworkdepts ,curdepts
Here empworkdepts gives the numeric number like no of departments work shifts 3 or 4 or 5. when i select any particular employee and fire next button to navigate next page.I have to divide the selected employee with same information into multiple times based on the empworkdepts value.
empno empstatus empworkdepts curdept
001 eds 2 TS
002 hr 1 FO
003 eds 4 TS
*004 eds 3 TS*
now i selected employee 004 , when i navigate to next page.
Empno EmpStatus EmpWorkDepts CurDept
004 eds 3 TS
004 eds 3 TS
004 eds 3 TS
i did with java code in bean .but not stable .
any help............
thanks advance.............
Edited by: user9010551 on May 5, 2010 10:48 PM
Edited by: user9010551 on May 10, 2010 11:31 PMuser9086775 wrote:
Hi Experts,
I have a requirment where i need to fetch parts of a single row into multiple rows from a singlt Query, i am sure it is possible using Pivots but just cant figure out an approach. Any help on this is highly appriciapted.
Requirment:
This is a sample set record in a table
Product Sub Product Name Age
New Car Nissan Tom 49
New Car Nissan Jack 36
Old Car Audi Sam 24
Old Car Jaguar Pint 26
Old Car Audi Smith 41
I need to be able to fetch the above data in the below fashion
Product Sub Product Name Age
New Car
Nissan
Tom 49
Jack 36
Old Car
Audi
Sam 24
Smith 41
Jaguar Pint 26Please help with ideas as to how can i achive the above without using PLSQL.
Thanks in advance!You should be doing this in the client on not in the DB. Use the reporting tool that you use to do this.
For example if you are in SQL Plus you can use the BREAK command. -
Change current row selected Color in ADF rich client table
Hi All ..
i want to change the current row selected from the default ADF color to Another color.
i am not very good in javaScript .
any one can help me
Edited by: user9519817 on Aug 30, 2008 3:57 AMUser,
You don't need Javascript to do this. Have a read of section 18 of the Oracle Web user Interface Developer's Guide for Oracle Application Development Framework (found [url http://download.oracle.com/otn_hosted_doc/jdeveloper/11/doc/b31973.pdf]here for information about creating a custom skin. Unfortunately, the documentation for the selectors to use, which should be in a JDev help topic titled, ""Selectors for Skinning Fusion's ADF Faces Components" doesn't exist yet :( However, you can check [url http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html#]here for that information.
Selectors that may be of interest:
.AFTableCellDataSelectedColor:alias
.AFTableCellDataSelectedBandedColor:alias
.AFTableCellDataSelectedInactiveColor:alias
.AFTableCellDataSelectedBandedInactiveColor:alias
Best,
John -
How to do cascading select lists in ADF table
I have bulk update ADF table and two of the columns are select lists. For example, in a row of the table, if first select list is changed, then is it possbile to populate second list based on the value in first select list within that row?. any ideas are appreciated.
Regards,
SuryaCascading LOV's .. refer http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html
In table just set the PRR on column 2 for the column 1 component. Also set the AutoSubmit/PartialSubmit to true for the column1 component.
Amit -
How to transfer Query selection conditions to Virtualprovider?
Hi,
I am using a virtualProvider with DTP for a query. The virtualprovider data comes from an infocube. I want to manipulate some fields based on the selection conditions given as user entry during the query execution as I have to read a few master data infoobjects.
How and where do i get the user input given in query in the virtualprovider transformation routines?
Regards,
SujaiHi Eric,
Exporting to memory is a method i thought of, but i am assuming there should be a method other than that to do it. I found this doc in the forum:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f05d0b81-076a-2c10-44ab-f00b0b90ce38?quicklink=index&overridelayout=true]
It explains how the issue could be resolved using the Expert routine. But now i am having a different problem.
The calculations are done at the record level based on some criteria, I would like to know how to get the internal table which stores the selected records from the source on which i could do my calculations in the virtual provider.
Regards,
Sujai -
REUSE - how to hide row selection indicator
Hi,
I am using fm REUSE_ALV_GRID_DISPLAY , within i have an editable checkbox field.
But in the grid i need to hide the row selection indicator. (ie the square push button appers first column of the gird)
But if i am using REUSE_ALV_LIST_DISPLAY, the row indicator is not appearing?
Any suggestions?
Thanks
aRshi...
here sending u the report i m currently working ( used REUSE_ALV_LIST_DISPLAY and output dont hav the selection tab )
Plz check the FM for merge ALV.
plz send me urs code, so if possible i ll try to fix it.
thank-you
REPORT zrwty_wty_errors .
TYPE
TYPE-POOLS: slis, icon.
Tables
Tables : pnwtyh,
balhdr.
Data Decleration
DATA: text(1000), lv_clmno(40).
Internal table for messages ( Datewise )
DATA: BEGIN OF it_balhdr OCCURS 0,
lognumber TYPE balhdr-lognumber,
log_handle TYPE balhdr-log_handle,
END OF it_balhdr.
Internal table for PNWTYH
DATA: BEGIN OF it_pnwtyh OCCURS 0,
clmno TYPE pnwtyh-clmno,
log_message TYPE pnwtyh-log_message,
END OF it_pnwtyh.
Internal table to fetch the actual text messages
DATA: it_message LIKE balm OCCURS 0 WITH HEADER LINE.
Internal Table to handle the ALV o/p
DATA: BEGIN OF it_grid OCCURS 0,
clmno TYPE pnwtyh-clmno,
chgdat TYPE dats,
icon TYPE icon-id," BALIMSGTY
text(1000),
END OF it_grid.
Field Catelog and layout Decleration
*DATA: it_fieldcat TYPE lvc_t_fcat,
wa_fieldcat TYPE lvc_s_fcat OCCURS 0 WITH HEADER LINE,
x_fieldcat TYPE lvc_s_fcat OCCURS 0 WITH HEADER LINE.
*DATA: x_layout TYPE lvc_s_layo.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv," type slis_fieldcat_alv
wa_fieldcat TYPE slis_fieldcat_alv OCCURS 0 WITH HEADER LINE,
x_layout TYPE slis_layout_alv.
DATA: lv_repid LIKE sy-repid.
have hotspot for a PO.
DATA: s_fieldcat LIKE LINE OF it_fieldcat.
s_fieldcat-hotspot = 'X'.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
SELECT-OPTIONS:
s_aldate FOR balhdr-aldate.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
PARAMETERS : r1 RADIOBUTTON GROUP rg DEFAULT 'X'.
PARAMETERS : r2 RADIOBUTTON GROUP rg .
SELECTION-SCREEN END OF BLOCK b2.
if s_aldate-high = '00000000'.
s_aldate-high = s_aldate-low.
endif.
FM to fetcht he messg no. based on date
CALL FUNCTION 'APPL_LOG_READ_DB'
EXPORTING
object = 'WTY'
subobject = 'CLAIMMSG'
EXTERNAL_NUMBER = ' '
date_from = s_aldate-low
date_to = s_aldate-high
TIME_FROM = '000000'
TIME_TO = '240000'
log_class = '1'
PROGRAM_NAME = '*'
TRANSACTION_CODE = '*'
USER_ID = ' '
MODE = '+'
PUT_INTO_MEMORY = ' '
IMPORTING
NUMBER_OF_LOGS =
TABLES
HEADER_DATA =
HEADER_PARAMETERS =
messages = it_message
MESSAGE_PARAMETERS =
CONTEXTS =
data: zlines type i.
describe table it_message lines zlines.
if it_message[] is initial.
message S398(00) with 'No data found.'.
exit.
endif.
IF radio button ERROR only is selected, Delete others
IF r2 = 'X' .
DELETE it_message WHERE msgty <> 'E'.
ENDIF.
fetch log_handle from BALHDR
SELECT lognumber log_handle FROM balhdr INTO TABLE it_balhdr FOR ALL
ENTRIES IN
it_message WHERE lognumber = it_message-lognumber.
Based on log _handle fetch claim no from PNWTYH
SELECT DISTINCT clmno log_message FROM pnwtyh INTO TABLE it_pnwtyh FOR
ALL ENTRIES IN it_balhdr WHERE log_message = it_balhdr-log_handle.
LOOP AT it_message.
*select single clmno into lv_clmno from pnwtyh as a inner join BALHDR
*as
b on
*aLOG_MESSAGE = bLOG_HANDLE where b~LOGNUMBER = it_message-LOGNUMBER.
READ TABLE it_balhdr WITH KEY lognumber = it_message-lognumber.
IF sy-subrc = 0.
READ TABLE it_pnwtyh WITH KEY log_message = it_balhdr-log_handle.
IF sy-subrc = 0.
lv_clmno = it_pnwtyh-clmno.
ENDIF.
FM to fetch the actual text message
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = it_message-msgid
lang = 'EN'
no = it_message-msgno
v1 = it_message-msgv1
v2 = it_message-msgv2
v3 = it_message-msgv3
v4 = it_message-msgv4
IMPORTING
msg = text
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*data: message like BAPIRET2-MESSAGE.
*data: it_text like BAPITGB occurs 0.
*CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
EXPORTING
id = it_message-msgid
number = it_message-msgno
LANGUAGE = SY-LANGU
textformat = 'RTF'
LINKPATTERN =
MESSAGE_V1 =
MESSAGE_V2 =
MESSAGE_V3 =
MESSAGE_V4 = -
IMPORTING
MESSAGE = message
RETURN =
TABLES
TEXT = it_text
it_grid-clmno = lv_clmno.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = it_grid-clmno
IMPORTING
output = it_grid-clmno.
Local Variable to handle Date Data
DATA: l_tmstp(30) TYPE c,
l_date TYPE sydatum.
WRITE it_message-time_stmp TO l_tmstp LEFT-JUSTIFIED DECIMALS 0
NO-GROUPING.
l_date = l_tmstp(8).
it_grid-chgdat = l_date.
it_grid-text = text.
IF it_message-msgty = 'E'.
it_grid-icon = '@0A@'.
ELSEIF it_message-msgty <> 'E' AND it_message-msgty <> 'S'.
it_grid-icon = '@09@'.
ENDIF.
APPEND it_grid.
CLEAR it_grid.
CLEAR: lv_clmno, it_message, text.
ENDIF.
ENDLOOP.
PERFORM display_alv.
*& Form display_alv
text
--> p1 text
<-- p2 text
FORM display_alv .
PERFORM build_field_catalog.
PERFORM build_layout.
Assign program name to variable
lv_repid = sy-repid.
Call the ALV Grid FM for Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = lv_repid
i_grid_title = 'Wty Errors'
is_layout_lvc = x_layout
it_fieldcat_lvc = it_fieldcat
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
TABLES
t_outtab = it_grid[]
EXCEPTIONS
program_error = 1
OTHERS = 2 .
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = lv_repid
I_GRID_TITLE = 'Display Messages'
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
I_STRUCTURE_NAME =
is_layout = x_layout
it_fieldcat = it_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_grid[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_alv
*& Form build_field_catalog
text
--> p1 text
<-- p2 text
FORM build_field_catalog .
wa_fieldcat-col_pos = 1.
wa_fieldcat-fieldname = 'ICON'.
wa_fieldcat-seltext_l = 'Mssg Type'.
wa_fieldcat-icon = 'X'.
wa_fieldcat-outputlen = 8.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 2.
wa_fieldcat-fieldname = 'CHGDAT'.
wa_fieldcat-seltext_l = 'Chg Date'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 3.
wa_fieldcat-fieldname = 'CLMNO'.
wa_fieldcat-seltext_l = 'Claim No'.
wa_fieldcat-outputlen = 12.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 4.
wa_fieldcat-fieldname = 'TEXT'.
wa_fieldcat-seltext_l = 'Message Text'.
wa_fieldcat-outputlen = 100.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM s_fieldcat TRANSPORTING hotspot
WHERE fieldname = 'CLMNO'.
*CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZWTY_ERR'
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = it_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME =
I_INTERNAL_TABNAME =
I_STRUCTURE_NAME = 'ZWTY_ERR'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
wa_fieldcat-col_pos = 1.
wa_fieldcat-fieldname = 'ICON'.
wa_fieldcat-seltext_l = 'Mssg Type'.
wa_fieldcat-seltext = 'Mssg Type'.
wa_fieldcat-icon = 'X'.
wa_fieldcat-SCRTEXT_L = 'Mssg Type'.
wa_fieldcat-outputlen = 8.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext_l WHERE
fieldname = 'ICON' .
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext icon
*SCRTEXT_L
*WHERE
fieldname = 'ICON' .
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 2.
wa_fieldcat-fieldname = 'CHGDAT'.
wa_fieldcat-seltext_l = 'Chg Date'.
wa_fieldcat-seltext = 'Chg Date'.
wa_fieldcat-SCRTEXT_L = 'Chg Date'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext_l WHERE
fieldname = 'CHGDAT' .
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext SCRTEXT_L
*WHERE
fieldname = 'CHGDAT' .
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 3.
wa_fieldcat-fieldname = 'CLMNO'.
wa_fieldcat-seltext_l = 'Claim No'.
wa_fieldcat-outputlen = 12.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 4.
wa_fieldcat-fieldname = 'TEXT'.
wa_fieldcat-seltext_l = 'Message Text'.
wa_fieldcat-seltext = 'Message Text'.
wa_fieldcat-SCRTEXT_L = 'Chg Date'.
wa_fieldcat-outputlen = 100.
wa_fieldcat-tabname = 'IT_GRID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext_l WHERE
fieldname = 'TEXT'.
CLEAR wa_fieldcat.
*MODIFY it_fieldcat FROM wa_fieldcat TRANSPORTING seltext SCRTEXT_L
*WHERE
fieldname = 'TEXT'.
CLEAR wa_fieldcat.
LOOP AT it_fieldcat.
IF it_fieldcat-fieldname = 'CLMTY'.
it_fieldcat-seltext_l = 'ICON'.
it_fieldcat-icon = 'X'.
MODIFY it_fieldcat.
ENDIF.
ENDLOOP.
*Adding the Text to be displayed
x_fieldcat-reptext = 'Claim No.'.
MODIFY it_fieldcat FROM x_fieldcat TRANSPORTING reptext WHERE
fieldname = 'CLMNO' .
CLEAR x_fieldcat.
x_fieldcat-reptext = 'MSG TYPE'.
x_fieldcat-icon = 'X'.
MODIFY it_fieldcat FROM x_fieldcat TRANSPORTING reptext icon WHERE
fieldname = 'CLMTY' .
CLEAR x_fieldcat.
x_fieldcat-reptext = 'Text'.
MODIFY it_fieldcat FROM x_fieldcat TRANSPORTING reptext WHERE
fieldname = 'TEXT' .
CLEAR x_fieldcat.
MODIFY it_fieldcat FROM s_fieldcat TRANSPORTING hotspot
WHERE fieldname = 'CLMNO'.
ENDFORM. " build_field_catalog
*& Form Build_layout
text
--> p1 text
<-- p2 text
FORM build_layout .
CLEAR x_layout.
x_layout-colwidth_optimize = 'X'.
x_layout-zebra = 'X'.
ENDFORM. " Build_layout
FORM display_detail *
--> UCOMM *
--> SELFIELD *
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
IF ucomm = '&IC1'.
READ TABLE it_grid INDEX selfield-tabindex.
*IF sy-subrc = 0.
*SET PARAMETER ID 'CLMNO' FIELD it_grid-clmno.
*CALL TRANSACTION 'ZWTY' AND SKIP FIRST SCREEN.
*ENDIF.
IF sy-subrc EQ 0.
SET PARAMETER ID 'CLMNO' FIELD it_grid-clmno.
CALL TRANSACTION 'WTY' AND SKIP FIRST SCREEN.
ENDIF.
IF sy-subrc EQ 0.
CALL 'WTY' FOR SELECTED CLAIM
CALL FUNCTION 'ZWTY_CLAIM_DISPLAY'
EXPORTING
i_clmno = it_grid-clmno
iv_from_doc = 'J'
EXCEPTIONS
not_found = 1
authority_failed = 2
no_claimtype = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "user_command
regards
vinsee -
How to Enable to vertical scroll bar in a table control
Hi,
I have created a table control with a wizard and later did some modifications on it. Problem I have now is that the vertical scroll bar is disabled on this table control. The end user wants to enter as many rows as possible, however as the scroll bar is disabled, he is not able to add the rows at the end (of the visible table control area).
How do I enable the vertical scroll bar of the table control?
Please help.
Thanks,
Vishal.Hello Vishal,
In PBO.
Create a Module and in the module increment the value of tbcl-lines.
ex:
Data : L type i.
IN PBO.
MODULE vertical_scroll_bar.
MODULE vertical_scroll_bar.
DESCRIBE TABLE itab lines L.
<table control name>-lines = L + 10.
ENDMODULE.
Hope this solves your issue.
Cheers,
Suvendu
Maybe you are looking for
-
How to check if a given folder is indexed by spotlight?
Hi Friends, I have this well known indexing issue with spotlight in mountain lion where it doesn't index Microsoft Outlook for mac 2011 e-mails. I have tried all the solutions in web like: 1. Re-indexing Microsoft User Data Folder 2. Re-indexing Enti
-
I can not print an PDF using the Adobe PDF-Printer with Acrobat DC
Hi all, i installed the Trial of Acrobat DC but it dont let me use the Adobe PDF-Printer well, because i cannot print from any third-party-application using Adobe PDF. I tryed to print from within Word, Editor and Browser and selected the Adobe PDF-P
-
How can I access user defined column(in query) inside the trigger?
Hi I have 3 unions and each query displays different records on some criteria. I also have a column hard-coded Ex: select a.col1, a.col2, add as update from table1 a where ... union select a.col1, a.col2, change as update from table1 a where ... unio
-
Financial Reporting Books Table of Content
Hi, i've created a financial reporting book and i want to/have to insert a title page (pdf file). The table of content is always created in front of this title page. I tried to modify xml statements in the book file but there isn't a setting which de
-
U-verse voice and multiple phone lines for small business
Our business has one phone number we want the clients to have, but four phone lines--each with a different number. Consequently, when we call out from one of the phone lines, one of the four numbers shows up, but we only want our one business number