Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

processing field on value-request

Former Member
0 Likes
649

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 60

My 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

1 ACCEPTED SOLUTION
Read only

former_member209703
Active Contributor
0 Likes
614

Use DYNPRO_STRING_READ or DYNP_VALUES_READ to get this value.

3 REPLIES 3
Read only

former_member209703
Active Contributor
0 Likes
615

Use DYNPRO_STRING_READ or DYNP_VALUES_READ to get this value.

Read only

Pawan_Kesari
Active Contributor
0 Likes
614

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.

Read only

0 Likes
614

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