Need help on selection screen optation
1)PARAMETER: P_DETAIL RADIOBUTTON GROUP G1 DEFAULT 'X'.
2)PARAMETER: P_SUMM RADIOBUTTON GROUP G1
3)SELECT-OPTIONS: S_PGI FOR ZAPDDLIV-ZDATE
i have 2 parameters depending on parameter i need to accept selection screen for parameter 1 accept data in dd.mm.yyyy. and for parameter need to accept only mm.yyyy
only
need help on this selection criteria..
Hi Anil,
It is very much possible. Use Modif ID concept. First dont display any date, depending on radio button selected display date in which ever form u need.
See the sample coding for Modif id.
PARAMETERS: test1(10) TYPE c MODIF ID sc1,
test2(10) TYPE c MODIF ID sc2,
test3(10) TYPE c MODIF ID sc1,
test4(10) TYPE c MODIF ID sc2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF screen-group1 = 'SC2'.
screen-intensified = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Dont forget to reward points if found useful.
Thanks,
Satyesh
Similar Messages
-
Hello Experts,
I have a requirement. My user want when she run the report online all variable on selection screen should be parameters means not range or extension and some selection screen checks. But when she run the report in batch mode, all variable on the selection screen should be select-options means ranges with extension. Is it possible to create 2 selection screen in same report, I have no idea, is it possible or not. If possible please tell me how.
Thanks,
AmitHi,
Try this code,
<b>Important thing is, don't use default selection-screen(1000).</b>
DATA: w_matnr TYPE matnr.
SELECTION-SCREEN BEGIN OF SCREEN 1001.
PARAMETER: pr_param TYPE matnr.
SELECTION-SCREEN END OF SCREEN 1001.
SELECTION-SCREEN BEGIN OF SCREEN 1002.
SELECT-OPTIONS: so_sele FOR w_matnr.
SELECTION-SCREEN END OF SCREEN 1002.
INITIALIZATION.
IF sy-binpt = 'X'.
CALL SELECTION-SCREEN 1001.
ELSE.
CALL SELECTION-SCREEN 1002.
ENDIF.
<b>You should be the same logic in the remaining program(like in START-OF-SELECTION, END-OF-SELECTION etc) where ever the implication of selection screen fileds are there.</b>
Thanks and Regards,
Bharat Kumar Reddy.V -
Hi its urgent...help on selection screen parameters
Hi all,
I need help on selection screen parameters.
requirement is that,
i am having input fields for material, plant ,start date and end date and a check box and an input field for getting the txt file.
when i select the checkbox, it should ignore the mandatory fileds in the selection screen.
and when i get the file input, it should take the input data material, plant, start date and end date from the flat file and populate the corresponding input fields in selection screen.
How to do this..
thanks in advance.Hi ..
While declare the Matnr, Plant etc dont use the OBLIGATORY addition.
instead of the based on the value of check box validate them .
AT SELECTION-SCREEN.
IF c_box = ' '.
<< validate for mandatory fields>>
endif.
<b>REWARD IF HELPFUL.</b> -
Restricting values F4 help in selection screen-Urgent
Hi,
can anyone pls tell how can I ristrict the values for search help in any field in selection screen.
please tell me the way to hide some values in F4 help in selection screen so that user can not see those data for selection.
Regardsi think u can not hide the data.........
create own f4 help............restrict the data and then pass it the f4 internal table....
fro exp;;;;;
types : begin of ty_tab,
post_code1 like adrc-post_code1,
end of ty_tab.
data : it_tab type ty_tab occurs 0.
data : lt_field type table of dfies,
lw_field type dfies.
select post_code1 from adrc into corresponding fields of table it_tab.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'POST_CODE1'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'LI_LIST1'
value_org = 'S'
tables
value_tab = it_tab
field_tab = lt_field
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.
Regards
Anbu -
Search help in selection screens for interactive report
A search help can only be assigned to DB table.
So my doubt is can it also be used for seletion screens created for an interactive report?
If yes what is the procedure.. Please give me one example at least...
waiting for your valuable suggestions.....
Thanks,
regards,
ChinmayHi Chinmay,
I suppose your requirement is to give search help to selection screen elements.
Here is the code.
REPORT ZSHAIL_F4HELP .
parameters: name(10) type c .
TYPES: BEGIN OF VALUES,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
END OF VALUES.
dATA: PROGNAME LIKE SY-REPID,
DYNNUM LIKE SY-DYNNR,
DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
VALUES_TAB TYPE TABLE OF VALUES.
at selection-screen on value-request for name.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
SEARCHHELP = ' '
SHLPPARAM = ' '
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'CARRIER'
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
CLEAR: FIELD_VALUE, DYNPRO_VALUES.
FIELD_VALUE-FIELDNAME = 'CARRIER'.
APPEND FIELD_VALUE TO DYNPRO_VALUES.
I hope your query is solved.
If so,please award points.
Regards,
Sylendra. -
Help Needed in At selection screen output
Hi Experts,
I need your help in AT SELECTION SCREEN OUTPUT event. My issue is i have 4 radio button and with each radio button couple of parameters that need to be filled in selection screen of report. My requirement is that sometimes user enters details in second radio button parameters but forgot to change the radio button to second one so kindly suggest a solution so that radio button gets selected as per user input in parameter like if user clicks on certain parameter to enter value then automatically corresponding radio button gets selected.
Thanks in advance for all your help.example from a checkbox in one of my progs..but you can do same approach with radio butts
parameters p_test as checkbox default abap_on user-command test.
at selection-screen.
if sy-ucomm = 'TEST'.
perform birth_mnth_chck.
endif. -
Need help on search help on selection screen field
Hi guyz,
Please tell me how to pass the parameter or restrict the below search help.
*s_bsart FOR ekko-bsart . " Doc. Type*
For the above selection screen field i need to display the data only for cat = F if i click search help.
Thanks,
Mohamed KaleelHi,
Use At selection-screen for value-request for s_bsart.
SELECT_OTPIONS: s_bsart FOR ekko-bsart.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bsart.
CALL SCREEN 100 STARTING AT 10 5
ENDING AT 50 10.
MODULE value_list OUTPUT.
SUPPRESS DIALOG.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
NEW-PAGE NO-TITLE.
s_bsart-low = 'F' / 'CAT=F'.
write :/ s_bsart-low.
Hide: s_bsart-low
clear s_bsart-low.
ENDMODULE.
AT LINE-SELECTION.
LEAVE TO SCREEN 0.
This will resolve the issue.
Regards,
Gurpreet -
Need to restrict selection screen entries in logical database in HR report
After creating custom HR Report Category using Logical database, I need to restrict the options available in the in the selection Screen
for example- for company code i m getting 182 entries, but after running the program, selection-options for company code, i need only first 3 entries, don't want remailing entries
how can i do this?Hi
You can retrieve the required entries into an internal table and use FM F4IF_INT_TABLE_VALUE_REQUEST to provide them under F4 help.
Regards
Raj -
Def a value in sear help of select screen generated by HR report category
Hi all,
Ive developed a HR report in which Ive used LDB PNP.. Now they are going to use this report for a particular company.
so in the report selection screen when they choose f4 help of personnel area i.e. field PNPWERKS, I need to default a value X for company code input field(BUKRS). so that the user can select personnel area pertaining to this company (code - X).
How can I achieve this? (defaulting a selection value in standard search help)
Thanks,
Rajan UHi Rajan
You can still do this in the initialization.
The memory id for the company code is 'BUK' and for plant it is 'PBR'. So in the Initialization event you can do like below. Here I am defaulting both the company code and plant.
insert personnel area code from user own data
GET PARAMETER ID 'PBR' FIELD werksid.
IF NOT werksid IS INITIAL.
pnpwerks-sign = 'I'. pnpwerks-option = 'EQ'.
pnpwerks-low = werksid. APPEND pnpwerks
ENDIF.
insert company code from user own data
GET PARAMETER ID 'BUK' FIELD bukrsid.
IF NOT bukrsid IS INITIAL.
pnpbukrs-sign = 'I'. pnpbukrs-option = 'EQ'.
pnpbukrs-low = bukrsid. APPEND pnpbukrs.
ENDIF.
Let me know if this helps.
Regards,
Vijay V -
Search help on selection screen.
I have a selection screen with
Report name
Variant name
Variant fields
Variant fields is attached to a search help 'Z_Search_variant' and this search help fetches values based on "Report name" "Variant name" on the selection screen.
I am using
AT SELECTION-SCREEN ON VALUE-REQUEST FOR Variant_field
PERFORM f4_help_variant.
FORM f4_help_variant.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = space
fieldname = space
SEARCHHELP = 'Z_SEARCH_VARIANT'
SHLPPARAM = 'REPORT'
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
VALUE = Report
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = 'X'
CALLBACK_PROGRAM = SY-REPID
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB = return_tab
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
How do I pass value to this search help? Currently I do not see this FM allowing this option? Any other options?Hi Vinita,
wat i figured out from your problem is u need how to get values from FM so u can do it in this way..
READ TABLE it_return INTO wa_return INDEX 1.
IF sy-subrc = 0.
wa_output-vkorg = wa_return-fieldval.
ENDIF.
IF wa_output-vkorg IS NOT INITIAL.
MODIFY it_output FROM wa_output INDEX row_id * it_output is final ITAB
TRANSPORTING vkorg.
ENDIF.
CALL METHOD c_alv->refresh_table_display.
CLEAR: wa_return,it_return[],wa_output. -
Adding f4-help to selection screen parameter field
Hi all.
I need to add search help to a parameter field on selection screen:
PARAMETERS:
p_reciv LIKE soos7-recnam.
What is the easiest way?
tia, regardsYou can give F4 help by two ways:
1. Using internal table
2. Refering db table field.
Following are e.gs:
F4 help using internal table example:
DATA: BEGIN OF LI_FABGRP OCCURS 0,
FABGRP LIKE ZAPO_FABGRP-FABGRP,
BEGDA LIKE ZAPO_FABGRP-BEGDA,
END OF LI_FABGRP.
DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,
L_RETFIELD TYPE DFIES-FIELDNAME.
parameters : S_FABGR like ZAPO_FABGRP-FABGRP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.
SELECT FABGRP BEGDA FROM ZAPO_FABGRP INTO table LI_FABGRP.
SORT LI_FABGRP BY FABGRP ASCENDING BEGDA DESCENDING.
Henter de mulige fabriksgrupper med nyeste BEGDA *indenfor hver
DELETE ADJACENT DUPLICATES FROM LI_FABGRP COMPARING FABGRP.
L_RETFIELD = 'FABGRP'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = L_RETFIELD
DYNPPROG = SY-REPID
DYNPNR = '1000'
DYNPROFIELD = 'S_FABGR'
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
TABLES
VALUE_TAB = LI_FABGRP
RETURN_TAB = T_RETURN
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
F4 help using field example:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = mara
fieldname = matnr
SEARCHHELP = ' '
SHLPPARAM = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
Select-options: s_rcode FOR g_grund . "Reason code
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_rcode-low.
Validation for Reasoncode
PERFORM sub_get_F4_rcodehelp .
FORM sub_get_f4_rcodehelp .
STRUCTURES Declarations
TYPES: BEGIN OF ty_rcode ,
grund TYPE mb_grbew,
grtxt TYPE grtxt,
END OF ty_rcode.
*Internal Table declaration
DATA : li_rcode TYPE STANDARD TABLE OF ty_rcode WITH HEADER LINE.
SELECT grund grtxt
INTO TABLE li_rcode
FROM t157e
WHERE spras = sy-langu .
*Help functions for external use
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'fieldname'
dynpprog = 'programname
dynpnr = '1000'
dynprofield = 'S_PCODE'
value_org = 'S'
TABLES
value_tab = li_rcode
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.
ENDFORM. " sub_get_F4_rcodehelp -
Search Help for selection screen select-option
Hi Friends,
I want have search help for KSCHL with only the condition types starting with Z. I need your help to do that.
Thanks in Advance.hi,
chek a sample code, for restricting the serach help.
REPORT Z_CONECT_A.
Include type pool SSCR
TYPE-POOLS sscr.
TABLES : marc.
defining the selection-screen
select-options :
s_matnr for marc-matnr,
s_werks for marc-werks.
Define the object to be passed to the RESTRICTION parameter
DATA restrict TYPE sscr_restrict.
Auxiliary objects for filling RESTRICT
DATA : optlist TYPE sscr_opt_list,
*** type sscr_***.
INITIALIZATION.
Restricting the MATNR selection to only EQ and 'BT'.
optlist-name = 'OBJECTKEY1'.
optlist-options-eq = 'X'.
optlist-options-bt = 'X'.
APPEND optlist TO restrict-opt_list_tab.
***-kind = 'S'.
***-name = 'S_MATNR'.
***-sg_main = 'I'.
***-sg_addy = space.
***-op_main = 'OBJECTKEY1'.
APPEND *** TO restrict-***_tab.
Restricting the WERKS selection to CP, GE, LT, NE.
optlist-name = 'OBJECTKEY2'.
optlist-options-cp = 'X'.
optlist-options-ge = 'X'.
optlist-options-lt = 'X'.
optlist-options-ne = 'X'.
APPEND optlist TO restrict-opt_list_tab.
***-kind = 'S'.
***-name = 'S_WERKS'.
***-sg_main = 'I'.
***-sg_addy = space.
***-op_main = 'OBJECTKEY2'.
APPEND *** TO restrict-***_tab.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
EXCEPTIONS
TOO_LATE = 1
REPEATED = 2
SELOPT_WITHOUT_OPTIONS = 3
SELOPT_WITHOUT_SIGNS = 4
INVALID_SIGN = 5
EMPTY_OPTION_LIST = 6
INVALID_KIND = 7
REPEATED_KIND_A = 8
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards
anver
<b><i>if helped pls mark points</i></b> -
How can by default 'system date' needs come in selection screen automatical
Hi
I have 'Notification Date' in the selection screen of the report. And my client wants by default 'system date' needs to come automatically in the selection screen .
So how can i get the 'Default System Date' in the selection screen for 'Notification Date' when he runs the report .
Please let me know
kumarHi,
1. Create a variable for 0Calday with the following details..
Type of variable : Characteristic
Variable name : Give the variable name
Description : Give the description
Processing by : Customer exit
Characteristic : 0calday
Ready for input : Make the flag enable
Variable represent : single value
Variable entry : Mandatory.
2. Go to CMOD , include the below code for that variable.
When 'XXXXXX' . ( XXXXXX - Variable name)
If i_step = 1.
clear l_S_range.
l_s_range-low = sy-datum.
l_s_range-sign = 'I'. " I: Include, E: Exclude
l_s_range-opt = 'EQ'. " EQ: Equal, BT: Between, ....
APPEND l_s_range TO e_t_range.
endif.
Hope it helps..
Regards,
Siva. -
Regarding Search help on selection-screen field
Hi there,
I am working on custom tables.
I have a requirement to maintain search pattern on a selection-screen field.
selection-screen parameter: p_name which is company name filed from Z table.
By giving a string like Holl* and by pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
Thanks in advance.
-TulasiHi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah -
REALLY NEED HELP!! screen is just black and wont turn on
i have an 8GB, 2nd geration, black ipod nano and i was just listening to my ipod in activity class when my ipod froze. so i tried the manual restart. but it didn't turn back on. now the screen is just black, wont even restart no matter what. so i tried plugging it into my computer but the itunes doesn't recognize it. there's a screen that pops up thats tells me to look for the files or download or something like that but when i try to, it says files not found. right now im at a total loss. nothing i do turns it on. what do i do now? should i just toss it? i dont even know if i wan't to buy a new one cause im scared this might happen again. i really dont want to use another $250 for another one.
ABSOLUTELY NEED HELP!!. im a bboy so i need my music lol.Sounds like the fall broke something internal. Take it to Apple and have them check it out.
Allan
Maybe you are looking for
-
I cannot shut down my iMac (for days now) as I get the following message: "Photos are being imported to the photo library." Now as far as I know there are no photos being imported and even if there were 5 days is crazy. How can I resolve this please
-
Use dvt map component into adf mobile
Hello, I'm just wondering if it's possible to use the dvt map component into an adf mobile application or if there's another way to display a map coming from mapviewer. Does anybody know it there are any limitations? Thanks and regards
-
How to clone recovery partition to SSD so F11 works with new SSD?
I received my new Envy 15 Laptop today. It has a 1Tb 5400rpm hard drive but I want to replace with SSD. I tried cloning it to a 300Gb SSD drive. I used "EaseUS Todo Backup Free". The laptop boots up to Windows 8.1 successfully on the new cloned SSD ,
-
Developer Suit 10g As Application Server
Can i use 10g Developer Suit as my application server? i mean installing developer suit 10g and keeping oc4j running and report services running on my server machine serve the purpose of an application server? i have tried installing and configuring
-
"ProgramName.exe" has stopped working?
Hello, I am currently in school and am trying to compile programs using Visual C++ Express 2010, because that is what the professor uses. I was told to download the source code from the books website, and build from there. When compiling any of the b