cancel
Showing results for 
Search instead for 
Did you mean: 

User exit while saving cancellation document.

Former Member
0 Kudos

22.12.2008

Hi friends,

My requirement is to check the billing dates of cancellation documents S1 and S2 (created through VF11) before saving. Can anyone tell me the userexit for the same.

Regards,

Uday

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Try this

USEREXIT_NUMBER_RANGE_INV_DATE (program RV60AFZC) is the user exit that can used

Regards

Anil

Former Member
0 Kudos

Thanks Anil.

Basically the Z-table contains period which has been closed. My requirement is when i am saving the cancelled document I should be able to check the date from z-table and either save or abort accordingly.

Regards,

Uday

Former Member
0 Kudos

Hi Uday,

give the logic to the abaper that System date should be checked with dates mentioned in the table .

Regards

Anil

Former Member
0 Kudos

22.12.2008

Ani,

Checked with the ABAPer, the structure created does not have the billing date FKDAT hence not able to compare the entered date with the period in z-table. Any user exit just before saving the billing document wherein i can check the data???? Please advise.

Regards,

Uday.

Former Member
0 Kudos

Dear Uday

Use exit: RV60AFZC

FORM USEREXIT_FILL_VBRK_VBRP

Here you will get both the dates.

Then write the comparison logic.

Also you can write the logic based on your T Code being used like VF01, VF02 or VF04 etc.

Hope this helps.

Regards

Raghu

Former Member
0 Kudos

Hi Raghu,

I did put a breakpoint at this user exit. Unfortunately when i create a cancellation document using vf11 it does not stop at this user exit. Can you please check and help.

Regards,

Uday

Former Member
0 Kudos

cancellation with reference to billing document number check the dates of the billing document created with reference system date

This logic is for one month u modify accrodingly for your requirements

If vbrk-vbtyp = 'N' or vbrk-vbtyp = 'S' .

If vbrk-fkdat0(4) <> sy-datum0(4).

Regards

Anil

Former Member
0 Kudos

Sorry dear, I skipped that you need at VF11.

Try Exits - RV60AFZZ-USEREXIT_PRICING_PREPARE_TKOMK

or better:- RV60AFZC- USEREXIT_NUMBER_RANGE_INV_DATE

Here you will get VBRK andVBRP and the date you want.

Hope this helps.

Regards

Raghu

Former Member
0 Kudos

Sorry dear, I skipped that you need at VF11.

Try Exits - RV60AFZZ-USEREXIT_PRICING_PREPARE_TKOMK

or better:- RV60AFZC- USEREXIT_NUMBER_RANGE_INV_DATE

Here you will get VBRK andVBRP and the date you want.

Hope this helps.

Regards

Raghu