Selection screen to retain in put values
hi frnd,
i want to retain my selection screen after giving some errror message
means for example there are lotof select options r there but after entering all end executing
at 1 select option the in put value is wrong then it will give error message ,upto this iam ok but after that when we click on ok on error message my selection screen is blank all the parameters entered r cleared
i want to retain them
can any one help in this
thanks
vk
If SO is your select option you have to include your code in the section AT SELECTION SCREEN ON ...
Try this.
INITIALIZATION.
AT SELECTION ON SO.
>put your code for check here.
>at the end your value must not be erased.
START OF SELECTION.
Edited by: julien schneerberger on Mar 8, 2010 3:29 PM
Similar Messages
-
BEx web report selection screen entries retain when closing and opening the report again
Hello all,
please help me in the below query.
Till last month the entries we made in BEx web report selection screen are retained in the selection screen even when we close the web report and open it again from portal without logging off. But recently this functionality is missing and the entries in selection screen are not remembered when we close and open the same report again. It is a good feature for the users. Have you come across this issue?No...I think i can reframe the question very clearly......For ex: we are opening a Bex Web report...so initally we would be prompted by the variable selection screen...in which we have to give the entries(Values) for those variables like Cal month, Sales org, Company code, etc.....Later on the report will get open based on the values we have given......
Now if we close the particular report without logging off then if i try to open the same report that selected values are missing.....earlier it used to remember the values we have given until we log off....But now that functionality is missing....It was very useful feature.....Can you please tel me what can be done to resolve this??
I hope the explanation would be clear now. -
When we execute transcation selection-screen should come with some values
hi gurus,
My requirement is whenever user executes a particular transaction,
selection screen should appear with some values by default.
can you suggest me in solving this problem.
its urgent.
thanks,
Bhanu.RHi,
for that do like:
A transaction with a variant can have its own transaction code, which you can then use to execute the transaction with the appropriate variant.
To create a variant transaction, proceed as follows:
Choose Goto ® Create vari. trans. from the initial transaction variant maintenance screen.
Enter a transaction name and corresponding short text. Transaction type Variant transaction is already set. The following screen already contains default values for the name of the calling transaction, the variant name, and the client-specific or cross-client variant checkbox.
Save your entries.
Example:
Variant ABC has been defined for transaction Z000. We now want to create the variant transaction ZVAR.
Name of the new transaction: ZVAR
Name of the calling transaction: Z000
Name of the variant: ABC
Transaction ZVAR starts transaction Z000 with variant ABC.
If the variant specified for a variant transaction does not exist (in the current client), then the calling transaction will be started without variant.
Regards,
Renjith Michael. -
Pnp selection screen 000 how to put default values
Hello everybody,
my question today is about PNP selection screen 000: How can i put default values in the fields w/o using variant.
or can i restrict the numbers of values returned by " get pernr" with conditions not on selection screens.
thank you in advance!
Eric.use this code to default fields on the event INITIALIZATION. you can modify as per you needs..
*----------------------------- INITIALISATION -------------------------------------------
INITIALIZATION.
pnpstat1-low = '0'.APPEND pnpstat1.
pnpstat2-low = '3'. APPEND pnpstat2.
pnptimed = 'I'.
* Default Dates
CONCATENATE sy-datum+0(4) '0101' INTO pnpbegda.
CONCATENATE sy-datum+0(4) '1231' INTO pnpendda. -
Match code in report selection screen does not show any values for 0FISCPER
Hi Experts,
I have problem with selection screen in several reports. When I use match code for fiscal period selection I get only # as a possible value. I have checked the master data they seem to be correct. I work with 7.0 BW system. Can you please give me any hint what I should check?
Thank you,
MichalHi,
maybe I ask different way - how do you add characteristic values for a characteristic in the BEx? Is it automated somehow in SAP (e.g. from master data)? For the fiscal period I use custommer exit to fill in the default value, which is the current fiscal period. But this is something different, right?
<removed by moderator>
Michal
Edited by: Arun Varadarajan on Nov 14, 2008 3:55 PM -
Hallo,
I have the following problem:
I want to jump after a SelectionScreen On Value-Request Block to the SelectionScreen Output Block. But Abap doesn´t go there afterwards.
My "trigger" for the value Request is a normal edit field, so unfortunately I can´t give a User-Command with it.
My intended action is: If I get new information in the value request part, I´d like to set a checkbox initial (remove the check). I can implement this code in the value request block, but it doesn´t work. It only works in the Output Block.
Does somebody have an idea?
TIA and RegardsHi
The event AT SELECTION-SCREEN ON VALUE_REQUEST can update the field managed by the event, if you need to update other field in according to the selected value u need to use the fm DYNP_VALUES_UPDATE:
parameters: p_1,
p_2.
at selection-screen on value-request for p_1.
DATA: DYNAME LIKE D020S-PROG,
DYNUMB LIKE D020S-DNUM,
DYNPFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.
DYNAME = sy-repid.
DYNUMB = sy-dynnr.
DYNPFIELDS-FIELDNAME = 'P_2'.
DYNPFIELDS-FIELDVALUE = 'X'.
APPEND DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = DYNAME
DYNUMB = DYNUMB
TABLES
DYNPFIELDS = DYNPFIELDS.
Max -
The selection screen cannot choose the multiple values at first instance?
Hi All,
I have 2 select-options on the selection screen as follows>>
SELECT-OPTIONS :
s_subusr FOR pa0105-usrid NO INTERVALS OBLIGATORY,
s_period FOR vbak-erdat NO-EXTENSION OBLIGATORY.
When I try to enter multiple values by clicking the multiple option button when noting is entered as input on the selection screen.I get a error"Make entry in all required fields".
But when I enter a value on the selection screen input for s_subusr and then enter value in s_period and then click on multiple option button I am able to see the multi-option Popup.Now I can enter multiple Values.
Please can anyone help me to enter the values on the multiple option Pop-up whenever the user want?
Regards,
Shashank.HI
OBLIGATORY means you have to enter the values , with out filling that values and if you click any thing it will show an error message saying that fill alla required fields
so if you want you can remove that
or if you want to keep that OBLIGATORY then fill some values 1st in that select-options and clcik on multiple entries button then it won't show any error
<b>Reward if usefull</b> -
How to put values from selection screen to ztable
hi all,
i have created a ztable.
now i want to put data through se38.
i have given 5 parameters in selection screen same as there in ztable.
now if i put values in selection screen then it should put that values to my ztable .
how can i put values into my ztable.
i used insert but not workiing.Hi,
Try this.
TABLES : ztable.
SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
PARAMETER : p_field1 TYPE field1_in_ztable,
p_field2 TYPE field2_in_ztable.
p_field3 TYPE field3_in_ztable.
p_field4 TYPE field4_in_ztable.
p_field5 TYPE field5_in_ztable.
SELECTION-SCREEN:END OF BLOCK b1.
DATA : itab TYPE TABLE ztable,
wa_itab TYPE ztable.
AT SELECTION-SCREEN.
MOVE p_field1 TO wa_itab-field1.
MOVE p_field2 TO wa_itab-field2.
MOVE p_field3 TO wa_itab-field3.
MOVE p_field4 TO wa_itab-field4.
MOVE p_field5 TO wa_itab-field5.
INSERT ztable FROM wa_itab.
IF sy-subrc = 0.
MESSAGE 'Successfully saved' TYPE 'I'.
ENDIF.
Thanks,
Sri.
Edited by: Sri on Jul 28, 2009 4:15 PM -
Error when Values of Hierarchy Characteristics are put in selection screen
Hi Experts,
I am using SAP Netweaver 2004s.
I am trying to execute a query with a Hierarchy Characteristic in the BEx Web. In the Variable selection screen, if I give a value of the characteristic as input, the query on execution displays 'No Data Found'. But If I execute the query with the same selections (enter a value of the hierarchy characteristic in the selections) in BEx Analyzer (Excel), the query executes for that value of characteristic with data.
Also, If I execute the query with a node of the hierarchy characteristic (instead of the value within this node), I get data for all values within this node along with that value for which in the first case it showed no data.
Could you help me figure out how to go about finding a solution for this issue?
Regards,
ShrutiHi Abhijeet,
This error occurs for all values (that are present within hierarchy nodes).
Also, I have tried using both F4 and entering the value directly. There is no difference in the error.
The type of the variable shouldn't be the issue since the same entries work fine in BEx (Excel) Analyzer.
I think there has to be some kind of setting somewhere for BEx Web Analyzer that can have hierarchy related displays.
Thanks for your help.
Regards,
Shruti -
Restrict variable values in the pop-up selection screen
Hi,
I have a variable based on a caracteristic that has 0COMP_CODE as attribute in a Web Report (BW 3.1B).
This variable has to be accessible so that users can select a value.
I need to restrict the values that users can see on the selection screen according to their 0COMP_CODE value, even in the pop-up.
I have tryed authorization variable and user exit, but none worked.
The best I could do was a "several single values" variable that was preselected with the caracteristics of their 0COMP_CODE, but it didn't worked in the pop-up.
Does anybody knows how to handle this?As far as I could find out, it should be made through customer exit.
The point is : I have to use a customer exit variable that has been check as "ready for input".
I can't find a way to restrict the values displayed in the variable selection screen (in the help pop-up window for this variable).
The exit can pre-fill the selection fields with values, but whenever the user opens the window, he sees all the values.
I have tryed all the values for I_STEP (0,1,2 and 3) but none did it.
Does anybody knows how to limit those values? -
Retrieve input values from the selection screen
I have a requirement to retrieve the variable value or values inputed from the selection screen and label the worksheet tab to replace the tab name 'Sheet1' from the Excel. The only way to do this would be to write a macro to label the sheets but how would I retrieve the value(s) from the selection screen criteria? Is the value of the selection screen entered by the user stored in some table? How would I write the macro to retrieve this value?
For example, I want to retrieve the company code entered from the selection screen and lets say the company code entered as 10; I would want to replace the worksheet from 'Sheet1' to '10' . Texts would be more recognizable.Use the option Layout->Display Text Elements->Variables from the BEx toolbar. This will display Variable screen user input on your workbook in a fixed location. Then you can use your macro to name the worksheet with the cell reference.
Thanks
Vineet -
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. -
How to get modified values in selection screen
address data is filled in selection screen by default.
if we want to change the address on selection screen
and pass it to another variable .how to handle this please let me knowHi,
Change the value of address in the selection screen by delting the default value and replcaing it by new 1.
Then assigh this value of that variable to the new variable
new_variable = variable. -
Post values from selection screen into vkm5 transaction
Hi all,
i need to create a report , when user enters values in the selection screen of that report, that values must be transported into a transaction VKM5 and then that transported values must be updated in a ztable.
ex:
in selection screen if user enter doc no:xxxxxx
date: 20.09.2011
Reason for release: some text
then that doc no: xxxxx must be transported into vkm5 transaction and that values(selection screen values) must be uploaded into a ztable.
i tried the below code
TABLES: ZVKM5.
data: IT_ZVKM5 type standard table of ZVKM5,
WA_ZVKM5 type ZVKM5.
PARAMETERS : S_VBELN LIKE ZVKM5-VBELN ,
s_date LIKE zvkm5-bldat ,
s_text LIKE zvkm5-text .
call transaction 'VKM5'.
*LOOP AT IT_ZVKM5 INTO WA_ZVKM5.
WA_ZVKM5-VBELN = S_VBELN.
WA_ZVKM5-bldat = S_DATE.
WA_ZVKM5-text = S_TEXT .
modify ZVKM5 from table IT_ZVKM5.
if sy-subrc = 0.
endif.
*ENDLOOP.
Kindly suggest me,
thanks in advance,
ben2012.Thanks to all ,
Solved by me.
REPORT ZVKM5.
TABLES: ZVKM5, vbuk.
types: begin of ty_zvkm5 ,
vbeln type VBELN_VL,
BLDAT type BLDAT,
TEXT type TEXT,
UNAME TYPE CDUSERNAME,
end of ty_zvkm5.
TYPES: BEGIN OF TY_CDHDR,
OBJECTID TYPE CDOBJECTV,
END OF TY_CDHDR.
DATA: IT_CDHDR TYPE TABLE OF TY_CDHDR,
WA_CDHDR TYPE TY_CDHDR.
data: IT_ZVKM5 like ZVKM5 occurs 0 with header line,
WA_ZVKM5 type ty_ZVKM5.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
data: date type STRING.
PARAMETERS : S_VBELN LIKE ZVKM5-VBELN ,
s_date LIKE zvkm5-bldat ,
s_text LIKE zvkm5-text .
CLEAR bdcdata_wa.
bdcdata_wa-program = 'RVKRED05'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'VBELN-LOW'. " pass the field name
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'VBELN-LOW'. " pass the field name
bdcdata_wa-fval = S_VBELN. " pass the date here
APPEND bdcdata_wa TO bdcdata_tab .
call transaction 'VKM5' using bdcdata_tab .
REFRESH IT_ZVKM5.
SELECT OBJECTID
FROM CDHDR INTO TABLE IT_CDHDR.
LOOP AT IT_CDHDR INTO WA_CDHDR.
IF WA_CDHDR-OBJECTID = S_VBELN.
move s_vbeln to it_zvkm5-vbeln.
move S_date to it_zvkm5-bldat.
move s_text to it_zvkm5-text.
MOVE SY-UNAME TO IT_ZVKM5-UNAME.
append it_zvkm5 to it_zvkm5.
modify zvkm5 from table it_zvkm5.
UPDATE zvkm5.
ENDIF.
ENDLOOP.
CLEAR: S_VBELN, S_DATE, S_TEXT. -
Selection Screen Default Values
Hi,
The selection screen can have the default values by using the parameter ID. To be the parameter ID value to defaulted we normally add the entry in User Profile>Own data>paramters with Parameter ID and the value.
I would like to know is there any other way to achieve the same, it could be parameter or select-options.
With Regards,
AzharFor Parameter u can use DEFAULT keyword
eg. PARAMETERS: p_matnr TYPE mara-matnr DEFAULT 'B1200'.
For select option
As u might be knowing select options creates an intenal table, so if u want to have some default values then u can use the following code in the INITIALIZATION event:
DATA: v_matnr TYPE mara-matnr.
INITIALIZATION.
SELECT-OPTIONS: s_matnr FOR v_matnr.
s_matnr-low = 'BT100'.
s_matnr-high = 'BT900'.
append s_matnr.
This will give default values in the selection screen for select-options.
Maybe you are looking for
-
How can you print a single page of a multipage report.
I am using Office 2003 pro, the LabVIEW Report Gen Toolkit, LabVIEW 7.0, and Windows 2000. I have created a lengthy report with the first page being a summary. I would like the user to be able to select; print the entire report, or just the first pag
-
Problem in eos 1100d line in screen..
I have this problem after a month from buy it ..blz tell me what is this problem? ..and can I fx it?.... sorry for my bad english..
-
We see several Rogue APs in our network which are, according to WCS, not 'On Network'. However, most of them do turn out to be 'On Network': their MAC address appears as connected&active in a switch port. I wonder if this is because the 'On Network'
-
Backup/restore of undo tablespace
Hi, from backup basic doc: "You should not have to concern yourself with undo segments or manage them directly as part of your backup and recovery process. " Does this mean that undo tablespaces need not be or should not be backed up? And in the same
-
Phone broken, new phone awaited. Can I find out w...
After a power cut our phone stopped working. I tried a number of things and eventually ordered a new phone. We don't have any other landline phone to use in the meantime. I think people are making calls to us and we could call them back on the mob