Skip to Content
-1

SD Billing Document Number Ranges

Hello SD Guru's

My clients requirement is like he has four billing type for export he want it to have separate invoice series for each billing type but with same sales doc type .He want to select billing type manually in VF01 .(At the time of SO creation, we might not know the export type. So, we want to select the Billing Type, in VF01.) And he want each one billing type should have different number ranges .Can it be possible through Validation if yes please guide as i have not done validation in SD so please Revert.

Thank You In Advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Apr 06, 2018 at 01:12 PM

    From your above post, I prefer to have different sales area atleast for Merchant Export and Deemed Export if not for all. Coming to your query, as I said already, if the users key in the correct billing document type in VF01, then system would propose the corresponding number range which can be differentiated by Number Range assignment set in VOFA. If you ask me what would be the case if the user key in wrong billing type - my answer is users have to be educated and I won't recommend to go for any user exit for such business related functionalities.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06, 2018 at 12:28 PM

    As long as the billing document type are different and the users would select manually while creating, there won't be any issue in having different number ranges. Just try first from your end and post here still if you face any issue.

    Add comment
    10|10000 characters needed characters exceeded

    • i can use any billing doc type in vf01

      ... only if you have the corresponding copy control settings maintained and if routines and incompletion don't stop you.

      IMO, it makes sense to force the users to maintain some field in the sales document once the export type is known and use the value from this field in a routine to limit the number of mistakes by users creating billing documents with incorrect type.

      Still, how can it be that the export type is unknown at the time of order creation? Is there no possibility to determine this via some business rules or it is always on per case basis (out of the system)?

  • Apr 06, 2018 at 12:27 PM

    Hi Anklesh,

    you can use USEREXIT_NUMBER_RANGE (Include RV60AFZZ) for this. There you can assign the number range depending on any criteria. In your case, it would be FKART.

    Kind regards

    Matthias

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 08, 2018 at 04:29 PM

    Hi,

    When does the user know that in which of the following category the delivery document falls before creating an Invoice?

    Marchant Export Invoice
    Regular Export Invoice
    Export Invoice
    Deemed Export Invoice etc
    

    If the volume of Invoice creation is high then manually selecting billing type during invoice creation is not a good option to follow. It should be automated. As correctly suggested by Veselina Madam, based on field value of the sales document, you may automate Invoice creation via User Exit.

    Regards

    Kamlesh

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 08, 2018 at 07:00 AM
    Marchant Export Invoice
    
    Regular Export Invoice
    
    Export Invoice
    
    Deemed Export Invoice etc

    I am going into the fundamental design. Why 4 billing types for export?

    Maybe everything can be set up with one Export billing type. So many billing types...

    Add comment
    10|10000 characters needed characters exceeded

    • that's what problem is the user must have billing type of export only as only one sales doc type for export and 4 billing type for export so he should have pop up for only export invoice at vf01 not other one and among them he should select one .