ZScreen(SE51) Input field should have Select option
Hi ,
I need to create one Select option on Screen designed using screen painter .
Later I want to use in PAI of screen in select query as Select option .
Mean to say in where clause of select query i have to use <b>IN</b> for that input field .
Looking for some helpful responses .
SS
Hi,
You can create a selection screen by using the normal SELECT-OPTIONS command as a subscreen and then call the subscreen in your main screen.
SELECTION-SCREEN BEGIN OF SCREEN scr AS SUBSCREEN.
call the sub screen using normal command.
CALL SUBSCREEN b INCLUDING prog dynnr .
regards,
Mahesh
Similar Messages
-
How to get input fields based on selection
Hi
i have dropdown which cointains 1 to 10 numbers,as soon as we select 2 in dropdown 2 input fields should be displayed.can u please help me in solving this problem
thanks
kishoreHI,
1:Add one child TransparentContainer to RootContainer with id TransparentContainer1
2:Take one attribute of type integer in context
3:When dropdown selected set the selected value to this attribute like
wdContext.currentcontextElement().set<value>(wdContext.current<DDNode>Element().get<DDValue>);
4:And in do modify view Method, put following code
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer1");
if(tc!=null)
tc.destroyAllChildren();
int number=wdContext.currentContextElement().getNumber();
IWDNodeInfo info=wdContext.getNodeInfo();
if(!(wdContext.isEmpty()))
wdContext.getContext().reset(false);
for(int i=0;i<number;i++)
IWDInputField inp=(IWDInputField)view.createElement(IWDInputField.class,"inp"+i);
info.addAttribute("val"+i,"com.sap.dictionary.double");
inp.bindValue("val"+i);
tc.addChild(inp);
Regards
LakshmiNarayana -
How to set focus on a input field in a selected row of a table?
In a previous discussion (http://scn.sap.com/thread/3564789) I asked how to access an input (sap.m.Input) field of a selected row in a table. In the answer that was supplied I was shown how to get the items of the table. Then using the selected index to get the selected item get the cells. Then I could set editable on the proper cell(s). This worked fine.
Now I need to set the focus on one of the fields. I tried something like this:
var oNewLink = table.getSelectedItem();
var oNewLinkName = oNewLink.getCells()[1];
oNewLinkName.focus();
But this doesn't seem to work.
I have searched through other discussions and have seen this technique for putting focus on a field if you have its ID:
sap.ui.getCore().byId(id_of_the_input_field).$().focus();
In my case though I do not have an ID since the row and its cells are generated. How can I set focus on the cell of a certain row in a table?Hello Venkatesh. Yes that code does work. First I tried it on a table cell that was already rendered and it did work. The next time I tried it on a table row that was being added and it did not work there. So I added an on after rendering function for the table and added that code there. That did not work until I added a delay (timeout) to do a context switch before calling the focus and that worked.
Once last thing though sometimes when I call focus on an input field (actually in a table row cell) if the field has text in it already the flashing cursor is at the beginning of the text and other times it is at the end of the text (which is the desired way). It depends on where I click in the row. Is there anyway to make sure the flashing cursor is at the end of the text when the focus is applied to a field that contains text? -
How input fields should come one below other
Hi,
I want to create an application in webdynpro.My requirement is to develop a personal detail form like name date of berth qualification, date of joining etc. So for that I need to create several input field,LABEL and at last one button (GO).so, please explain the property and related values by which the input fields should come one below other. Like in first line name second line date of berth input field should come.
Thanks
Kundan.Hi Kundan,
In Webdynpro we have four layouts beased on our requirement we used that layouts.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50568365-ba9e-2b10-1188-a612a20edf31
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30291df2-b980-2a10-0884-839c4f7f147e
Thanks,
Tulasi Palnati -
How do we validate input fields on the selection screen
How do we validate input fields on the selection screen
hi balram,
u can validate input fields using <b>AT SELECTION-SCREEN</b> Event.
PARAMETERS : p_werks TYPE marc-werks.
AT SELECTION-SCREEN ON p_werks.
SELECT SINGLE *
FROM t001w
WHERE werks = p_werks.
IF sy-subrc <> 0.
MESSAGE 'Invalid Plant' TYPE 'I'.
ENDIF.
Like this, we can validate user input for plant.
check this link:
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
Reware me if useful......
Harimanjesh AN -
I use a Macbook Air. I should have selected ''remind me later'' but accepted the terms and conditions. Now I can't activate my Creative Cloud Student package. Could Adobe re-activate my Install code? It says i already used it.
Linemijnv19982937 I am sorry that you are facing problems activating your membership. Do you receive any specific error messages? For information regarding the activation process please see Activation & deactivation help - http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html.
-
Input field should not be case sensitive
experts help
1)I have declared selection field in module pool as maktx of type maktx.
when ever the user enter the data into into , it is comming in caps but i want as it is the data entered by user in the program I dont want it to convert it caps by default .Please tell how to handle
2) I have a 2 radio buttons declared and made it as a group,
When user selects one radio button then that particular filed input should be allowed to enter if he selects another radio button then field 2 should be allowed to input.
I am displaying as
radiobutton1 field1 inputbox1
radiobutton2 field2 inputbox2
By default one shoule be active . is using screen modify statement will help . Should it be coded in PBO and PAI.
3)IN intial screen i will have a push button and when i press it then it will call another screen and there i will have another push button say back.
Rigth now when the user press back button in second screen i have writeen leave program.
But I want it to go back to previous screen.
call screen 'earlier screen' should be used or leave to screen 'earlier screen'.
or any other best method.
Thank you for the replies1) in screen painter maintain the input field attributes "Upper/lower case entry" (or use a correct DDIC reference)
2) in PBO you will have a LOOK AT SCREEN/MODIFY/ENDLOOP, also i suggest add a Function Code so checking/un-checking the radio-buttons will trigger PAI immediately, but in PAI ignore this function code to stay on current dynpro.
3) To go back to previous dynpro, use a LEAVE TO SCREEN 0, so program closes the current dynpro and continues with the statement following the CALL SCREEN. (Another CALL SCREEN will add one screen to the stack, til maximum number reached, when program will dump out.)
NB: Try to use the search tool, most of those questions have already been answered (many times)
Regards,
Raymond -
How to avoid the truncation of field values in select-options
Hi all,
I have a requirement where i have used select-options to select multiple filenames. I have taken the filename of type rlgrap-filename(128 char) But the problem is in select-options if the values of the filename which is selected has length ( i.e the length of the selected field value) exceeds 45 character , then he remaining charactes are truncated. Hence i am not able to get the
correct field value in the internal table of the select-options.
i came to know that if NO_DISPLAY addition is used then this truncation wont occur. But in my case user has to select the files and hence this addition cannot be used.
please let me know if anyone has a solution for this or if there is any other way to select multiple entries in selection screen.
Regards
Manipal parkalarlgrap-filename is having the length of only 128 characters.If the file path exceeds 128 characters then the rest will get truncated.If you file name exceeds more than 128 characters and the pafth is fixed,then harcode the entire path in the program and later on concatenate the path and the file name into a string which can be used for further processing.
paramters:p_file like rlgrap-filename.
here just give the filename as say 1234.XLS.(Assuming that you are not browsing for the file using F4_filename).
In the program harcode the path say C:\Documents and setting\sapworkdir\user\.
Now concaternate these two and pass it to string which can be used for further processing.
If the user intneds to browse the file and the path name exceeds 128 characters then follow the way to delcare the paramter in the selection screen as said above.If it is working for parameters then I think it should be working for select option also. -
Input Field with multiple selection
I am planning to add an input field to my BSP application.
I have already implemented a self-made F4 help for it.
But now my customer wants a multiple-selection for it (as in the workbench, when you display the content of a database table).
Is there anything I get for free, or do I have to implement this all on my own?Hi Daniel,
Are you looking for implementation of select-options within BSP? For this you have a beautiful article by Thomas Jung... You look for it....
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cd465292-0801-0010-e19f-e67172032668
Thanks...
Regards,
Ravikiran -
Changing an input field's appearance to Optional in an ESS WD Java scenario
This thread is posted to help customers with a common user based issue with ESS
SAP may deliver some fields in ESS iviews as mandatory however you may not want some fields to be mandatory and may want the iview display to guide the user appropriately
Often delivered mandatory fields have an Asterisk denoting this field as a mandatory
requirement for data entry in the ESS scenario
The purpose of this post is to show how the Asterisk can be removed and therefore indicate to the user that an entry is not required
There may be 2 ways to do this
1) As of a SP9 in ERP 6.0 press Ctrl and Right mouse button on the field in the PCD preview of the iview you wish to modify. In the Personalization options there is a "Mark as Mandatory" option please select "Not Personalized" and save then review the iview to see if the asterisk is removed
2) If this does not have the desired effect or you have a lower SAP version or SP level you will need NWDI to make the change. You will require knowledge of NWDI to make the change -->
Open the required scenario in NWDS
Position cursor on Required field and right click and select u2018Propertiesu2019
Go to the u2018Propertiesu2019 tab
Change property field u2018Stateu2019 from u2018Requiredu2019 to u2018Normalu2019
Save the changes
As this field now appears as optional to the user you also have to ensure the
ECC business logic does not reject a user who does not populate the field with data - therefore you will need mark the field as optional in
V_T588M
V_T588MFPROPS
These changes also affect entry of data into this field in PA30 - HR Administrators or users with R3 access will therefore have the same user experience (i.e field is not mandatory)
If you have issues maintaining V_T588MFPROPS appropriately you can insert an overide into V_T588MFPROPC
If you find the ESS scenario still requests an entry in the field it could be that this field is an essential
or core part of this particular ESS scenario and therefore the model expects data to be populated in this field or it could also be that previous or subsequent fields are dependant on an entry in that field - In this case you may need to make a coding change to the model and/or change the business logic of dependant fields as well.
Edited by: Stuart Campbell on May 8, 2009 1:07 PMThank you stuart.
-
Adding a field in further selection option when using PNP
when we run a report using PNP we get a further selections button on top. can we add a new field like molga, in that further selection option if yes then how...can someone help me on that.
Hi,
I guess the Report your using must be SAP standard report.If yes, then you have to copy that program to some Z-program & make the change in the program itself.
Because this logic is in program itself.
This is the only way.
Correct me, if I am wrong.
Can I know the name of the report?
Thanks,sarika. -
Automatically fill input fields based on selection from dynamic drop down
Hi All,
I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword).
My scenario:
1. In my offline interactive form, I have:
a. Material Number --> drop down field with "Allow Custom Text Entry" ticked
b. 1 execution button to call web service
c. Material Group - Input Field (Read Only)
2. User will enter material number with wild card character (eg: ABC*).
User will then click the execution button.
Web Service in result will return all materials that match the entered material number.
Dynamic binding will do the magic to generate the drop down list.
3. Beside material number, web service will also return material description and material group.
Below is the illustration:
Material Description Material Group
ABC Material ABC GRP01
ABCDE Material ABCDE GRP02
--- so far so good ---
My requirement:
Every time user select material from the drop down list, i want to auto-populate field "Material Group" (which value is also returned by web service).
I know i need to put the script on event change of the drop down field.
But i don't know how to read internal table returned by web service.
Hope someone can enlighten me.
Thanks in Advance !!!Solved after reading:
1. /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
2. Chapter 7 of Live Cycle Designer Scripting Basics
(http://help.adobe.com/en_US/livecycle/9.0/LiveCycle_Designer_Scripting_Basics.pdf)
Thanks. -
BAPI at INPUT give range like SELECT-OPTIONS
hi all
i don't know weather it right forum for BAPI , but writing under this .
my requirement is like , as we give range in SELECT-OPTIONS,
like wise i want to give range in BAPI at INPUT level .
i.e. say i want to get details of Vendors , i will write a BAPI and i will give VENDOR code range to get information of all vendor with in that range.
please guide me in this .Hi!
You could use this bapi fm: BAPI_VENDOR_GETDETAIL
I could imagine it like this:
1. You have to create an FM, with the RA_LIFNR range.
2.
SELECT * FROM lfa1 INTO TABLE gt_lfa1
WHERE lifnr IN ra_lifnr.
LOOP AT gt_lfa1 INTO gs_lfa1.
CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
with the parameters
collect data into an output table
ENDLOOP.
3. Give back the output table to the caller program
Regards
Tamá -
[Spotify Website] Input fields should be more visible
Hi Spotify,
I don't know which design genius created the grey/white colour scheme for websites, and the invisible frames into which we are supposed to type in (things as essential as passwords or seach words), - but you should know better, when choosing what ideas to follow. It is painful as is, for me who has a perfect sight, to find where should I put in whatever expected of me, - but if a person has any slight age related - or otherwise - sight impediment, you make it impossible to find anything on your sight.
This is so humiliating, and so handicapping for your elder users especially.
Please do something about it, or at least offer a simpler version of the site where half day doesn't go to find the bloody page where feedback could be left, or the hidden frame into which one could type. I am speaking of the website solution, not artist search in the functions self.
Thanks.My take on this question is when on the login/sign up page on the spotify.com website the input fields have a slight grey border and placeholder. In my experience as a web developer, light grey on a white background sometimes becomes lost (usualy when on a windows machine). I believe this is what the author is reffering too.
-
How to capture the user change in an input field on a selection screen?
I am coding a selection screen in which there are two input fields. The first field takes a Unix directory from the user input. Based on the input value, the second field will be populated with a the name of a file under the corresponding directory.
My question is how I can make the program capture the user input without having to make the user press ENTER after they enter the value in the first field?
Any help will be greatly appreciated.Venkat,
Actually you led me to the real solution! It's the function module DYNP_VALUES_READ that does the trick for me. This function enables the program to capture dynamic user changes without recourse to PAI. Please refer to the code below:
REPORT zreiabsintf MESSAGE-ID zreiabsintfmc.
*<HGDC------------------------------------------------------------------
* Selection screen for the conversion program
*HGDC>------------------------------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-001.
PARAMETERS: p_indir LIKE epsf-epsdirnam OBLIGATORY, " Inbound file directory
p_infile LIKE epsf-epsfilnam DEFAULT gc_infile OBLIGATORY, " Inbound file name
SELECTION-SCREEN END OF BLOCK input.
*<HGDC------------------------------------------------------------------
* Displays a file-open dialog when the user clicks the search
* help button next to the inbound file text field. The user
* can select the inbound file visually.
*HGDC>------------------------------------------------------------------
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
* Capture any user change to the directory.
PERFORM check_dir_change.
* Display the file open dialog
PERFORM file_open_dialog CHANGING p_infile.
*<HGDC------------------------------------------------------------------
* Global constants
*HGDC>------------------------------------------------------------------
CONSTANTS:
gc_indir LIKE epsf-epsdirnam
VALUE '/interfaces/<SID>/inbound/', " Default inbound directory template
gc_infile LIKE epsf-epsfilnam VALUE 'input'. " Default inbound file name
*<HGDC------------------------------------------------------------------
* Global data
*HGDC>------------------------------------------------------------------
DATA:
gs_dynpfields TYPE dynpread, " Fields of the current screen
gt_dynpfields LIKE STANDARD TABLE OF gs_dynpfields. " Table of the screen fields
*& Form file_open_dialog
* Opens a dialog window for the user to choose a file in
* the specified Unix directory.
* <--P_FILE is the file to be selected.
FORM file_open_dialog CHANGING p_file.
* Validate the directory.
OPEN DATASET p_indir FOR INPUT IN BINARY MODE.
IF sy-subrc NE 0.
MESSAGE i001(zreiabsintfmc) WITH p_indir. " Unable to open the given directory
EXIT.
ENDIF.
CLOSE DATASET p_indir.
* Call the dialog window to open a file in the directory.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = p_indir
IMPORTING
serverfile = p_file
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE i002(zreiabsintfmc). " Failed to open the file.
EXIT.
ENDIF.
ENDFORM. " file_open_dialog
*& Form check_dir_change
* text
* --> p1 text
* <-- p2 text
FORM check_dir_change .
CLEAR gs_dynpfields.
CLEAR gt_dynpfields.
gs_dynpfields-fieldname = 'P_INDIR'.
gs_dynpfields-fieldvalue = p_indir.
APPEND gs_dynpfields TO gt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = gt_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_dynpfields INTO gs_dynpfields INDEX 1.
p_indir = gs_dynpfields-fieldvalue.
ENDFORM. " check_dir_change
Thanks for all your answers! The problem is now solved.
Edited by: Ning Hu on Apr 9, 2008 11:32 AM
Edited by: Ning Hu on Apr 9, 2008 11:34 AM
Maybe you are looking for
-
This is a stupid question but I needed to ask because I don't want to go there and not being able to buy it, but can I get the iPhone 5 brought straight there when I go to an apple store?
-
I am using apex_item in a select, but when submit page the result is one error "ORA-01403:no data found". put in the select plus and presents data. My select: SELECT APEX_ITEM.HIDDEN(1,ID) ID, APEX_ITEM.TEXT(2,ID) ID_DISPLAY, APEX_ITEM.TEXT(3,SESSAO_
-
I read this, and thought I should drop it here; http://www.phoronix.com/scan.php?page=n - &px=OTQ3NQ Also, the original newsgroup thread (still active as of this morning) http://groups.google.com/group/linux.ke - e550?pli=1 So, it looks like Linus ha
-
I was already close to purchasing PSE 8, but have now seen on some sites that it does apparently not work with NVIDIA graphic cards. Especially in combination with Windows 7 this is supposed to end in constant crashes. My PC has got Windows Vista Hom
-
Major problem after trying to update to 10.3
Hi. After downloading and installing the latest software update I cannot get my mac to boot. It starts up, apple logo appears then the system shuts down. I have tried to boot from the disk but everytime I try to do this it tells me that it was unable