Select-option or parameter with display mode
hai experts,
i need to give select-option or parameter with display mode in selection-screen.
my requirement is.......
to give last print out time in selection screen with display mode mean user cant able to change the time......
reward avail for hope ful answer.....
thanks in advance...
regards,
jai.m
Hi jaya,
write the following code.
parameters: p1 type c.
initialization.
p1 = 'c'.
at selection-screeen output.
loop at screen.
if screen-name = 'P1'.
screen-input = '0'.
modify screen.
endif.
endloop.
regards,
Santosh Thorat
Similar Messages
-
Pass select option and parameter with submit
Hello,
I have two programs and what i have to do is to use the selection screen information from program A and submit it to program B so that this second program will generate a report with this information.
After program B is executed it creates some files in a server, which i will have to use later in program A. I cannot modify the program B since its not part of the requirement.
But the thing is that i am having problems when submiting a select option and a parameter together.
It would be really useful if someone could give some examples of this.
Example of what i want to do:
SUBMIT PROGRAM_B
WITH S_MATNR EQ S_MATNR ->pass all the values from a select option.
WITH P_WERKS EQ P_WERKS ->pass a single value from a parameter.
AND RETURN
Regards,
RobertoHi,
Try this for select-options:
SUBMIT PROGRAM_B
WITH S_MATNR *IN* S_MATNR ->pass all the values from a select option.
WITH P_WERKS EQ P_WERKS ->pass a single value from a parameter.
AND RETURN
Hope it helps.
Regards,
Gilberto Li
Edited by: Gilberto Li on Feb 2, 2009 10:24 PM
Edited by: Gilberto Li on Feb 2, 2009 10:33 PM
Edited by: Gilberto Li on Feb 2, 2009 10:33 PM -
How to restrict the t code BBPMAININT with DISPLAY Mode in SRM?
Hi experts,
I want to restrict the T code BBPMAININT : Maintain Business Partner with DISPLAY mode in SRM system?
Action Taken:1. I have restricted with "03 Activity" of all check and maintainauthorization objects for this tocde .
2. I have performed the authorization trace also, there also I have not found any new objects.
Here are list of auth object I have restricted:
BBP_FUNCT
BBP_PD_AUC
BBP_PD_BID
BBP_PD_CNF
BBP_PD_CTR
BBP_PD_INV
BBP_PD_PCO
BBP_PD_PO
BBP_PD_QUO
But I have not clearly understand of the object : BBP_FUNCT.
In this Object, I have maintained BE_F4_HELP value only. And rest of the auth object I have restricted to 03 activity only.
But still users are able to acess the CREATE and MANAGE buttons.
So how Can I restrict the this T code in display mode?
Please suggest me...
Thanks in advance.
Regards,
SivaSiva,
Does your users have any other tcodes assigned to them other than the one you needed to be resticted?
As a trial, assign only your tcode to a user and run the trace.
Let us know your findings.
Regards,
Brahmeshwar -
If checkbox is checked, put values in select-options and parameter...
Hello Experts,
Based on my selection-screen below, How do I fill p_eindt and p_monat with values if
the user clicked on the checkbox p_end? Below is my selection-screen:
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
PARAMETER: p_bukrs TYPE bukrs OBLIGATORY.
SELECT-OPTIONS: p_werks FOR wa_ekpo-werks OBLIGATORY NO INTERVALS,
p_bsart FOR ekko-bsart OBLIGATORY NO INTERVALS,
p_eindt FOR eket-eindt OBLIGATORY,
p_ebeln FOR ekko-ebeln.
PARAMETER: p_monat TYPE monat OBLIGATORY,
p_gjahr TYPE gjahr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK 1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETER: p_end AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF BLOCK b2.
Hope you can help me guys.Thank you and take care!Hi,
For F4 help for any input value in selection screen u can use:
Ex:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_eidnt-LOW.
SELECT DISTINCT edint INTO TABLE IT_ab FROM <tablename>..
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE =
RETFIELD = 'eindt'
PVALKEY = ' '
DYNPPROG = W_REPID
DYNPNR = W_DYNNR
DYNPROFIELD = 'p_eindt-LOW'
STEPL = 0
WINDOW_TITLE = 'Plant'
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = 'X'
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB = 'X'
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = it_abc
FIELD_TAB =
RETURN_TAB = IT_RETURN
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 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.
Try this.
Regards,
Vani. -
Dynamic select-options using parameter
Hi experts,
It the user selects one value from dropdown list, it should generate one select-option using that name. Is it possible?
for example, (pls see my code).
If user selects 'Malek' from parameter, <b>and press 'ENTER'</b>
<b>select-option should display with that name</b> like
Malek malek-low malek-high
And if user selects some other like 'Amran'. It should generate(and append)
Malek malek-low malek-high
amran amran-low amran-high
and so on....
report c.
data: t_return like ddshretval occurs 0 with header line.
data: begin of t_names occurs 0,
name like usr01-bname,
end of t_names.
parameters : i_inspec like usr01-bname.
at selection-screen on value-request for i_inspec.
perform get_names.
form get_names.
t_names-name = 'Malek'.
append t_names.
t_names-name = 'Amran'.
append t_names.
t_names-name = 'Ow CC'.
append t_names.
t_names-name = 'titbit'.
append t_names.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'T_NAMES-NAME'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'I_INSPEC'
value_org = 'S'
tables
value_tab = t_names.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno with
sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
read table t_return index 1.
endform. "GET_NAMES
Reward guaranteed,
thanks
kakiUse At selection-screen output,use screen internal table..
User Dynamic Selection
at selection-screen output.
select single * from t000md.
loop at screen.
case screen-group1.
when 'REL'.
if not p_old is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
when 'BEL'.
if not p_new is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
when 'ARB'.
if p_new is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
when 'MTA'.
if p_new is initial.
screen-input = '0'.
screen-required = '0'.
screen-invisible = '1'.
endif.
modify screen.
endcase.
endloop. -
We have a parameter and select option in Selection Screen, by using the parameter and select option in the select query, with out passing the any values to the Parameter and SO, how we will get the records?
hi check this..
if the parameter is empty if will not work in the select statement..you can get the values for the select options with empty structures..
check this..
tables:mara .
data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab .
parameters:p_matnr like mara-matnr.
select matnr from mara into table itab
where matnr = p_matnr.
loop at itab.
write:/ itab-matnr.
endloop.
it will not fetch data..
for select-options
tables:mara .
data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab .
select-options:s_matnr for mara-matnr.
select matnr from mara into table itab
where matnr in s_matnr.
loop at itab.
write:/ itab-matnr.
endloop.
it will fetch data..
regards,
venkat -
Select option and parameter.
I have select options and parameters in my selection screen. While extracting the data I am using both the select option and a parameter in where condition. But that select statement is not returning any data. Could any body tell me what might be the reason.
Thanks,
bsv.Hi,
See this example code it works.
tables spfli.
parameters p_carrid type spfli-carrid obligatory.
select-options s_connid for spfli-connid.
data itab type table of spfli with header line.
select *
from spfli into table itab
where carrid eq p_carrid
and connid in s_connid.
loop at itab.
write: / itab-carrid,
itab-connid.
endloop.
Note : Dont leave blank for parameters because it take as space and when you select from table it is unsuccessful.
Plzz Reward if it is useful,
Mahi. -
Dynamic Select Options/Ranges Maintain and Display in my screen
Hi I am trying to figure out if I can create a screen which will will read various select-options I have stored in a custom table but am having trouble finding something which will allow me to display each of 'select-options' in my dynpro... has anyone ever done this?
I'd rather not reinvent the wheel or mimic - does anyone know of a way to basically use a loaded range and display it on a screen for display or maintenance using standard SAP routines/classes?
Thanks in advance!
Roc..@Adrian - I got your email regarding the code sample, here is a quick example of how to popup a dynamic selection for up to 5 tables...
*& Report ZRS_DYNAMIC
REPORT zrs_dynamic.
* START Dynamic Range Selection Definitions
* Definition of the selection_if variable, which is used to reference
* the selections obtained
DATA: gv_selid TYPE rsdynsel-selid.
* Definition of the TABLES_TAB table for use in providing the list of
* fields available for creating select options from
DATA: gt_tables TYPE STANDARD TABLE OF rsdstabs.
DATA: gs_tables TYPE rsdstabs.
PARAMETERS: p_tab1 TYPE tabname DEFAULT 'KNA1',
p_tab2 TYPE tabname DEFAULT 'KNB1',
p_tab3 TYPE tabname DEFAULT 'KNC1',
p_tab4 TYPE tabname DEFAULT 'KNVV',
p_tab5 TYPE tabname DEFAULT 'KNVP'.
START-OF-SELECTION.
gs_tables-prim_tab = p_tab1 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab2 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab3 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab4 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab5 .APPEND gs_tables TO gt_tables.
* Definition of Table which includes the select-option range for field
TYPES: ty_selopt_t TYPE rsdsselopt OCCURS 10.
* Definition of field name and select option range table
TYPES: BEGIN OF ty_frange,
fieldname TYPE rsdstabs-prim_fname,
selopt_t TYPE ty_selopt_t,
END OF ty_frange.
TYPES: ty_frange_t TYPE ty_frange OCCURS 10.
TYPES: BEGIN OF ty_range,
tablename LIKE rsdstabs-prim_tab,
frange_t TYPE ty_frange_t,
END OF ty_range.
TYPES: ty_range_t TYPE STANDARD TABLE OF ty_range.
DATA: it_ranges TYPE ty_range_t.
* work areas
DATA: gs_ranges TYPE ty_range.
DATA: gs_frange TYPE ty_frange.
DATA: gs_selopt TYPE rsdsselopt.
DATA: gt_ranges TYPE ty_range_t.
DATA: gt_frange TYPE ty_frange_t.
DATA: gt_selopt TYPE ty_selopt_t.
* Definition of the fields list avaiable
TYPES: ty_fields TYPE STANDARD TABLE OF rsdsfields.
DATA: it_fields TYPE ty_fields.
DATA: gs_fields TYPE rsdsfields.
* END Dynamic Range Selection --------------------------------------------
CALL FUNCTION 'FREE_SELECTIONS_INIT'
EXPORTING
kind = 'T'
IMPORTING
selection_id = gv_selid
TABLES
tables_tab = gt_tables.
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 'FREE_SELECTIONS_DIALOG'
EXPORTING
selection_id = gv_selid
title = 'Select WHERE criteria for Rule'(s12)
as_window = 'X'
start_row = 7
start_col = 10
IMPORTING
field_ranges = it_ranges
TABLES
fields_tab = it_fields
EXCEPTIONS
internal_error = 1
no_action = 2
selid_not_found = 3
illegal_status = 4
OTHERS = 5.
Edited by: Rocco Scocco on Jun 17, 2010 3:48 PM
Edited by: Rocco Scocco on Jun 17, 2010 3:49 PM -
Select option as parameter in FM.
Ho to pass select options as a parameters in function module.
There are ways to do it...
In the Function module using the Table parameter you can do it.
Have a table parameter to hold the select option , Don't type refer to any DDIC structure or field.
In the implementation of the function module you can do some thing like this,.
"example you want to pass matnr select option
data: r_selopt type range of matnr.
data: wa_opt like line of r_selopt.
r_selopt = table_param[].
in the call function side you pass the select option directly to the table parameter directly.
call function 'ZTEST_FUNCTION_SLECTOPTION'
tables
table_param = s_matnr. -
Select-options in SE51 with problem
Hi!
I´m trying to put select-options in screen by SE51.
I create a subscreen:
selection-screen begin of screen 9001 as subscreen.
select-options: so_matnr for mara-matnr.
selection-screen end of screen 9001.
And i call this screen in PBO of my screen 9002:
call subscreen sub01 including sy-repid '9001'.
The select-options appear all right but the button that add more registers (that i could hide with command NO-EXTENSION) not working.
How can i put SO in my screen and all functions work fine??Try making your screen wider.
On a screen that I have created, all of the buttons are there.
Rob -
Passing Select-options as parameter to function module
I need to pass a select-option as a parameter to a function module. Is this possible?
There is an option of passing all the values of the select-option to an internal table, passing that internal table as parameter to the function module, and then adding it manually again to a select-option in the function module.
But is there any direct way to do this?Hi,
I have a similar problem: I have RFC function module to which I want to pass select options. Therefore I defined table parameters as follows:
IT_RUNID TYPE EFG_TAB_RANGES
IT_PERNR TYPE EFG_TAB_RANGES
IT_REINR TYPE EFG_TAB_RANGES
I can successfully pass my values to the module, but if I try to check these parameters
using
CHECK IT_TRIPS-RUNID IN IT_RUNID.
CHECK IT_TRIPS-PERNR IN IT_PERNR.
CHECK IT_TRIPS-REINR IN IT_REINR.
the check always fails, I guess because there are leading zeros in the ranges. Is there a way to solve this problem?
Thanks and regards,
Martin -
Select-options variable to be displayed ,remove 'IEQ'
I'm getting plants as an input range.
Select-options: PLANTS for T001W-WERKS.
since its stored as IEQFD01 internally ,
what should be done to remove this IEQ and display as FD01.
how to display the from and to range like Plant range : FD01 to CH03.
Thanks.Use something like :
LOOP AT PLANTS.
* sign I, E
CASE PLANTS-SIGN
WHEN 'I'.
WRITE: / 'including'.
WHEN 'E'.
WRITE: / 'excluding'.
ENDCASE.
* options EQ LT BT CP GE GT LE NB NE NP
CASE PLANTS-OPTION.
WHEN 'EQ'.
WRITE 'equal'.
WHEN 'LT'.
WRITE 'lower than'.
WHEN 'BT'.
WRITE 'between'
ENDCASE.
WRITE plants-low.
IF plants-option EQ 'BT' or plants-option EQ 'NB'.
WRITE: 'and', plants-high.
ENDIF.
ENDLOOP.
Regards -
Select-Options search help with where
Hi Experts,
I need to have a search help in my selection screen with a Where clause.
I've tried to search it but I cant find answers.
The logic is like this, wherein the search help for my selection screen should just have the value PM001 and ZMIS.
SELECT-OPTIONS stsma estat tj30 FOR s_eqpstt FOR tj30t-estat WHERE stsma = 'PM001' and stsma = ZMIS.
ThanksSorry, a little more detail... create a view, of search help type, with the columns you present and restrict those two values. Then create the search help with that view. Then add the search help to the select-option.
Regards,
Edgar -
Fill select-options in Page with flow logic ???
Hello All,
I created a BSP Application using Page with Flow Logic.
In the first page of my Application I'm using 2 input fields as select-options.
Now I'm populating a Ranges of that Field using the type :-
selopttab
I populated the ranges table like :-
wa_bname_sel-sign = 'I'.
wa_bname_sel-option = 'BT'.
wa_bname_sel-low = '*'.
wa_bname_sel-high = 'Z'.
ELSE.
wa_bname_sel-sign = 'I'.
wa_bname_sel-option = 'EQ'.
wa_bname_sel-low = p_bname.
wa_bname_sel-high = p_bname.
ENDIF.
APPEND wa_bname_sel TO p_bname_sel.
CLEAR wa_bname_sel.
But the problem is I checked the corresponding DATABASE Table entries by passing thesame value .
i.e I passed the low and high values to the field as '*' and 'Z'.
The total number of entries differ when passing '*' and 'Z' to when passing SPACE.
I tried even with contains Pattern .This time the total number of records fetching has Increased but the sum is not exact when passed SPACE to the Database Table.
So what should I pass to the Low and High values of my Ranges Table to get all the entries ????
DOes this type of building the Ranges work in BSP's ?
How are u people working out for the select-options functionality in Page with flow logic ?
Message was edited by:
deepu kHello Jessy,
To populate select-options or Ranges in Page with flow logic I used the following code :
************************ Bulid the Select-Options**************************************
DATA: p_bname_sel TYPE STANDARD TABLE OF selopttab,
p_bsp_name_sel TYPE STANDARD TABLE OF selopttab,
p_tcode_sel TYPE STANDARD TABLE OF selopttab.
DATA: wa_bname_sel TYPE selopttab,
wa_bsp_name_sel TYPE selopttab,
wa_tcode_sel TYPE selopttab.
* Select-Options for Username
REFRESH p_bname_sel.
CLEAR wa_bname_sel.
IF ( p_bname IS INITIAL ).
wa_bname_sel-sign = 'I'.
wa_bname_sel-option = 'CP'.
wa_bname_sel-low = '*'.
wa_bname_sel-high = ''.
ELSE.
wa_bname_sel-sign = 'I'.
wa_bname_sel-option = 'EQ'.
wa_bname_sel-low = p_bname. " p_bname is the Input field and the value is taken from it
wa_bname_sel-high = p_bname.
ENDIF.
APPEND wa_bname_sel TO p_bname_sel.
CLEAR wa_bname_sel.
* Select-Options for BSP_Application
REFRESH p_bsp_name_sel.
CLEAR wa_bsp_name_sel.
IF ( p_bsp_name IS INITIAL ).
wa_bsp_name_sel-sign = 'I'.
wa_bsp_name_sel-option = 'CP'.
wa_bsp_name_sel-low = '*'.
wa_bsp_name_sel-high = ''.
ELSE.
wa_bsp_name_sel-sign = 'I'.
wa_bsp_name_sel-option = 'EQ'.
wa_bsp_name_sel-low = p_bsp_name. " Input field
wa_bsp_name_sel-high = p_bsp_name.
ENDIF.
APPEND wa_bsp_name_sel TO p_bsp_name_sel.
CLEAR wa_bsp_name_sel.
* Select-Options for TCODE
REFRESH p_tcode_sel.
CLEAR wa_bsp_name_sel.
IF ( p_tcode IS INITIAL ).
wa_tcode_sel-sign = 'I'.
wa_tcode_sel-option = 'CP'.
wa_tcode_sel-low = '*'.
wa_tcode_sel-high = ''.
ELSE.
wa_tcode_sel-sign = 'I'.
wa_tcode_sel-option = 'EQ'.
wa_tcode_sel-low = p_tcode. " Input field
wa_tcode_sel-high = p_tcode.
ENDIF.
APPEND wa_tcode_sel TO p_tcode_sel.
CLEAR wa_tcode_sel.
* Select all the related entries when either BSP or TCode is choosen
IF ( ( p_bsp_name IS NOT INITIAL ) AND ( p_tcode IS INITIAL ) )
OR
( ( p_bsp_name IS INITIAL ) AND ( p_tcode IS INITIAL ) ).
REFRESH gt_final.
SELECT bname
bsp_name
description
ldate
ltime
calls
FROM <custom_table>
INTO TABLE gt_final
AND bsp_name IN p_bsp_name_sel
AND ldate IN p_ldate_sel.
endif.
Hope that wud help u !!!
Regards,
Deepu.K -
Reading all select-option and parameter fields
Hello All,
I have a reaquire ment like ' i Will take a report name as input from user , and i need to read all the fields declared with PARAMETERS and SELECT-OPTIONS. '
one thing i can read the program and go line by line or scan the program.
apart from this is there any other way to get all such fields declared with PARAMETERS and SELECT-OPTIONS
Thanks & Regards
Amarender Reddy BHi,
You can fetch it from table TVARV
Regards,
Prashant
Maybe you are looking for
-
Profit Center reports in New GL
Hello! We are implementing document splitting based on profit centers in our customer. One of the advantages will be to have financial reporting based on profit centers and groups. However I don't see any financial statement reports where I can use P
-
how do I load the DPXPLUS plug in into ae? I have both ae6 and ae CC. I need to read 12 bit dpx file
-
Can One technical system be assigned to multiple BS system
Hi All, I just need small confirmation, i want to know wether one technical system(ABAP) with same client be assigned to multiple busines system.. Regards, Raj
-
Mac software on Airport Express CD?
I've lost my Airport Express CD. What software is included on that CD, and can it be downloaded from the Apple site? Thanks. G5 Dual 2.5 GHz Mac OS X (10.4.2)
-
Canon scanner not recognised after Mac wakes up.
Hi I have been using a Canon LIDE 60 scanner since I bought my eMac 4 or so years ago. It's always worked fine. But since upgrading to Leopard a few months ago I've been having trouble with it. What happens is that after the Mac goes into deep sleep