ESS: Changing input field to dropdown box
Hi,
We are configuring ESS, portal's record working time iview has a column "wage type(CATSD-LGART)" which is input field with search help in portal screen.We are looking for an option to change this field to drop down box. Client wants simple navigation. Please let me know if I can change this with customization.
Again, changing input field to drop downbox in working time iview.
Your help will be appriciated.
Thanks,
Edited by: Satyanarayanan Gadadas on May 12, 2010 7:48 PM
What is the reason that the customer is wanting only dropdown and not the search help.
Can you please ask for business reason for such requirement. (Please ask only if you are in a position to)
The reason is that its too much an effort so I am keen to understand the reason.
Puja has advised the right solution.
Similar Messages
-
Change input fields of used component
Hello,
I am creating a web dynpro and don't have a lot of experience so I hope you can help me.
I am using the component /PLMU/WDC_SEA_QS_CRIT_DO which contains an input field OBJECT_TYPE.
How can I enable this field in my web-dynpro?
Thank you very much.
Best regards,
Daisy HeremansHi
If you can't set the interface property of node in enhancement then there is another way.
Keep the node as it is.
Keep some static class attribute for enable \ disable.
Set this static class attribute in your component and use this attribute in used component ( any of post\ pre overwrite methods ) to set this attribute value to the attribute which is bound to UI element enabled property.
@ thomas: any inputs from your side, can we achieve this in any other way apart from enhancement through personalization \ component configuratio etc ?
Regards
Manas Dua -
Loop At Screen to change input field.
Hello Experts,
I have a screen which have a pf status on which there is a &change button as well as a save button. I want to loop at screen when the button is clicked to make the fields editable except the first field. When i click save button, the field goes back to uneditable.
My codes:
IN PAI:
CASE OK_CODE.
WHEN '&CHANGE'.
LOOP AT SCREEN.
screen-input = 1.
screen-output =0.
ENDLOOP.
ENDCASE.
Any help please?
Moderator message: There is no point in continuing the discussion as same answer is getting repeated several times. Please search and read to understand the basics of Loop at Screen. Thread locked.
Message was edited by: Manish KumarHi Hassim,
In PBO section.
LOOP AT SCREEN.
IF ok_code(sy-ucomm) = '&CHANGE' .
IF SCREEN-NAME = 'Field1'.
SCREEN-INPUT = '0'.
SCREEN-OUTPUT= '1'.
ELSE.
SCREEN-INPUT = '1'.
SCREEN-OUTPUT= '0'.
ENDIF.
ELSE.
SCREEN-INPUT = '0'.
SCREEN-OUTPUT= '1'.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP. -
Asterisks in all input fields eg search boxes logins etc but not in word or email
HPE-475uk
Windows 7 Premium Home
Hi My PC started playing up a couple of days ago Every time I tried to login from the Windows login screen in the box for my password suddenly a line of asterisks appear sometimes before I even type. Eventually after restarting a few times the problem will cease and I can login. HOWEVER once I'm logged in if I open a new tab in chrome the address field is filled with asterisks, if I press the start button then the field for 'find programs' is filled automatically with asterisks This means I can't use my PC I've tried power erase from Norton nothing untoward found then I tried sophos removal tool again nothing found So just to be sure I ran iObit malware tool again nothing I've tried a restore point but after an hour that came back with an error message Also after the failed system restore Norton stopped working and needed to be re-installed. I did use driver booster to update the sound and graphics drivers 7 days ago but everything seemed fine... so I'm at a real loss as what to do any help would be much appreciated Thanks in advance AlisonHi purpleAli. Certainly a strange issue, the keys only produce an asterisks in all typing locations. I would like you to use this keyboard testing site. Click 'Launch The Tester" and press all of your keys one at a time.
When a key is down, that key should turn yellow on the diagram. When you release the key it should turn, and remain green. If your keys respond here as you would expect them to, then its not likely a driver issue. http://www.keyboardtester.com/
I would first see if removing all programs from startup, stops the issue from happening.
Goto the section "Use System Configuration to prevent programs from launching"
Since you cannot type, try copying this -> msconfig <- and pasting it into the search box (as illustrated in Figure 4).
Preventing Programs from Opening When Windows 7 Starts:
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01853753&lc=en&product=4346541&tmp...
If that fails, I am not sure what else to try. The way you have described it certainly seems like some sort of corruption. I would probably consider recovering back to factory defaults. Let me know how the previous steps go before committing to this one.
Performing an HP System Recovery (Windows 7):
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01867418&tmp_task=useCategory&cc=us&dlc=en&lc=e...
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
Want the data store values to be displayed in input field of form
Hi,
I wanted to know wether is there possibility of displaying the data in a input field instead of expression field.
In our model i have used a form which has material type,plant and Vendor connected to data service1 in turn gives the out put in chart and i also have the second input form which has To(0CALMONTH) combo box which is connected to Data service2 and gives the data in table.
But what i wanted is to i also want to use the input fields of first form to second Data service2 and get the data based on on inputs of form1 and form2i.e also To field.
We can connect the port from form1 to DS2 but problem is we need to click the submit of form1 and form2 and it doesnt gives the output according the input of form1 and form2 as it gives the output of that form when we click that submit button.
I have followed help.sap for data tore procdure.
So i have used a datstore where i will store the values of form1 and call it in expression field which i will add and hide it in form2(hide because user should not see that input fields).
Formula used in data store for expression field.
IF(CONTAINS(STORE@matltype,@Material_Type),STORE@matltype,STORE@matltype &(IF(LEN(STORE@matltype)>0,'; ',''))&@Material_Type)
But whats happening is the value is getting concatenated when i goon change the values in input field, so i wanted to get the values to be replaced as soon as i change input field of form1(if use replace function its not working) and also it would be more preferrable if we use input field instead of expression field.
I would also like to know is there any alternate solution for the above requirement instead of datastore.
Thank You
K.SrinivasHi,
I have Form1 connected to Data service1 displays the data in a Chart and i have another Form2 connected to Dataservice2 displays the data in table.
In form1 there are Material Type,plant, and Vendor and form2 i have To (0CALMONTH)SO now i want also Form1 inputs for Table which gets teh data from Dataservice2.
What i have said earlier is connecting Form1 to Dataservice doesnt fetch the data correectly,its because if i click submit in form1 i get the data of those 3 inputs and i need to click the submit button in form2 after giving input which shows the data accordingly where it doesnt fulfill the requirement.
So i wanted some solution for that.For that reason i have used the data store and the procedure i have followed the help.sap as i said in my above mesage.
If Data store is also suggestable than i want to display the data in Text input Field instead of Expression field which should replace the previous values as soon as values change in data store.
Hope i have tried to be clear if still it is not i am ready to explain again.
Thank You
K.Srinivas -
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.
-
Dropdown funda using input field
Hi
I wanted to do something as follows
in drop down u have options rite so i wanted those drop down options in a inputfield
meaning when the user clicks on some button besides the input field then i want to open a drop down kinda box where all the options are displayed in the form of a tree and the user selects it it should be populated in the input text field ( i know that we can use a pop up window and a table with all the options inside it but i want this in a tree view and that to the dropdown like box should be xactly below the input field) any help will b appreciated.
regards
sudheerHi manoj
there is some reason behind why i am using input field for achieving this drop down functionality
i have achieved what i want by doing the following way
i have changed my layout to row layout and in the first row i have created the input filed and a button
and in the second row i have created the tree structure i wanted and made it as invisible ok
when the user clicks the button the tree will open up and the according to what the user selects i have set to the context from which the input field is set ( so the selected thing has ben displaying)
the problem in this method is
all the contents which are after the row 3 are moving down when i am making the tree visible which i dont want
so i am searching for the alternatives. i know that EVS or SVS will help but according to my need i want a tree with options rather than table with options( as the case with EVS or SVS )
any ideas will help me alot
thanks and regards
sudheer varma -
Using a dropdown box to change the specified value of a radio button?
I have a form that generates the body text for an email.
First there is a dropdown box in which the choices are either "red" or "blue"
Further down the page, there is a radiobutton list with 2 items "available" and "unavailable".
The specified values for these items (as defined on the binding tab) are "have blue hats" or "do not have blue hats".
This value is concatenated in the email body textfield which is to be copied by the user to an email body:
Concat("Dear", NameField, "," We ", RadioButtonList, " today. ") // Dear Persons Name, We have blue hats today.
Is there any way to change the value of the selected radio button based on the selected dropdown choice?
So if the user selected "red" in the dropdown field, the radio button values could become "have red hats" or "do not have red hats"?
Or perhaps there is a better way from the start?
Thanks!Ok, so now I've done that...
But is there a way to change that value with another field (ie when a user chooses "red" or "blue" in a dropdown box) so that the concatenated message reflects both the users choice of color and the availibility?
I'm guessing I should probably use an intermediary text box and put
InterText.rawValue = Concat ("We have ', dropdown1, " hats today") in the change event of the available radio button and:
InterText.rawValue = Concat ("We do not have ', dropdown1, " hats today") in the change event of the unavailable radio button.
then concatenate that box in the final textbox. -
Dropdown list on Dynpro for a disabled input field - No PAI triggered?
Hello experts,
I am facing a problem with a dropdown list on a dynpro (defined as a subscreen). The drop down list should be for a field that is not input ready (at least it should appear not being input ready).
The user should be able to pick a value from the dropdown list and as soon the selected row changes a PAI should be processed as other fields on the main dynpro as well as the subscreen itself need to change accordingly.
The dropdown list works fine but with the field not being set to input ready - neither the input field changes nor a PAI etc. is triggered.
But if the property for input is set to input ready, it works fine.
Info:
Dropdown list is populated in POV
A function code is assigned to the field
What am I missing here?
What properties must be set for the field.
Thanks,
Chris
PS. If set to input - how do I prevent the single empty line in the list?hi
good
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
F4 HELP->
AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
PERFORM VALUES_SACHA.
THANKS
MRUTYUN^ -
Dropdown boxes in Fiori app My Timesheet (HCM_TS_CRE ) won't populate field
Hi experts,
I hope you can help me out. We recently discovered that the Wave 2 apps are completely different implementations from the original, Wave 1 apps. I am trying to get two of the new apps running - My Timesheet (hcm_ts_cre) and Approve Timesheets (hcm_ts_apv).
In the MyTimesheet app, when the user tries to use one of the drop-down boxes in the time-entry screen to enter the internal order number or the attendance type, they click on the small box to the right of the field to bring up a dropdown box full of applicable values (IO's or Attendance Type codes, depending on the field). It populates correctly, but when the user clicks on a selection the box closes and the field remains empty.
I've tried this on Google Chrome, IE, Firefox and Safari (on both desktop and iPhone). The behavior is very consistent from one platform to another.
I upgraded the SAPUI5 component by installing OSS notes to bring everything up to the most recent release but it did not change the behavior. Shown below are the release levels of each of the libraries:
Library
Version: none
Version:1.16
Version:1.18
Version:1.20
(1.20.11)
Version:1.22
(1.22.5)
com.sap.apf.apf-lib
1.22.1
com.sap.ca.scfld.md
1.16.9
1.18.10
1.20.7
1.22.1
com.sap.ca.ui
1.16.9
1.18.10
1.20.7
1.22.2
com.sap.collaboration.collaboration-comm
1.16.9
1.18.10
1.20.6
1.22.3
com.sap.portal.ui5.portal-ui5-ext
1.16.9
1.18.10
1.20.5
1.22.1
com.sap.smartbusiness.suite.smartbusines
1.22.3
com.sap.suite.suite-ui-commons
1.16.9
1.18.10
1.20.7
1.22.3
com.sap.ui5.commons
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.comp
1.22.4
com.sap.ui5.core
1.16.9
1.18.10
1.20.9
1.22.6
com.sap.ui5.dist.fiori-lib
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.inbox
1.16.9
1.18.10
1.20.6
1.22.8
com.sap.ui5.layout
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.makit
1.16.9
1.18.10
1.20.7
1.22.6
com.sap.ui5.mobile
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.mobile-ext
1.16.9
1.18.10
1.20.9
1.22.6
com.sap.ui5.richtexteditor
1.16.9
1.18.10
1.20.5
1.22.8
com.sap.ui5.suite
1.16.9
1.18.10
1.20.6
1.22.4
com.sap.ui5.table
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.themelib_sap_bluecrystal
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.themelib_sap_goldreflection
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.themelib_sap_platinum
1.22.8
com.sap.ui5.themelib_sap_ux
1.16.9
1.18.10
com.sap.ui5.unified
1.16.9
1.18.10
1.20.7
1.22.8
com.sap.ui5.ux3
1.16.9
1.18.10
1.20.7
1.22.8
com.sap.ui5.vbm
1.16.9
1.18.10
1.20.5
1.22.5
com.sap.ui5.viz
1.16.9
1.18.10
1.20.6
1.22.3
com.sap.ushell.ushell-lib
1.16.9
1.18.10
1.20.8
1.22.6
com.sap.ushell.ushell_abap
1.22.4
I've asked our basis team to install 1.24.2 by installing SAP_UI SP10 in the hopes that would help.
What do you think? Am I barking up the wrong tree? Am I heading down the wrong path?
In case its helpful here are the component releases on our gateway system:
SAP_BASIS
740
0007
SAPKB74007
SAP Basis Component
SAP_ABA
740
0007
SAPKA74007
Cross-Application Component
SAP_GWFND
740
0007
SAPK-74007INSAPGWFND
SAP Gateway Foundation 7.40
SAP_UI
740
0009
SAPK-74009INSAPUI
User Interface Technology 7.40
PI_BASIS
740
0007
SAPK-74007INPIBASIS
Basis Plug-In
ST-PI
2008_1_710
0007
SAPKITLRE7
SAP Solution Tools Plug-In
SAP_BW
740
0002
SAPKW74002
SAP Business Warehouse
IW_PGW
100
0005
SAPK-10005INIWPGW
Process Gateway
IW_SPI
100
0004
SAPK-10004INIWSPI
Service Provider Infrastructure
IW_SCS
200
0008
SAPK-20008INIWSCS
Screen Scraping
UIAPP001
100
0005
SAPK-10005INUIAPP001
UIAPP001 100: Add-On Installation
UIAPP002
100
0004
SAPK-10004INUIAPP002
UIAPP002 100: Add-On Installation
UISRA001
100
0003
SAPK-10003INUISRA001
HTML 5 Purchase contract approval
UISRA002
100
0004
SAPK-10004INUISRA002
HTML5 Time Recording
UISRA010
100
0004
SAPK-10004INUISRA010
HTML5 Staffing List
UISRA012
100
0004
SAPK-10004INUISRA012
HTML5 My Department Spend
UISRA020
100
0005
SAPK-10005INUISRA020
HTML5 Change Order (Address/Delivery Date)
UIX01HCM
100
0003
SAPK-10003INUIX01HCM
UI for HCM Application
Thanks for any advice you can offer!
-Rob SolomonThanks for the suggestion, Pankaj.
I found an OSS note pertaining to SAPUI5 that had not been completely installed, so I finished the implementation of it. Now the component versions are up-to-date, as shown below. I can't find any more SAPUI5 1.22.xx versions to install. 1.22.8 is the most recent.
Library
Version: none
Version:1.16
Version:1.18
Version:1.20
(1.20.11)
Version:1.22
(1.22.8)
com.sap.apf.apf-lib
1.22.1
com.sap.ca.scfld.md
1.16.9
1.18.10
1.20.7
1.22.1
com.sap.ca.ui
1.16.9
1.18.10
1.20.7
1.22.2
com.sap.collaboration.collaboration-comm
1.16.9
1.18.10
1.20.6
1.22.3
com.sap.portal.ui5.portal-ui5-ext
1.16.9
1.18.10
1.20.5
1.22.1
com.sap.smartbusiness.suite.smartbusines
1.22.3
com.sap.suite.suite-ui-commons
1.16.9
1.18.10
1.20.7
1.22.3
com.sap.ui5.commons
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.comp
1.22.4
com.sap.ui5.core
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.dist.fiori-lib
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.inbox
1.16.9
1.18.10
1.20.6
1.22.8
com.sap.ui5.layout
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.makit
1.16.9
1.18.10
1.20.7
1.22.6
com.sap.ui5.mobile
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.mobile-ext
1.16.9
1.18.10
1.20.9
1.22.6
com.sap.ui5.richtexteditor
1.16.9
1.18.10
1.20.5
1.22.8
com.sap.ui5.suite
1.16.9
1.18.10
1.20.6
1.22.4
com.sap.ui5.table
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.themelib_sap_bluecrystal
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.themelib_sap_goldreflection
1.16.9
1.18.10
1.20.9
1.22.8
com.sap.ui5.themelib_sap_platinum
1.22.8
com.sap.ui5.themelib_sap_ux
1.16.9
1.18.10
com.sap.ui5.unified
1.16.9
1.18.10
1.20.7
1.22.8
com.sap.ui5.ux3
1.16.9
1.18.10
1.20.7
1.22.8
com.sap.ui5.vbm
1.16.9
1.18.10
1.20.5
1.22.5
com.sap.ui5.viz
1.16.9
1.18.10
1.20.6
1.22.3
com.sap.ushell.ushell-lib
1.16.9
1.18.10
1.20.8
1.22.6
com.sap.ushell.ushell_abap
1.22.4
I have tried it again from chrome, ie and firefox but the dropdown list is still not populating the field to which it is attached. I cleared the buffers of each browser with no improvement.
It seems like it must be related to the SAPUI component. I will de-implement all of the 1.22.8 notes and then re-apply them. And maybe the basis team will install the new version today.
I will update the ticket with any further news.
If you have any other ideas for me, I would love to hear them. Thanks!
-Rob -
SAP MDG - How to activate user settings for Dropdown box Change request?
Hello Expert,
I have a question related to Hide DropDown Box Change request.
When i save change request via collective processing, Change request Dropdown box is displayed. When, i select Change request dropdown list, only change request description is displayed, not change request number.
So how to activate access key from user settting ? Could you show me the menu path in order to activate it?
Best regards,
RAOELISONThis is a generic Web Dynpro question and not specific to MDG. Any way, this is how you can do it:
Right-click the field
Select: Use Settings --> More
Check the "Key Visible" checkbox
Keep in mind this is a user-specific setting and not a global setting. -
Changing color of text in the input field
hi
when i disable the input field , the text written in it has very light color. How can i change the color of the displayed text in the input field.Hi Harsimran,
changing the text color of an input field is not possible. However, you can build a workaround:
1. take an expression box, place it exactly over your input field
2. change its text color and take the value of your input field as value being displayed
3. instead of making your input field disabled, make it hidden and show the expression box instead.
Thus, instead of enabling/disabling your input field, switch between expression box/input field to be displayed. I hope it's clear what I mean. If not, don't hesitate to ask again.
Best regards,
Benni -
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 -
How can we change the input field on a view stop showing zeros
Hello,
To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
Edited by: sap_learner on Mar 25, 2010 5:44 PM
Edited by: sap_learner on Mar 25, 2010 5:49 PM
Edited by: sap_learner on Mar 25, 2010 5:55 PMhello Manas Dua,
Thanks for your help. I am able to resolve my problem.
My code will help the future comers to resolve this kind of issues.
*The code is applied to method WDDOINIT of the default view.
DATA lo_nd_terms_input TYPE REF TO if_wd_context_node.
DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
DATA lv_zeros TYPE wdy_attribute_format_prop.
lv_zeros-null_as_blank = 'X'.
lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
lo_nd_terms_input_i->set_attribute_format_props(
EXPORTING
name = `ENTER THE ATTRIBUTE NAME`
format_properties = lv_zeros ).
Edited by: sap_learner on Mar 26, 2010 5:02 PM -
Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?
Yes but you will have to create some custom JavaScript to do this.
Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.
Maybe you are looking for
-
Report to notify me if my RFC connection is succesfull??
Hi guys, I want to create small report that will notify me every day (or every 12 hours) if my RFC connection is succesfull. Is it possible to send this notification on email or as message when user is loging on the system?? I have created RFC destin
-
My ipod touch is disabled, i installed the latest version of itunes, but cant figure out how to restore the ipod, can anyone help?
-
This drive has a hardware problem that can't be repaired
Hello all! I'm using a late 2009 27" iMac (2.8 GHz, 12 GB Ram). I've been noticing a lot of insanely slow speed lately, mostly in opening new folders or restarting. I ran the Disk Utility and it maked my internal 1TB drive as "This drive has a hardw
-
I have tiger 10.4.11. In order for my computer to recognize my new Iphone I need to install the new iTunes, however the new iTunes will not download on my computer because it is not 10.5 or higher. Is there a way that I can upgrade from tiger to le
-
<u><b>Below is the query template for YTD report:</b></u> <b>Filter Characteristic Restrictions</b> None <b> Filter - Default values</b> Posting Period Controlling Area Cost Center Fiscal Year <b> Rows/Columns Free Chars</b> Fiscal Year Posting P