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

Module pool programming without pressing "Enter" button Field values not capturing

Former Member
0 Likes
5,836

Hi all.

  I have a module pool program, in that having amount as a field with type WRBTR. I am entering amount in that field and doing some actions , the amount value is not capturing in that field without pressing Enter command.

I am using "'DYNP_VALUES_READ'" Function module to read that value, if the user enters 56,00 instead of 56.00 while assigning the value back to the screen field its dumping like CONVT_NO_NUMBER. Can you help on this issue

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,565

Hi,

When you build your own module pool. You don't need to read the values from screen with a FM.

Declare your variables, tables, with the same name you create them on the screen layout.

Declare your amount variable as a currency field of a table and flag the dictionary reference.

Regards,

Thales Schmidt

Hi all.

  I have a module pool program, in that having amount as a field with type WRBTR. I am entering amount in that field and doing some actions , the amount value is not capturing in that field without pressing Enter command.

I am using "'DYNP_VALUES_READ'" Function module to read that value, if the user enters 56,00 instead of 56.00 while assigning the value back to the screen field its dumping like CONVT_NO_NUMBER. Can you help on this issue

4 REPLIES 4
Read only

Former Member
0 Likes
2,566

Hi,

When you build your own module pool. You don't need to read the values from screen with a FM.

Declare your variables, tables, with the same name you create them on the screen layout.

Declare your amount variable as a currency field of a table and flag the dictionary reference.

Regards,

Thales Schmidt

Read only

0 Likes
2,565

I declared my variable Amount as BSID-WRBTR.

And i am mapping with the same field in screen  and format as "CURR" and reference field also i gave. Still the value s are not capturing with out pressing enter.

http://

Read only

0 Likes
2,565

Hi madhu, that's how ABAP works, to "capture" the values you need to trigger a PAI event, this is done with ENTER, pushing a button or using the vertical scroll.

You CAN'T capture the value until this is done, there is no on_change event of any kind.

There is a reason for this when you are in a dynpro without doing nothing you are not using any server resource, when you trigger a PAI event in that moment the program execute the PAI and then the PBO, and release the server resources until a next event is trigger, when you have a system that can be used by hundreds or thousands of people you only use the server resources when the users are really interacting with the program.

Hope it helps you.

Regards

Read only

VenkatRamesh_V
Active Contributor
0 Likes
2,565

Hi Madhu,

TRY.

In Screen painter after  process  after input

LOOP AT IT_DIS.

FIELD WA_DIS-WRBTR MODULE AMT ON CHAIN-REQUEST.

ENDLOOP.

In ABAP Editor.

MODULE AMT INPUT.

" Logic

ENDMODULE.     

Code will triggers without pressing enter key.

Hope it helpful,

Regards,

Venkat.V