Enabling Input Fields
Hello.
I am creating a web dynrpo application for creating a sales order. I am using Bapi_salesorder_createfromdat1.
All the input fields on screen are disabled when application is deployed and viewed on browser. I set the enabled property of input fields as true. But still fields are disabled.
Can anyone tell me how to solve this??
regards
Vijay Kalluri
Dear Vijay,
Try this..
Create a new Value Node with the Structure Binding with the model node in which your values are coming.
Then use the CopyService to copy the values from the Model node to the newly created Value Node.
IWDNode ValueNode = wdContext.nodeYourValueNode();
IWDNode ModelNode = wdContext.nodeYourModelNode();
WDCopyService.copyElements(ModelNode,ValueNode);
Now bind the Value node to your input field.
Hope this helps!!
Warm Regards
Upendra Agrawal
Similar Messages
-
Enable input fields in a view container
Hi,
I have inserted a view in another view's view container.
But the input fields are disabled.
can anybody tell me how to enable them?
readonly property is set to false...Hi..
This situation may arise when the attributes (mapped to the input field in the view) are mapped to the interface controller via the component controler and the IsInputElement property of the node in the interface controller is set to True.
In this case you cannot change the cardinality of the node from the component controller also.
If this is the case, try by removing the interface controller and component controller binding.
Regards,
Sayan Ghosh -
Hi,
I am Working on CRM Web UI. In one of the view of BP, I have added new Input Field. I have also Updated in Runtme Repository.it is showing Input Field over there also. But when i run this on Web UI, it is displaying only Field( not as an Input Field, it is disable and cant enter into thar). I have done all Possible parts means assigning new Role and assignment to Design Layer....so on. Can anyone help me out from this issue......................!
Thanx in advance.........................!
Harkesh DangHi Ruby,
The Field is added properly into UI but when entering a any value into that input field, then i process any event ie if i hit enter button the value disappears means it does not store in buffer.
I have debugged that and it is showing the exception CX_SY_REF_IS_INITIAL and return to main code and showing nothing.
How should i proceed further for this issue...............!
My requirement is that i have after entering this value i have to save this value.
Ok do i have to write anything for this means any method or ????????
i ran EEWB for this, though BOL entity whether this data enter into databse or not???????
There is no such method callled GET_LINE*SAMPLE..........................! in that context node...!
Thanks & Regards,
Harkesh Dang -
Dynamic enabling of input fields via radio btn in report selection screen?
Hi there!
I was wondering whether one can dynamically enable/disable input fields on a selection screen of a report-program.
Or is this only possible for selection screens in dynpro-programs?
If possible for reports - could you give an example?
Thanx a lot.
AndreasHi,
yes..You can dynamically disable and enable inputs fields in the selection screen..
Check this ex..If you press the first radio button..The second input will be disabled...And vice versa..
PARAMETERS: p_r1 RADIOBUTTON GROUP g1 USER-COMMAND usr DEFAULT 'X',
p_r2 RADIOBUTTON GROUP g1.
PARAMETERS: p_input1 TYPE matnr MODIF ID m1,
p_input2 TYPE matnr MODIF ID m2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_r1 = 'X'.
IF screen-group1 = 'M2'.
screen-input = '0'.
ENDIF.
ELSE.
IF screen-group1 = 'M1'.
screen-input = '0'.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Thanks,
Naren -
Disabling one input field if i enter text in second inputfield
Hi,
I am new to WebDynpro. My problem is very simple. I have two input fields. When i enter text in one input field i want the second input field to be disabled & Vice versa. The idea is that i want to give the user the option to enter in only 1 input field of his choice. The second input field should automatically get disabled. He can choose any input field of his choice. The second one should get disabled.
EG: Assume that there are two input fields "Item No" & "Material". The user wants do a search using any one of these parameters, but not both. So, when he chooses to do a search based on "Item No", the "Material" input field should be greyed out(disabled). And, vice versa. The user may decide to choose any one of these fields.
Please advise.This is not possible because there is no "onFocus" event on the input field.
But you could use two radio buttons R1, R2 to enable exactly one of the input fields F1, F2 at a time.
In the view designer, set R1.keyToSelect = "1", R2.keyToSelect = "2".
Bind R1.selectedKey and R2.selectedKey to a common context attribute A (type string).
If (at runtime) A contains "1", radio button R1 is selected, if A contains "2", radio button R2 is selected.
To enable input field F1 exactly if R1 is selected:
Create a calculated boolean attribute E1 that returns the boolean value ("1".equals(A)), bind property F1.enabled to E1. Do the same for F2.
Armin -
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ). -
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 -
Disable an Input field with the help of a radio button selection.
Hi Guys,
I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
AT SELECTION-SCREEN OUTPUT.
PERFORM screen_grace_on.
AT SELECTION-SCREEN ON p_grace.
PERFORM check_grace_days.
FORM screen_grace_on .
DATA: l_v_grace TYPE char2.
CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
l_v_grace = p_grace.
CLEAR p_grace.
IF rb_selgr EQ c_x.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
screen-required = 1.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
screen-input = 0.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDFORM. " SCREEN_GRACE_ON
FORM check_grace_days.
IF rb_selgr EQ c_x AND p_grace EQ 0.
PERFORM screen_grace_on.
MESSAGE e492(/ams/ramfcmess1). " Enter the number of Grace days
ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
PERFORM screen_grace_on.
ENDIF.
ENDFORM.
Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
Thank youHi,
Go through this following code,
selection-screen begin of block B2 with frame title TEXT-005.
selection-screen begin of line.
parameters: P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
selection-screen end of line.
selection-screen begin of line.
parameters: P_COLRPT type C radiobutton group RAD1.
selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
selection-screen end of line.
selection-screen begin of line.
parameters: P_PAYRPT type C radiobutton group RAD1.
selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
selection-screen end of line.
selection-screen end of block B2.
selection-screen begin of block B1 with frame title TEXT-001.
select-options: SO_KTOKD for KNA1-KTOKD modif id M4,
SO_BLART for BSIS-BLART modif id M2.
parameters: P_PAID type ZCLEAR modif id M3 as listbox visible length 20.
selection-screen end of block B1.
at selection-screen output.
loop at screen.
if P_BIRPT eq 'X'.
if SCREEN-GROUP1 = 'M2' or SCREEN-GROUP1 = 'M3' .
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
elseif P_COLRPT eq 'X'.
if SCREEN-GROUP1 = 'M3'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
elseif P_PAYRPT eq 'X'.
if SCREEN-GROUP1 = 'M2'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
if SCREEN-GROUP1 = 'M4'.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
modify screen.
endif.
endif.
endloop.
Thanks
Anil D -
I have an input field marked read-only on a form. When I run the application, select the read-only field, press enter, then Save (validating action), I get a WebDynpro exception saying that I attempted to modify a read-only context attribute. This does not happen if I select the field and press other keys (such as characters)... only when I press enter. If I make the field disabled (instead of read-only), this error is avoided because I cannot even select the input field - but I would rather use read-only because it doesn't gray out the field at runtime. Is this a bug, or am I missing something?
-DaveWhen you select the inputField and press enter the OnEnter action of the inputField is being called.
When you disable the inputField it prevents you from entering values as well as accessing it actions also.
When you try to keep you context attribute as read only and keep the input field as enabled it is similar to trying to modify a read only attribute which is not permissible.
Hence the error.
Revert for further clarifications.
Message was edited by: Noufal Kareem -
Search help unavailable in Read-only input field since EHP4
Dear Experts!
I have a problem with a Portal page since the deploy of the EHP4. The page has standard input fields with Search Helps. I needed to have the input field non-modifiable so the user would have to use the search help to get the proper information.
Prior to the EHP4 installation, I set the input field to Read Only in the WebDynpro explorer, this disabled the editing while permitting the user to use the Search Help.
Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
Do you know if there is a way to allow the search help on a read only field?
Thanks so much for your answer,
Brian Foster.>Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
This was a conscious design decision on SAP's part that disabled or read-only fields should no longer fire value help. I am aware that this situation was used in the past as you describe. It is even still used in SE80 for the Web Dynpro ABAP wizards. However usability studies showed that this often confused end users and therefore it is no longer allowed. The field must be input enabled to fire the attached serach help. -
Editable / Non editable input field CELL (individually) on ALV dynamically
Hi again,
I need more help with an issue.
I have an ALV table with three columns that is necessary put values into input field cell editors, but these cells should be editable or not depending of business logic. I've got make editable or non in entire ROW LEVEL (method set_read_only_fieldname( 'READ_ONLY' )., but ¿how can I set editable or non at individual cells?
Any idea to do that?
Regards
Edited by: vanbelal on Mar 24, 2010 3:33 PMCan you paste any example source code?
I don't know how can I bind enabled property dynamically to individual CELL, I'm setting properties to whole column.
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_columns.
if ls_columns-id = 'COLUMN1' or 'COLUMN2' or 'COLUMN3'.
CREATE OBJECT lr_input_field
EXPORTING
value_fieldname = ls_columns-id.
ls_columns-r_column->set_cell_editor( lr_input_field ).
Should I put business logic here? how can I set enabled or not on CELL, at this point I'm processing whole column!!
lr_input_field->set_enabled( abap_true ).
endif.
ENDLOOP.
Edited by: vanbelal on Mar 24, 2010 4:12 PM -
How to do validation of input fields
Hi all,
I have a rquirement to do the validation of input fields.Can anybody explain me how to go for that???Please explain in detail.U can also give me a link where i can find the tutorial for doing this.Hi Amit,
What everyone has said above is correct - in the method of your action simply test for whatever condition you need to validate for. However, the following tutorial shows you how to use Web Dynpro's Message Manager to display the messages on the screen in an easy user-friendly way:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf">Enabling Message and Error Support</a>
In addition, there are some validations that are done automatically depending on what you have your input fields set to - for instance, if you bind your input field to a date and a user enters words into the field instead of an actual date, it will automatically display an error message. To learn how to turn this feature on and off, see this tutorial
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/edf6ea90-0201-0010-7696-a68662381c12">Using Validating and Non-Validating Actions</a> -
Mouse scroll wheel do not command Photoshop input fields correctly
Hi guys,
Some general info:
1. I have Logitech Keyboard K800 - it have its own receiver
2. I have Logitech Mouse (MX1100) - it have its own receiver
3. Photoshop CS6 x64 - latest updates
4. Windows 7 x64 - latest updates
5. SetPoint - latest version
6. More about the system (please let me know if I have to post all the text from Photoshop System Info popup):
Adobe Photoshop Version: 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00) x64
Operating System: Windows 7 64-bit
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
Physical processor count: 4
Logical processor count: 8
Processor speed: 3410 MHz
Built-in memory: 16342 MB
Free memory: 9098 MB
Memory available to Photoshop: 14718 MB
Memory used by Photoshop: 90 %
Image tile size: 128K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: GeForce GTX 560/PCIe/SSE2
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 1050, right: 1680
Video Card Number: 1
Video Card: NVIDIA GeForce GTX 560
OpenCL Version:
Driver Version: 9.18.13.1090
Driver Date: 20121229000000.000000-000
Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
Video Mode: 1680 x 1050 x 4294967296 colors
Video Card Caption: NVIDIA GeForce GTX 560
Video Card Memory: 1024 MB
Video Rect Texture Size: 16384
Serial number: 92298292820550253494
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
Temporary file path: C:\Users\kckfm\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
F:\, 685.6G, 198.8G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Some other info:
You know that you can control Photoshop input fields http://screencast.com/t/ApVseKYRxz with the mouse scroll wheel. Pretty handy indeed. You just have to click on the field and spin the wheel and values changing.
The problem:
My mouse wheel cannot control the input fields in this way. I select the field, spin the wheel and nothing happen. When I spin it faster a couple of times, than the values get changing - pretty strange ha? Scrolling normally - do not change, scrolling fast change. But to scroll fast is not an option because I cannot change the values slightly with small increments... There is a bug really...
What I tried and didn't work:
1. Restarted Photoshop
2. Plug/Unplug and change different USB slots for both receivers.
3. Reintalling latest SetPoint Drivers (after uninstall I run ccleaner)
4. Put all SetPoint settings to defaults (because I programmed some mouse keys to Photoshop specifically).
5. Install earlier versions of SetPoint drivers.
6. Set my UEFI BIOS to defaults.
7. Restarted the BIOS to load all the drivers again, but still no luck
(the last think I didn't do is to reinstall Photoshop)
What I have investigated so far:
1. When I restart the computer and run Photoshop it works perfect HA! , but after a seconds it do not words again ...
2. When I stop SetPoint software, when I shut down it, it words perfect.
3. When I unplug keyboard receiver it words perfect, but I do not have keyboard:)
4. Everything works perfect in Illustrator and After effects.
5. Also I noticed that when I scroll images in CameraRaw - http://screencast.com/t/xKnn6cY9 the I have to scroll harder and spin the wheel harder to scroll - the same problem.
6. Also in photoshop and bridge scrolling here - is pretty smooth and works perfect - http://screencast.com/t/75IXMG6Zria
Maybe the most important part - When I start experiencing the problem:
I had same configuration , same everything and everything worked fine.
I installed SSD disk, reinstalled Windows (same like before), updated my BIOS to UEFI. Installed Photoshop and SetPoint and problem started.
Posted same request to Logitech, but want to ask you for help too.
Thanks!Hi all,
I found a solution.
1. Uninstall your current Setpoint Driver.
2. Run CCleaner - http://www.piriform.com/ccleaner
3. Download an older version of SetPoint - http://www.oldapps.com/setpoint.php
(I used SetPoint 6.15 (x64), I tried 6.20, 6.32, 6.50 , but no luck)
4. Now everything is all right!
Thanks!
Can somebody mark this as solved? Thanks!
SK -
Input Field not getting cleared.
Hi Fellow Abapers,
I have a peculiar problem. I have done a Module pool program as below.
PROCESS AFTER INPUT.
CHAIN.
FIELD ztrsc_histh-trptr.
MODULE user_command_0100.
ENDCHAIN.
CHAIN.
FIELD ztrsc_fibld-fidocamt.
MODULE user_fidocamt ON CHAIN-REQUEST.
ENDCHAIN.
MODULE user_command_0100.
CASE sy-ucomm.
WHEN 'NEXT'.
CLEAR ztrsc_fibld-fidocamt.
GET NEXT RECORD AND DISPLAY.
ENDCASE..
ENDMODULE.
Input FIELD ztrsc_histh-trptr is display only after Transporter Code is entered and we press "ENTER" key.
Input FIELD ztrsc_fibld-fidocamt is enabled. I enter some value "10".
i have a button as next. When the next record is shown the next record shows but although I clear FIELD ztrsc_fibld-fidocamt, in the debug mode it clears THE FIELD VALUE ztrsc_fibld-fidocamt AND THEN GETS THE NEXT RECORD AND PUTS THE CORRECT NEXT AMOUNT OF THE NEXT RECORD INTO ztrsc_fibld-fidocamt, but when it appears on the Statement FIELD ztrsc_fibld-fidocamt as per the below code.
CHAIN.
FIELD ztrsc_fibld-fidocamt.
MODULE user_fidocamt ON CHAIN-REQUEST.
ENDCHAIN.
the old value of "10" re-appears although I had cleared it in the previous Module program. What could be the reason.
Regards
Yao ChhangThanks a lot for your prompt answer. Well yes if i clear in the PBO the value gets cleared, but then i wanted to get the next records value into the value field, well the problem got solved in a much easier way i put everything into one chain endchain statement.
-
Enable screen field in WebDynpro ABAP
i,
I have WebDynpro ABAP screen where I have defined a read-only input field. Now I want to make this field input enable based on certain logic during run time.
CALL METHOD lo_el->set_attribute_property
EXPORTING
attribute_name = 'SP'
property = lo_el->e_property-read_only
value = ''.
I have written following code in method "WDDOMODIFYVIEW",
but somehow this is not working. Any Idea what is going wrong.
Regards,,,
Sunil JoyousManas,
You said,
You need to bind the read only poperty of input field with an attribute of type WDY_BOOLEAN, then based on your logic you can set the bound attribute to true or false in any method.
how do I do this ? Now I have done following
DATA : lv_wdy_boolean TYPE wdy_boolean.
lv_wdy_boolean = ''.
CALL METHOD lo_el->set_attribute_property
EXPORTING
attribute_name = 'SP'
property = lo_el_credit_note->e_property-read_only
value = lv_wdy_boolean.
but still it is not working.
Maybe you are looking for
-
Hi During data loading , I got one Error that Idoc Not received. What will be the cause of problem and How to resolve it? Regards & Thanks Durai
-
Error building source distributi​on
I get an error when building source distribution saying: "LabVIEW cannot find a file that is a dependency of a Startup, Exported, or Always Included VI. File Not Found: The file at 'C:\Program Files (x86)\National Instruments\LabVIEW 2011\vi.lib\utf\
-
Hi, I have this issue: preview often crashes. Please, help me. What can I do? This is the console summary. Thanks! Process: Preview [259] Path: /Applications/Preview.app/Contents/MacOS/Preview Identifier: com.apple.Preview Ver
-
Opportunity closing date analysis - target field empty
Hi Experts, In CRM 2007, interactive reporteing the Closing Date Analysis report does not show the targets entered in Quota Planning. I have entered quota for several sales man, also I entered opportunities for them. The expected sales volumn is calc
-
Search Help for KUNNR, depending on a certain BUKRS
Hy gurus, I have the following selection-screen PARAMETERS : p_bukrs LIKE bsid-bukrs OBLIGATORY. SELECT-OPTIONS: s_kunnr FOR bsid-kunnr. I'd like to make the search help of KUNNR dependable on the input of p_bukrs. I don't want to create any se