Document number creation...

Another thought on document numbering..
One of my customers wants to link the SO number in the AP invoice no generation.
So for ex- if the SO for the customer went as SO4005,
when the AP is released to the vendor to fulfill this order, the AP no is required to generate at AP8005-4005
Can this be done ?

As Gordon has suggested creating a UDF would be a good approach.....To Avoid any human typing errors you can even setup a Formatted Search on the UDF on the AP Invoice to display all valid Sales Orders and the user can pick the number from here.
Suda

Similar Messages

  • Need info on badi or exit before creation of Material document number?

    hi experts,
    we have two systems one is general R/3(4.6 C) and another system is GTS (NW 2004)system.
    while creation of GR a check from R/3 is made to GTS through GTS plug in installed in R/3
    and after which the document number is created...
    now i need a BADI between the check is made in GTS and material document no. creation
    where i can throw a message by checking in R/3 LFA1 table whether the vendor is SPL check or not.
    for this i am using MB_DOCUMENT_BADI and the method is MB_DOCUMENT_BEFORE_UPDATE
    where i am querying the zfields from LFA1(R?3) for SPL check happened in GTS (this is updated in some other interface)
    if in this badi if any error message is populated it is directly going for dump..
    please suggest me what can i do..
    Thanks in advance
    S.Janagar

    problem solved by myselves.
    by using popup to inform function module i am able to throw error message
    Edited by: Janagar Sundaramoorthy Nadar on Nov 19, 2009 7:01 PM

  • Creation of material document number.

    Hi All,
    In the MIGO transaction, for a Goods receipt order, the transaction is calling MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create a material document and returns material document number.
    I have created a new program that is using only the above two FMs and want to create the material document. But this thing is not working.
    I am passing all the parameters, which the FM takes when called from MIGO transaction. It is giving me a material document number which is not tracable for the current posting data in any of the tables.
    Also please tell me in which table can I get the details for the material document number other than AUFM and MSEG.
    help will be rewarded.
    regards.

    problem solved by myselves.
    by using popup to inform function module i am able to throw error message
    Edited by: Janagar Sundaramoorthy Nadar on Nov 19, 2009 7:01 PM

  • Regarding creation of document number for user defined form

    Hi all,
    we had created a form , but we don't no how to generate document number as in sap
    we created but it is not creating automatically
    after adding only it is showing that number in series
    but i need that number at the time of opening only

    hi srvanth
    Use this code in a data binding of the form to load automatically the doc numbers
        ds = oform.DataSources.DBDataSources.Add("@TODACT")
            oform = oapp.Forms.ActiveForm
            Dim reset As SAPbobsCOM.Recordset
            Dim qsr As String
            reset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            qsr = "SELECT max(T0.DocNum) as c  FROM [dbo].[@TODACT]  T0"
            reset.DoQuery(qsr)
            If reset.Fields.Item("c").Value <= 0 Then
                a = 1
            Else
                a = (reset.Fields.Item("c").Value) + 1
            End If
            oitem = oform.Items.Item("doct")
            oedit = oitem.Specific
            oedit.DataBind.SetBound(True, "@TODACT", "DocNum")
            oedit.Value = a
    this will load document number everytime you load the form at the edit box with unique id "doct"
    hope this helpful
    you have to bind this edit box with DocNum Userfield of the table.
    report back if there is any error
    Regards
    Cool Ice
    Edited by: Cool Ice on Aug 19, 2008 7:20 AM

  • Reference document number of 103 movement not seen in 105 movement documnt

    Dear all,
    I have made a material document with movement type 105 with reference to 103 document.
    After creation, the field LFBNR in the 105 document is not updated with the 103 document number.
    In all other cases the document number of 103 movements are updated in the the field of 105 document.
    Can anybody can share me if you have any information about this scenario and what would be the solution.
    Thanks....
    Hari.

    Hi Murugan,
    I am giving you more clarification.
    I have created a Good Receipt through MIGO using 103 movement.     Later I have created 105 movement with respect to 103 movement reference through release blocked stock.
    After creation of documents, when checked the document created through 105 movement there is no reference number of 103 document number found in the document number of 105 movement.
    In the table MSEG  field LFBNR is supposed to get updated with the reference number of the document created through 103 movement.
    In this case, this reference number is not updated in the table MSEG-LFBNR.
    My question is that how the document with 105 movement get posted without the reference of document of 103 movement and what would be the reason.
    Hope the question is clear.
    Awaiting for your replies.
    Thanksss....Hari.
    Edited by: Harikrishnan_sap on Nov 13, 2009 2:02 AM

  • Credit Memo request with reference to Billing Document number via IDoc

    Hi,
    I want to create credit memo request with reference to billing document number via IDocs.
    I have tried through ORDERS05, but when I process I saw that it is only processing with reference to contract  number or quotation.
    So is any other way of creating credit memo request creation with reference to Billing document number via IDocs?
    Thank you in advance.
    Regards,
    Santhi

    Please Help... it is Urgent...  Thank you

  • Document Number templates

    How Gurus
    I would like to have a document number that includes a fixed part and a changing part, for example PF/HCM/0001, i want PF/HCM/ to be fixed and then the number will always increase, how can i make this happen. I have tried checking on number assignements but i couldnt get anything meaningfull but i have a feeling that this is possible in SAP, pliz help me.
    partson

    Hi
    You can have the number assignment 3 -Mixed Number assignment with Exit so that if you pass ABC as document number it appends a number to it . But while creation , document number field cannot be left blank.
    If you want to automatically generate this number try implementing the BADI ,DOCUMENT_NUMBER01~DOCNUMBER_CHECK() .
    make sure that the number assignment for the documenttype is either blank or 1 .
    you can try something like this :
    METHOD if_ex_document_number01~docnumber_check.
      DATA : tdwa TYPE tdwa.
      DATA: subrc    TYPE inri-returncode,
            number   LIKE draw-doknr,
            number1  LIKE draw-doknr,
            new_number  LIKE draw-doknr,
            new_num TYPE string,
            lv_docnum1 TYPE string.
      CHECK sy-uname = 'MSRO'.
      CHECK tcode = 'CV01'.
      CHECK  draw-doknr = '' OR draw-doknr = '*'.
      CALL FUNCTION 'CV200_DB_TDWA_SELECT'
        EXPORTING
          pf_dokar  = draw-dokar
        IMPORTING
          psx_tdwa  = tdwa
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
      IF sy-subrc <> 0.
    Implement suitable error handling here
      ELSE.
        CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = tdwa-inumnr
            object                  = 'DOKUMENT'
          IMPORTING
            number                  = number
            returncode              = subrc
          EXCEPTIONS
            interval_not_found      = 4
            number_range_not_intern = 8
            object_not_found        = 12
            quantity_is_0           = 16.
        CONCATENATE 'ABC' '-' number INTO new_num.
        WRITE new_num TO doc_number.
        CONDENSE doc_number NO-GAPS.
      ENDIF.
    ENDMETHOD.
    This should work .
    Best Regards,
    Roopa

  • External document number already assign

    Hi,
    I am running Extended Classic Scenario.
    In my Application Monitors under <b>Purchase Order :  Backend application errors</b>
    I once in a while get an error like this:
    "<b>PurchOrder 3000002452: PO header data still faulty</b> "
    "<b>Purchase order 3000002452: External document number 3000002452 already assign ed</b>"   
    As far as I can see the PO is fully copied into R/3 and if there is made a chage to the PO, it is also replicated in R/3
    Does anyone have an idea why I am experiencing this error?

    Hi
    Which SRM and R/3 versions are you using ?
    Please give complete Error message details using RZ20 Transaction ?
    Any other dumps noticed in R/3 or SRM System, using ST22 Transaction ? If yes, give details.
    <u>Meanwhile, please look at the following SAP OSS Notes -></u>
    Note 990946 - BBPSC01: Accounting error during PO creation
    Note 815849 - FAQ: Account assignment system response
    Do let me know.
    Regards
    - Atul

  • Billing document number terminated

    Hi,
    I have a scenario wherein I am creating billing document post delivery, but the billing document number that is generated gets terminated. Hence while creating a billing document, I see a billing doc number on screen. But on going to VF03/VF02 i get a message that the billing document number is terminated. There is another message: " No handling units could be found".
    Please help..urgent!

    Hi
    Do you have any outputs with custom coded Smartforms/reports assigned to the output. If so please remove their masterdata so that they are not triggered while invoice creation, and then try invoice creation. If you are able to create teh invoice successfully now and see it, then the error is with the output programs.
    Else, check the number range assignment to the billing document number and check whether all the numbers have been utilised.
    Pls assign reward points, if this helps to solve your problem

  • ASN Reference document number is invalid error with SA

    Hi~
    We have ASN creation error with SA(Scheduling Agreement).
    Portal Menu : Delivery-Receipts and Requirements-Due List for purchasing document(Supplier)
    1. Select SA(Scheduling Agreement) line
    2. Click 'Create ASN '
    3. After enter ship from location, ASN number, Error occur
       "ASN ASN-1112, item 000001: Reference document number is invalid "
    When we execute with PO, there are no error.
    But with SA, there are always error.
    Bestregards,
    SKY

    Hi SKY
    Please make sure the external procurement releationship (SA) exists in the below transaction
    /n/sapapo/pwbsrc1 between source and destination locations. i.e shipfrom and ship to
    Also make sure that the external procurement relation ship is referenced in the transportation lane /n/sapapo/tl1
    Select your product -specific transportation lane- go to detail screen
    There you can find external procurement releationship, maintain the data
    Please enhance your master data acoringly. Afterwards you can select reference doc nomber as well as item number with the value help in the ASN creation screen. By that the reported error msg should not appear anymore.
    Or Switch off PURCH_REF_MANDATORY validation check
    i suggest you follow first method and complete the master data setup
    Best Regards
    Vinod

  • System showing Wrong Billing Date of Billing Document number

    Hi,
    We have created a Billing Document Number 2010352872 on today dtd. 18/11/2010 but system is showing its Billing Date 17/11/2010. Why??
    Please help...

    Hi,
    Billing date is different from the Creation date.
    Document creation date is the date on which the Billing was created and it would be 18th in your case and
    Billing date is the Date proposed from the Actual GI date from the Delivery Document and it was 17th In your case
    Billing date can be taken into consideration while creating the Billing documents collectively
    Billing date is the date on which the Accounting document should post
    regards,
    santosh

  • Simulation document number ranges

    Hii,
    In EASISI,if i do simulation w/o billing order at that time its pick up current number range wht i assign ,but with same tcode if I do simulation with billing order its pick up different number range,
    pls hel p me on this from where its picking other number range for woth billing order in EASISI.
    Edited by: Pranav Solanki on May 30, 2011 6:18 PM

    Hi,
    The number range selection does not depend on whether it is with a billing order or without a billing order. If you are doing a billing simulation, you always need a billing order. Only in case of budget billing creation / recalculation, SAP internally simulates the billing without a billing order.
    If you are deailng with an unmetered customer, you do not need a meter reading. Only after creating MR order by tcode EL01, the billable billing order will be generated. In case of metered customer, you need a meter reading to make the billing order billable.
    Now in SAP the simulation document number range for billing are maintained according to document category in the following path:
    SPRO-> SAP Utilities ->Contract Billing ->Billing Execution ->Automatic Billing and Simulation-> Define Document Type Category for Simulation Documents
    You assign the number range for simulated billing document in the following path:
    SPRO-> SAP Utilities ->Contract Billing ->Billing Execution ->Automatic Billing and Simulation-> Define Document Types for Simulation Documents
    And you assign the number range for the simulated document types in the following path:
    SPRO-> SAP Utilities ->Contract Billing ->Billing Execution ->Automatic Billing and Simulation-> Define Number Ranges for Simulation Documents
    Please check according to the document category which are used in your case. It might be the case that you are triggering two types of simulation billing (example: consumption and final billing) for two different customers and due to that that it is using two different number ranges.
    Hope it helps.
    Thanks.
    Nirmalya

  • Account number creation

    Hi SAP Gur's Can you explain elaborately 1.Will the location or cost center be required in the account number creation? If not required in the account number, how will we differentiate the same expenses at various locations?

    Hi
    Accoung group is created at TCode OBD4 and selected fields are applicable to to whole account group.  In addition to above  fields we may need some more fields for GL accounts within the same account group.  In such case we use/create  FSG by using  TCode OBC4 and thereby selected additional fields are assigned to specific GL accounts. 
    Usually we assign these FSG in GL account at page create/ bank/interest
    Use these additional fields (at TCode OBC4) for GL accounts to get post the document in various business areas, cost cnetres.,
    Cheers
    Srinivas

  • Serial Number Creation Time

    Hi,
    In Which table and what field is the serial number creation date and creation time stored?
    Pls help

    Hi Donna.
    I would like to suggest,
    Tables SER01 - Document Header for Serial Numbers for Delivery
    Similarly, SER02 to SER07 contains the Serial Number Information for specific module like PO, Delivery,etc.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Document number assignment can be found in the critical area (MATNRUnknown)

    Dear all,
    Pls advice me to resolve mention error which is pertaining to msg no -vf205 in sap.
    while creation of idoc associated document (article and billing) is not generating by our system. when ill see the error its showing "upper limit of number range is exceeded" but in spro in not exceeding.
    kindly advice .
    Regards
    Sunil kr.savita

    dear raju,
    we dont want to increase upper limit coz document  no generated by system is within the no. range limit .
    but when we double click on this error its showing.
    Document number assignment can be found in the critical area
        Message no. VF205
    Diagnosis
        Document number assignment for the number range object RV_BELEG in
        number range 49 is found in the critical area.
    Procedure
        You can either increase the upper limit of the number range interval o
        set the current status back. You must, however, make sure that infutur
        no number is entered more than once.
    regards

Maybe you are looking for

  • Mountain Lion & Airport Express (1st generation)

    Since upgrading to Mountain Lion, my Airport Express (1st generation) has becomed unusable. How can I still use it? Feels kinda absurd, it is still working perfectly, although old.

  • How to add combobox to gridcontrol

    hi, i am using info swings componets of jdeveloper 3.1 for developing java appicationes. how to add comboboxcontrol to gridcontrol ? any one may help jpullareddy [email protected]

  • Determine wether JPasswordField is empty

    I have the following code: if (usernameField.getText().equals(""))                     JOptionPane.showMessageDialog(null, "Must enter username & password.","No credentials",JOptionPane.ERROR_MESSAGE);                }I also have a JPasswordField tha

  • JTable with AUTO_RESIZE_OFF not resizing at all!

    I tried to find solution in other posts, but no success. I created a JTable with table.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);That�s fine, but now I can�t resize it at all while interacting with it. That�s the main code of the table. I

  • Forms not opening in IE9 , windows 7

    Hi , I am not able to load forms on windows 7 with IE9, Oracle apps version is 11.5.10.2. It not throwing any error messages, I reviewed the doc Recommended Browsers for Oracle E-Business Suite 11i [ID 285218.1] and changed settings as recommended, b