Application Development 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: 

change default date in form programming

Former Member
0 Kudos

Hi guys,

i am developing a module pool program. In this program i populate the date field with sy-datum in the PBO block. I want user to able to change the date. hence i set the property as input for the text field. Now when i enter all the fields in the form and click on the calculate button on my form. the date changes back to the system date i want to remain as the date entered by the user. plz help me on the same

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try only populating the field if it is initial.

Rob

5 REPLIES 5

Former Member
0 Kudos

Hi,

Instead of passing the default date value in PBO try to pass in LOAD OF PROGRAM event of the module poo.

0 Kudos

i am not sure of LOAD OF PROGRAM event in module. I am just aware of PBO, PAI, POH, AND POV

Former Member
0 Kudos

Try only populating the field if it is initial.

Rob

Former Member
0 Kudos

that's because the flow of the program executes PBO ->PAI -> PBO (again...and in this step you are passing the sy-datum again....add a break-point in the module and you will see)

try to use the INITIALIZATION event .

regards, sebastian

Former Member
0 Kudos

Thanks for the helpful response. I could resolve the issue with your helpful advice and help.