Need of F4 help in single values section of select options
I need to select more than one file as input from application server.
For this i used a select option field(with multiple option) and i provided F4 help by using the function module /SAPDMC/LSM_F4_SERVER_FILE in at selection screen value request.
Here I can get the F4 help for Ranges but not for single values.
Hai Albert
Check the following Code
TABLES : MARD.
DATA: BEGIN OF IT_MARD OCCURS 0,
WERKS LIKE MARD-WERKS,
END OF IT_MARD.
DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.
parameters : P_WERKS LIKE MARD-WERKS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.
SELECT WERKS FROM MARD UP TO 10 ROWS INTO table IT_MARD.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'WERKS'
DYNPPROG = SY-REPID
DYNPNR = '1000'
DYNPROFIELD = 'P_WERKS'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_MARD
RETURN_TAB = T_RETURN
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
Thanks & regards
Sreenivasulu P
Similar Messages
-
Clearing the displayed value for a SELECT-OPTION
How do I clear the displayed value of a SELECT-OPTION?
I have 2 SELECT-OPTIONs on my screen (standard basic report program screen). I use code like this to populate the drop-down boxes for each one.
=====
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
PERFORM fill_prgrp_values.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
PERFORM fill_prctr_values.
=====
The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION.
If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
1. Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
2. Clear the displayed value from the second SELECT-OPTION that the user entered previously. That value became invalid when the user picked a new value for the first SELECT-OPTION.
How do I clear that second displayed value?
I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low. They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen.
I need to clear out the displayed value so the user will either leave it blank or enter or select a new value.
I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen.
Thanks for your help.Sorry, but calling DYNP_VALUES_UPDATE did not work. This is how I coded it.
fld_reset_rcd-fieldname = 'S_PRCTR'.
fld_reset_rcd-stepl = sy-stepl.
CLEAR fld_reset_rcd-fieldvalue. " re-initialize s_prctr
CLEAR fld_reset_rcd-fieldinp. " what goes in here?
APPEND fld_reset_rcd TO fld_reset_tbl.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'ZFI_GL_BALANCE_NGL'
dynumb = '1000'
TABLES
dynpfields = fld_reset_tbl
<Added code tags>
I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat. If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen. It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc.
To devrath.sampat -- Thanks for your example for building the drop-down list, but that is not the problem I am having. I am already able to build it just fine.
To repeat my problem, if I:
1. first enter / select a value for the first SELECT-OPTION s_prgrp
2. then enter / select a value for the second SELECT-OPTION s_prctr
3. And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
Edited by: Suhas Saha on Feb 15, 2012 12:03 PM -
Search help is not coming while using select-options?
Hi All,
I am using select options in my selection screen, i used wdr_select_options, also i coded some parameter values also
( non select-options ). For that field i am not getting search help. If i create as normal i am getting? Suggestions pelase?
Thanks,
Venkat.HI
what kind of search help is associated with the field.
ADD_SELECTION_FIELD method has some specific parametrs for value_help
give the input there and try again.
these parameters are
I_VALUE_HELP_TYPE
I_VALUE_HELP_ID
I_VALUE_HELP_MODE
I_VALUE_HELP_STRUCTURE
thanks
sarbjeet dingh -
How to get all the values in the Select-option.
Hi,
I got the select-option field so_week, for eg. If I give 200923 to 200926 (year and week) in the selection screen and then I need to pass this value (200923) to the FM 'ZWEEK_GET_FIRST_DAY' to get the first day of the week.
My question is how can i get all the values from the select option, (i.e) i need to get 200923, 200924,200925, 200926.
Regards,
Anbu.Hello,
I will prefer Max's solution. But just for the sake of this req.
i need to get 200923, 200924,200925, 200926
i am proposing my soln:
DATA: V_WEEK TYPE RSCALWEEK.
SELECT-OPTIONS: S_WEEK FOR V_WEEK NO-EXTENSION OBLIGATORY.
AT SELECTION-SCREEN.
DATA:
V_COUNT TYPE I,
V_ADD TYPE I,
RT_WEEK TYPE RANGE OF RSCALWEEK,
RS_WEEK LIKE LINE OF RT_WEEK.
V_COUNT = ( S_WEEK-HIGH - S_WEEK-LOW ) + 1.
DO V_COUNT TIMES.
RS_WEEK-SIGN = 'I'.
RS_WEEK-OPTION = 'EQ'.
RS_WEEK-LOW = S_WEEK-LOW + V_ADD.
APPEND RS_WEEK TO RT_WEEK. "RT_WEEK--> Will contain the week values
CLEAR RS_WEEK.
V_ADD = V_ADD + 1.
ENDDO.
@Max: I was stupid enough not to think of your solution. Need to leave office
Cheers,
Suhas -
On value request in select-options in a repot URGENT
Hi all,
my requirement is to provide on value request in select-options
in selection screen Gsdpr user one select-option is there
For GSDPR User field, provide F4 help. Users list can be selected from ZWF_UPI table where WF_UPI_TYPE is HR. From the table, select UPI Number and employee full name fields
in ZWF_UPI table the key fields are UPI and WF_UPI_TYPE
non key field is emp_full_name.
please send me the code .
regards
NagendraHi,
I do not have sample code , But you have to use the function module
F4IF_INT_TABLE_VALUE_REQUEST on the AT-SELECTION-SCREEN ON VALUE REUQEST FOR S_OPTION-LOW event
Select Data as per the requirement into Value table of the Function module
Return the Data fro the Return table of the function module.
The good choice will be Go to SE37-> Type this FM F4IF_INT_TABLE_VALUE_REQUEST and look for Where used list-> Programs . There u will get the list of programs used this FM
Regards
Pavan -
F4 help for PO number field with SELECT OPTIONS
Hi all,
I have a field (PO no) using SELECT OPTIONS on my selection screen.I need F4 help for this field.How shud i declare it?
I have declared it as follows:
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
select-options sel_po for ZPO_LOI-zobject_id obligatory .
SELECTION-SCREEN END OF BLOCK b1.
ZPO_LOI is a table view with a z data element ZOBJECT_ID to which i have attached a search help which displays the required values for the PO field in the selection screen.But now the problem is i cant see the F4 icon for the field on the sel screen.
Please help.Hi I have a sapmle code for this.
*& AT SELECTION SCREEN ON VALUE REQUEST
*-- F4 help for IDOC numbers
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-low.
PERFORM value_request_status USING 'S_DOCNUM-LOW'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-high.
PERFORM value_request_status USING 'S_DOCNUM-HIGH'.
*& Form value_request_status
text
-->fp_field dynpro field that gets the return value
FORM value_request_status USING fp_field TYPE dynfnam.
STATICS tl_values TYPE STANDARD TABLE OF tp_value.
IF tl_values IS INITIAL.
SELECT docnum FROM edidc UP TO 500 ROWS INTO TABLE tl_values
WHERE credat IN s_credat
AND cretim IN s_cretim.
IF sy-subrc eq 0.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DOCNUM'
dynpprog = syst-repid
dynpnr = syst-dynnr
dynprofield = fp_field
value_org = 'S'
TABLES
value_tab = tl_values
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc IS NOT INITIAL.
MESSAGE i999(zz) WITH 'No values found'(004).
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " value_request_status
Regards,
Amit. -
Result of the query is not filtered as value given in Select Option variabl
Hello ,
A Select option Variable is created on Navigational Attribute( ZINV_PROG) of 0WBS_ELEMT.
The Compound Key for object ZINV_PROG(Investment program) is APPR_YEAR( Approval Year)
This ZINV_PROG object does not bear Master data.
The values in the field get populated as you load Master data of 0WBS_ELEMT.
The values for this objects is as shown below:
APPR_YEAR ZINVPROG
2005 ESCCCAPS
2007 ESCCCAPS
2008 FIRE
2006 CAPITAL
A select option variable is craeted on this Navigational attribute.
When you execute the query , On the selection screen of the query..
If you provide i/p for Investment programm field as 2007 ESCCCAPS, the data should ideally be filtered for this values only.
But the result of the query shows data for both values 2005 ESCCCAPS and as well as for 2007ESCCCAPS.
Let me know how to sort this issue.
Points will be assigned for the correct and helpfull answere.
Thanks,Thanks Srini for your prompt explanation.
My Question is if Approval year is a compounded key of ZINV_PROG object why data would not get filter out directly.
I mean on the screen for this particualr variable i take help - F4 to see values there you are able to see all the values of Investment programm along with the apprroval year.
If i select value as 2005 ESCCCAPS from the help F4 screen then ideally data should be fileterd out for this particular value. But it is not happening so.
Is that so in Query desgining that if you creating a variable on Nav Attribute, and that particular Nav attribute has a compound key then if you want to filter out the data for this Nav attribute correctly you would also require to create a variable for Compound key also.
Please let me know
Thanks -
Adding default value for a select-options in a selection-screen
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 to have a default value once the program displays. can it be possible?
regards,
sidHi sid,
1. Whenever we use select-option,
an internal table of type range is
automatically created.
2. so, in fact, we have to put
record in this internal table.
3. eg. Just copy paste in new program.
4.
report abc.
tables : t001.
select-options : bukrs for t001-bukrs.
initialization.
bukrs-sign = 'I'.
bukrs-option = 'EQ'.
bukrs-low = '1000'.
append bukrs.
regards,
amit m. -
Passing values to a select option through submit
hi all,
i am using the following code to submit report.
SUBMIT :rko7co88 USING SELECTION-SET 'ZTEST_PS'
WITH SELECTION-TABLE seltab
WITH perio = v_month
WITH gjahr = v_year
WITH vaart = c_1.
the table seltab is being populated as shown below.
LOOP AT i_aufnr INTO i_aufnr_wa.
seltab_wa-selname = 'AUFNR'.
seltab_wa-sign = 'I'.
seltab_wa-kind = 'S'.
seltab_wa-option = 'EQ'.
seltab_wa-low = i_aufnr_wa-aufnr.
APPEND seltab_wa TO seltab.
CLEAR seltab_wa.
ENDLOOP.
but when i run this program it gives a short dump saying program has excceded the maximum time permited.
the problem seems to be with passing table seltab to select option, because when i run the program witout that statemant "WITH SELECTION-TABLE seltab" . it works fine.
in seltab i have selected only open orders which r confirmed, when i run the program without passing seltab it takes all the orders and works fine but according to my requirement i have to run the program for only open orders.
pls suggest the way out.
thanks
pankaj sharmaHi pankaj,
1. I tried the same thing, and now its working fine.
2. I also used the extension of submit
<b> via selection-screen.</b>
to temporarily check what values are going in the screen.
3. just copy paste to get a taste of it.
4. Values 11111, 2222 will come in AUFNR.
5.
report abc.
DATA : SELTAB LIKE RSPARAMS OCCURS 0 WITH HEADER LINE.
SELTAB-SELNAME = 'AUFNR'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = 'EQ'.
SELTAB-LOW = '11111'.
APPEND SELTAB.
SELTAB-SELNAME = 'AUFNR'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = 'EQ'.
SELTAB-LOW = '222222'.
APPEND SELTAB.
submit RKO7CO88
WITH perio = '001'
WITH gjahr = '2006'
WITH vaart = '1'
WITH SELECTION-TABLE SELTAB
via selection-screen.
regards,
amit m. -
Hi all,
I have the follow question:
can I populate a range vith a null value?
I have a field in a standard table which can be "space" or "null". But if I insert:
sign = I
option = EQ
low = space
records with "null" field aren't extracted by the select statement. So is there any way to populate:
low = null or something similar?
Best Regards,
Raffaele FrattiniIf the field is of type char then you need to wrte the same in quotes woth caps
else
declare
constants : c_null type i value '0'.
then assign the same
You check the null value using INITIAL laso. -
Redirect based on value of a selected option in select element
I want to redirect the user once they click on the submit form. New to CQ5 and Java so bear with me.
The form is built using the form components - formstart, formend and dropdown (name = countrydd)
So what resource does the click action on the submit use? And how do you read the selected value from the dropdown
LHi,
This is the forum to discuss questions and feedback for Microsoft Excel, this issue is related to macro via VBA, I recommend your question to the MSDN forum for Excel
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "[email protected]" -
Function to append a 0 to the front of values in a Select-Options range?
Hi,
Is anyone aware of any function or class that will append a 0 (or any character) to the front of a range (or set of ranges) in an internal table of a Select-Options from a selection screen?
Hope that made sense.
Thanks,
AndyHi
Why not?
My code it's only a sample, but it can create a routine for a generic range table based on the fields of the internal table for the range have always the same names:
SIGN, OPTION, LOW and HIGH:
TABLES: BKPF.
SELECT-OPTIONS: SO_BELNR FOR BKPF-BELNR,
SO_GJAHR FOR BKPF-GJAHR,
SO_BUKRS FOR BKPF-BUKRS.
AT SELECTION-SCREEN.
PERFORM CONV_RANGE USING: SO_BELNR[],
SO_GJAHR[],
SO_BUKRS[].
*& Form CONV_RANGE
* text
* -->T_RANGE text
FORM CONV_RANGE USING T_RANGE TYPE TABLE.
FIELD-SYMBOLS: <W_RANGE> TYPE ANY,
<W_LOW> TYPE ANY,
<W_HIGH> TYPE ANY.
LOOP AT T_RANGE ASSIGNING <W_RANGE>.
ASSIGN COMPONENT 'LOW' OF STRUCTURE <W_RANGE> TO <W_LOW>.
ASSIGN COMPONENT 'HIGH' OF STRUCTURE <W_RANGE> TO <W_HIGH>.
PERFORM CONVERSION_EXIT_ALPHA_INPUT USING: <W_LOW>,
<W_HIGH>.
ENDLOOP.
ENDFORM. "CONV_RANGE
*& Form CONVERSION_EXIT_ALPHA_INPUT
* text
* -->INPUT text
FORM CONVERSION_EXIT_ALPHA_INPUT USING P_INPUT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_INPUT
IMPORTING
OUTPUT = P_INPUT.
ENDFORM. "CONVERSION_EXIT_ALPHA_INPUT
Max -
Hi ,
I am running the Query (Actual Vs Plan) in the BEx Analyzer, with the input for the characteristic like Fiscal Year, Posting Period and Cost Center(20 Single value) it not comming up with the plan data - Actual data is coming up fine.
If i gave 10 or less than 10 inputs ( single values input in the selection - option ) for the characteristic COST CENTER it coming up with all the data (Both plan and Actual). if the COST CENTER input values more than 10, it not coming up plan data (Actual data is coming)
Cost Center Variable is designed with an Authorization Variable.
Can any one please help me to know why plan data is getting miss when the input limit more than 10 (single values input in the selection - option) in the Cost Center Variable?
An also could you please share that, What is the Max limit for the Single values and Range Value for an Selection - option in the BEx Variable.A) Hi ,
In Report, I am having 2 variant.
1. For one variant, i have saved the input values for both the Select Single values & Select range for the cost center.
8 Values in single & 4 Values in Ranges
It coming up with data successfully.
2. Another variant having input only for select single values for the COST CENTER, it contains 20 records (This variant also have restricted with the same values as above variant for COSTCENTER variable)
Fiscal year : 2012
Posting period : 8
Cost Center : 20 values in Single (Here I have separated the range values into single)
It’s not coming up with plan data.
B) If I gave only first 10 values in the Single value, Output for both actual and Plan are coming up…………. If I gave the Second 10 value in the Single value and got the Output for both actual and Plan.
C) I have also checked the following details of this query,
Executed the query in RSECADMIN and checked the Authorization log as below,
Relevant Characteristics for Detailed Authorization Check (Characteristics with Full Authorization Are Not Listed!)
List of Effective Authorization-Relevant Characteristics for InfoProvider ZPCA_M36:
List Is Empty:
There Are No Characteristics That Have to Be Checked in Detail
2. Checked the Single value input by iteration, 1 to 10, it retrieves data. More than 10 like 11, 12 … is getting failed to pull plan data.
3. checked the selection Value range by iteration and I gave the range value count up to 25 inputs, its works fine.
Thanks.
Regards,
Subashini. -
Latest Value - Select Option - At Selection Value help
Hi,
I need the current values entered in the Select Option of the Selection Screen while generating the Value Help.
There are two selection option fields in the Selection Screen, Selopt1 and Selopt2, to generate the Value help of Selopt2 i need the latest values of the Selopt1, the function module dynp_read_values does not return all the values of the selectop option Selopt1 it returns only the first row of selopt1-high and selopt1-low, the function module RS_REFRESH_FROM_SELECTOPTIONS does not return the current values entered in the selection screen, is there any way to retrive the latest values of the select option in the event At Selection Screen on Value Request.
regards
SantoshHi Santosh,
When you go for f4 help on selopt2, you can use following code to get the current value of selopt1,
AT SELECTION-SCREEN ON VALUE-REQUEST
FOR selopt2-high.
select * from bkpf into table it_bkpf where
BKTXT in selopt1[].
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BKTXT'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'Invoice Id'
value_org = 'S'
TABLES
value_tab = it_bkpf .
IF sy-subrc <> 0.
" do nothing.
ENDIF.
In selection screen, you can directly fetch the value of selection options or parameters by selopt1 or selopt2 (in your case by using AT Selection Screen for value request).
Reply for further doubts,
Please reward if useful.
Thanks and regards,
Ashlesha Desai
Edited by: ashlesha desai on May 26, 2008 6:06 AM -
Personalised Value Help in Select-Option field WD ABAP
Hi
I would like to know how I could provide the user with generic value help. I am using the Select Options in a Web Dynpro(ABAP) Application.
Regards
FaaiezHi
The key word here is "generic value help". This means the values that I want to fill the drop down with changes all the time based on various criteria. I need to fill the help values within the ABAP code based on the values in internal tables.
Regards
Faaiez
Maybe you are looking for
-
Error while activating IDN in EWM
Hi Can anyone please help me with the following error? I am trying to activate an Inbound Delivery Notification in SCM5.0 and getting the error 'Application Error'. there is no message longtext or help available. I have configured the inbound deliver
-
JOptionPane.show* cannot be used in DropTargetListener
Hi guys! I am doing a File Explorer using Drag and Drop. In the my own DropTargetListener class, it seems that i can't use JOptionPane.showMessageDialog, InputDialog and the likes. It hangs!!! The Dialog pops up correctly but the entire application h
-
Best Practice for identical doPost/doGet
Hi, I'm new to servlet development, and I have what's probably a silly question. I've seen a bit on this in the sun tutorials, but nothing on the forum, so I figured I'd double-check. If we have a servlet which should behave exactly the same on doPos
-
Audit files utilizing more space in the hard disk
Hi All, In my system, audit files are created in a huge size. Sometimes, it will be 4 to 5 GB and sometimes 1000 files with 300MB each. What could be reason for this repeat audit files.
-
If I purchase Adobe Standard 9 for $299, how many computers can I install it on?