Document number problem in add-on form

hi all,
i have developed one purchase indent form. system  document number(numbering series) some time not refresh same number assign in another document also. any idea about this issue?
thanks & regards
B.narain

Hi,
Create UDO or give form.refresh()
Regards,
Siva

Similar Messages

  • J1IEX Document Number Problem

    Dear All,
    I Capture & posted the Excise Invoice in J1IEX On 31-03-2010, For this time the Internal Number refer the Next Fiscal Year Serial. I do not know Why it will refer.
    My Number Range is  2009   -   1900000000 - 1999999999     - Prv Year
                                       2010  -    1900000000 - 1999999999
    By
    Saravanan R

    J_1IINTNUM as this is internal number for SAP internal traking purpose and its used to track when and in which period actually this tranasaction is carried out
    so sap have suggested to have number range year for J_1IINTNUM as 9999
    object J_1IINTNUM checks system time and date as it is for internal control,
    Other objects like object J_1IRG23A1, t J_1IRG23A2 etc are posting date dependent. Thats why you should have valid number range for object J_1IINTNUM in the system date
    hope this helps

  • 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

  • Document numbering series for add-ons

    At the start of each year, we want to restart the document numbering series for add-on forms along with SAP forms, starting from '1.' However, we are able to define new series in the document numbering series form for add-ons also, but this does not update the ONNM table and when we go to the form and click add the document the document number does not increment and shows as '0.' Does this have a solution? Pl. help.

    The same number by different series would always be problematic.  If it is not legal requirement, avoid such attempt. 
    Thanks,
    Gordon

  • Material document number or delviery document Number in RG 1 Register

    Hi
    When i am extracting the RG1 register, the system is not capturing  the serial no. for the line Item and there is no reference of any document in RG1, Is there any possiblitity of adding any refernce of delivery document or billing document number
    How to add serial no. and material document number of the delivery made and number in RG1 register
    Suresh

    Dear ,
    You can get the material documents number after carrying out CO11N .Documents number gets generated once you have complted the Auto GR through CO11N.Either you can goto  CO14  or choose Diplay mode -Hit Goods Movement Tab -Select the Good movement overview Line item -Goto enviornment -Diplay Order -Goto Documents Goods Movement (at Order Header ) -Select the Lay out (Total Compoenet List ) , it will diplay both the Documents Number (101 as well as 261) .
    Otherwise , from the same menu ,  you can also select the Enviornemnt - Display Stock -High light the Stock -Select Display Materials Movement from Enviornement .
    However , you can get the collective list from COOIS /COHV/CO46 /MB25 .
    Try and check
    Regards
    JH

  • How to get document number in user  created form?

    Hi All,
             I am creating a form.In that i want to maintain Document number for each form(each order)(like in sales order form (Document  No. field)).
                   Please help me to maintain the document number either manually or by system generated.If u have code example   please send.
            I tried for Manage series and all.But i couldn't get.
    Expecting ur reply soon
    Thanks
    V.Rangarajan

    Hi V.Rangarajan,
    I haven't used this code yet, but herewith an extract from the SBO SDK Training material which I think is related to your problem.
    // create a combo box for the series oItem=oForm.Items.Add("SeriesName",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
    // fill the combo with relevant series
    oComboBox.ValidValues.FillWithSeries(True, False, 0) new method
    oComboBox.DataBind.SetBound(True, "@MATH", "Series")
    // edit text to hold the numbering of the series
    oItem = oForm.Items.Add("SrValue", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oEditText.DataBind.SetBound(True, "@MATH", "DocNum")
    // get the next series number in add mode
    lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str))
      oEditText = oForm.Items.Item("SrValue").Specific()
       oEditText.String = lNum
    I don't know if this will solve your problem, but hopefully it will put you on the right track.
    Hope it helps,
    Adele

  • ADD-ON Document Number is not Increase

    Hi All,
            My Company use One Customize ADD-On . The Problem is that ADD-on From Document Number Some Time is not Increase Automatically in ONNM And NNM1 Table .Thats why when add any document the massege show_'Document Allrady exists* '_*. Becouse last DocNumber and new DocNumber is Same.When AutoKey and NextNumber is update use update Query  then document number is agin increase.
    Pleace tall me  any Permanent Soltion for this problem.

    Hi,
    There are certain problems in the add-on source code.  It may not update table by using DI API only.  Check with add-on developer to find the solution.
    Thanks,
    Gordon

  • Acrobat 11.0.07 will randomly crash when attempting to add document number to bottom of document.

    The application randomly crashes when I try to add a document number to the bottom of a pdf document that was scanned on another machine. It is inconsistent but my only work around right now is to try and get the document number on the first page, then save the file to the new file name. Then I close the document, and reopen it to try and get the document number on the remaining pages of the document. About 50% of the time Acrobat will still crash when I am doing this. It has gone from being a 30 second process to a 5 minute process.

    Varinder,
    I have created a test document consisting of 2 simple pages.  It originated as a word document with a jpg and a word table on the first page, and text and an Excel table on the second page.
    It converted to pdf fine initially. Then on saving the first line of text box added, Acrobat crashed. It did save the information however. I opened it back up, and went to add the second line of text in the same text box on the first page and again it crashed, but before I could hit the save button. After that all additional text added in text box on page one, and additional of another text box on page two had no problems. The file is attached.
    I am concerned that there is some setting I am missing to be able to read files from older versions of Acrobat, but that gets less likely as I open pdf files from 3 years ago and they appear to be fine. We are using Acrobat 9, 10, and now my 11 here. I am of the assumption that I should not be having any problems reading any of these.
    Attaching file.
    Thank You,
    Curt

  • BAPI_PO_CHANGE document number leading zero problem

    Hi experts,
    The following code clears the "Delivery Complete" flag on a list of Purchase Orders uploaded from a CSV file.
    The PO number is 9 digits long, however, in EKPO table it is stored as 10 digits (prefixed with a zero). The BAPI does not recognise the document number unless it is prefixed with a zero in the CSV file (which adds extra work for the user to create custom format in Excel to add the leading zero).
    What code is required for the BAPI to recognise the 9 digit number without the leading zero?   Perhaps the leading zero could be hard-coded into the program?
    Any advice is much appreciated.  Thanks for your time.
    REPORT  Z_MASS_REMOVE_FDI_DCI_BAPI.
    *Check if file exists
    DATA: rc TYPE sy-ucomm.
    CALL FUNCTION 'WS_QUERY'
           EXPORTING
                query    = 'FE'  "File Exist?
                filename = 'X:\STO.TXT'
           IMPORTING
               return   = rc.
    IF rc EQ 0.
      WRITE: / 'File does not exist'.
    ENDIF.
    TYPES: BEGIN OF ty_tab,
            DOCNO(10),
            ITEM(4),
           END OF ty_tab.
    DATA : it_tab TYPE STANDARD TABLE OF ty_tab,
           wa_tab TYPE ty_tab.
    START-OF-SELECTION.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename = 'X:\STO.TXT'
    *     FILETYPE = 'ASC
          has_field_separator = 'X'
    *     HEADER_LENGTH = 0
    *     READ_BY_LINE = 'X'
    *     IMPORTING
    *     FILELENGTH =
    *     HEADER =
          TABLES
          data_tab = it_tab
          EXCEPTIONS
          file_open_error = 1
          file_read_error = 2
          no_batch = 3
          gui_refuse_filetransfer = 4
          invalid_type = 5
          no_authority = 6
          unknown_error = 7
          bad_data_format = 8
          header_not_allowed = 9
          separator_not_allowed = 10
          header_too_long = 11
          unknown_dp_error = 12
          access_denied = 13
          dp_out_of_memory = 14
          disk_full = 15
          dp_timeout = 16
          OTHERS = 17.
    END-OF-SELECTION.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ 'DOCUMENT: ',
      wa_tab-DOCNO,
      ' ITEM: ',
      wa_tab-ITEM.
      WRITE: / '-----------------------------------------------------------------------'.
      DATA: s_header TYPE bapimepoheader,
            s_headerx TYPE bapimepoheaderx,
            s_item TYPE bapimepoitem,
            s_itemx TYPE bapimepoitemx,
            i_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
            i_extension TYPE bapiparex OCCURS 0 WITH HEADER LINE,
            s_bapimepoheader TYPE bapimepoheader,
            s_bapimepoheaderx TYPE bapimepoheaderx,
            s_bapimepoitem TYPE bapimepoitem occurs 0 with header line,
            s_bapimepoitemX TYPE bapimepoitemX occurs 0 with header line,
            wa_message TYPE c LENGTH 100.
      s_bapimepoheaderx-po_number = wa_tab-DOCNO.
      s_bapimepoheader-po_number = wa_tab-DOCNO.
      s_bapimepoitemx-PO_ITEM = wa_tab-ITEM.
      s_bapimepoitem-PO_ITEM = wa_tab-ITEM.
    *Remove Delivery Complete Indicator (DCI)
      s_bapimepoitemx-NO_MORE_GR = 'X'.
      s_bapimepoitem-NO_MORE_GR = ' '.
      append s_bapimepoitem.
      clear s_bapimepoitem.
      append s_bapimepoitemx.
      clear s_bapimepoitemx.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder = wa_tab-DOCNO
        TABLES
          return        = i_return
          poitem        = s_bapimepoitem
          poitemx      =  s_bapimepoitemx.
    *Message types: S Success, E Error, W Warning, I Info, A Abort
    *Supress all Warning Messages
    DELETE i_return WHERE ( TYPE EQ 'W' ).
    *Commit only if no errors have been returned
      read table i_return with key type = 'E'.
      if sy-subrc ne 0.
        COMMIT WORK AND WAIT.
      endif.
    *Display Return Messages on Screen
      LOOP AT i_return.
        WRITE: /   'RETURN MESSAGE: ',
        'ID: ',
        i_return-id,
        ' TYPE: ',
        i_return-type,
        ' NUMBER: ',
        i_return-number,
        i_return-message.
      ENDLOOP.
      WRITE: / '-----------------------------------------------------------------------'.
      refresh : s_bapimepoitem,s_bapimepoitemx.
    ENDLOOP.

    hi,
    Use the conversion exit to make it as 10 digit char CONVERSION_EXIT_ALPHA_INPUT.

  • Add FI document number to message M8 060 (MIRO)?

    Hi
    We have a user request to have the FI document no. added to the message when posting an invoice. The standard message shows only the MM document.
    The user claims that it took 7 minutes to change it at her previous employer, but I can't see any way to change this without defining a new message and changing the code used by MIRO to look up the document number and issue the new message instead of the standard one. This would clearly be overkill.
    Is there an easier way?

    Just follow these steps:
    1) Transaction "su3"
    2) Pane "Parameters"
    3) Add a new line with these values:
    "Parameter ID": ivfidisplay
    "Parameter value": X
    If you need to do this for another user, you must use transaction su01 instead.
    The parameter was in our old 4.6c and is in our new ECC 6.0, so unless you are on a very old version I'm pretty sure you have it as well:-)

  • 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

  • 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

  • In Forms Unable to print output for particular billing document number

    Hi All
      I am working forms
       Here I am Unable to print output for particular billing document number, I am getting Error message like 'Graphic cannot be displayed'. 
    can anybody tell me the solution
    Regards

    Hi Chinna,
    Please check that the billing document may be using different logo and which may not be avilable or not fitting in the window. (May be graphic is over flowing the window dimensions)
    Lanka

  • Add sales document number in a  Billing due list(VF05)

    Hi Experts,
    Like the thread There is a requirement to have the Billing due list(VF05) with the VAT numb
    There is a requirement,to have the Billing due list(VF05)-Out put with the sales document number VBAK-VBELN and customer purchase order number VBKD-BSTKD.
    I want to apply the OSS note 398575:
    Replace dummy in the structure VKDFIZ field with  VBELN  and BSTKD .
    in Table T180A , add two new data record:
                                  TBNAM = 'VKDFIF'
                                  FDNAM = 'BSTKD'
                                  ZUART = 'D'
    But my question is : for the record
                                  TBNAM = VKDFIF
                                  FDNAM = 'VBELN'
                                  ZUART = 'D'
    The fileds VBELN already exist in the structure VKDFIF and  don't designate the sales document number.
    What can I do to designate the sales document number added in the structure VKDFIZ ????
    Regards
    Marie-Madeleine

    Hi
    The Tcode VF05 is not billing duelist but it is the list of billing documents. For including the fields you want, please go through the OSS note 485928

  • Add Sales Document Number in FBL5N

    How can we add the Sales Order Number in FBL5N. Although we have fields Sales Document Number and Order field but they are not populating.

    I write the following code to get the sales order in function module .
    Firt Try
    FUNCTION ZSAMPLE_INTERFACE_00001650.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    *"  EXPORTING
    *"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    TABLES : VBRP.
    SELECT SINGLE VBRP~AUBEL INTO E_POSTAB-ZSORDER* FROM VBRP WHERE VBRP~VBELN = I_POSTAB-VBELN.*
    Initialize Output by using the following line -
    E_POSTAB = I_POSTAB.
    I addZORDER field in RFPOSX structure and first I use the RFPOSX in into clause but it gives me the error component ZSORDER does not have component ZSORDER although I followed the instruction. (Is append is same thing like I did)
    Second Try
    I change ZSORDER with AUFNR which is RFPOSX FIELD  then ift gives me error report/program statement missing.
    SELECT SINGLE VBRP~AUBEL INTO E_POSTAB-AUFNR* FROM VBRP WHERE VBRP~VBELN = I_POSTAB-VBELN.*
    ENDFUNCTION.

Maybe you are looking for

  • How to get rid of "Sent By" in outgoing mails

    I've got IMAP set up on apple mail with gmail I forward all my domain.com emails to my gmail I've added my domain.com email using the method so that I can send emails out via my domain (http://5thirtyone.com/archives/862#comment-52819) When I send my

  • How to stop imp

    Hi, I launched imp to importe a table, actually enough rows are imported but in commande box of win2000pro where I issued imp commande , it does not go on and stopped on import table xxxx how can I stop import ? Just ctrl+c, or kill, or something els

  • LINQ: Update a column with auto increment value

    Hi All, Greetings. I am very new to C# (though with lot of experience in VC++). Now a days, I am engaged in a C# project where I need to deal with ADO.NET DataTable and related classes. I am stuck up in a scenario as follows: I have a data table (of

  • Error when installing Lr5

    I try to download and install Lr5 but the software cannot be installed properly. It said " Installation failed. Errors encountered during installation(7)". PS, AI and Acrobat were downloaded and installed smoothly. I tried to delete the patchfiles an

  • Slideshow resolution not as good as in iPhoto

    I wanted to do a little more with a slideshow than iPhoto would allow. After importing rather large files (4meg) into FCP set field dominance to none, tried to avoid compressing ... set compressor to none. Not for TV so set square pixels for monitor