How to generate the batch number for group of records

Hi All,
requirement: i have created one sequence to generate the batch numbers.i have to get the nextval of the sequence for batch number (this column is not part of the table. its dynamic column/alias column) only for every 50000 records of a table.
detail description:
for example, if i have 10 records in a table. And, if i want to generate the batch number for every 2 records, then the output should look like belo.
batch-number qty
1 10
1 20
2 30
2 40
3 50
3 60
4 70
4 80
5 90
5 100
Please help me on this. Please let me know if you need more info.

one more update on the above request. this has to be done using SQL query only.

Similar Messages

  • How to generate the request number for the changed  script

    Hi guys
        I am having a reqirement, to modify the script which was already transported to production server. I changed the script, but while saving it is not asking any request number.
        On which request number it is getting saved?
        Or is there any methods to generate the <b>request number for the changed script</b>
         Kindly suggest me the procedure with step by step operation.

    Goto Se03 Transaction : 
    select change object directy entries ->execute->select one empty check box ->FORM-> your form name -Execute->

  • How to reverse the Batch number which was enter wrongly during GRN posting

    Hi Folk,
    How to reverse the Batch number which was enter wrongly during GRN posting .
    Please revert.
    Thank you.

    You can either do a transfer posting and move quantity from this batch to another batch e.g. in MB1B with movement 311, or you cancel the entire material document using MBST transaction and redo your receipt correctly.
    Then you can flag the wrong batch for deletion in MSC2N.
    The batch itself gets deleted physically with the archiving transaction SARA object MM_SPSTOCK

  • How to get the document number for a ware house order.

    Hello gurus,
    how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
    Thanks in advance

    There are several options.  When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
    Depending on how your system is set up you may have gotten a Transfer Order automcatically.  In this case you can look at LT24 - Transfer Order for material.

  • How to get the delivery number for the sales order

    hi
    how to get the delivery number for the sales order

    Hi,
    1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
    2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
    Hope it helps...
    P.S. Please award points if it helps...

  • I want to find out how to retrieve the serial number for my product. i can't find it in my email

    i want to find out how to retrieve the serial number for my product. i can't find it in my email

    Find your serial number quickly

  • How to generate the deferent pdfs for deferent vendor ?

    Hi,
    i have requirement to generate the each pdf for each vendor and i need to mail those pdfs to respective vendor,
    here i am facing the prob to generate the no of pdfs for deferent vendors...please can any one help me in this how i generate the no of pdfs ?? using wrapeer program ....
    if possible any one can provide some example code..(Exmplae program)
    Thanks,
    PK..

    There are two function use one for convert PDF and second use to email, hope it will give u idea proper.
    Assigning the OTFDATA to OTF Structure table
      CLEAR gt_otf.
      gt_otf[] = gs_otfdata-otfdata[].
    Convert the OTF DATA to SAP Script Text lines
      CLEAR gt_pdf_tab.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = gv_bin_filesize
        TABLES
          otf                   = gt_otf
          lines                 = gt_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = gs_docdata
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = gt_objpack
            contents_bin               = gt_objbin
            receivers                  = gt_reclist
          contents_txt               = i_objtxt
            object_header              = objhead
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.

  • How to generate the ATR files for reports with out manually?

    Hi all,
    how to create the ATR files for reports in OBIEE 11g with out manually?
    is there any other method to create the ATR files by using the OBIEE Server?
    please provide me the solution for this?
    we are creating manually for each and every report, it is time taken process how can we generate ATR files automatically
    by using the OBIEE Server?
    Thanks,

    Hi,
    I am afraid not.ATR are attributes files contains the object's full name, access controllist (ACL), description, and so on.Each catalog object has a corresponding attributes file, I am not sure why do you have to generate the atr files.In case you need info about atr files: http://businessdecisionsystems.com/blog/?p=7
    If you have huge number of similar reports(with filter variations and same kind of layout), try to play around with the xml to minimize the development effort.
    Rgds,
    Dpka
    Edited by: Dpka on Oct 4, 2011 12:00 AM

  • How to change the port number for deployment in JAVA Studio Enterprise 8?

    Hi!
    Yesterday i downloaded this new sun java studio enterprise and found it mind blowing.
    Now i find that all my previous applications which were running on port 8080 can't be run on sun java studio enterprise(sjse) 8.
    Can anyone tell me how to change the port number on this software so i won't have to edit all my applications?

    http://docs.sun.com/source/819-0080/install.html
    In the Admin Configuration page (or at the command line), enter the following:
    Admin User Name�Name of the user who administers the server
    Password�Admin user�s password to access the Admin Server (8-character minimum)
    Admin Port�Administration port number for initial server instance
    HTTP Port�Port number to access the default server instance
    HTTPS Port�Secure port number to access the default server instance

  • How to Enter the Mobile number for Business Partner

    Dear CRM ABAPers,
               I am creating the Business Partner Using the BAPI "BAPI_BUPA_CREATE_FROM_DATA".
    But I am not able to Enter the Mobile number for the Business Partner.Please help me how to Do this
    It is very Urgent Requirement.
    Thanks & Regards,
    Ashok.

    Hello Ashok,
             Using the same BAPI , set the field R_3_USER of the tables parameter TELEFONDATA to 3 to save the mobile number.
    Hope it helps.
    Thanks,
    Sriram S

  • How to generate the trace files for remote db link session's?

    User are complaining, the db link queries are performing slowness..
    how to enable the sql trace session for db link's in remote database...
    Is there any way to enable sqltrace for the dblink session ?
    if not how to enable the sql trace for entire database level, rather than session based...

    An explain plan of the SQL being ran on the local database will review the SQL being passed to the remote db. You can then explain that SQL on the remote db.
    I have had to tune a few distribued queries so more than likely the explain plan alone will be enough to allow you to tune the query to improve performance. If not then you can go to the trouble of trying to set up dual traces.
    HTH -- Mark D Powell --

  • How to update the telephone number for a contact person in VAP2.

    hi,
          I want to update the telephone number for a particular contact person in VAP2 from custom transaction. I tried for BDC,
    but it was not updating. Could you plz any one help to solve this issue.

    Try these bapis;
    BAPI_CUSTOMER_CHANGEFROMDATA
    BAPI_CUSTOMER_CHANGEFROMDATA2
    BAPI_ADDRESSORG_CHANGE
    or BAPI_ADDRESSPERS_CHANGE
    Edited by: deniz kaylan on Apr 30, 2010 8:55 AM

  • How to get the week number for a given date?

    hi guys,
    what is coding to get the week number for a given date?
    For example, 1/1/05 is week 1. then 8/1/05 is week 2.

    The second parameter to pass to the method is supposed to be one of the month constants JANUARY - DECEMBER. It happens to be that their numerical values are 0-11, not 1-12, so your "12" refers to the "13th" month of the year.
    givenDate = new GregorianCalendar(2003, Calendar.DECEMBER, 31);
    If you want to construct dates and times from strings like you seem to be, look into SimpleDateFormat http://javaalmanac.com/egs/java.text/ParseTime.html
    (even still I got WEEK_OF_YEAR as 1 which is true but not really what I expected, excuse my previous reply but I wanted to check the facts before posting this)

  • How to get the serial number for bundled software (sony vaio notebook)

    Hi, bought a laptop from sony (vaio fit (multiflip) 11a and it had photoshop elements preinstalled. I want now a clean, fresh windows and will so reinstall windows from a clean image. but then i wont have photoshop elements, so i need the serial number for my preinstalled photoshop elements. i registerd it online via my adobe id, but it wont show up there. i could extract a key, with belarc adviser (software) but this key does not work if i try to download the trial from adobe.com and try to register it with this key. also i tried to ad new software at my online adobe.com account, with this serial, and it said "already registered" but it wont show up in my account. Whats wrong here?
    Will send the serial/key if needed by pn.
    Greetings
    Immscha

    Is the key you’re trying to use for the same version of PSE that you have installed on your laptop, i.e. 10, 11, 12?
    Do you see anything on your Adobe account for registered software?  Be aware that the page takes some seconds or 10s of seconds to populate with your products so will look empty for a while.  This is the page I'm talking about:
    https://www.adobe.com/account/my-products-services.html

  • How to generate Serial(Unique) Number for finished goods?

    Guru's,
    How do i generate Serial(Unique) Numbers for finished goods.Suppose,if we get an order for a finished good A of 10 qty.We want to generate unique number to identify each and every A item separately for quality purpose.Any help is much appreciated.
    thanks Guru's

    Depending on serial control of item, you will need to generate serial numbers at the time of WIP Completion transaction using Serial Entry window (i.e. if serial control is At Receipt) or at the time of job creation (i.e. if you are using serial control as predefined)
    In latter case, you will have to use MES or MSCA screens to perform serialized WIP completion.
    Thanks,
    Hrishi

Maybe you are looking for

  • Acrobat pro 9.5.4 not printing

    When I print to my Canon MX310 the print operation takes place, there's just no ink on the page.  Email prints fine, so I know it's not the printer. Any ideas? I'm boggled.  I've checked my print settings and things are seemingly in order.  This happ

  • Indesign CS3 - Changing file from all black to a pantone color

    Is there an easy way to change an all black file to a specific pantone color in Indesign CS3? I've ran into this plenty of times after setting up an all black job and then the customer decides they want to see on the laser printer what it would look

  • Calling Soap Action in Soap Receiver

    Hi ALL, I have a requirement where i have a WSDL file which contains multiple actions and multiple Soap Action Parameters , whereas i need to combine all the Soap action Parameters into single SOAP Parameter and call it in my SOAP action parameter at

  • 3D Effect In After Effects

    Hey everyone this is my first post here, and it happens to be a question I haven't been able to find an answer to. Compared to you guys I'm very new at working with After Effects, so, please, bear with me. I've been meaning to replicate an effect see

  • Issue with autoplay HTML animation

    Hi guys, I have some troubles with HTML animation when preview my content on adobe viewer. Maybe you know how to fix this... My Folio contains 1 atricle with 5 pages. The first page is a static one, the second one - page with animation that should be