on 09-16-2013 5:51 AM
Hi Experts,
I have a webdynpro ALV report. In the ALV table I have a field called CARRIER and it is modifiable.
CARRIER field is linked TDLNR field in dictionary. TDLNR has domain LIFNR. LIFNR in turn has value table LFA1.
My requirement is when the user enters a invalid value in CARRIER field then it should return a error message because it is not available in the value table LFA1. But it is not doing that. How can I achieve this?
Thanks
Gopal
Hi Gopal,
use method DATA_CHECK in interface IF_SALV_WD_TABLE_SETTINGS or use another method from same interface CELL_ACTION_EVENT.
This are associated with class CL_SALV_WD_CONFIG_TABLE.
Hope this will solve your req.
Regards
Ravindra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in the OnChnage/OnEnter event of the input field, call the method which will verify the text typed by the user.
if its valid, allow navigation i.e. user to proceed.
Else, display an error and highlight the row.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gopal,
just read the entered input using code wizard.after that write select query
select single field lifnr from LFA1 into WA where lifnr = readed value.
if WA is not initial.
then paste the following code.
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager
.
* report message
CALL METHOD lo_message_manager->raise_error_message
EXPORTING
message_text = 'ENTERED VALUE IS NOT AVALIABLE ON THE TABLE LFA1'.
* params =
* msg_user_data =
.
endif.
Thnaks & regards
jayaprakash T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.