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: 

Default Value for a selection screen field

0 Kudos
101

Hi Experts,

I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.

The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.

Plzz suggest a solution.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
66

Hi ,

Actualy u should set the default value at the time of selection screen, but now from the same logic try to write like

If Date is initial.

data = sy-datum.

endif.

in ur PBO

Try this.

THank

-Anmol

Hi Experts,

I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.

The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.

Plzz suggest a solution.

2 REPLIES 2

0 Kudos
66

Hi experts,

i was able to solve the issue by passing the data from PAI module. I passed the new data to the screen field from PAI module to PBO module.

Now i am able to see the new changed value.

Former Member
0 Kudos
67

Hi ,

Actualy u should set the default value at the time of selection screen, but now from the same logic try to write like

If Date is initial.

data = sy-datum.

endif.

in ur PBO

Try this.

THank

-Anmol

Hi Experts,

I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.

The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.

Plzz suggest a solution.