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

PNP Selection

Former Member
0 Likes
1,033

Hi Guys/Dolls

I have a ABAP program that uses a PNP Logical database.

When the application is launched the <b>"Other period"</b> is automatically selected I want <b>"Today"</b> to be the default.

Any ideas how I can do this programmatically?

Many thanks in advance.

Raj

1 ACCEPTED SOLUTION
Read only

former_member225631
Active Contributor
0 Likes
919

Do like following.

initialization.

pnptimed = 'D'.

6 REPLIES 6
Read only

kiran_k8
Active Contributor
0 Likes
919

Raj,

Can't we use Sy-datum for this?

K.Kiran.

Read only

Former Member
0 Likes
919

Hi,

Though it appears as Other period if you wants to use the ToDays date as default in program

in the start of selection

write

if pnptimr6 = 'X'. (check whether that button for other period is correct or not)

pnpbegda = sy-datum.

pnpendda = sy-datum.

endif.

reward points if useful

regards,

Anji

Read only

former_member225631
Active Contributor
0 Likes
920

Do like following.

initialization.

pnptimed = 'D'.

Read only

amit_khare
Active Contributor
0 Likes
919

Add following in your INITIALIZATION event.

pnptimed = 'D'.

Regards,

Amit

Reward all helpful replies.

Read only

0 Likes
919

Hi

The following statement worked like magic

pnptimed = 'D'.

As a matter of curiosity how would I make the current month the default or any other selections the defaults?

Read only

0 Likes
919

pnptimed = 'M'.

Sets the default selection as current month.