‎2007 Mar 15 7:31 AM
whan i am using select-options prior to this i what to display check box on the same line.
when i am selecting the this check box it should execute automaticall
could u plz explain the code clearly with example.
‎2007 Mar 15 7:35 AM
Hi,
You can put a checkbox first then you can put some select-options on the selection screen:
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
paramters: p_check AS CHECKBOX .
SELECT-OPTIONS: s_matnr FOR mara-matnr, " Material No
s_werks FOR t001w-werks, " Plant
s_lgort FOR t001l-lgort. " Storage Location
SELECTION-SCREEN END OF BLOCK b1.
then you can write codeas:
if p_check = 'X'.
write what you wants to do here.
endif.
reward if useful.
regards,
Anji
‎2007 Mar 15 7:38 AM
Hi!
For displaying chckbox and select-options on the same line use,
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS:
CHECK AS CHECKBOX.
SELECT-OPTIONS:
S_SELECT FOR SPFLI-CARRID.
SELECTION-SCREEN END OF LINE.
IF CHECK EQ 'X'.
<code>
ENDIF.
Reward points if it helps.
Regards,
Neha Bansal.
Message was edited by:
Neha Bansal
Message was edited by:
Neha Bansal
‎2007 Mar 15 7:46 AM
you have to use begin of line and end of line.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.
PARAMETERS: P1 LIKE SAPLANE-PLANETYPE, P2(5), P3(1).
select-options : smatnr for mara-matnr.
SELECTION-SCREEN END OF LINE.
regards
shiba dutta
‎2007 Mar 15 7:46 AM
Hi,
Tables: SPFLI.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECTION-SCREEN BEGIN OF LINE.
parameters: p_check AS CHECKBOX User-command U1.
SELECTION-SCREEN comment 2(10) comm1.
SELECT-OPTIONS: s_matnr FOR SPFLI-CARRID.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN end OF BLOCK b1.
initialization.
move 'check' to comm1.
at user-command.
If sy-ucomm = 'U1'.
*your code
endif.
Reward if helpful.
Regards,
Sandhya
‎2007 Mar 15 7:53 AM
Hi,
Herewith i am sending the checkbox alve report for ur reference.
REPORT YMS_CHECKBOXALV.
TYPE-POOLS: slis.
DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
DATA: s_layout TYPE slis_layout_alv.
DATA: BEGIN OF itab OCCURS 0,
icon TYPE icon-id,
vbeln TYPE vbeln,
kunnr TYPE kunnr,
erdat TYPE erdat,
box TYPE c,
END OF itab.
DATA: v_repid TYPE syrepid.
START-OF-SELECTION.
Get the data.
SELECT vbeln kunnr erdat UP TO 100 ROWS
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE itab.
IF sy-subrc <> 0.
MESSAGE s208(00) WITH 'No data found'.
LEAVE LIST-PROCESSING.
ENDIF.
Modify the record with red light.
itab-icon = '@0A@'.
MODIFY itab TRANSPORTING icon WHERE NOT vbeln IS initial.
v_repid = sy-repid.
Get the field catalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '1'.
s_fieldcatalog-fieldname = 'ICON'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-seltext_l = 'Status'.
s_fieldcatalog-icon = 'X'.
APPEND s_fieldcatalog TO t_fieldcatalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '2'.
s_fieldcatalog-fieldname = 'VBELN'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-rollname = 'VBELN'.
APPEND s_fieldcatalog TO t_fieldcatalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '3'.
s_fieldcatalog-fieldname = 'KUNNR'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-rollname = 'KUNNR'.
APPEND s_fieldcatalog TO t_fieldcatalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '4'.
s_fieldcatalog-fieldname = 'ERDAT'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-rollname = 'ERDAT'.
APPEND s_fieldcatalog TO t_fieldcatalog.
Set the layout.
s_layout-box_fieldname = 'BOX'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
is_layout = s_layout
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = t_fieldcatalog[]
TABLES
t_outtab = itab.
----
FORM SET_PF_STATUS *
----
........ *
----
--> EXTAB *
----
FORM set_pf_status USING extab TYPE slis_t_extab.
SET PF-STATUS 'TEST2'.
ENDFORM.
----
FORM user_command *
----
........ *
----
--> UCOMM *
--> SELFIELD *
----
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
Check the ucomm.
IF ucomm = 'DETAIL'.
LOOP AT itab WHERE box = 'X'.
itab-icon = '@08@'.
MODIFY itab TRANSPORTING icon.
ENDLOOP.
ENDIF.
selfield-refresh = 'X'.
ENDFORM.
Thanks,
Shankar
‎2007 Mar 15 8:50 AM
search forums.
Re: Dynamic Selection Options
Posted on: Jul 17, 2006 5:50 PM, by user: Praveen -- Relevance: 100% -- Show all results within this thread
am doing exactly as you had stated. But the user wants to see it something like this: 1. For the selection options, he wants to see three box's. a. Technical Name of the field selection. b. ...
Re: regarding selection options
Posted on: Mar 15, 2007 8:46 AM, by user: SHIBA DUTTA -- Relevance: 99% -- Show all results within this thread
you have to use begin of line and end of line. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1. PARAMETERS: ...
Re: Restricting selection-options
Posted on: Jan 18, 2005 8:58 AM, by user: Andreas Mann -- Relevance: 90% -- Show all results within this thread
FOR vbak-vbeln OBLIGATORY DEFAULT '5300000000'. INITIALIZATION. PERFORM init_1001. START-OF-SELECTION. SELECT belnr FROM bkpf INTO bkpf-belnr WHERE bukrs = '0001' AND ...
Check that at least on Selection Options are filled
Posted on: May 25, 2006 4:37 AM, by user: Boater -- Relevance: 90% -- Show all results within this thread
I have a program that has four selection options. The user needs to enter a selection for at least one of the four selection options. ...
possible entry for selection-options
Posted on: Feb 22, 2007 7:32 AM, by user: Tiwa Noitawee -- Relevance: 89% -- Show all results within this thread
F-1 At last 3 alphabets of Prod.hierarchy is Product line (EX1, PC5) that users have to choose via selection-options like this <b>EX1</b> EXCEL 251 : F-1 <b>PC5</b> POWERTOP W-200 ...
select-options multiple selection
Posted on: Mar 5, 2007 3:06 AM, by user: venkateswarao gangavarapu -- Relevance: 87% -- Show all results within this thread
hi can u send code for getting multiple selections in select-options Thanks in advance venkat ...
Submitting Report with selection screen options
Posted on: Apr 27, 2005 5:45 PM, by user: Rajesh Nittala -- Relevance: 85% -- Show all results within this thread
Hi all, I have a situation, in my report i am using a selection screen which contains input select-options are store(range), date (from ..to)....after that ...
sample program to remove standard selection-options & replace user defined.
Posted on: Dec 7, 2005 5:37 AM, by user: Josephine Clara Arokiasamy -- Relevance: 83% -- Show all results within this thread
The standard selection-options are provided for the logical database. i need to supress the standard selection-options ...
Adding default value for a select-options in a selection-screen
Posted on: May 26, 2006 11:51 AM, by user: sid alpay -- Relevance: 77% -- Show all results within this thread
hello gurus, i have a report program with the following select-options in a selection-screen block:
select-options: so_site for MyTable-werks. i want the so_site ...
Adding Selection Options Fields in Report(Using Query)
Posted on: Aug 25, 2004 5:26 AM, by user: lijo joseph -- Relevance: 76% -- Show all results within this thread
Hi, how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which ...
Getting the selection parameters/options in a diffrent program
Posted on: May 11, 2006 3:05 AM, by user: Chad Cheng -- Relevance: 75% -- Show all results within this thread
use Submit to get a report from a diffrent program and I am using variants to get the value of the selection criteria. However, for a less tedious approach, I think it would be better if I get the selection ...
Read options from selection-screen
Posted on: Aug 24, 2006 3:30 PM, by user: Silke Eng -- Relevance: 75% -- Show all results within this thread
Hi Kiran, as all other questions are answered already, remains the one on the select-options. Function module <b>RS_REFRESH_FROM_SELECTOPTIONS</b> returns those. Kind regards, Silke ...
Selection screen for SAP Query: OR between options
Posted on: Jun 29, 2006 3:04 PM, by user: Tania Pouli -- Relevance: 74% -- Show all results within this thread
need a variant where either of two fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants. Thanks ...
Pass internal table of selection-options through method!
Posted on: Nov 22, 2004 3:49 PM, by user: Frank Roels -- Relevance: 74% -- Show all results within this thread
I created a selection screen with multiple select-options. Now I want in a method of a class work with the internal ...
select-options: at selection-screen on value-request
Posted on: Sep 18, 2006 10:51 PM, by user: Sumit Agarwal -- Relevance: 72% -- Show all results within this thread
one field is dependent on the values of the other field in the select-options. I am using the "at selection-screen on value-request event on" to populate the select-options field, S_AUFNR, that is dependent ...
Pages: 16 [ 1 2 3 4 5 6 7 8 9 10 |