Regarding next maerial number

hi guys,
             i have a report which will display next material number after giving the material number range  and no. of hits in selection screen. the output should start with the lower value which was given in select-options.instead of this the output is showing from the starting value which is there in internal table. for ex : if i enter the matnr range as FIN299 TO FIN999  and 10 no of hits,then my output should show as fin299.................to fin 308.but instead of this i am getting fin102...............to fin112.bcz in my internal table(t_final) the value is starting from fin102.plz provide a solution asap.very urgent.its a support issue.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 15, 2008 2:56 PM

Hello Mahesh,
In the selection screen u r entering the range of the material right !!!
So u have use that range in the select command.
Hope you understood now.
Cheers,
Vasanth

Similar Messages

  • Find next open number

    In SAP R/3 you can, when creating an object, let the system "find the next open number" or "find number after last assigned".
    Is it possible to make this function in MDM?
    When creating a record I suspect an suggestion for the value of one of the fields. Auto ID is not an option because the user must be able to overrule the suggested value.

    Hi,
    You can try this workaround
    1. Create the field of type Auto ID
    2. Create one more field say RecordID and make it unique
    3. Create one Assignment on the field RecordID and select the Auto ID field name in assignment expression i.e. assign the value of Auto ID field to this field.
    4. Create one workflow with only one Assign step and pass the assignment created in step 3. Launch this workflow on Record Add.
    By this, you will get one unique field which gets automatically populated on addition of record and is still editable for the user.
    Regards,
    Jitesh Talreja

  • How to get next series number for user form?

    Hi,
    I am using UDO for my form with Manage series inorder to maintain automatic documnet number.
    Like sales order screen if u open the form it should display with next generated document number.
    In my form it is not displaying the next number
    I want to display primary as selected and next series number.Please help me.
    I have used the following code
    If (FormUID = "FM_PURCHASEINDENT") And (pVal.ItemUID = "SerName") Then
                    If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = True) Then
                        Dim oForm As SAPbouiCOM.Form
                        Dim oComboBox As SAPbouiCOM.ComboBox
                        Dim oEditText As SAPbouiCOM.EditText
                        Dim str As String
                        Dim lNum As Long
                        oForm = SBO_Application.Forms.Item(FormUID)
                        oComboBox = oForm.Items.Item("SerName").Specific
                        str = oComboBox.Selected.Value
                        'SBO_Application.MessageBox("Selected Series: " & str)
                        '// The following method provides the next value of the series
                        lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str))
                        oEditText = oForm.Items.Item("SrValue").Specific
                        oEditText.String = lNum
                        oForm.Update()
                    End If
                End If
    Regards
    Jambu

    Hi,
    This is a little example for UDO with series (www.expertone.es/ficheros/SIMPLE_UDO.rar)
    Code in Vb6.0
    <b>Public Sub Load_UDO(ByRef rsbo As SAPbouiCOM.Application)</b>
    Dim oFormParams As SAPbouiCOM.FormCreationParams
    Dim oForm As SAPbouiCOM.Form
    Dim oCombo As SAPbouiCOM.ComboBox
       Set oFormParams = rsbo.CreateObject(cot_FormCreationParams)
       oFormParams.XmlData = DameXML(App.Path & "XMLEXO_UDO.srf")
       Set oForm = rsbo.Forms.AddEx(oFormParams)
       'Load series in combo
        Set oCombo = oForm.Items("EXO_CBO1").Specific   
        <b>oCombo.ValidValues.LoadSeries oForm.BusinessObject.Type, sf_Add</b>
        oCombo.Select 0, psk_Index
         RellenarNumDoc rsbo, oForm      
        oForm.Visible = True
    End Sub
    <b>Private Sub RellenarNumDoc(ByRef rsbo As SAPbouiCOM.Application, ByRef rForm As SAPbouiCOM.Form)</b>
        With rForm.DataSources.DBDataSources("@EXO_OUDO")
            .SetValue "DocNum", .Offset, CStr(rForm.BusinessObject.GetNextSerialNumber(rForm.Items("EXO_CBO1").Specific.Selected.Description))
        End With
    End Sub
    Private Function DameXML(ByVal vsRuta As String) As String
    Dim xmlDoc As New MSXML2.DOMDocument
       xmlDoc.Load vsRuta
       DameXML = xmlDoc.xml
    End Function

  • How to get the Next free Number for External Number Range

    Hi ,
    To get next free number for External Number Range, I have used NUMBER_GET_NEXT Function module.
    It is throws the exception like  NUMBER_RANGE_NOT_INTERN.
    How can i get the next free number for external number range object. And How to update the Current Number for External Number Range Object
    Scenario.
    Call Function module              NUMBER_GET_NEXT
    Import Parameter.
    NR_RANGE_NR : 02
    OBJECT            : RV_BELEG
    QUANTITY         : 00000000000000000001
    I am getting Exception : NUMBER_RANGE_NOT_INTERN
    Thanks in advance.
    Regards
    Ram

    Hi Anand,
    The SAP system issues the numbers for internal number range intervals automatically. This number is between the from-number and the to-number. The last number issued is logged in the current number level.
    You need to enter a number for external number issue. The number you enter needs to be between the from-number and the to-number. For external number ranges, the number number used is not logged. So the next available number is not possible in a straight forward way.
    Only for Internal number ranges, the FM NUMBER_GET_NEXT can get the next available number.
    Hope this helps.
    Thanks,
    Balaji

  • Next Check Number 8.8

    Experts,
    I have setup the next check number in the House Banks, but when I do an outoing payment the number for that check account in the payment means is 0.
    Any help would be appreciated,
    Marli

    Hi,
    Please check Note No. :   903135 explaining the reported issue.
    Relevant part of the Note :
    All the check numbers will automatically be entered as '0', i.e. the number is not assigned based on the "Next Check Number" field in the House Bank accounts definitions. The check will be saved with the number  '0' as long as it is not printed. The check will become valid just after printing
    Kind Regards,
    Jitin Chawla
    SAP Business One Forum Team

  • Determine next delivery number

    Is there an FM that will give the next delivery number? thanks.

    first u have to get the number range object of this delivery.
    NUMBER_GET_NEXT
    check the same in ur SPRO , or put a break-point-->
    <b>FV50XF0B_NUMMERNVERGABE_LIEFER</b> line no-52
    Regards
    Prabhu

  • How to show the next available number to populate

    I have a page which displays all of my columns.
    My second column are numbers. If the 3rd column is filled in, the data on all of the columns will be displayed including the 2nd column on this page.
    If the 3rd column is not filled in yet, only the next number of the 2nd column will be displayed somewhere on the page together with the rest of the data mentioned above. This number will be the next higher available number, or in other words, the next lowest number without something filled in for the 3rd column.
    So when I click on this number, I can go to the next page to at least populate column 3. Thanks.

    Let me see if I can explain better.
    I have a table with all fields displayed including the edit icon on the left.
    Let me see if I can illustrate this. Let the capital letters be columns of this table.
    And let the data be as shown under the lettered columns. Here is a hypothetical sample of the data. The ...... is just to make the spacing happen for the columns to line up in this example
    ..... A B C D E.........F
    edit 1 7 .c .d e 01-MAY-2008
    edit 1 8 .c .d e 02-MAY-2008
    edit....9...........-- would like to display this line
    I would like to display the next available number for column B (in this case number 9 since it is after 8) for me to be able to edit by filling in data in the rest of the columns.
    Now, for column B, I have number 9 all the way to say, 1000 available in the database but with no other data, just the number itself existing. Because these numbers (like 9) in column B have no data yet in colunm C, it will not be displayed in the table because there is no data to look at.
    So after I can add data to column C and maybe other columns, then when I apply changes will #9 and its data show up in the table after data 8 and then #10 will show up as the next number available to receive data where 9 use to appear.
    I hope this clarified it.

  • Changing the next spool number

    Hello,
    Can anyone tell me in what transaction I control the next spool number that
    will be created when a job is sent to a device in SAP R/3 ?
    Thanks,
    Mark

    Hi
        Please CheckT Code  SPAD and SP01 for this
    Rewards point if helpful
    Thanks
    Pankaj Kumar

  • I have a calculation in a5 and need the answer rounding up to the next whole number

    I have a calculation in cell a5 and need the answer rounding up to the next whole number

    Hi,
    I am using numbers
    A1 x A2 = A3       A4 is A3 divided by 2.88.  Indeed to round up the answer in A4 to the next whole number
    Eg 4.5 x 3.7 = 16.6 sq meters as an area , divided by 2.88 ( area of 1 board) = 5.78 boards so I need to buy 6 and quote for 6
    Cheers

  • Can we specify the next screen number with a variable?

    hi
    can we specify the next screen number with a variable?

    yes, dynamicaly u can. i.e using set screen or call screen.
    but u cant obviously set a variable in the attributes.

  • Next Check Number changed

    Hello Experts!
    The customer Next Check Number suddly changed
    means. it was suppose to be '60321' but now it is '60323'
    and if we check the there is two cheks 60321-60322 for erlier dates (01/07/10 and 24/02/10)
    Your help please!
    Thank You!

    Hi,
    If I understand correctly, when you did a search on the skipped check numbers, you saw they were already used on prior payments.
    Check numbers can only be used once so you need to confirm whether these checks are valid - i.e. were they cashed? was a bank reconciliation done to show these checks cleared or are they still showing as unreconciled?  (may want to get copies from your bank if cashed)
    Do you have the actual check stock? If yes, you will need to void the stock if you find these check numbers did pass thru the bank.
    If you find the check numbers are still valid, you should be able to go in your House Bank Account setup and reset the check number. You may need to void the previous transactions if the checks haven't cleared yet (they would be outdated now).
    HTH,
    Heather

  • "next receipt number" field in Receiving Options web-form of Inventory Org

    Dear Member :
    I was trying to save alphanumeric value (abc123) in "Next Receipt Number" field, choosing Receipt Number Type as "Alphanumeric" - but not allowed. It makes sense; but then what's the point in giving alphanumeric option ?
    Thanks in advance.
    Atanu

    Hi,
    If you start Receipt number as "abc123" in receiving option setup in inventory, then you want next receipt to be generated as "abc124" or as "abd123"???? This is atleast not possible through apps without customization. Basically increment is well taken care when it is Numeric.
    If you check online of receiving options you can find below notes on the same..
    Next Receipt Number: This is the starting value you want Purchasing to use for generating unique sequential receipt numbers if you choose Automatic receipt number entry. Purchasing displays the next receipt number that will be used for a new receipt when you create the new receipt. You cannot enter this field if you choose Manual receipt number entry.
    Choose the receipt number Type you want Purchasing to use for receipt numbers: Numeric or Alphanumeric.
    Attention: If you choose Automatic receipt number entry, you can generate only numeric receipt numbers, but you can still import either numeric or alphanumeric values from another purchasing system.
    Attention: If you have any alphanumeric documents in your system, you must choose Alphanumeric as your number type, regardless of your numbering method.
    If you choose Manual receipt number entry, you can choose numeric or alphanumeric numbers. You can change the receipt number type from Numeric to Alphanumeric whenever you want. You can change the receipt number type from Alphanumeric to Numeric only if all your current receipt numbers are numeric.
    Attention: The ordering of numeric values in lists of values can appear random when you use the Alphanumeric number type. If you are using Alphanumeric numbering, consider entering all numeric values with the same number of digits. For example, if you can assume all numeric values contain six digits, you should enter the first value as 000001.
    //S.P DASH

  • Automate a Jumpline that employs Next Pg Number, Previous Pg Number

    Now this one would be hot!!
    Adobe has given us this great feature to create a text frame, that when it touches a threaded text frame assigned to another another page in the multi-page document, its Marker > Next Page Number (or, Previous Page Number) is automatic.
    It might have to use GREP to find the digit at the end of the sentence and auto-mark it as a Special Character > Marker > Next Page Number (or Previous Page Number).
    Could it also type out a pre-defined string of text?  Examples: Please see XXX, Page 5 .... Story continued on 6.

    So, I am scanning your script, but it must default to millimeters because I really dont see a call for that.  And I'm sure it can be set to points, or better, set the default text frame to whatever value and hit OK on the dialog.  As jumplines are always locked to a style of the publication, they rarely change, except from publication to publication.
    So I poked around in here for the answer:   http://jongware.mit.edu/idcs6js/pc_TextFramePreference.html
    Would AutoSizingTypeEnum.HEIGHT_ONLY be the proper call to specify -- in english, not script -- "take this 10 pt paragraph style and fit its vertical measurement"   ??
    Theunis, don't you love it when a non-cook tries to get his grubby paws on your roast?   

  • Regarding purchase order number

    Hi
    Just basic question in Sales document.
    While creating Sales order, we are giving purchase order number in header.
    why its required.
    Can somebody explain me...
    Regards
    Chandra

    Hi Chandra,
    It is customer's reference number. Using this reference customer order can be tracked. For example if customer has any query regarding the order he placed, he can just refer the PO number and based on which customer service track the order of customer.
    If you look an EDI order, Order is created in some legacy system and Data flows to SAP and an SAP order is created through an inbound IDOC. Then wat is the way to track the legacy system's order? It is through the purchase order number,based on which customer service can track the order information.  This is just an example for your understanding of the field of order.
    Hope this explains.
    Edited by: mokirala tilak on Aug 12, 2011 10:51 AM

  • Regarding billing document number ranges

    hi friends
           my requirement is with in one company code i am using 2 billing document types and i want the number ranges should start with the same number range
    ex : 1st doc type is f1 and no range is  900000
            2nd doc type is f2 and no range is 900000
       in the above example if i generate the billing doc with f1 the no range should start with 900000 and after that if i generate billing doc with f2 i should get the no range should start with 900000 only
    this is the requirement so is there any user exit for this requirement pls help me in this regard
    thank tou
    raghu

    <b>USEREXIT_NUMBER_RANGE , (Module pool SAPLV60A, program RV60AFZZ)</b> is used for the internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    The way you can do is create a z-table, and using the document type assign the number range and increment numbers when the billing document.
    Regards,
    Gauravjit.
    Reward Points if helpful

Maybe you are looking for