Cannot enter value in selection screen for Hierarchy variable.
Hi All,
I have a hierarchy variable on the selection screen for Org unit.
When i execute the report via Bex or RSRT i am able to enter the value directly into the selection screen input field without going for F4 help and then selecting the value.
But when the same query is used in web template and executed the input field for the variable on the selection screen is greyed out and doesnt allow to type in the value. Only way to fill in the value is via F4 help.
Can anyone tell why is this happening and is there any way this can be changed?
Thanks in advance.
-RJ
Hi Prakash,
I am not able to select or click on the input field of the selection screen before and after selecting the value
CTRL+K doesnt work for me.
The display field is populated only when i select a node from the F4 help screen.
When executed from RSRT the field is highlighted and i am able to enter the value unlike when executed on web browser.
The variable is Mandatory multiple single value readu for input.
I found an article saying that for hierarchy node variables the values are forced by F4 value help as the values that are entered manually might not be unique.
This is the link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/15839190-0201-0010-adb1-d2edd9857b0a
I would like to know if there is a work around or setting that can be made to make it work?
-RJ
Similar Messages
-
Set default value to selection screen for report
Hi All,
I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
Hope someone can help me on this.
Thanks.Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks. -
Selection screen for Hierarchy Node Variable
HI All,
I Have an issue with Hierarchy Node Variable , in my selection screen the for an info object , Z_ACCT i have a Hierarchy Node Varable it only displays Text on F4 help , i want to desplay both Text and Key , i check in the Info Object bex setting it is set as Text and Key, so if any one can throw some lite on it, it will be of grt help.
Regards,
AbrahamHey, I found an SAP Note for this issue:
Note 912130 -
https://service.sap.com/sap/support/notes/912130
Looks like there is something that could be done.
Give it a try and hope this helps. -
Input Negative values in selection screen for select-options field
I am not able enter negative values for
SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
Try with this code:
tables:wbrp.
SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
Regards,
Naimesh Patel -
How to get One Selection Screen for all queries?
Hi Experts,
I have three queries having selection screens. All the selection screen have the same variables, but the reports are different.
I have created a workbook having these three queries. Each time when the workbook opens, the three selection screen pops up one after the another. Same values are entered in all the selection screens.
Now the user wants only one selection screen for all the three reports. Is it possible? I tried but I do not see any way.
I think there should be some way of getting it done.
Waiting for your inputs,
With kind regards,
ShreeemHi
If a workbook contains multiple queries that use the same variable, you are prompted to enter the variable values again for each query. To avoid this, set the Display Duplicate Variables Only Once flag.
Goto Workbook Settings>Under Variables Tab>select Display Duplicate Variables only Once
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/54/a493f7256b43698191a2623e5a0532/frameset.htm
Hope this helps,
Aparna Duvvuri -
No values from selection screen
Hi ppl,
I have written a report program which has 3 parameters on the selection screen (Personnel number - pernr, trip number - reinr and status - abrec).
I have a subroutine to check for the validity of the personnel number entered on the screen. The other two parameters do not have any validity check.
I am using these 3 parameters in my SELECT statement. But, the problem is that when I execute it, at runtime, only the parameter for personnel number shows the value entered on the selection screen. The other two parameters show initial value at runtime though an entry has been made on the selection screen. Thus, it returns a subrc value of 4 though there are matching entries.
Has anybody face such a problem? Please advise.
Thanks.Hi David,
Mentioning the event AT SELECTION SCREEN should resolve your problem.
This will ensure that the values are picked from the selection sreen for all the parameters.
(Else, if you do not use this event, your SELECT statement will not execute successfully the first time. But, if you execute your program again, it will fetch correct values.)
Hope it solves your problem.
Thanks,
Dawood. -
Personalization and Default values in selection screen variables
Hi everyone,
I have certain questions regarding Front end part:-
1) Can we have multiple personalizations for a single user in Web templates; I know it is quite possible in BEx using Variants. Is there any such approach or any other solutions regarding it?
2) In our project we had a range selection screen customer exit variable on 0CALMONTH, which is showing a default value of 07.2007 to 09.2007, although we have removed the default values from the query variable and also checked the customer exits where it is used, but still its showing the value. We cant delete and recreate the variable as such, as it is used in number of function module. Also these values are also transported to Quality system, where also its showing the same value.
Did anyone face such a situation before?
Eagerly waiting for a solution.....
Thanks in advanceHi Chiran,
Please try with following approach for multiple personalizations for a single user in Web templates.
While Defining Variable Choose the Option Copy personalization data from variable .
The Features of above approach is as follows.
1)It will personalize variable values for Input Variables for each user.
2)These values are saved for each variable as well as for user.
3) At the time of defining variable it will allow us to enter one or more default values.All these values are appear in the variable screen when u execute the query or Web Application.
So you can see the variable values in web also.Just try with this approach.
May be it will resove u r issue some extent.
Regarding u r Second Query Just try with Some tables, all the default values entries were saved in those tables. Delete default values from those entries.
Thanks & Regards,
Chandu. -
How to refresh value in selection screen field
Hi Experts,
I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
Thanks.Hi,
That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
cheers
Janis -
How to pass a default value in selection screen of logical database pnpce
Dear All,
Can any one tell me how to pass a default value in selection screen of logical database pnpce .
Regards
Rakesh SinghHi Rakesh,
Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
Regards,
Rahul -
Define selection screen for ldb_process
Hi I'm using the call function ldb_process for KDF(lfa1, lfb1, bsik), the trouble is that the information its different than if i do it on a normal report defining the logical database kdf and selection screen 903.
I find that the difference is because the selection screen, this is because the default selection screen for the kdf database is 1000, and this selection has the "Open items at key date" selection with the current date.
The question is:
How can i define the selection screen 903 using the call function ldb_proces?
Thanks
Pablo SantosHi,
You cannot define screen version 903 using function LDB_PROCESS. Instead use table "SELECTIONS" of the function module .
Cheers. -
Change Layout in Selection Screen for OO ALV-Grid
Hello everyone,
I got a problem regarding layouts for objectoriented ALV Grid. I want to make it possible that user can take the layout for ALV he wants to on the selection screen. So far thats no problem and it works. But there are some little problems which I do not know how to fix them. But first the facts:
(1) I got my parameter for layout
PARAMETER: p_vari TYPE disvariant-variant.
(2) I fill my global layout structure in initialization
INITIALIZATION.
* Variante vorbelegen
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
* Layout holen
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc = 0.
p_vari = gs_variant-variant.
ENDIF.
(3) I got my handling for F4-value help on variant parameter
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
CALL FUNCTION 'LVC_VARIANT_F4'
EXPORTING
is_variant = gs_variant
i_save = 'A'
IMPORTING
es_variant = gs_variant
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE text-m01 TYPE 'S'.
ELSE.
p_vari = gs_variant-variant.
ENDIF.
(4) I give back my parameters content into the variant structure at start of selection
START-OF-SELECTION.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-variant = p_vari.
This works all fine but I got some problems when using default variants/layouts. For example I got a default variant only for me. When starting the selection screen it works fine that the default layout was written. It is displayed automatically in the variant parameter. But I want that if i I empty the content (blank it out) from my variant parameter, that report should start with "normal" layout how it was written in the report and NOT with default layout.
When I clear the gs_variant it works like I want it, but then the alv layout button looks like (without functions for layout), because I do not have the reference to my report.
So what to do? :-)
Regards
MichaelWow that was fast, works great, thanks :-)
I did not use this parameter in set table method but now I fill it dynamically.
Ok next problem, one step harder ;-)
Now I have one selection screen for one ALV-Grid, but four radio buttons which control with which data the ALV gets filled (four different fieldcats, data tables and so on). Each Grid got an own HANDLE so that the layouts can be separated in four categories.
Now I want that by changing the radio button the individual standard layout for the chosen alv grid is getting filled.
This works fine when using it in selection screen output.
AT SELECTION-SCREEN OUTPUT.
CLEAR gs_variant.
* Layout-Handles individuell für Klausel-Radiobuttons setzen
IF p_py IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLPY'.
ELSEIF p_rh IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLRH'.
ELSEIF p_aj IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLAJ'.
ELSEIF p_sr IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLSR'.
ENDIF.
* Layout holen
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc = 0.
p_vari = gs_variant-variant.
ELSE.
CLEAR p_vari.
ENDIF.
But unfortunately selection screen output is getting passed by EACH changing in the selection screen. This means when I try to clear the default layout in my parameter field, it gets refilled automatically with default layout. If I do a condition around the filling (only if not initial) the default value filling does not work fine in every case, e.g. when clearing the parameters field and then change the radiobutton -> then it does not get filled automatically. -
Variants on tabbed selection screen for ALV reports
Scenario: We use a tabbed selection screen for an ALV report. We create a variant, make a selection field on the second tab mandatory & save it without a value. When we run the report with the saved variant it does not check that the required field on the second tab is populated before it executes.
Question: How can I code such a check?
Edited by: Alridge Tom on Jul 4, 2008 3:43 PMHi,
try inserting this code apropietly in you program. (1 parameter + Initialization + At-selection-screen + 2 forms)
START HERE
PARAMETERS: pa_vari TYPE disvariant-variant.
INITIALIZATION.
g_repid = sy-repid.
CLEAR e_variant.
e_variant-report = sy-cprog.
e_variant-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = e_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
pa_vari = e_variant-variant.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_vari.
PERFORM alv_variant_f4 CHANGING pa_vari.
*& Form ALV_VARIANT_F4
FORM alv_variant_f4 CHANGING pa_vari.
DATA: l_exit(1) TYPE c.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = e_variant
i_tabname_header = 'ANYTHING'
i_save = 'A'
IMPORTING
e_exit = l_exit
es_variant = e_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit = space.
pa_vari = e_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " ALV_VARIANT_F4
END
Hope iy helps!
Alfonso -
Selection screen for submit in BSP
Hi Experts,
I have gone throught the link to submit the program in BSP using varients, but i even want to see the selection screen for tht so tht user can post his own values over there.
I tryed SUBMIT with different options but i am not able to see the selection screen for it,pls help me its urgent.
thanks in advance.
Saurabh.hi,
the submit i have made it the way u told me..before itself..so thts fine..
but value which i get in first.htm of these dates is not getting transfered to the next.htm
thought i am able to get the value through the navigation->set_parameter...
really i feel this issue is bit getting longer....
i guess i used my ful day on it...
thanks for ur great help..but pls let me know is there any proble here in my event handler in first .htm
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
See if upload is triggered from button
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event ?= CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
CASE event->id.
WHEN 'ok'.
DATA: date1 TYPE REF TO CL_HTMLB_INPUTFIELD.
DATA: date2 TYPE REF TO CL_HTMLB_INPUTFIELD.
date1 ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputField'
id = 'fromdate'
IF date1 IS NOT INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_PDATE_INPUT'
EXPORTING
INPUT = date1->value
IMPORTING
OUTPUT = p_date.
ENDIF.
date2 ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputField'
id = 'todate'
IF date2 IS NOT INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_PDATE_INPUT'
EXPORTING
INPUT = date2->value
IMPORTING
OUTPUT = p1_date.
ENDIF.
navigation->set_parameter( 'p_date' ).
navigation->set_parameter( 'p1_date' ).
navigation->next_page( 'NEXT' ).
ENDCASE.
ENDIF.
pls help me out expert.
thanks,
Saurabh -
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. -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja
Maybe you are looking for
-
I recently updated to iOS 8.0.2 in my iPhone 5S. Since that update, landscape orientation doesn't work for any application. I have ensured that the Portrait Orientation lock is Off.
-
Pictures are no longer loading in Safari, any clues?
Recently I'm finding that many pages on Safari are not loading properly and/or pictures do not load. Perhaps I need to update something, but I am not sure what or how. Does anyone have any suggestions? Thanks!
-
Verizon 755p; using Versamail; cant sync contacts & calendar
I am having a sync conflict.... I HAD been able to sync Contacts & Calendar via USB but once I started using Treo for emails, have been unable to sync ever since. Very frustrating. Hours upon hours trying to figure it out. Went to advanced settings
-
There is no mode switcher on my Audio Console launcher.
I have the Soundblaster X-Fi Extreme card and downloaded some time ago the console launcher. The application on the site says the version currently available dates from 2007. I open up the launcher but do not have the modes tab at all. Why is that? H
-
Number of Workitem Containers and Performance Issues
Hi All, Is there a major performance issue based on the number of workflow containers. I know its recommended that the containers should be single line rather multiline and to keep the number of containers less Did anyone face some performance issue