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 immediate value update

Former Member
0 Likes
630

Hi,

I need to populate a value for a field automatically when the user inputs the date of another field.

I am able to achieve this if I press ENTER, so that PBO triggers and I can populate the other field with the required value.

Suggest me a solution so that without pressing ENTER I need to achieve the scenario.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

Hi,

You can achieve this by using the function module F4_DATE_CONTROL on POV module so that once you press F4 the date pop-up comes and you can get the selected date under the export parameter SELECT_DATE.

After getting the date for a particular field, use DYNP_VALUES_UPDATE to update the other field of the screen so that without pressing ENTER, i think you can achieve your requirement.

3 REPLIES 3
Read only

Former Member
0 Likes
571

Hi,

Either press enter or place a button so that u can write code in sy-ucomm while pressing the button.

Else use the event AT SELECTION-SCREEN ON VALUE-REQUEST.

Thanks,

Mohanraj.N

Edited by: MohanrajNatesan on May 22, 2009 9:30 AM

Read only

Former Member
0 Likes
571

Hi

Please find below code.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR XXXX " first field

DATA :it_dynpread TYPE TABLE OF dynpread,

wa_dynpread TYPE dynpread.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

request = 'A'

TABLES

dynpfields = it_dynpread.

READ TABLE it_dynpread INTO wa_dynpread WITH KEY fieldname = 'S_CAT-LOW'.

yyyyyy (2ndd field )= wa_dynpread-fieldvalue .

Read only

Former Member
0 Likes
572

Hi,

You can achieve this by using the function module F4_DATE_CONTROL on POV module so that once you press F4 the date pop-up comes and you can get the selected date under the export parameter SELECT_DATE.

After getting the date for a particular field, use DYNP_VALUES_UPDATE to update the other field of the screen so that without pressing ENTER, i think you can achieve your requirement.