cancel
Showing results for 
Search instead for 
Did you mean: 

Back date should not be taken in billing date field..

Former Member
0 Kudos

Hi all sap experts,

When i was creating billing, system takes Actual GI date as billing date and also giving option to enter billing date, when i tried to enter billing date, system was also taking back date in billing date field but i want to do that only future date should be taken and back date should be stopped..so how it is possible please replay me and solve my problem..

Regards

Manish

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Write thecode in the Include RV60AFZC

FORM USEREXIT_NUMBER_RANGE_INV_DATE.

We have done the same to restrict the future billing date by the following code.

IF KOM-FKDAT EQ 0.

KOM-FKDAT = SY-DATUM.

ENDIF.

IF KOM-FKDAT GT SY-DATUM.

Message 'Billing date can not be future date' type 'E'.

ENDIF.

With Regards

Azeez.Mohd

jignesh_mehta3
Active Contributor
0 Kudos

Hello Manish,

Use T-Code - VTFL (Copy Control - Delivery to Billing)

Select the conbination of Delivery type & Billing Document Type.

Go to Item Details & select necessary Item Category Type

Go to the details screen & in Data VBRK/VBRP enter routime no. 11 (Bill. date= Today)

Hope this helps. .

Thanks,

Jignesh Mehta

Former Member
0 Kudos

HI, Jignesh,

Thanks for suggesting that method but i already tried it and it doesn't work.. if any method or with help of abaper if we can do it, pls suggest me..

regards

Manish

Former Member
0 Kudos

Hi Navini,

You can create anew routine in the requirement tab in VOFM transaction with the help of abaper .

Put a validation check in the routine that it should not allow you create the billing document in the past date.

Regards,

Krishna O

Former Member
0 Kudos

Hi

Kindly create a copying routine in the copy control configuration (VTFL)

REgards

Damu