Argentina official document number range (Changing of XBLNR)

Hi All,
Working on a typical requirement.
As some of you are aware, the official document number (XBLNR) is getting generated by system based on branch, document type, document class and print character.
Is there any posibility to change this value before the Accounting document is going to be created(after I press save)?
Is there any userexits/BADIs/BTEs that will trigger before this official document number is going to be generated, so that I can change XBLNR value?
Does anybody had encounter such situation? if so please let me know.
Appreciate your help on this.
Regards,
Nanda.

Please check below function modules (J_1A_OFF_NUMBER_GET, EXIT_SAPLV60B_001)and user exits. In following function module the official document number is generated. Normally you do not change this.
Function module: J_1A_OFF_NUMBER_GET
Text
Official document numbering in Argentina
Functionality
This function module determines an Argentine official document number, it is using the input values to determine a numbering subobject for the numbering object J_1AOFFDOC and calls the numbering module NUMBER_GET_NEXT for this object and number range '01'.
Parameters
I_BUKRS
I_SNR
I_PRTCHR
I_DOCCLS
I_DATE
E_DOCNR
E_DATE
E_DATE_ERROR
E_XBLNR
Exceptions
CLASS_NOT_DEFINED
INPUT_NOT_VALID
PRTCHR_NOT_FILLED
DETERM_NOT_POSSIBLE
ERROR_NUMBER_GET
Function Group
J1AN
J_1A_OFF_NUMBERING
J_1AFONR
Short text
Printing of the last official documents numbers assigned
Description
List the last used official document numbers in the sytem for every combination of document class, branch and printing character who are self-issued (relevant for numbering) -for a certain period-
Requirements
Assignation of number ranges and numbering groups for self-issued document types
The period of time where the report looks for the documents have an initial and a final date in the screen:
u2022     The final date is obligatory field, because is the searching limit.
u2022     The initial date field it is not obligatory.
o     When it is not filled, the report looks for the documents in all the historical data until the final date, this can be high-time-consumer.
o     When the first date is filled the report looks in the interval of time -recommended-.
The resulting list present considerable changes depending on the date intenval definition
Output
The first list contains the following fields:
u2022     Reference fields: describe where the document come from (document type FI, Delivery and Billing Type SD, Material Movement MM)
u2022     KeyFields: Document Class, Branch and Printing Character.
u2022     Result: Last official number or a legend when no document is found.
The option for to make a variant of the list is available
By the button SummaryLIST is possible to access a second list with the result information by the unique possible combinations of the KeyFields (Making omission of the reference fields)
Access to a document: by clicking in the official number.
Function module J_1A_OFF_NUMBER_CHECK
No doc available
'OFF_NUMBER_GLOBAL_NUMBERING'
CALL FUNCTION 'OFF_NUMBER_GLOBAL_CHECK'
    EXPORTING
      i_fin1_param = fin1_param
      i_bkpf       = bkpf
    EXCEPTIONS
      OTHERS       = 0.
Display/change official document numbers: transaction J1A6
Next to substitution (tx OBBH) you can use Program LXVVFU01  User Exit AC Interface (Header Line).
function module EXIT_SAPLV60B_001:
FUNCTION EXIT_SAPLV60B_001.
""Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(XACCHD) LIKE  ACCHD STRUCTURE  ACCHD
*"     VALUE(VBRK) LIKE  VBRK STRUCTURE  VBRK
*"     VALUE(XACCIT) LIKE  ACCIT STRUCTURE  ACCIT
*"     REFERENCE(DOC_NUMBER) LIKE  VBRK-VBELN OPTIONAL
*"  EXPORTING
*"     VALUE(XACCHD) LIKE  ACCHD STRUCTURE  ACCHD
*"     VALUE(XACCIT) LIKE  ACCIT STRUCTURE  ACCIT
*"  TABLES
*"      CVBRP STRUCTURE  VBRPVB OPTIONAL
*"      CKOMV STRUCTURE  KOMV
  INCLUDE ZXVVFU01.
ENDFUNCTION.
Include/ userexit ZXVVFU01 (sample code):
*for Argentinean legal document numbering the field xblnr should be used for the legal document *number.
  if vbrk-vkorg = 'ARXX'.
    case vbrk-fkart.
      when 'F2  '.
*factura
        XACCIT-BLART = 'RV'.
*nota de credita
      when 'GAE '.
      XACCIT-BLART = 'DG'.
      when 'ZGAE'.
      XACCIT-BLART = 'DG'.
                     retorno
      when 'ZR70'.
      XACCIT-BLART = 'DG'.
*nota de debito
      when 'ZLAE'.
        XACCIT-BLART = 'RV'.
      when 'LAE '.
        XACCIT-BLART = 'RV'.
      when others.
    endcase.
    xaccit-xblnr = xaccit-xblnr+0(16)
  endif.
Via customizing (cross applications Cross-Application Components / General Application Functions /  Cross-Application Document Numbering ´/  Argentina  ) you can set up the document numbering.
Hope this helps!

Similar Messages

  • Document number ranges changes

    Dear friends,
    While creating the document number ranges for current year, user wrongly changed the previous year number ranges, now it is giving new number ranges for new documents which are posted in previous year, how to reset the previous number ranges with out effecting the documents which are already posted.
    regards,

    Dear,
    It is the only way to insert a correct number rang to the current year, and change the document No which posted to previous year wrong  to the correct fiscal year. then correct the "current number" to the last one posted in previous year.
    But these corrections need necesary authorizations and ABAP knowledge.
    With Best Regards,
    Gladys xing

  • Use of Official Document number in VAT Books for Italy

    Dear All,
    I would like to share with you a big doubt I have regarding the use of Official Document Number in the VAT Books. This is a requirement for an Italian client.
    According to my clients requierement they would like to manage 5 different VAT Books:
    1. Sale book (for all finished products sold in Italy, EU and outside EU)
    2. Sale book for sundry sales (CAPEX, services, other goods ...)
    3. Purchase book (for all the goods bought in Italy and out-side EU and for all the services bought in Italy)
    4. EU purchase book (for all the goods and services bought from EU suppliers and for all the services bought from not EU suppliers)
    5. EU sale (reverse charge) book (with the same numbers and amounts of the purchase book number 4)
    For every VAT Book they want the Officil Document number to be displayed. Not only that, they want the Official Document Number to end in 1 (XXXXXXX1) at the start of every natural Year for EVERY VAT Book, and have sequential numbering with no gaps.
    My intention is to use: RFKKITVATM. This is a specific VAT report for Italian Companies. The report selects documents that contain regular VAT and that have been assigned an Official Document number (ODN). You run this report to generate such a list for the current month. It selects documents with an ODN based on the invoice or credit memo posting date. You can create as many layout-variants (one per VAT Book??).
    My question is: The VAT Books are based on different VAT Codes. How can we have every single VAT Book to start with an Official Document number ending in 1? The number range will be Document type dependant and not VAT Code dependant.
    As per my knowledger, To use Official Document Numbering (ODN) in Italy we have to make a number of settings:
    - Activate ODN
    - Specify which document types the system is to assign official document numbers to.
    - Assign installation-specific function modules to events
    - Define Number ranges
    Have you faced up a similar requirement? Is this a legal requierement or is my client mixing up with another legal requierement related to this subject:  To print a sequential number and the fiscal year on each page of the reportu2019s output list. The System starts the numbering automatically at 1, as it does for each subsequent year.
    Many thanks in advance for your help.

    Hello All,
    Am facing an issue when implementing the ODN solution for Italy. I cannot replicate the ODN in field BKPF-XBLNR_ALT when posting Invoice via MIRO.
    1. I have Defined a Document Class per VAT Book
    2. I have Assign a Document Class to Document Types (in my example Document Type "RE" to Document class "43". And select "Generate Official Document Number, with date control".
    3. I have mantained Number ranges
    4. I have Assign the Number ranges to Document Class.
    5. In order to transfer the ODN from Billing docs to Accounting docs I have entered the Document Type "RV" at Billing Document Type level.
    It all works as expected except for the Accounting documents coming from Logistic Invoice verification - MIRO transaction. Document Type "RE" is used for posting but my field BKPF-XBLNR on Accounting document remains blank.
    Is there any additional step am missing?
    Thanks in advance.
    Regards,

  • Document number range not creating in Ecc 6.0

    Hi
    I have tried creating document number range in 6.0, but the change interval buttion is in display mode and not in the change mode, so not able to cretae number range. Any input.
    Urgent please help.

    Hi Sidhu,
    It could be the limit of the authorization.
    So try to check whether you have an authorizatin to change the interval or not.
    Hope it helps.

  • Document Number ranges

    Dear All,
    Pls help me to solve the issue reg document number ranges.
    We have defiend the document number ranged for two company codes. Now ths issue is.. this document number range is being used/shared by both the company codes. For ex.. Invoice 01, 02 and 03 is posted in the company code A and we have not posted any Invoice in the Company Code B. If we post the Invoice in the Company Code B, number for the Invoice will be 04. And the next invoice in the Company Code A will be 05. But i will required to change the configuration to split the document number ranges..
    Pls help me to do so.
    Thank you

    Hi,
    This thing is obvious if the document number is being shared by more than one company code then it will act the following way...
    for example :- Company code "A" is assigned with document number 01 and if you raise an entry it will take the range from 01...like document number generated will be 0000001
    Company code "B" assigned with the same document number range 01 the next entry will create the next available number that is ....0000002
    This happens b'cz its being shared by both the company codes.
    Hence you have to keep seperate document number range for both the company code to avoid this confusion.
    Please assign points.
    Zia.

  • Document Number Range problem

    Dear All,
       Previously Document number range(FBN1) for Invoice was External, then i have changed to Internal number, now the problem is that in Counter it shows 1800000126 but system is showing document number 1800000136. Pls help on this & when i am changing from Internal to External system is showing error as "Lower limit can only be changed during Initial Entry".
    Pls pls help on this.

    Dear ranjith,
    If you want to change number ranges from external to internal no ranges,
    from T-code FBN1 you can for the changes first go to ,<change status button> and make you counter no as 0 and save the intervals,
    and come to change intervals button and change the no ranges according to ur requirement.
    Assign points.
    SU

  • Create document number range 22 using internal number assignment

    Hi friends,
    now i am working upgradation project from 4.7 to 6.0. sandbox i created one Asset, After that i posed amount to that asset by using f-90.now i run depreceation in ABAF T code the bellow issue is comming
    Create document number range 22 using internal number assignment
         Message no. AA776
    Diagnosis
         Processing terminated because the document number range 22 for year 2011
         was set up with external number assignment.
    System Response
         For periodic posting of depreciation, you have to create a document
         number range with internal number assignment, since the document numbers
         are assigned from Financial Accounting.
    Procedure
         Change the number assignment for the number range 22 from external to
         internal in Customizing for Asset Accounting. See SAP Note 890976 for
         more information.
    But no ranges for that particular year having, if any changing that one it s not come edit or deleating
    ple any one help me
    Regards
    Gangadhar reddy

    Hi Gangadhar,
    after 4.6C the Internal Number Range was changed into external Number Range due to technical requirements.                                                                               
    As the error messages due to posting manual into the affected  number ranges could not be hindered in this case with ERP2005 the desicion was made to rechange to internal number range. Note 890976 describe what to do here.                             
    regards Bernhard

  • MIRO document Number range buffering problem

    Dear all,
    My MIRO document number is not following the sequence. if my first 5 numbers come in a sequence, then the next 5 numbers are not coming in between. Instead, the next 5 numbers are coming. It might be due to number range buffering problem. How to find the number range object  for  MIRO document number range?
    How to solve this?
    Please suggest.
    I will award full points.
    Thanks & Regards,
    AR

    Hii,
    You can search the Number Range object in T-Code: SNRO
    The Number Range object for Invoice document is RE_BELEG
    Go the Change Mode of the Number Range Object in SNRO, remove the No of Numbers of Buffers (by default it will be 10).
    This will resolve your issue.
    Regards,
    Kumar

  • Define document number ranges

    Hi ,
    i have problem with document number ranges .we have more company codes and each we specify the same ranges. e.g 19...for KR document for each company but there is a mistake with one of them.
    i customise no 12  year 2010 from number 1900000 but
    it should be no 19  year 2010 from number 190000
    it effects our reports because it doesn't give 19000 for KR documents,i customised no 19  from number 26000 it gives 26000..for KR documents
    may i change the ranges if we had an accounting entry?thanks your advices

    You can change he number range, and it will not generate any posting.
    But also it will not affect any existing entry, (Also take care to keep the current number status of the document number range correct, as no document can have same number.)
    Regards,
    SDNer

  • Create document number range 03 using internal number assignment in AFAB

    Hi Experts,
    Where i have to create number range to Depreciation Posting ? Please mentain Transaction code .
    I had check T Code:AS08 (No Tick is assign)  & FBN1 (Intrenal Tick is assign)
    I am doing T Code AFAB
    Folowing error coming
    Create document number range 03 using internal number assignment
    Message no. AA776
    Diagnosis
    Processing terminated because the document number range 03 for year 2011 was set up with external number assignment.
    System Response
    For periodic posting of depreciation, you have to create a document number range with internal number assignment, since the document numbers are assigned from Financial Accounting.
    Procedure
    Change the number assignment for the number range 03 from external to internal in Customizing for Asset Accounting. See SAP Note 890976 for more information.
    Waiting for reply
    Regards,
    Girish

    locked.  please read the error message and search the IMG (very easy).

  • Seperate Document Number Range

    Hi all,
    I have created a new movement type called 901 and 902 which is nothing but replication of movement types 541 and 542.
    But I would like to know if its possible for the system to generate a new document number range for movement 901.
    Thanks
    Regards,
    G. Coelho

    Hi Goodwin,
    Just a thought:
    Why dont you create a sub-contracting PO for the material which your sending out for repair? If the material code does not change after the repair, then just enter the same material number in PO material field & also in the components list. Maintain the price as 1 (currency as per your business need). Once the price is confirmed by your subcontractor, amend the PO.
    Issue the material via ME2o or MB1B with 541 movement w.r.t this PO. And when you post a GR for this PO, system will auto post a 543 mvt for the components & a 101 mvt for the PO material.
    Hope the above helps.
    Regards,
    Vivek

  • Warning percentage prolem in CO document number range

    Hi all
    I have changed the warning percentage from 5% to 20% in rk_beleg object in SNRO transaction.
    According to the warning percentage i have changed the current number of a particular transaction (KP26) above 80% thro KANK transaction.
    But when i am posting the CO Document the system is not issuing the warning message KC103 "CO document number range is almost exhausted"
    Please thro a light to check the settings in the system.
    Thanks in advance
    baskaran
    +91 94483 72362

    Hi Friend,
    we are also check the no. range consistency & their is no inconsitenacy. what happen in COBK that it update the co document number range in a sequence. but in NRIV table it skip hundred & take the above number range. it mean CO document number & Current Number status which differ in COBK & NRIV table. why it happen we coundnt understand?
    can we maintain co document number range yearly?
    Warm Regards,
    Dhananjay R.

  • AFAB:AA776 "Create document number range ## using internal number assignmen

    Good afternoon
    I ask for your guidance to see if anyone knows me that is generating errors in the transaction AFAB AA776 "Create document number range ## using internal number assignment", the peculiarity of this is that I'm in an environment that is proving to migrate V5 to V6 ranges in environment QAS is marked as external and no problems to run on v6 change in SAP itself. Test by removing the flag marking for external control and run, causing an alarm is that it does not work as in my QAS v 5 and that I should remove this flag is removed and remove it in all the years this range of numbers is that it can hurt if you make this change.
    Can anyone guide me please.
    Thanks for the support.
    good day

    Hello ,
    Kindly have a look at the below  notes that will help you resolve the
    issue :
    890976 - Converting closing report to internal doc number assgnmnt
    If note 890976 has been applied in your system already (package
    level is = or > SAPKH60005), so what you need to check is the
    following :
    In transaction FBN1, in your company code  you should see that the
    period and number range in question is ticked as external.
    Please untick the indicator for "External" and press enter. If this
    box happens to be uneditable then untick the number range for the
    previous year and press enter. All other entries will update
    automatically.
    Here is a brief explaination to why this change has been made:
    Before ERP2005(RAPOST2000 exists as of release 4.70)the number usage
    was external, because RAPOST2000 internally managed the document number
    handling. As this was not possible any more with the New General Ledger
    functionality, and as the usage of internal number ranges is much
    simpler and more efficient, we changed the number range management
    inside RAPOST2000 (and by the way also the new periodic posting report
    RAPERB2000).
    Please kindly check the attached notes 683313 for your reference.
    I hope this provides some clarification.
    regards
    Ray

  • Document number ranges in entry view and in General Ledger view

    What is the difference between Document number ranges in entry view and in General Ledger view ?
    We have new GL activated in our system , and  found that the  GL Document types ( SA) are assigned to document number ranges in entry view . What is the need to define document number ranges in General Ledger view ?

    Hi,
    Document Number Range in entry view is the document numbers which are posting in your leading ledger. You cant achieve the same document number range to the general ledger view. A General ledger view can have both Leading ledger view and non leading ledger view therefore document number range should not be kept same for both ledgers as your running document number gets skipped.
    That to some times you can only post documents to only Non Leading ledgers. Therefore a separate number ranges needs to be created for general ledger view
    Hope u understood.
    regards
    srikanth
    Edited by: boddupalli srikanth on May 21, 2009 9:28 PM

  • Document number ranging

    How to do document number ranging in B1.How to see full details of G/L document.

    Hi,
    Go to Administration > System Initialization > Document Numbering > Here you can define numbering range for default series.
    Can you explain what type of detail you want.
    Regards,
    /Siddiq

Maybe you are looking for

  • Universal analog to digital video converters

    I have an old Formac Studio converter that requires a $75 EPRON upgrade to work with the newer editions of iMovie; Therefore, I am considering just buying a new video converter to convert old video tapes to DVDs. I could only find a 2004 review, and

  • ESS in MSS for ECC

    Hi, Has anyone created iViews for ESS in MSS based on the guide "Configuration Guide for ESS in MSS" that is available in service market place?? If so please help me. We are on EP6 SP14. Can anybody post the step by step procedure for this?? Thanks

  • I bought a second hand i phone 3g im trying to put facebook app on but it tells me i need ios 4.3.

    i bought i phone 3g   but trying to put the facebook app on but it tells me that i need  ios 4.3. does anybody no what to do or a link for face book mine is 4.2.1 thanks

  • Freebsd Java path & classpath

    Hi everybody, I am new to the Freebsd env, and I am having trouble with compiling java code. Below is my system configurations. Note. I am able to compile and run the Hello World program., but when I import classes into my code I get "cannot resolve

  • Why Data Sort is required for Merge Join Transformation

    hi, In my understanding Merge Join works very similar to T SQL joins. But I am trying to understand why Sort is a compulsory requirement? I have looked into following article but not helpful http://technet.microsoft.com/en-us/library/ms137653(v=sql.1