Application Development 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: 

User Exit

Former Member
0 Kudos

Can i have user exit for Different Billing Document Number range based on Company code / Plant Code for the same billing type

Regards,

M

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Dear Manisha,

The Following are the example for different invoice number based on Plant.

Use the Exit RV60AFZZ.

FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.

if (

xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )

and xvbrk-vkorg = '1000'.

case xvbrp-werks.

when 'AGR'.

us_range_intern = '22'.

when 'AHD'.

us_range_intern = '28'.

Endif.

ENDFORM.

Different Billing Document Number range based on Company code / Plant Code for the same billing type.

The Following are the example for different invoice number based on Plant.

Use the Exit RV60AFZZ.

FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.

if (

xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )

and xvbrk-vkorg = '1000'.

case xvbrp-werks.

when 'AGR'.

us_range_intern = '22'.

when 'AHD'.

us_range_intern = '28'.

Endif.

ENDFORM.

Regards,

Rakesh

4 REPLIES 4

Former Member
0 Kudos

check SPRO----> under SD.

this is the best place where u can find avail.User exits.

Regards

Peram

Former Member
0 Kudos

Hi

Check the following user exits/Badi's for the billing documents

V61A0001 Customer enhancement: Pricing

V60P0001 Data provision for additional fields for display in lists

V60A0001 Customer functions in the billing document

V05N0001 User Exits for Printing Billing Docs. using POR Procedure

V05I0001 User exits for billing index

SDVFX011 Userexit for the komkcv- and kompcv-structures

SDVFX010 User exit item table for the customer lines

SDVFX009 Billing doc. processing KIDONO (payment reference number)

SDVFX008 User exit: Processing of transfer structures SD-FI

SDVFX007 User exit: Billing plan during transfer to Accounting

SDVFX006 User exit tax line in transfer to accounting

SDVFX005 User exit reserves in transfer to accounting

SDVFX004 User exit G/L line in transfer to accounting

SDVFX003 User exit cash clearing in transfer to accounting

SDVFX002 User exit for A/R line in transfer to accounting

SDVFX001 User exit header line in delivery to accounting

Business Add-in

SD_CIN_LV60AU02 BADI for billing

VOR_WA_FAKTURA Billing before Goods Issue

Reward points if useful

Regards

Anji

Former Member
0 Kudos

Dear Manisha,

The Following are the example for different invoice number based on Plant.

Use the Exit RV60AFZZ.

FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.

if (

xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )

and xvbrk-vkorg = '1000'.

case xvbrp-werks.

when 'AGR'.

us_range_intern = '22'.

when 'AHD'.

us_range_intern = '28'.

Endif.

ENDFORM.

Different Billing Document Number range based on Company code / Plant Code for the same billing type.

The Following are the example for different invoice number based on Plant.

Use the Exit RV60AFZZ.

FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.

if (

xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )

and xvbrk-vkorg = '1000'.

case xvbrp-werks.

when 'AGR'.

us_range_intern = '22'.

when 'AHD'.

us_range_intern = '28'.

Endif.

ENDFORM.

Regards,

Rakesh

0 Kudos

hello Rakesh

the procedure u provided is okay

but what will be the case if the PLANT AND DOCUMENT TYPE combination are huge

and that cannot be accomadated using all possible permutation of a TWO CHARACTER NUMBER RANGE KEY

plz guide