Skip to Content
0
Former Member
Feb 23, 2011 at 11:11 AM

Changing the contract start date to display mode in va41 and va42

211 Views

Dear all,

We have a requirement of changing the contract start date to display mode in va41 and va42 .when a contract is created based on a existing contract the start date must be set to display mode but when a new contract is created the start date must be in change mode.

I have checked the include LV45WFZZ. The code is as below:

if sy-tcode = 'VA41' or sy-tcode = 'VA42'.

If screen-name = 'VEDA-VBEGDAT'.

screen-input = 0.

endif.

endif.

But now the start date is in display mode in both the cases.

Kindly suggest how to check if the contract is a new or is based on existing contract in this include or should the check be performed in any other exit.

Thanks in advance,

Neela