on 07-06-2013 9:55 AM
Dear Experts,
We have define separate number range for Cancel billing document. Expect that after canceling billing document cancel billing document series number should be generate instead of original Billing document series number. But it is observed that, while canceling documents original document series number has been generate instead of Cancel billing document series number. We have already updated Cancel Billing type in VOFA.
Please help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check your logic
include: RV60AFZZ
FORM USEREXIT_NUMBER_RANGE
IF sy-tcode = 'VF01' AND vbrk-bukrs = ' '.
TABLES: ZESD_NR_DET.
SELECT SINGLE * FROM ZESD_NR_DET
WHERE fkart = vbrk-fkart
AND validfrom <= vbrk-fkdat
AND validto >= vbrk-fkdat
AND werks = vbrp-werks.
IF sy-subrc = 0.
IF NOT ZESD_NR_DET-invoice_numki IS INITIAL.
us_range_intern = ZESD_NR_DET-invoice_numki.
ENDIF.
ENDIF.
ENDIF.
MANDT | MANDT | CLNT | 3 | 0 | Client |
FKART | FKART | CHAR | 4 | 0 | Billing Type |
WERKS | WERKS_D | CHAR | 4 | 0 | Plant |
INVOICE_NUMKI | NRNR | CHAR | 2 | 0 | Number range number |
VALIDFROM | DATAB | DATS | 8 | 0 | Valid-From Date |
VALIDTO | DATBI | DATS | 8 | 0 | Valid To Date |
______________________________ | ______________________________ | __________ | ______ | ______ | ____________________________________________________________ |
Like this you have maintain on your table then check it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.