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

Default Billing Date in VF01

0 Likes
1,818

Hi,

For transaction VF01, is there any way to make Billing date (Screen field: FRV60A-FKDAT, Screen No: 102) as system date by default.

User should be able to change this date.

Regards,

Umesh

Hi,

For transaction VF01, is there any way to make Billing date (Screen field: FRV60A-FKDAT, Screen No: 102) as system date by default.

User should be able to change this date.

Regards,

Umesh

7 REPLIES 7
Read only

Former Member
0 Likes
1,411

HI Umesh,

You can explore transaction variant and screen variant for this purpose.

Cheers,

Sanjeev

Read only

0 Likes
1,411

Yes, with transaction variant we can set default value for any field but the value has to be constant.

Here since its system date it will change every day.

Is it possible to assign Sy-datum in transaction variant?

Regards,

Umesh

Read only

0 Likes
1,411

Looks like your only option is to write a small BDC program which will call VF01 after filling just this field with the sy-datum value.

Srinivas

Read only

0 Likes
1,411

I agree, I don't see anything in SHD0 which tells me that you can assign a SY- value to a field, looks like only static values. Can use TVARV variables here either since it is not a report transaction.

Regards,

Rich Heilman

Read only

0 Likes
1,411

One question, I understand what you want to do here, but lets ask ourselves, does this "add value". What I mean is, will having this field default to sy-datum actually improve your business, save you money, etc? All the user has to do is put the cursor on the field, hit F4, then hit F2, and that's it. Will all this extra coding really add value here. And if you do code this, will the user start asking for more fields to be defaulted in transaction programs. In most cases, these things can be solved in report programs but here we are talking about a transaction programs.

Anyone's thoughts?

Regards,

Rich Heilman

Read only

0 Likes
1,411

One other thought, take a look at transaction MB11, here you can see that the two dates at the top of the screen are defaulted to SY-DATUM. This is being done in a module of the PBO of the screen. So you see, if there are any defaults being set in transaction programs, it is either coming from this type of coding or being pass thru parameter ids.

    MKPF-BUDAT = SY-DATLO.
    MKPF-BLDAT = SY-DATLO.

Regards,

Rich Heilman

Read only

0 Likes
1,411

Hi,

The problem is in VF01 the billing date is not compulsory.

A lot of billing gets blocked because the system uses the sales order date for the 'start' of the invoicing process. If the billing manager does the billing in the new period without changing the billing date, the bill will not process to accounting.

Hence they want to make this field defaulted by system date.

I heard that in SPRO, there is something called date rules. But it has to be assigned to billing type. Any idea about this?

Regards,

Umesh