‎2011 Sep 21 11:00 AM
Hi all
I am working on a module to create a custom input help.This is the code
PROCESS ON VALUE-REQUEST.
FIELD travel_route-fromcity__d MODULE f4_fromcity.
" ...
" this is the declaration of travel_route-fromcity__d
DATA travel_route-fromcity__d TYPE zcityname." descr of departure CITY
" zcityname is CHAR 60My problem is that while processing the module, any value put on the dynpro field is blanked. Is this correct?
If for example, user in field travel_route-fromcity__d put something, I cannot see it in module.
I cannot understand why. I think value present should be passed or anyway present in variable of the report with same name of dynpro element .
Am I missing something?
thanks
Gabriele
‎2011 Sep 21 11:03 AM
‎2011 Sep 21 11:03 AM
‎2011 Sep 21 11:29 AM
The content of field is not automatically passed to program in module pool programming.
Use below or similar code in your module to get value of field on screen.
DATA : lv_VALUE TYPE zcityname ,
lv_field TYPE char40 VALUE 'TRAVEL_ROUTE-FROMCITY__D' .
GET CURSOR FIELD lv_field VALUE lv_land1.Regards,
Pawan.
‎2011 Sep 21 11:43 AM
thank you
both solutions works. It seems to be normal for this kind of modules: debugging I saw that just before module, value in program is blanked and after modules it's restored with original value on dynpro (if not overwritten in module).. I cannot understand why anyway: I think it's a loss of time forcing developer to retrieving value in this ways, while having dynpro value directly in modules would not create any trouble.
BAH
Thanks anyway