2015 Apr 17 7:46 PM
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
2015 Apr 17 8:51 PM
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,
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
2015 Apr 17 8:51 PM
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
2015 Apr 17 9:06 PM
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.
2015 Apr 18 1:20 AM
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
2015 Apr 18 3:10 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |