cancel
Showing results for 
Search instead for 
Did you mean: 

Default Billing date for cancellation of F2 invoice

former_member666941
Participant
0 Kudos

Hello

I am trying to default the billing date to the system date in the cancellation document, but it is not working. Can someone give me advice with my customize settings? My invoice is F2 and my cancellation is S1 (ECC 6.0)

In Billing copy control (VTFF), billing ->billing, I go to the settings for F2 -> S1.

At the header screen, copying requirements and other values are blank. Do I need to maintain any values here?

At the item screen for my item (TAN), copying reqs is set to 005 (Cancellation Header), Data VBRK/VBRP is set to 011 (Bill date = today).

If anyone can give me advice on my settings, it would be greatly appreciated

Regards

Ken

View Entire Topic
Former Member
0 Kudos

Use the include program for invoice <b>RV60AFZC</b>

in the userexit USEREXIT_NUMBER_RANGE_INV_DATE you have to do the coding.

<b>For using this userexit make sure that you are not using USEREXIT_NUMBER_RANGE for assigning internal number range to invoices of different plant/company code.</b>

The following codes will make all invoices created (S1 or F2) take system date by default, you can modify it to make it work only for S1 (Cancellation invoice)

FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.

  • Example: Number range from TVFK like in standard

  • US_RANGE_INTERN = TVFK-NUMKI.

*{ INSERT DEVK906746

data : date type dats.

date = sy-datum.

vbrk-fkdat = date.

modify vbrk.

*} INSERT

ENDFORM.

former_member666941
Participant
0 Kudos

Saurabh & Ashish

Thank you very much for your kind advice on the user exit.

I was successfully able to setup RV60AFZC to set the billing date to system date.