Setting ranges as default values for a selection screen value
i have a selection screen parameter s_yywrpc. For this s_yywrpc i have to set some range of values as default values.
Can u tell me how can i do that .
select-options:s_yywrpc for vbak-yywrpc.
for this parameter i have to set MSPG, MSP, FMP, FMPG, CFEG, FCFG, CMSG, CMSP as the default values in selection screen
can anybody tell me how can i code this
thanks
pavan
>
pavan kumar wrote:
> i have a selection screen parameter s_yywrpc. For this s_yywrpc i have to set some range of values as default values.
> Can u tell me how can i do that .
>
> select-options:s_yywrpc for vbak-yywrpc.
> for this parameter i have to set MSPG, MSP, FMP, FMPG, CFEG, FCFG, CMSG, CMSP as the default values in selection screen
>
> can anybody tell me how can i code this
>
>
> thanks
> pavan
in the intialization event.
INTIALIZATION.
s_yywrpc-low = 'MSPG'.
s_yywrpc-sign = 'I'.
s_yywrpc-option = 'EQ'.
append s_yywrpc.
s_yywrpc-low = 'MSP'.
append s_yywrpc.
do it all for the values.
Similar Messages
-
Default Value for a selection screen field
Hi Experts,
I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
Plzz suggest a solution.Hi ,
Actualy u should set the default value at the time of selection screen, but now from the same logic try to write like
If Date is initial.
data = sy-datum.
endif.
in ur PBO
Try this.
THank
-Anmol
Hi Experts,
I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
Plzz suggest a solution. -
Filter value for variable selection screen
Hi & help !,
This could be a tricky or an easy question, but it seems too hard for me !
I'm storing version in my cube, and have a report which shows informations for the version you select (with a variable = ZVERSION01).
ex : Version :
V01
V02
V03
V04
When report is executed i have my variable selection screen (for variable ZVERSION01) which give all version [V01 -> V04]. But i want users have no access to version V01 & V02.
Variable ZVERSION01 is "single selection", i tried to filter with Default Values screen or Characteristic Restriction screen but it doesn't work.
ex : caracterisitic restriction screen : VERSION = !V01 / !V02
default value screen : variable VERSION = ZVERSION01
Any idea?
ThxHi,
In BI 7.0 there is Anaylysis authorisation RSECADMIN transaction. That you can use here or normal role concept will also do.
What you need to do is grant authorisation to the users for V03 and 04 version only and create 'Authorisation' type variable on version in the query. (type of variable - it asks while creating the variable). This way users will only be able to see authorised versions only.
Note you have to make version infoobject as Authorisation relevent infoobject. ( in infoobject properties).
Let me knw if you have any doubt.
Regards,
Viren -
HR-ABAP: Defaulting Radio Button on Selection Screen of PNP LDB
Hi all,
I am using PNP LDB (Logical Database) for program which is used for Payroll Results.
Now I have a requirement wherein it is necessary to select 'Up to today' as default on the selection screen.
We are having 4.7C version of SAP. I tried following code in INITIALIZATION event:
Initializing Selection Screen Data Selection Option to 'Up To Today'
INITIALIZATION:
MOVE: 'X' TO pnptimr4, " This is the option which I want as Default selection.
space TO pnptimr1,
space TO pnptimr2,
space TO pnptimr3,
space TO pnptimr5,
space TO pnptimr6.
But still I dont see this Radiobutton getting selected as Default selection while running the program.
By Default it selects Option : 'Other Period' (pnptimr6).
Any Idea how to resolve this ??
Regards,
Avinashhi...
When the INITIALIZATION event occurs, you can set default values for the selection screen.
The fields for the data selection are defined in structure QPPNP.
Possible values for field PNPTIMED are:
D = Today (key date)
M = Current month
Y = Current year
P = To current date
F = From today (from current date)
The person selection fields are defined in include program DBPNPSEL. They are internal tables that must be filled using APPEND.
so in intialization you have to write code as
PNPTIMED : P.
so up date will be defaulted in selection screen.
award points if helpful. -
How can I get selection screen values from outside of program?
Hi. all.
Now. I'm developing moritoring systems and I have problems. for getting selection screen values in runtime. Is there any function, methods or structure to know this?
I'd like to get selection screen values while several programs working in runtime and update these values to table to show current system's status and input values for users in real time.
For example.
Now. 3 PGMs are working on systems.
each PGM is ZAAA01, ZAAA02, ZAAA03.
and ZAAA01 needs input parameter P01, ZAAA02 needs input parameter P02, ZAAA03 needs input parameter P03.
In this case, I have to know values of P01, P02 and P03.
The mornitoring systems will show current working status of PGMs(ZAAA01~03)' and these PGMs' input values.
As fas as I know, the structure 'SCREEN' can be used in each PGM for runtime. Is there any SAP system structure or something else for this purpose?
I hope your hopeful repsponse.
Thanks.Umm..I need to explain more about this.
of course I know SET, GET PARAMETERS.
But I'd like to minimize coding for each PGM level.
I have over hundreds PGMs and I have to develop the PGM(including tables and structures) that mornitor
all of those PGMs on a report in real-time.
This PGM is kind of Process Manager.
First I should know dialogue job PGM and background job that pass parameters using SAP(ABAP) Memory.
And then I have to update those PGMs' input values via screens into tables in real-time.
So, I couldn't use SET,GET PARAMETERS for this PGM.
I want to know methods that can be used for getting information about runtime PGMs' selection screen field values in SAP systems wide.
Please help me some one knows this. -
Selection screen value not assigning to the value when executed for the first time
Hi ,
Im My program at selection screen there are company code, vendor account and open items at key date(takes system date as default value).
Facing problem at open items at key date - Open key date parameter is taken from LDB - KDF.
First time when I am executing the program it is taking system date value in the selection screen variable even though I have given the different date.
This problem is only when I execute for first time or press enter without giving company code.
Can any one please help us to come out of this problem.
Regards
Sri BhargaviHI,
you can use the Event as AT SELECTION-SCREEN -
In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
I've tried everything to get a custom umask set for all apps. It just seems impossible...
Is there a replacement for launchd-user.conf?Please file a bug report: https://bugreport.apple.com
I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger. -
F4 HELP FOR ONLY SELECTED FIELD VALUES
Hi,
I have to display the F4 help for the selection screen field parameter. From the ICON table, I need to display the field ID values. In the ICON table, I have lot of field values for the field ID, but I need to display only 3 field values into F4 help.(like say @07@, @08@, @0A@ only at the F4 help).
Thanks in advance.
Regards
Ramesh mavilla.Hi,
See the follwoing code example
REFRESH: I_DYNPREAD .
CLEAR : I_DYNPREAD .
I_DYNPREAD-FIELDNAME = 'P_KAPPL'.
APPEND I_DYNPREAD.
CLEAR I_DYNPREAD.
L_REPID = SY-REPID .
L_DYNNR = '1000' .
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = L_REPID
DYNUMB = L_DYNNR
TABLES
DYNPFIELDS = I_DYNPREAD.
IF SY-SUBRC EQ 0.
READ TABLE I_DYNPREAD INDEX 1.
P_KAPPL = I_DYNPREAD-FIELDVALUE.
ENDIF.
REFRESH: I_DYNPREAD .
CLEAR : I_DYNPREAD .
REFRESH: I_KSCHL.
TRANSLATE P_KAPPL TO UPPER CASE.
TRANSLATE P_KVEWE TO UPPER CASE.
SELECT KAPPL KVEWE KSCHL VTEXT FROM T685T
INTO CORRESPONDING FIELDS OF TABLE I_KSCHL
WHERE KAPPL = P_KAPPL
AND KVEWE = P_KVEWE
AND SPRAS = 'EN'.
IF SY-SUBRC <> 0.
MESSAGE E001(ZZ) WITH 'No Condition Type exist for Application'.
*p_kappl ' and Usage' p_kvewe.
ELSE.
REFRESH: I_FIELDS.
I_FIELDS-TABNAME = 'T685T'.
I_FIELDS-FIELDNAME = 'KAPPL'.
I_FIELDS-SELECTFLAG = ''.
APPEND I_FIELDS.
I_FIELDS-TABNAME = 'T685T'.
I_FIELDS-FIELDNAME = 'KVEWE'.
I_FIELDS-SELECTFLAG = ''.
APPEND I_FIELDS.
I_FIELDS-TABNAME = 'T685T'.
I_FIELDS-FIELDNAME = 'KSCHL'.
I_FIELDS-SELECTFLAG = 'X'.
APPEND I_FIELDS.
I_FIELDS-TABNAME = 'T685T'.
I_FIELDS-FIELDNAME = 'VTEXT'.
I_FIELDS-SELECTFLAG = ' '.
APPEND I_FIELDS.
CLEAR: V_SEL.
CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME'
EXPORTING
CUCOL = 0
CUROW = 0
DISPLAY = ' '
SELECTFIELD = 'KSCHL'
TITEL = 'Cond Type'
IMPORTING
IND =
SELECT_VALUE = V_SEL
TABLES
FIELDS = I_FIELDS
FULL_TABLE = I_KSCHL
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. "SY-SUBRC.
And also go throw the link which it clears more about F4
Check the link below for creating collective search help
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
Check the ink below for creating elementary search help
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
<b>Reward with points if helpful.</b>
Regards,
Vijay -
Can I set up a default time for iCal events?
Can I set up a default time for iCal events?
That's actually how Guest Access feature works. You can share internet to your guest/visitors without giving them access to your local network. You may configure the Guest Access settings on the router using Linksys Smart Wifi through the local access interface; check this site for the instructions, http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=b509a1805dd6416ebb0e35a7e5a58937_Configuring_Guest...
Added Info:
Guest Network Frequently Asked Questions
http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=f35bd58fda4148929ac482f3c7968e04_Guest_Network_Fre... -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
F4 Help for the selection screen field
Hi Gurus,
I have to display F4 help for a selection screen field. i am using following code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CODE'
dynpprog = lw_repid
dynpnr = sy-dynnr
VALUE_ORG = 'S'
TABLES
value_tab = gi_text
field_tab = li_fields_tab
return_tab = pi_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
001 test
001 test1
but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
Please help me out.
Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.Sachin,
I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
REPORT zktest01 .
DATA :
BEGIN OF value_tab OCCURS 0,
field LIKE e070-trkorr,
text LIKE e07t-as4text,
END OF value_tab.
DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
PARAMETERS : p_field LIKE value_tab-field,
p_text LIKE value_tab-text. "NO-DISPLAY.
INITIALIZATION.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'FIELD'.
t_fldtab-langu = 'E'.
t_fldtab-position = 1.
t_fldtab-offset = 0.
t_fldtab-fieldtext = 'Key'.
t_fldtab-reptext = 'Key'.
t_fldtab-leng = 20.
t_fldtab-intlen = 20.
t_fldtab-outputlen = 20.
t_fldtab-datatype = 'CHAR'.
t_fldtab-inttype = 'C'.
t_fldtab-headlen = 20.
t_fldtab-keyflag = 'X'.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'TEXT'.
t_fldtab-position = 2.
t_fldtab-offset = 20.
t_fldtab-fieldtext = 'Text'.
t_fldtab-reptext = 'Text'.
t_fldtab-leng = 60.
t_fldtab-intlen = 60.
t_fldtab-outputlen = 60.
t_fldtab-headlen = 60.
t_fldtab-keyflag = ' '.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
value_tab-field = '101'.
value_tab-text = 'dddd'.
APPEND value_tab.
value_tab-field = '202'.
value_tab-text = 'aaaa'.
APPEND value_tab.
t_dynmap-fldname = 'FIELD'.
t_dynmap-dyfldname = 'P_FIELD'.
APPEND t_dynmap.
t_dynmap-fldname = 'TEXT'.
t_dynmap-dyfldname = 'P_TEXT'.
APPEND t_dynmap.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = 'ZKTEST01'
dynpnr = '1000'
dynprofield = 'P_FIELD'
value_org = 'S'
TABLES
field_tab = t_fldtab
value_tab = value_tab
return_tab = t_rettab
dynpfld_mapping = t_dynmap
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF.
START-OF-SELECTION.
Jeffrey Satriadi -
# value in Variable Selection screen
Hello,
Can you please help with the below:
How do we remove # (Not Assigned) value from Variable selection screen. When I select PLANT in one of the report, I see # value. But there are no empty values in the cube. So, I am not sure as why I am getting this # value in Selection Screen. The seeting in Web designer for READ MODE is "Posted Values" and not "Master data or Dimension Table".
Thanks.have you checked what Bex properties are set in the Info Object for "Query Def. Filter Value S"
Select Values from Info provider.
that might solve your problem. But ensure you're not disturbing anything else by changing this property.
Regards, Siva
Message was edited by:
Siva Bonam -
How to capture selection-screen values
Hi,
How to capture selection-screen values when user pressing F3 or Back button after the display of report.
Regards,
Bujji.Hi Bujji,
select-option are actually ranges or more general internal tables with the structure:
SIGN: 'I'nclusive or 'E'xclusive
OPTION: 'EQ', 'BT', 'NE', 'GE', 'CP', ....
LOW: low value of type of the curresponding "FOR table-field"
HIGH: high value of type of the curresponding "FOR table-field"
You may just code:
TABLES: mara.
SELECT-OPTIONS s_matnr FOR mara-matnr.
LOOP AT s_matnr.
WRITE: / s_matnr-sign,
s_matnr-option,
s_matnr-low,
s_matnr-high.
ENDLOOP.
If you find my answer useful, please don't forget the reward.
Regards,
Juergen -
How to pass selection screen value to LDB dynamic field.
Hello everybody,
In my program, I am using standard LDB(PSJ) for getting data. And there is a requirement that I have to display some dynamic fields on my selection screen like plant , person responsible ( which are mandatory also ) etc. and inside the program I have to fill those dynamic fields for which the user has entered the value in selection screen.
Could you please tell me how to pass some of selection screen values to ldb dynamic fields before GET statement.
Thanks !!!
Regards,
Mitra>
Pavan Bhamidipati wrote:
> Hi,
>
>
I have to fill those dynamic fields for which the user has entered the value in selection screen.
>
>
> This means that the user is going to enter the values in the selection screen for the dynamic field values so
>
> SET PARAMETERID 'XYZ' FIELD p_field.
>
> where p_field is a parameter on the selection screen
>
> Regards
> Pavan
You can capture the values selected through the dynamic selections using some of the functions modules below, just search the forum for the below FM's, perhaps you can find some sample code
FREE_SELECTIONS_EX_2_RANGE
FREE_SELECTIONS_EX_2_WHERE
FREE_SELECTIONS_RANGE_2_EX
FREE_SELECTIONS_RANGE_2_WHERE
FREE_SELECTIONS_WHERE_2_EX
FREE_SELECTIONS_WHERE_2_RANGE -
Dynamic selection list based on selection screen values ?
I have a requirement which I can't solve in one step in a selection screen
first field I have to select the contract like you do with me33k
in the second field I have to select the position of the contract filled in at the first field ?
if the position is selected I have to fill other fields in the selection screen and block them for altering the information entered by the position selected
anybody got some sample on how to do this ??
kind regards
arthur de smidtI really don't understand why it's not working. after input of the parameter field debugging doesn't start when is it evaluated ??
I want the screen modified at every change of p_contr.
SELECTION-SCREEN: BEGIN OF BLOCK s01 WITH FRAME TITLE text-s01.
parameters: p_bukrs like ekko-bukrs MEMORY ID BUK obligatory,
P_WERKS like EKPO-WERKS MEMORY ID WRK OBLIGATORY,
p_ekorg like ekko-ekorg MEMORY ID EKO obligatory,
P_EKGRP like EKKO-EKGRP MEMORY ID EKG OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK s01.
SELECTION-SCREEN: BEGIN OF BLOCK s05 WITH FRAME TITLE text-s05.
parameters: p_contr AS CHECKBOX USER-COMMAND contr,
p_konnr like EKKO-ebeln MATCHCODE OBJECT MEKK ,
P_KTPNR like EKPO-ktpnr.
SELECTION-SCREEN: END OF BLOCK s05.
SELECTION-SCREEN: BEGIN OF BLOCK s02 WITH FRAME TITLE text-s02.
parameters: p_lifnr like ekko-lifnr modif id CTR,
p_EVERK like EKKO-VERKF," obligatory,
p_afnam type zafnam,
p_uwkenm like EKPO-TXZ01,
P_IHRAN like EKKO-IHRAN DEFAULT SY-DATUM,
P_KDATB like EKKO-KDATB," obligatory,
P_KDATE like EKKO-KDATE," obligatory,
p_cntVU LIKE RP50G-PERNR OBLIGATORY
MATCHCODE OBJECT PREM,
p_advies type lifnr.
SELECTION-SCREEN: END OF BLOCK s02.
SELECTION-SCREEN: BEGIN OF BLOCK s03 WITH FRAME TITLE text-s03.
SELECTION-SCREEN PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
parameters: P_TXZ01 like EKPO-TXZ01 obligatory,
* p_txt9 type tline,
P_MATKL like EKPO-MATKL DEFAULT 'DNST-02' OBLIGATORY.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-001 FOR FIELD p_menge.
parameters: P_MENGE like EKPO-MENGE DEFAULT '1' OBLIGATORY,
P_MEINS like EKPO-MEINS DEFAULT 'ST' OBLIGATORY.
selection-screen end of line.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-002 FOR FIELD p_netpr.
parameters: P_NETPR like EKPO-NETPR obligatory,
P_EPEIN like EKPO-BPRME DEFAULT 'ST' OBLIGATORY.
SELECTION-SCREEN POSITION 55.
parameters: p_schpr like ekpo-schpr.
selection-screen end of line.
parameters: p_saknr like mepoaccounting-sakto obligatory,
p_aufnr like mepoaccounting-aufnr obligatory.
SELECTION-SCREEN: END OF BLOCK s03.
initialization.
clear h_exit.
set pf-status 'STANDAARD'.
move 'Werkomschrijving' to WERK.
at selection-screen on p_contr.
loop at screen.
if p_contr = 'X'.
if screen-group1 = 'CTR'.
screen-input = 0.
screen-active = 0.
screen-required = 0.
modify screen.
else.
screen-input = 0.
screen-active = 1.
screen-required = 1.
modify screen.
endif.
endif.
endloop.
at selection-screen on exit-command.
case sy-ucomm.
when '&F03' or '&F015' or '&F12'.
leave program.
endcase.
at selection-screen on block S01.
case sy-ucomm.
when 'ONLI'.
type_doc = 'B'.
when 'ONLI1'.
type_doc = 'O'.
endcase.
perform checks_org.
at selection-screen on block S02.
perform checks_lev.
at selection-screen on block s03.
check sy-ucomm(4) eq 'ONLI'.
perform checks_werk.
at selection-screen.
case sy-ucomm.
when 'WERK'.
perform lange_omschrijving.
when 'SPOS'.
CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
EXPORTING
CURR_REPORT = 'ZBESTELLING'.
endcase.
start-of-selection.
Maybe you are looking for
-
Fails to connect to the Oracle yum public server
Hello, I would like to connect to the Oracle public yum server so I can install packages from the Oracle Linux via a yum client for my RHEL 5.4 I am trying to download and copy the appropriate yum configuration file in place, by running the following
-
I am an expat living and working overseas and have a Skype call forwarding # that routes calls to my international number. Over the last 2 weeks I have received 3 phone calls from angry people across the country (Georgia, California, and Utah) claim
-
My wife wants my music on her iphone, i am worried about syncing her phone to my itunes and her losing all of her contacts. Should I not be worried? How should I proceed?
-
Quicktime Clips in PowerPoint Play in IE but not in Safari
When running PowerPoint on my Mac or on my Webserver through IE I can propertly launch Quicktime clips by double-clicking the video window. But when I run PowerPoint through Safari, the double-clicking has a different effect- it seems to be selecting
-
Can't download Adobe Pro, after 10 min only 1%, firewall is off.