Skip to Content
author's profile photo
Former Member

Number Range Depend On Invoice Document Type

Hi All,

i have one requirement to generate number range plant wise for commertial invoice.for this requirement i am using user exit RV60AFZZ.i created one ztable in i am maintaining plant wise number range.i have created one Zobject eg."ZTEST'using SNUM and for this object i maintain number range interval.my pbrobelm is how to pass my zobjet .

insted of standard object. i want to pass my zobject. please help me on this......

I tried with this FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.I inserted code in that but how to by pass that ob to zobject.

Regards,

Madhu.

Edited by: madhurao123 on Apr 13, 2011 11:25 AM

Edited by: madhurao123 on Apr 13, 2011 11:35 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Posted on Apr 13, 2011 at 11:03 AM

    Hi

    Where have you created the z-object? in SNRO? If you want to use, for instance, the object ZRV_BELEG as a copy of RV_BELEG, you cannot use in invoice because the use of RV_BELEG is hardcoded in includes LV60AU02 and LV60AU11 in the funcition module NUMBER_GET_NEXT. The only option that you have with the userexit is change the value of DA_NUMKI instead of the default that you have in tcode VOFA for the invoice type.

    I'm sorry. I hope this helps you

    Regards

    Eduardo

    Edited by: E_Hinojosa on Apr 13, 2011 1:04 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 13, 2011 at 02:14 PM

    Why do you need the Z-object? Why don't you just set up the range intervals in the standard object, then maintain those intervals by plant in a custom table. Set the appropriate range based on the table selection in the exit...

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Madhu,

      I suggest to create a ZZ-field with an append in VBRK. You can create your algorithm with the rule that you describe. With the usual userexit you can populate it and print it in SMARTFORM. If you can use this field in FI interface you can see the userexits in Note 301077 - User exits for the interface to accounting. If all character are numeric you can try to populate with NUMBER_GET_NEXT after built your own Z-object in SNRO, as a manner to ensure that the ZZ-field is unique.

      The danger is that field VBELN is a key in a lot of tables. Try to understand who have this need in your customer (finance people?)

      I hope this helps you

      Regards

      Eduardo

  • author's profile photo
    Former Member
    Posted on May 03, 2011 at 05:02 PM

    Solved with standard sap method.

    Regards,

    Madhu.

    Add comment
    10|10000 characters needed characters exceeded