Serial Number in SAP Query !!!

Hi Gurus
How can we add Serial Number in SAP Query? There is a field named Counter which gives Total number of count. But i need numbers to be displayed with each line item.

OK,
So you need to create a Number Range Object (tr SNRO), this create a object like ZNUM.
then, each time you need insert a new record to table only call this FM:
CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
      nr_range_nr             = '01'
      object                  = 'ZNUM'
    IMPORTING
      number                  = itab-field
    EXCEPTIONS
      interval_not_found      = 1
      number_range_not_intern = 2
      object_not_found        = 3
      quantity_is_0           = 4
      quantity_is_not_1       = 5
      interval_overflow       = 6
      buffer_overflow         = 7
      OTHERS                  = 8.
at this point, ITAB-FIELD contains the next number in the range ZNUM.
I hope this help,
X.S.

Similar Messages

  • Serial Number In Abap Query

    How can we add <b>Serial Number</b> in SAP Query? There is a field named Counter which gives Total number of count. But i need numbers to be displayed.
    Any body can help me?

    OK,
    So you need to create a Number Range Object (tr SNRO), this create a object like ZNUM.
    then, each time you need insert a new record to table only call this FM:
    CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr             = '01'
          object                  = 'ZNUM'
        IMPORTING
          number                  = itab-field
        EXCEPTIONS
          interval_not_found      = 1
          number_range_not_intern = 2
          object_not_found        = 3
          quantity_is_0           = 4
          quantity_is_not_1       = 5
          interval_overflow       = 6
          buffer_overflow         = 7
          OTHERS                  = 8.
    at this point, ITAB-FIELD contains the next number in the range ZNUM.
    I hope this help,
    X.S.

  • Serial Number in Rollup Query

    Hi All
    I want to create Serial Number(running number like 1,2,3...)
    in Rollup Query. But my problem is,I want to create running number all rows except for Toatl row.
    EX:
    select COMPANY,DEPT,SUM(SALARY) from emp
    GROUP BY ROLLUP(COMPANY_NAME,DEPT)
    Expected O/P :
    SL.No     COMPANY     DEPT     SALARY
    1     ABC     P     60000
    2     ABC     A     40000
         ABC          100000
    3     XYZ     P     30000
    4     XYZ     A     40000
         XYZ          70000
                   170000
    How to do the above? Help me..
    Regs
    Kumar

    SQL> create table emp (company,dept,salary)
      2  as
      3  select 'ABC', 'P', 60000 from dual union all
      4  select 'ABC', 'A', 20000 from dual union all
      5  select 'ABC', 'A', 20000 from dual union all
      6  select 'XYZ', 'P', 15000 from dual union all
      7  select 'XYZ', 'P', 15000 from dual union all
      8  select 'XYZ', 'A', 40000 from dual
      9  /
    Table created.
    SQL> select case grouping_id(company,dept)
      2         when 0 then row_number() over (order by grouping_id(company,dept),company,dept desc)
      3         end sl_no
      4       , company
      5       , dept
      6       , sum(salary)
      7    from emp
      8   group by rollup(company,dept)
      9   order by company
    10       , dept desc nulls last
    11  /
         SL_NO COM D SUM(SALARY)
             1 ABC P       60000
             2 ABC A       40000
               ABC        100000
             3 XYZ P       30000
             4 XYZ A       40000
               XYZ         70000
                          170000
    7 rows selected.Regards,
    Rob.

  • Serial number in SAP Retail Store

    Hi!
    I use serial numbers in  SAP, in the system everything works ok, but my problem is that in the "SAP Retail Store", it doesn't appear any field where to fulfill the serial number, and it appears a pop up asking for it, but I don't have the possibility to enter it.
    If anyone can help me, I would be very grateful.
    Best Regards,
    Leire

    Hi,
    check this
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fb/89ef37516fdb2be10000009b38f842/frameset.htm
    this is the correct link
    Regards
    Swathi

  • TABLE NAME FOR SERIAL NUMBER IN SAP

    Hi Gurus
    Please give me the Table Name for Serial Number in IQ01 or IQ04 Transaction
    K.Prabakaran

    Hi,
    Check these tables
    OBJK
    SERI
    EQUI
    Regards
    Arun

  • ISU Serial number = SAP Equipment number

    Hi experts
    We are thinking to synchronize the ISU device/serial number to SAP's equipment number when creating using IQ01.  This is done by setting the SerLev indicator to "1" on Material Master plant data/stor 2 tab.
    We are doing this to reduce confusion of the 2 fields, e.g. SAP maintenance plan uses equipment number and we want to use it for scheduled meter testing.
    My question is has anyone done it this way before if so what are the implications if any.
    Thanks.

    Hi,
    This is ideal way. However, please note while building logic for meter read interface etc.
    In this case,
    EQUNR = SERNR
    MATNR = Material in MM = Caategory
    Also, you have to build a logic based on LOGIKZW which is unique for register.
    Please let me know if something doesn't answer your question..
    Thanks
    Vinod

  • 111111 stb- Serial Number not valid in SAP

    IR TEXT----
    Serial Number in SAP IS S11111111
    This is an innocent Serial Number that some how is in SAP. There has never been a 555 or 333 or 444 or any transaction againist it.  The only transaction is a 666 as a part of delivery document.  It is not possible to attach an invalid serial number to a delivery document, the system should invalidate once it is scanned and halt with a hord copy. The Only issue is the Goods issue.
    How to work on this IR?

    I am going to guess that the link should end in .exe (one-dot-exe) rather than ..7z (two-dots-seven-z)—the two-dots are wrong for sure and there is an EXE not a 7z at that URL:
    http://trials2.adobe.com/AdobeProducts/LTRM/5/win32/Lightroom_5_LS11.exe
    Once downloaded you can use the 7-ZIP application to extract the files from the EXE.
    It is possible that the tech meant the following .7z URL which is for LR 5.5 and the Creative Cloud version not the serial-number-licensed version, but since you’re dealing with a serial-number-licensed version, hopefully not, it is the one URL that has a .7z on it:
    http://trials2.adobe.com/AdobeProducts/LTRM/5_5/win32/Lightroom_5_CCM_LS11.7z

  • SAP Query SQ01

    Hi Gurus,
        How to get serial numbers in SAP query ?
    (ii)   When i'm joining certain tables to an existing set of tables, suddenly, the system becomes unable to select the records; sometimes, the number of records is reduced to the number of records available in the last table added. E.g. I have 3 tables LC request (document by which LC is applied for) / LC document (document created when LC opened by the bank is received by the user in the system)  Vs PO no (ii) LC request details & (iii) LC Document details. For each LC request, LC document is created individaully at a later time. Now, in the first table, one single field is used for LC req & LC Doc which are of different types and have different number ranges. When I'm using only table , i'm getting both Req & Doc against the PO but without details as it is not available in the table, but when I join & (ii), I get only Requests with details and  when I join all the three, I only get LC documents with details.
    Now, my requirement is that against each PO, I want to see all the request details along with document details where available. How to get it ?
    Thanks in advance.
    Sheeja

    Hi Nitin,
    I opened the tables mentioned. Most of them do not have any entries and the few which had entries were not relevant to my kind of requirement. What I want is the serial no. to be displayed in the first column the query output. Can i achieve it by creating any additional field and then inserting some code into it ?
    Anyother options, please ?
    Kind regards,
    Sheeja.

  • Require TCode used by user for sap query created through SQ01

    Hi All,
    I have number of SAP Query in production that currently are used by different-2 user & created through SQ01
    My question is how to know the TCode that used by user for SAP Query.
    Thanks In Advance
    Regards
    San

    Charlie
    You did not get the question.
    I knew the TCode of the query which I had created using tcode SQ01. user is using this query to see the report
    Like I created query named 'order_line_details'. This query is basically to see the order & other details. To use this by user one TCode'zncv_ord_item'  has been created.
    So in the system lots of query are available. So i want to know the Tcode for those query that are using by user.
    Thanks in advance
    San

  • 「Serial Number Management」 Improvement

    As far as Serial Number Management, SAP Business One is designed so that serial number update is done after specifying the serial number by narrowing down on Purchase Order or Delivery. However if an Item has a large number of Serial Number such as more than 100, it requires huge work to a user and it causes bad efficiency on the useru2019s business process.  
    We would like to add the following functionality on SAP Business One
    1. Mfr Serial Number search (specifying a record) function on u201CSerial Number Management - Updateu201D screen
    2. Mfr Serial Number update function on u201CSerial Number Detailu201D screen
    <<Reference>>
    Refer to the following inquiries on CHANNEL PARTNER PORTAL regarding this.
    Message No.: 164313
    Date: Feb. 13, 2009
    <<Reason>>
    When the user needs to change or delete Mfr Serial Number, they have to specify the target record by watching the list on the bottom of u201CSerial Number Management - Updateu201D screen. This operation is very troublesome in the case of a large number of serial number management. The list is not good enough to specify the target, becuase these serial numbers are not used sequence number. Since the user knows the target serial number, they want to specify it directly on u201CSerial Number Detailu201D screen. But SAP Business One doesnu2019t allow it with masking the data
    <<Present specification>>
    1. The user searches appropriate bill No. on u201CSerial Number Management ? Updateu201D and specify the target Mfr Serial Number form the list showed on the bottom of the screen by watching it.
    2. The user update Mfr Serial Number directly.
    <<Correspondence completion desired date>>
    We hope that this SAP Business One modification is done by July. 27, 2009.
    One of our new customers who claims this modification is going to launch SAP Business One system on July 1st. Even if this is not finished by then, please take care of this A.S.A.P.
    <<When it is not possible to correspond>>
    In many cases, its unit transaction is more than 1,000 and the user is required frequent serial number update. It is a huge problem for the user to search the target record from the list by only their eyes it gives serious impact for their business operations. If you do not fix this, we have to customize SAP Business One. It makes the cost higher and will be loosing SAP Business One business opportunity.
    <<Business impact>>
    Quite a few customers manage a large number of serial numbers par item. The current specification of SAP Business One is a burden to usersu2019 operation. It is totally wrong from business process improvement point of view. In order to avoid this, we have to customize SAP Business One for each user but it prevents us from providing SAP Business One with reasonable price in the market.
    Edited by: Noriaki Miyazawa on Jul 3, 2009 3:50 AM

    Thanks !
    This question was in relation to sap note no 200231- Scrapping of Serial Numbers. I am not able to figure out how the user status can acheive this requirement and where I can change the user status?
    My why not putting this question by giving reference to the sap note in the initial stage was that I wanted to figure out myself first and to avoid confusion among the community memebers.
    Dear Jurgen can you help me on understanding this note. Meantime I will read the link sent by you and try to figure out and find in relation to this note how this can be done-- in whcih transaction.
    I am giving details of sap note 200231- Scrapping of serial Numbers
    Symptom
    You can post a goods receipt again for a serial number that has been scrapped before.
    Additional key words
    Movement type, 551, 553, 555, available, AVLB, system status, usage decision, inspection lot, scrapping, MB1A
    Cause and prerequisites
    Several movements of serial numbers are grouped together for status update under goods issue (PMS8).
    In addition to the reversal of a goods receipt and several consumption postings this also includes scrapping.
    Solution
    To prevent the usage of a scrapped serial number, you can use the user status logic.
    However, the user status defined for this must either be set manually or with a subsequent (background) procedure.
    If it is necessary to reverse a scrapping, you then would have to reset this user status manually again.
    Regards

  • DIAPI - Create Goods Receipt for Serial Number - on Release Only

    Hi Experts,
    I need your advise to create Goods Receipt by using DIAPI, where the item is managed by Serial Number - on Release Only.
    The option that I'm exploring is to use ‘Automatic Serial Number Creation on Receipt’ turned on.
    In standard SAP function with the above setting, we can create a Goods Receipt without entering any Serial Number, and SAP will automatically creates empty Serial Number. I'm trying to do the same thing by using DIAPI with the below code.
    oTargetDocument.Lines.ItemCode = 'abc'
    oTargetDocument.Lines.WarehouseCode = 'whs'
    oTargetDocument.Lines.UnitPrice = 100
    oTargetDocument.Lines.BinAllocations.BinAbsEntry = 1
    oTargetDocument.Lines.BinAllocations.Quantity = 1
    oTargetDocument.Lines.Quantity = 1
    '--       I skipped the below code, expecting SAP will create the empty Serial Number automatically
    '     oTargetDocument.Lines.SerialNumbers.SetCurrentLine(0)
    '     oTargetDocument.Lines.SerialNumbers.InternalSerialNumber = 2
    '     oTargetDocument.Lines.SerialNumbers.Add()
    '     oTargetDocument.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0
    oTargetDocument.Add
    But, it returns 1470000838 - Invalid "SerialAndBatchNumbersBaseLine"; specify a valid "SerialAndBatchNumbersBaseLine"
    Can anyone please advise how we should achieve this?
    Any example or reference is very much appreciated.
    Thank you and kind regards,
    Krisma

    Hi Krisma,
    I was trying to simulate the issue here, but I couldn't post a good receipt PO even from the SAP itself with the setting you mentioned.
    I have set the management method as 'On Release' and ticked the Automatic serial number creation flag as well under general settings of inventory. Is that the setting you mentioned or something else?
    Best Regards,
    J S L Geeganage

  • How to output serial number in wwi template from the production order

    Dear Experts ,
    Has Sap defined report symbol to output serial number in sap glm

    Dear S P
    there are "lots" of threads discussing this.
    GLM - Serial Number Hide
    EHS GLM how to define serial numbers out of a list
    Bar Code in SAP GLM
    New changes for GLM in EHP7.0 and ERP 6.0
    GLM - Serial Number Hide
    Sap GLM Serial NUmber printing
    Please check them
    C.B.

  • Serial number prifile

    Hello everybody
    Please can you give step by step method to create serial number profile, assignment, and the details of its use in SD transactions.
    thanks in advance
    nkr

    Hi,
    In this section, you can make settings for serial number management.
    Serial number management allows you to distinguish between individual items of a material that are managed with a single material number.
    Example
    Company X produces three different types of solar collectors:
    Type A
    Type B
    Type C
    There is a material master record for each type in the system. For control purposes, the company wants to know which customer received which collector type, and which serial number(s) of the collector type were supplied to the customer, when the individual solar collectors were delivered.
    It is therefore necessary to assign a serial number to the customer delivery in addition to the material number.
    A serial number master record is created with the assignment of the serial number. You can maintain data fields specific to the serial number in the master record.
    At a later date, it may be necessary to enter equipment master records for materials that have already been serialized and delivered to customers, for example, if the producer of the solar collectors also has to perform maintenance activities for the customers and therefore wants to use all the functions available in the equipment master record for a serialized material.
    In order to keep this option open at any time, you must define a number range for serial numbers. The numbers assigned from this number range are not the serial numbers but reserved keys that stand for the combination of material number and serial number and the equipment number that may possibly be assigned.
    You can also define one or more serial number profiles.
    The serial number profile defines how and under which conditions a serial number is assigned for a material.
    Note
    A material can only be assigned serial numbers after the required serial number profile has been entered in the material master for a specific plant.
    SPRO --> Sales and Distribution --> Basic Functions --> Serial Numbers --> Central Control Parameters For Serial Numbers / Determine Serial Number Profiles
    SAP Easy Access --> Logistics --> Sales and Distribution --> Master Data --> Products --> Material -->
    In Material Master: Sales General Plant Tab Page, you maintain the serial no profile.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Number of records in SAP Query

    Hi There,
    I have created a SAP Query. Instead of rows in the output I would like to display number of rows fetched in my list output. How can I do this? Please advice.
    Thanks in advance,
    Rams.

    Hi rams,
    1. simple
    2. we have to use Count(*) in select query.
    3. just copy paste
    4.
    report abc.
    data : mycount type i.
    select count(*) from t001
    into mycount.
    write :/ mycount.
    regards,
    amit m.

  • SAP WM-RF 'Serial Number' Transaction LM80 - How does it work?

    Hi gurus
    We are looking at using the standard SAP RF transaction 'LM80' - 'Serial number capture'
    Does anyone have any experience with this transaction?  How does it work and what is the process flow?
    Cheers
    Eddy

    Hi
    Please advise if this is the process others are using for LM80:
    1. Create STO or Sales Order
    2. Create Delivery
    3. Create Warehouse Transfer Order
    4. Pick/Confirm Warehouse Transfer Order
    5. Scan serial numbers to completely picked delivery via LM80
    6. Post Goods Issue
    My question is:  is there a way to 'pick' via serial numbers?  The process would then be that you scan in serial numbers during picking
    kind regards
    Ed

Maybe you are looking for