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: 

BILLING USER EXIT PLEASE HELP

Former Member
0 Kudos

I am implementing an enhancement in include program rv60afzz.in user (VF01)exit .."NUMBERING_RANGE_INTERNAL" OR SOMETHG LIKE THAT.

the requirement is that when ever billing docs is saved ..the numbering FOR BILLING DOC . must be taken from the combinations of plant and billtype specific.

I HAVE CREATED A ZTABLE WITH FIELDS PLANT AND BILLTYP AND HOW TO GET THE COMBINATIONS ...

LIKE ...EXAMLPLE

PLANT BILLTYP RANGE

1000 F2 1000- 20000 " FOR THE THIS BILL DOC. BE IN THIS

RANGE OF 1000-20000

2 REPLIES 2

Former Member
0 Kudos

Hi,

I am posting the 'Live' code here:-


* w_doc_type has been defined as Char(1) it is = 1 For INV 2 For Debit Memo
* 3 for Credit MEmo
* Znova_parm is a parameterfile with key MAin_key & sub_key
*znova_parm_value1 has been maintained with 2 alpha char 
*The Idea of using znova_paem is if you want to add any new series, e.g.
*if there is a new plant added, no need to change the pgm, just
* add an entry in znova_parm
Concatenate vbap-werks w_doc_type into w_sub_key.
* Get the series for the Plant
Select single * from znova_parm
       Where ( main_key = sy-repid )
       And   ( sub_key = w_sub_key ).
If sy-subrc NE 0.
  Message e000(znov) with 'Please maintain the series for'
        vbrp-werks w_doc_type.
Else.
   w_series = znova_parm-parm_value1(2).
Endif.
*
* There is a possibility that 'Z1' series defined in Znova_parm is not
* present in the object 'RV_BELEG'. Validate it
*
Translate w_series to Upper Case.
*
CALL FUNCTION 'NUMBER_GET_INFO'
  EXPORTING
    nr_range_nr              = w_series
    object                   = 'RV_BELEG'
*   SUBOBJECT                = ' '
*   TOYEAR                   = '0000'
* IMPORTING
*   INTERVAL                 =
 EXCEPTIONS
   INTERVAL_NOT_FOUND       = 1
   OBJECT_NOT_FOUND         = 2
   OTHERS                   = 3
          .
IF sy-subrc <> 0.
  Clear w_x10.
  Concatenate vbrp-werks w_doc_type w_fityp into w_x10 separated by
   space.
  Message e000(znov) with 'Invalid Series:' w_series
        'Maintained Against..' w_x10.
ENDIF.
*
 US_RANGE_INTERN = w_series.
*

I hope this helps,

Regards

Raju Chitale

Former Member
0 Kudos

hi these ar the following usexits and BAdis... trigger in VF01/VF02

Enhancement

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 (transfer to accounting)

SDVFX005 User exit: Reserves (transfer to accounting)

SDVFX004 User exit: G/L line (transfer to accounting)

SDVFX003 User exit: Cash clearing (transfer to accounting)

SDVFX002 User exit for A/R line (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

<b>reward points</b>

regards