Check box in basic list
Hi frieds,
I wants to display a list of record in basic list and also one chek box for every record.
Then based on selected check box i want to cancel that record in database means i want to set it's flag. also in application toolbar of basic list display cancel button.
can any one gives me code for this.
Thank you.
Regards,
Virat
Hi
See the sample example code
and do accordingly
TABLES:MARA.
DATA:BEGIN OF GT_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF GT_MARA,
GV_CB,
GV_CBV,
GV_LINES TYPE I,
INDEX TYPE I,
SY_INDEX TYPE I,
GV_LINES1 TYPE I,
MATNR LIKE MARA-MATNR.
SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.
SELECT
MATNR FROM MARA
INTO TABLE GT_MARA
WHERE MATNR IN S_MATNR.
IF SY-SUBRC = 0.
DESCRIBE TABLE GT_MARA LINES GV_LINES.
ENDIF.
LOOP AT GT_MARA.
WRITE:/ GV_CB AS CHECKBOX,
GT_MARA-MATNR.
ENDLOOP.
CLEAR GT_MARA.
WRITE:'Total num of records is ',GV_LINES.
SET PF-STATUS 'DEL'.
AT USER-COMMAND.
IF SY-UCOMM = 'DEL' OR SY-UCOMM = 'PICK'.
DO 50 TIMES.
SY_INDEX = SY-INDEX.
READ LINE SY_INDEX FIELD VALUE GV_CB
GT_MARA-MATNR INTO MATNR.
IF GV_CB = 'X'." AND MATNR IS NOT INITIAL.
LOOP AT GT_MARA." WHERE MATNR = MATNR.
DELETE GT_MARA.
CLEAR GT_MARA.
ENDLOOP.
delete gt_mara index sy_index.
ENDIF.
ENDDO.
DESCRIBE TABLE GT_MARA LINES GV_LINES1.
WRITE:'Total num of records is ',GV_LINES1.
CLEAR:GV_LINES .
LOOP AT GT_MARA.
WRITE:/ GT_MARA-MATNR.
ENDLOOP.
ENDIF.
Reward points for useful Answers
Regards
Anji
Similar Messages
-
How to print check box in ALV list display and how to pick selected ones
Hi
i am displaying one ALV list dispaly. for that im adding one check box fields by filling the fieldcat as below:
wa_fldcat-checkbox = 'X'.
wa_fldcat-edit = 'X'.
but the check box is showing disable mode only. i want to display that check box and if i select that check box i want pick that records. for ALV grid i found one FM to pick records of selectedones as below.
DATA ref_grid TYPE REF TO cl_gui_alv_grid.
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF ref_grid IS NOT INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
but how can i do for list display to pick those selected one records.
Can any one sugget regarding this.
Thanks in advance.
Rahul.Hi,
Thanks. now it's enabled. but how can we pick the records from that list whichever i selected through that check box.
i found this one for ALV grid:
DATA ref_grid TYPE REF TO cl_gui_alv_grid.
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF ref_grid IS NOT INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
but how for ALV normal list display.
Thanks.
rahul -
Check box in the List in sharepoint2013.
Hi ALL,
Meeting dates are coming from the list.
In list i need to create the column as approve as a check box=yes/No.
If a say yes in the Approve Column.
Meeting should show in the webpart.
If i click on No it wont show in the webpart.
Please i need help in this.
Thank you,
Sowjanya.Hi,
You can create a view with based on the Approve column. In the view, set the filter column as "Approve" and set the value to "yes". Then your view will show only approved items.
Please refer to the following article for how to apply filters.
http://blog.pentalogic.net/2008/10/advanced-sharepoint-view-and-filters/
Connect a Filter
Web Part to a Data View Web Part
Please don't forget to mark it as answered, if your problem resolved or helpful. -
Problem with check Box in ALV list
Hi All,
In my alv list I am using Check box and if I enabled the check box after pressing that pushbutton its not reflecting in the internal table how can I resolve it.
Please find below the piece of codes
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
sy-ucomm = ucomm.
CASE ucomm.
When 'SAVE'.
I am checking my internal table value here.
my logic....
When others.
Endcase.
FORM FIELD_CATLOGUE USING VALUE(P_tname) "Int.table name
VALUE(P_fname) "Field name
VALUE(P_title) "Column name
VALUE(P_sum) "Sum
VALUE(P_edit) "Edit
VALUE(P_Check). " Check box
CLEAR wa_fcat.
wa_fcat-tabname = p_tname.
wa_fcat-fieldname = p_fname.
wa_fcat-seltext_l = p_title.
wa_fcat-do_sum = P_Sum.
Wa_Fcat-edit = P_Edit.
Wa_Fcat-checkbox = P_Check.
Append wa_fcat to i_fcat.
gs_user_command type slis_formname value 'USER_COMMAND'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = i_fcat
is_layout = ilay
I_DEFAULT = 'X'
I_SAVE = 'A'
I_CALLBACK_PF_STATUS_SET = gs_user_status
i_callback_user_command = gs_user_command
TABLES
t_outtab = it_data
EXCEPTIONS
program_error = 1
others = 2.Hi,
Refer this program:-
* internal table and alv declarations
* with one field in internal table as
* flag(1) type c (for checkbox in alv)
* START-OF-SELECTION
START-OF-SELECTION.
"your select query to populate data in internal table
* END-OF-SELECTION
END-OF-SELECTION.
* FIELD CATALOG FOR FIRST GRID DISPLAY
PERFORM field_catalog.
* SORT W.R.T. WORK ORDER NUMBER FOR FIRST GRID DISPLAY
PERFORM sort_field.
* FOR LAYOUT FOR FIRST GRID DISPLAY
PERFORM set_layout.
* DISPLAY RECORDS IN ALV GRID FOR FIRST GRID DISPLAY
PERFORM alv_display.
*& SUBROUTINE DEFINITIONS
*& Form FIELD_CATALOG
* SUB-ROUTINE FIELD_CATALOG USED TO SET THE COLUMNS FOR
* THE ALV GRID (OUTPUT FORMAT)
* SETS THE COLUMN NAME AND THE OUTPUT LENGTH FOR THE FIELDS
FORM field_catalog .
wa_field-fieldname = 'FLAG'. " name of field from internal table
wa_field-tabname = 'IT_FINAL'. " internal table name
wa_field-outputlen = 2. " output length on screen
wa_field-checkbox = c_check. " print as checkbox
wa_field-edit = c_check. " make field open for input
wa_field-seltext_l = ' '. " header information
APPEND wa_field TO it_field. " append field catalog internal table
CLEAR wa_field. " clear field catalog work area
wa_field-fieldname = 'AUFNR'. " name of field from internal table
wa_field-tabname = 'IT_FINAL'. " internal table name
wa_field-outputlen = 20. " output length on screen
wa_field-seltext_l = text-003. " header information
APPEND wa_field TO it_field. " append field catalog internal table
CLEAR wa_field. " clear field catalog work area
ENDFORM. " FIELD_CATALOG
*& Form SORT_FIELD
* SUB-ROUTINE SORT_FIELD IS USED TO SORT THE RECORDS IN THE
* INTERNAL TABLE BASED ON THE GIVEN FIELD AND NATURE OF
* SORTING TO BE DONE (ASCENDING OR DESCENDING)
FORM sort_field .
wa_sort-spos = 1. " sort priority
wa_sort-fieldname = 'AUFNR'. " field on which records sorted
wa_sort-tabname = 'IT_FINAL'. " internal table name
wa_sort-up = c_check. " sort ascending
APPEND wa_sort TO it_sort. " append sort info internal table
CLEAR wa_sort. " clear sort info work area
ENDFORM. " SORT_FIELD
*& Form SET_LAYOUT
* SUB-ROUTINE SET_LAYOUT IS USED TO SET THE DISPLAY OF THE
* ALV GRID LINES IN ALTERNATIVE COLOURS
FORM set_layout .
wa_layout-zebra = c_check. " so set colors of line alternatively
ENDFORM. " SET_LAYOUT
*& Form ALV_DISPLAY
* SUB-ROUTINE ALV_DISPLAY IS USED TO SET THE PARAMETERS
* FOR THE FUNCTION MODULE REUSE_ALV_GRID_DISPLAY
* AND PASS THE INTERNAL TABLE EXISTING THE RECORDS TO BE
* DISPLAYED IN THE GRID FORMAT
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_rep_id " report id
i_callback_pf_status_set = 'PF' " for PF-STATUS
i_callback_user_command = 'USER_COMMAND' " for User-Command
is_layout = wa_layout " for layout
it_fieldcat = it_field " field catalog
it_sort = it_sort " sort info
TABLES
t_outtab = it_final " internal table
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. " ALV_DISPLAY
*& Form pf
* SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN
* ON WHICH THE ALV GRID IS DISPLAYED
* -->RT_EXTAB
FORM pf USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZTG_STAT'.
ENDFORM. "pf
*& Form USER_COMMAND
* SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
* AND EXECUTE THE APPROPIATE CODE
* -->LV_OKCODE used to capture the function code
* of the user-defined push-buttons
* -->L_SELFIELD text
FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
* assign the function code to variable v_okcode
lv_okcode = sy-ucomm.
* handle the code execution based on the function code encountered
CASE lv_okcode.
* when the function code is EXECUTE then process the selected records
WHEN 'EXECUTE'.
* refresh it_process when user processes selected records
REFRESH it_process.
* to reflect the data changed into internal table
DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
* refresh the ALV Grid output from internal table
l_selfield-refresh = c_check.
WHEN 'SEL_ALL'.
* to select all the records displayed in ALV Grid
LOOP AT it_final INTO wa_final.
wa_final-flag = 'X'.
MODIFY it_final FROM wa_final.
ENDLOOP.
* refresh the ALV Grid output from internal table
l_selfield-refresh = c_check.
WHEN 'DESEL_ALL'.
* to deselect all the records displayed in ALV Grid
LOOP AT it_final INTO wa_final.
wa_final-flag = ' '.
MODIFY it_final FROM wa_final.
ENDLOOP.
* refresh the ALV Grid output from internal table
l_selfield-refresh = c_check.
ENDCASE.
ENDFORM. "USER_COMMAND
Hope this helps you.
Regards,
Tarun. -
Event for Check box in the list
hi,
I have a 10 check boxs in list using
loop.
WRITE CHK1 AS CHECKBOX.
endloop.
and if I click on 8th checkbox. i need to trigger an event, like what we have in
AT LINE SELECTION. or AT USER COMMAND.
i don't want to use below logic because when there are 300 records it starts reading from first line and giving time out dump. I don't want to run the loop for 300 to find out for one selected box.
Do.
ADD 1 TO w_line.
READ LINE w_line line value INTO porec.
Enddo.
pls reply ASAP.
Thanks,
Ram.I'll confirm that - at least to the best of my knowledge. There is no event that is triggered when a simple checkbox is ticked on a list.
You either need to make them buttons (ie at user-command) or hotspots (so the 'click' also triggers at line-selection). -
How to add check box to list screen in SYCLO Agentry?
Hi,
How can I add a check box to the list screen. I want to add a new column which allows the user to select the check box.
I have tried with "Allow Multi-Row Select" option. When I selected this option I am getting an error
"The For Object defined for the "Transmit" action is invalid. 'None' is not a valid choice since the Multi-Row Selection option for the list screen is enabled."
-ShyamIs the list screen in transaction screenset or Object?
You can't use the field type button in a list screen. But what you can do is take a 16 x 16 image, with a checked box not checked.
Users will not be able just to check the box to enable it or not. You need to have an action linked to a button to the selected row, or you can have an action fire if the user double checks the row.
Stephen -
Disable individual check boxes in ALV
Hi all,
My requirement is that I have one check box against each row. User clicks on the check box then that row is selected and on clicking the push button, bapi is called.
If result of bapi is success, I want to disable the check box for that particular row/rows. Can you please tell me how I can achieve that? I know how to disbale all the check boxes in the list but I dont know how to disable the individual check boxes.
Thanks and regards,
RidhimaFor that you need to play with the EDITABLE feature of the ALV at the field level.
Declare a field STYLE type LVC_T_STYL as a part of your internal table. Now, for each row, append the fields of that row to the STYLE column specifying whether it has to be editable or not. You can use the attributes cl_gui_alv_grid=>mc_style_enabled and cl_gui_alv_grid=>mc_style_disabled for this.
You can look at these threads
https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=473177
https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=2469829
https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=1947071
Regards,
Ravi
Note - Please mark all the helpful answers
Message was edited by:
Ravikumar Allampallam -
How to put check box (secondary window text element )in smart forms.
Regards,
KaaviyaHi kaaviya,
In the text node *web properties*
Give the
field name (Chkbox) Input type select the check box from the list and display the check box.
Refer the standard program *SF_WEBFORM_03* .
First page -- > main window --> Reservations --> loop --> webfields --> text node --> web properties (cancelled cell).
Regards,
Sravanthi -
Check bix in the list (report out put)
I have a field GW_FINAL-DECISION of char1 in an internal table.
After executing the selection screen the data from internal table is displayed on the list.
WRITE : GW_FINAL-DECISION AS CHECKBOX.
when I select the check box from the list, the value of the internal table is to be saved as 'X'.
please help me in this regard ASAP.Hi,
I think its better if you use ALV to display the report output and you can handle the check box issue with user_command subroutine of Reuse_alv_grid_display function module. Its simplest approach to solve such problems.
Cheers
Phani. -
Object Model - cl_salv_hierseq_table Check box in the parent entry
Hi,
I am doing a report with cl_salv_hierseq_table (Object Model) , in that i need to put a check box in the t_table_level1 level. I know that SALV is not have an option to edit.
My requirement is from the list user select multiple parent entries (ie t_table_level1 ) and selected entries must be converted to web template and send to HTML repository.
Currently i am struck up with creating a check box in HIERSEQ list
Any Info?
a®Hi aRs. You need to use the class CL_SALV_SELECTIONS for this. See here,
DATA: gt_parent TYPE TABLE OF scarr.
DATA: gt_child TYPE TABLE OF sflight.
DATA: gr_table TYPE REF TO cl_salv_hierseq_table.
DATA: gr_selections TYPE REF TO cl_salv_selections.
DATA: lt_binding TYPE salv_t_hierseq_binding.
DATA: ls_binding TYPE salv_s_hierseq_binding.
SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE gt_parent.
SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_child.
ls_binding-master = 'CARRID'.
ls_binding-slave = 'CARRID'.
APPEND ls_binding TO lt_binding.
CALL METHOD cl_salv_hierseq_table=>factory
EXPORTING
t_binding_level1_level2 = lt_binding
IMPORTING
r_hierseq = gr_table
CHANGING
t_table_level1 = gt_parent
t_table_level2 = gt_child.
gr_selections = gr_table->get_selections( level = 1 ).
gr_selections->set_selection_mode( cl_salv_selections=>if_salv_c_selection_mode~multiple ).
gr_table->display( ).
This will give you the checkboxes in the parent level, you still need to write the code to get the selected rows.
Regards.
Rich Heilman -
I'm trying to create a JList containing a list of check boxes. I've create a vector of check box objects (vCheckBox) and I instantiate the list as follows : list = new JList(vCheckBox). When the JList displays on the screen what I get in the list is the 'toSting' representation of the check box objects. I tried to create a ListCellRenderer that simply recasts the the vector object as a JCheckBox and I get the check boxes in the list but they are all disabled and I can't figure out a way to enable them in the list. I've tried all of the obvious things.
Any thoughts? Thanks!Yes. Actually, i created a 2 column JTable (first column is a boolean, second column is a description). When the boolean is represented by a check box when displayed in the table. I created code so if the user selects the description cell it will select/deselect the coresponding checkbox. It works well and actually looks like a JCheckbox. I was just seeing if the JList implementation would be simplier and require less code.
-
Multiple line selection in basic list
Hi,
I have a report output with a Check Box being the first column.
How can we process multiple lines by selecting multiple check boxes, i.e if the user checks few check boxes and clicks on the user menu button something should be processed further.
Now can someone suggest how to update the internal table once the user checks more than one check boxes in the list output.
looking forward to ur valuable replies.
MS
Message was edited by: Mahesh Sahu
Message was edited by: Mahesh SahuHi,
You will have to read the content on the list using the READ LINE statement. Here's a short sample program that I have just written. See if you are able to understand the logic.
REPORT zlist_test no standard page heading.
data: list_line(72),
begin of itab occurs 0,
box type c,
num type i,
end of itab.
start-of-selection.
do 10 times.
move sy-index to itab-num.
append itab.
enddo.
loop at itab.
write : / itab-box as checkbox,
itab-num.
endloop.
at user-command.
if sy-ucomm NE space.
write 'The following lines were checked'.
do.
read line sy-index line value into list_line.
if sy-subrc ne 0.
exit.
endif.
if list_line(1) eq 'X'.
read table itab index sy-index.
* Here you can also modify the internal table with the value of the checkbox.
write : / itab-num.
endif.
enddo.
endif.
Regards,
Anand Mandalika. -
Dynamic check box status android app
Hello All,
I desperately need your help. I have created dynamically created check boxes depending on my selection for my android app using the following code snippet.
for(var i:int=0 ; i<data.PromptText.length; i++)
chk = new CheckBox();
chk.label= data.PromptText.getItemAt(i);
chk.name=data.ResponsePromptID.getItemAt(i);
chk.addEventListener(MouseEvent.CLICK,ClickEvent);
chk.width = 1000;
chk.height = 50;
addElement(chk);
Now after click on each check box, I need to check which check box of the list of check boxes created ?
Please help me, this is driving me nuts.Hi,
I see you have "addElement" rather than "addChild", so this is Flex, right?
So there is an easier way to do that in any case, I think.
For example, you could use CheckBox to create a custom renderer and then use your PromptText IList as dataProvider to a list, something like this:
1. Your item renderer
[code]
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="true"
width="100%" mouseDown="itemrenderer1_mouseDownHandler(event)"
>
<fx:Script>
<![CDATA[
* Override selected to provide bindable property
* as ItemRenderer.selected is not flagged as bindable.
override public function set selected(value:Boolean):void {
super.selected = value;
cbSelect = value;
[Bindable] protected var cbSelect:Boolean = false;
* Override to set ctrlKey and so to leverage Adobe's existing
* click to toggle functionality.
protected function itemrenderer1_mouseDownHandler(event:MouseEvent):void
// ctrlKey is used by the component to toggle multiple selection
// behaviour but, for checkbox, we want to treat all as a multiple
// selection toggle, so set it to true.
event.ctrlKey = true;
]]>
</fx:Script>
<!--
Use CheckBox with selection tied to render selection
and mouseEnabled=false to prevent conflicts with CheckBox
own interactivity.
-->
<s:CheckBox label="{data}" selected="{cbSelect}"
top="4" bottom="4" left="4" right="4"
mouseEnabled="false" mouseChildren="false"
/>
</s:ItemRenderer>
[/code]
2. The application that uses the item renderer:
[code]
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
layout="{vl}">
<fx:Script>
<![CDATA[
import flashx.textLayout.formats.VerticalAlign;
import mx.collections.ArrayCollection;
import mx.collections.Sort;
import spark.components.CheckBox;
import spark.events.IndexChangeEvent;
import spark.layouts.VerticalLayout;
private var promptBuilder:int = 0;
private var idBuilder:int = 0;
[Bindable] protected var PromptText:ArrayCollection = new ArrayCollection(
["Prompt text 1...","Second Prompt text...","Third prompt as text...","Prompt...","Prompt...","Prompt..."]
[Bindable] protected var ResponsePromptID:ArrayCollection = new ArrayCollection(
[++idBuilder,++idBuilder,++idBuilder,++idBuilder,++idBuilder,++idBuilder]
* Change handler called whenever an item is selected or deselected.
protected function list1_changeHandler(event:IndexChangeEvent):void
displayCurrentSelection();
* Simple demonstration of interrogating list to find what is and is
* not selected.
protected function displayCurrentSelection():void {
var s:String = "STATUS OF LIST AT "+(new Date).toTimeString();
// selectedIndices returns a list of the data indices of any selected items.
var vs:Vector.<int> = listDisplay.selectedIndices;
if(!vs.length) {
// If zero length, nothing selected
s += "\n(No selection.)";
} else {
// If length, then we have work to do.
// 1. Indices populated in order of clicking, but we want them
// in order of display, so sort.
vs = vs.sort(sortOnInt);
// 2. Now loop through to see what is and isn't there.
for(var i:int=0;i<vs.length;i++) {
// Index is position in the data set that was selected
// This should match the parallel array of ids.
var index:int = vs[i];
s += "\nID:"+ResponsePromptID.getItemAt(index)+" = "+PromptText.getItemAt(index);
// Populate the display variable.
currentSelection = s;
// Simple sort function.
function sortOnInt(a:int,b:int):int {
return a>b ? 1 : -1;
[Bindable] protected var currentSelection:String;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:VerticalLayout id="vl" paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10" />
</fx:Declarations>
<s:Label text="Click to toggle item selection" fontWeight="bold" />
<s:List id="listDisplay"
layout="{new VerticalLayout}" width="100%"
labelField="label" dataProvider="{PromptText}"
itemRenderer="CBItemRenderer"
allowMultipleSelection="true"
change="list1_changeHandler(event)"
/>
<s:Label text="{currentSelection}" width="100%" />
</s:Application>
[/code] -
How to select the output list check boxes
Hi ABAP gurus,
I am developing the on report, it display the output list, in that output list first column is Check box,
here i created the 3 Pushbuttons on application tool bar, one pushbutton is SELECT ALL, 2nd one is DESELECT ALL , 3rd one is CREDIT NOT CREATE,
here when i click on the Select all button it will select all the check boxs and click on the credit not button it will create credit memos for all the customers, if i select the one or more than one check boxs, it will not working means (Credit note will not be created for that paricular customer)
plz tell me answer, if u know the any example programs related to this program plz send me.Hi,
refer this sample code.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'F2'.
PERFORM selection.
WHEN 'SELECTALL'.
PERFORM selectall.
WHEN 'DESELECTAL'.
PERFORM deselectall.
ENDCASE. " CASE SY-UCOMM
*& Form selection *
Selecting records of basic list and display flight information *
No parameters transferred *
FORM selection .
DO w_lines TIMES.
READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox
fs_spfli-carrid INTO fs_spfli-carrid
fs_spfli-connid INTO fs_spfli-connid
w_mark INTO w_mark.
IF sy-subrc EQ 0.
IF w_checkbox EQ 'X' AND w_mark NE '*'.
w_mark = '*'.
MODIFY CURRENT LINE FIELD VALUE w_mark
FIELD FORMAT w_checkbox INPUT OFF.
SELECT carrid " Airline Code
connid " Flight Connection Number
fldate " Flight date
seatsmax " Maximum capacity
seatsocc " Occupied seats
FROM sflight
INTO CORRESPONDING FIELDS OF TABLE t_sflight
WHERE carrid EQ fs_spfli-carrid AND connid EQ fs_spfli-connid.
IF sy-subrc EQ 0.
LOOP AT t_sflight INTO fs_sflight.
WRITE :/2 fs_sflight-carrid,
10 fs_sflight-fldate,
25 fs_sflight-seatsmax,
45 fs_sflight-seatsocc.
ENDLOOP. " LOOP AT T_SFLIGHT INTO....
ULINE.
CLEAR t_sflight.
ELSE.
MESSAGE text-001 TYPE 'S'.
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF W_CHECKBOX EQ 'X' AND .....
ENDIF. " IF SY-SUBRC EQ 0
ADD 1 TO w_lineno.
CLEAR w_checkbox.
ENDDO. " DO W_LINES TIMES
w_lineno = 3.
ENDFORM. " Selection -
Check boxes are not being displayed in any list applets
Issue: The check boxes are not being displayed in any list applets in the system. A check box can be marked in the system, but as soon as the user clicks anywhere outside of the box the check box 'visibly' disappears. If you hover the mouse over the check box it displays a 'Y'. However, check boxes are working fine for the form applet, the issue is only with the list applet.
I verified the checkboxes work fine in the thick client and in production. However, it is the testing environment, which belongs to client, that is showing the above behavior. I think there is some setting that is missing for them. But I am unable to figure it. I would really appreciate if someone could help !!
Thanks in advanceOne way that you could make it work (just tried it out again) is to use the windings font
and use the checkboxes from there. However, you need to register the font with xml publisher. In the template builder for Word, you can put a configuration file under:
C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\config
(depnding on your installation). The file should have the name xdo.cfg or xdoconfig.xml.
There is an example file: xdo example.cfg that you rename and change accoringly.
The font is there setup for windows 2000 as an example. Select the correct font
path - for my XP it is:
<font family="Wingdings" style="normal" weight="normal">
<truetype path="C:\WINDOWS\fonts\wingding.ttf" />
</font>
Then you can put the symbols into your RTF template and it will be rendered.
At least it worked for me - with 5.6.2. (Availbable on Wednesday or Thursday), but
I am pretty sure I tried it before with 5.5.
Didn't have the 5.5 manual with me - so I have to check what that says again..
Hope it helps,
Klaus
Maybe you are looking for
-
Printing PDF files from Preview without annotations
I've annotated a bunch of PDFs in preview, but I would like to print them out without any annotations. Is this possible? Thanks!
-
Which webpage size is the "most normal" to use?
Hey everyone out there. I'm creating a webpage in Muse. In the Plan-part of the program the page is shown just as I want it, but when I upload it on my browser it looks all wrong. It's like my page is too small for the browser, because big white gaps
-
Forwarding framecontent to application
Hello, I want to write a program that performs a simple query on a database and returns the result to a frame in a webpage. Next, the user is able to select whether he wants the content 'forwarded' to a selecte
-
Is Facetime going to be on macs and other devices or just mobile computing? If not then I think that's crazy waste. I have had an iphone 4 for ages and am eager to have facetime/video calling and no one I know has an iphone 4. Many still have 3GS and
-
Within Captivate, I am trying to simulate touching and holding a button for three seconds on a touch pad to get a second window to come up. I have an image of the touchpad and an image of the second window. Now I have to set up the interaction. Is