Insert missing numbers

I have a data like this:
G1, 1
G1, 2
G1,
G1,
G2, 1
G2,
G2,
G2,
G2,
G3, 1
G3, 2
G3, 3
G3,
G3,
G3, I have to populate the missing numbers for each group. The data should look like this:
G1, 1
G1, 2
G1, 3
G1, 4
G2, 1
G2, 2
G2, 3
G2, 4
G2, 5
G3, 1
G3, 2
G3, 3
G3, 4
G3, 5
G3, 6Can it be done in SQL without using a stored procedure? Thanks.
Kumar

hi,
SQL> With T As
  2  (Select 'G1' col, 1 col1 From dual
  3  Union All
  4  Select 'G1', 2 From dual
  5  Union All
  6  Select 'G1', Null From dual
  7  Union All
  8  Select 'G1', Null From dual
  9  Union All
10  Select 'G2', 1  From dual
11  Union All
12  Select 'G2', Null From dual
13  Union All
14  Select 'G2', Null From dual
15  Union All
16  Select 'G2', Null From dual
17   Union All
18  Select 'G2', Null From dual
19  Union All
20  Select 'G3', 1 From dual
21  Union All
22  Select 'G3', 2 From dual
23  Union All
24  Select 'G3', 3 From dual
25  Union All
26  Select 'G3', Null From dual
27  Union All
28  Select 'G3', Null From dual
29  Union All
30  Select 'G3',Null From dual)
31  Select col, row_number() Over(Partition By col Order By col)col1
32    From T
33  /
CO       COL1
G1          1
G1          2
G1          3
G1          4
G2          1
G2          2
G2          3
G2          4
G2          5
G3          1
G3          2
CO       COL1
G3          3
G3          4
G3          5
G3          6
15 rows selected.

Similar Messages

  • How to insert line numbers in InDesign CS5

    I am creating a document that needs to have line numbers appear every for every 5 lines of text. Using the list function, I can get a number for every line, but can't find a way to just number line 5, 10, 15, 20, etc.
    All help appreciated,
    Cathy

    Thanks for the prompt reply, Bob, but from what I read in the comments on the script is that it inserts line numbers for every line and has no options for customizing to show numbers for only lines 5, 10, 15, etc. Also, using the list function in InDesign on selected text I can get the same result (including multi page if I select all text) and then convert the auto list numbers to text, which would allow me to remove unwanted numbers and leave just the ones I need (although that would be a painful manual process for a longer document.).
    Am I missing something about the script?
    I must admit that I'm shocked that this isn't a built in capability in InDesign!

  • How to insert page numbers in document

    How can I insert page numbers using Pages starting with the second page of the document?

    click where you want the numbers > Menu > Insert > Page Numbers
    At the end of the first page:
    Menu > Insert > Section Break
    Click in the 2nd page:
    Inspector > Layout > Section > Start at: 1 > uncheck Use previous headers and footers
    Peter

  • How to insert page numbers in word

    I know how to insert page numbers that appear 1, 2, 3 etc.
    But I want to display:    1 out of 6,   2 out of 6,  3 out of 6  or similar - i.e. to have the TOTAL number of pages shown.  I can do this in Excel - is it possible in Word?  Or Pages??
    Thanks,
    Steve
    2013-06-08

    Thanks for the fast, 100% right-on reply!  (And I looked, googled… no luck)---
    I believe I can do this in PAGES, too-----
    REALLY REALLY appreciate the fast and perfect reply--- (I know this is not strictly a "Mac" issue - and nonetheless I got super help from you and appreciate CT's reply too!)
    Steve
    Saturday 8 June 2013

  • How to insert page numbers in a PDF document?

    How to insert page numbers in a PDF document using Adobe Acrobat X Pro 10.1.2?
    Thanks.

    OK, I found it myself:
    1. Tools - Pages - Edit Page Design - Header & Footer - Add Header & Footer.
    2. Select the font and size, etc, place the cursor on the appropriate site to insert the page number, click the "Insert Page Number" button, and click OK.
    That is!

  • Insert missing records dynamically in SQL Server 2008 R2

    Hi, I am working on a requirement where I will have to work on some % calculations for 2 different states where we do business. The task that I am trying to accomplish is technically we need to have any Product sales in both the states if not for instance
    in the following example ProductC does not have sales in OR so I need to insert a record for ProductC - OR with 0. This is an intermediary resultset of all the calculations that I am working with.
    Example Dataset:
    CREATE TABLE [dbo].[Product](
    [Product] [varchar](18) NOT NULL,
    [State] [varchar](5) NOT NULL,
    [Area1] [int] NOT NULL,
    [Area2] [int] NOT NULL,
    [Area3] [int] NOT NULL,
    [Area4] [int] NOT NULL,
    [Area5] [int] NOT NULL,
    [Area6] [int] NOT NULL,
    [Area7] [int] NOT NULL,
    [Area8] [int] NOT NULL,
    [Area9] [int] NOT NULL,
    [Area10] [int] NOT NULL,
    [Total] [int] NULL
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','OR',0,0,2,0,2,0,0,0,0,0,4)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','WA',0,0,1,0,0,0,0,0,0,0,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','Total',0,0,3,0,2,0,0,0,0,0,5)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','OR',0,0,5,0,0,0,0,0,0,0,5)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','WA',0,0,2,0,0,1,0,0,0,0,3)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','Total',0,0,7,0,0,1,0,0,0,0,8)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','WA',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','Total',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','OR',5,2,451,154,43,1,0,0,0,0,656)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','WA',0,20,102,182,58,36,0,1,0,0,399)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','Total',5,22,553,336,101,37,0,1,0,0,1055)
    How to accomplish this in SQL Server 2008 R2.
    Insert missing record:
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','OR',0,0,0,0,0,0,0,0,0,0,0)
    Thanks in advance......
    Ione

    CREATE TABLE [dbo].[Products](
    [Product] [varchar](18) NOT NULL,
    [State] [varchar](5) NOT NULL,
    [Area1] [int] NOT NULL,
    [Area2] [int] NOT NULL,
    [Area3] [int] NOT NULL,
    [Area4] [int] NOT NULL,
    [Area5] [int] NOT NULL,
    [Area6] [int] NOT NULL,
    [Area7] [int] NOT NULL,
    [Area8] [int] NOT NULL,
    [Area9] [int] NOT NULL,
    [Area10] [int] NOT NULL,
    [Total] [int] NULL
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','OR',0,0,2,0,2,0,0,0,0,0,4)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','WA',0,0,1,0,0,0,0,0,0,0,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','Total',0,0,3,0,2,0,0,0,0,0,5)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','OR',0,0,5,0,0,0,0,0,0,0,5)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','WA',0,0,2,0,0,1,0,0,0,0,3)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','Total',0,0,7,0,0,1,0,0,0,0,8)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','WA',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','Total',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','OR',5,2,451,154,43,1,0,0,0,0,656)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','WA',0,20,102,182,58,36,0,1,0,0,399)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','Total',5,22,553,336,101,37,0,1,0,0,1055)
    ;WIth mycte as (
    Select Product,State From (Select distinct Product from Products) p, (
    Select distinct State from Products) s
    Insert into [Products](Product,State,[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])
    Select m.Product,m.State
    ,0,0,0,0,0,0,0,0,0,0,0
    from mycte m Left Join Products p on m.[Product]=p.Product and m.State=p.State
    WHERE p.Product is null and p.State is null
    select * from Products
    Order by Product
    ,Case when State='Total' Then 2 else 1 End
    Drop table Products

  • How can I get two missing numbers on a iTunes card

    How can I get two missing numbers on a iTunes card

    "Get help",just below the form space where I entered the code. Once I clicked "Get Help", it added another line to the form where I could enter  THE NUMBER ON THE BOTTOM LEFT CORNER on the back of the card. I entered as much of the I scratch-off code I could read, along with the serial number.

  • Selecting missing numbers in Range (missing in 1 - 10 )

    hello
    i want to get missing numbers query in a range like i want query returns only missing numbers between 1 to 10 present in a table
    thanks.
    Message was edited by:
    Rehman

    in this case if a change my range from 2 - 11 it does not works. In that case, I would use pipelined function :
    SQL> drop table rehman ;
    Table dropped.
    SQL> create table rehman as
      2  select 1 id from dual union all
      3  select 3 id from dual union all
      4  select 5 id from dual union all
      5  select 7 id from dual union all
      6  select 9 id from dual ;
    Table created.
    SQL>
    SQL>
    SQL> create or replace type TblId as table of number
      2  /
    Type created.
    SQL>
    SQL> create or replace function Tbl_rehman(p_start number, p_end number)
      2   RETURN TblId
      3   PIPELINED
      4  IS
      5  BEGIN
      6   FOR x IN p_start..p_end
      7   LOOP
      8       PIPE ROW( x );
      9   END LOOP;
    10   RETURN;
    11  END;
    12  /
    Function created.
    SQL>
    SQL> select *
      2  from   table(Tbl_rehman(1,10)) a
      3  where not exists (select 1 from rehman b where b.id=a.column_value);
    COLUMN_VALUE
               2
               4
               6
               8
              10
    SQL>
    SQL> select *
      2  from   table(Tbl_rehman(2,11)) a
      3  where not exists (select 1 from rehman b where b.id=a.column_value);
    COLUMN_VALUE
               2
               4
               6
               8
              10
              11
    6 rows selected.
    SQL> Nicolas.

  • Find missing numbers in array

    HI !
    I have an array which holds 999 different numbers between 1-1000
    (which means that 1 number between 1-1000 does not appear in the array).
    I need to find the missing number in one pass and it's easy.
    My question is:
    Do you have any idea how can I find 2 missing numbers in the array ?
    Is it possible ?
    I cant use any data structure and I need to find the missing numbers in one pass.
    Thank you

    Using array.sort() and using another array is out of the question as its inhrently banned in the "i cant use any data structure" so this is
    Homework! tut tut
    ok so far an array with 1 number missing "its easy" yeah, just add em all up and see whats missing.
    for 2 numbers missing you should take a hint from what you are studying in the course ie solving Quadratic Equations..
    shall i make snoopy beg yet??
    naw, ok here goes
    on your 1 permitted pass add up all the mumbers that are there, also have another total for the squares of the numbers
    call the numbers you are looking for A and B
    subtract the first total from what it would be if there were all 1000, call this N
    subtract the second total from what the total of the squares would be if there were all 1000, call this M
    so..
    A+B=N
    solve for B in terms of A
    so..
    B=N-A
    and A^2+B^2=M
    should i quit now???
    no, ok
    substitute B in the second equation, shuffle a bit and..
    2A^2-2NA+N^2-M=0
    recognise the terms of the quadratic and..
    A=(2N +/- (4N^2-8(N^2-M))^.5)/4
    note the +/- plus OR minus will give you 2 results, these will be the 2 missing munbers
    tahh dahh
    See maths does have some use

  • Finding Missing Numbers

    I want to find missing numbers from a column which is alpha numeric, its last five positions are numeric. At first three positions there are different combinations of alphas i.e. *'BA ','BAW','SA ','SAA' ..........* if alphas are two then 3rd position is blank. I also need it to generalised this to cover all existing alpha numeric series.
    SELECT SUBSTR (a.claim_no, 4, 5) + 1
      FROM core_business.cb_pensioner a
    WHERE SUBSTR (a.claim_no, 1, 3) = 'BA '
       AND NOT EXISTS (
                     SELECT NULL
                       FROM core_business.cb_pensioner b
                      WHERE to_number(SUBSTR (b.claim_no, 4, 5)) =  to_number(SUBSTR (a.claim_no, 4, 5)) + 1)
       order by SUBSTR (a.claim_no, 4, 5);I am getting ORA-01722 error

    You have two issues with such a task.
    Problem 1 is how to convert the trailing part into a number so that you can compare values.
    to_number(SUBSTR (b.claim_no, 4, 5)) works, but only if the value in b.claim_no is always a number regardless of the other column criteria.
    A statement like
    WHERE SUBSTR (a.claim_no, 1, 3) = 'BA ' /* filter 1 */
    and to_number(SUBSTR (b.claim_no, 4, 5)) > 1 /* filter 2 */
    ...might fail because your table might have a value like
    b.claimno = 'XYZ1234b'
    The way you wrote the query the database will decide which filter criteria it executes first. It might be filter1, but could also be filter2. If filter2 is executed first then you will get the error message.
    Problem 2 how to order and compare different rows, so that you can find the missing values.
    Here the analytic LEAD(LAG) function is very helpful. it will give you access to the next (or previous row).
    Both problems can be overcome.
    Here is my try, but I'm not sure if it works in your case. You might need to adapt a little.
    This should work if all the rows are numeric that belong to the specific groups. if you can have wrong data in there too, then a different approach is needed.
    with testdata as (select 'XYZ1234b' claim_no from dual union all
                select 'BA 12345' claim_no from dual union all
                select 'BA 12346' claim_no from dual union all
                select 'BA 12350' claim_no from dual union all
                select 'BAW11111' claim_no from dual union all
                select 'BAW11113' claim_no from dual union all
                select 'XYZ1234b' claim_no from dual )
    /* end of test data creation */
    select claim_no, substr(claim_no, 1,3) part1, substr(claim_no, 4) part2,
           to_number(substr(claim_no, 4)) current_num,
           lead(to_number(substr(claim_no, 4))) over (partition by substr(claim_no, 1,3) order by to_number(substr(claim_no, 4))) next_num,
           lead(to_number(substr(claim_no, 4))) over (partition by substr(claim_no, 1,3) order by to_number(substr(claim_no, 4)))
            - 1 - to_number(substr(claim_no, 4))
            as "missing_values"
    from testdata
    where substr(claim_no, 1,3) in ('BAW','BA ')
    order by claim_no;
    CLAIM_NO PAR PART2 CURRENT_NUM   NEXT_NUM missing_values
    BA 12345 BA  12345       12345      12346              0
    BA 12346 BA  12346       12346      12350              3
    BA 12350 BA  12350       12350
    BAW11111 BAW 11111       11111      11113              1
    BAW11113 BAW 11113       11113Problem 1 is solved because the where condition is always executed before the function in the select clause, especially in connection with an analytic function.
    Problem 2 is also solved by using the analytic function LEAD function. And this is fast, because you access the same table only one time. Other solution might do a subquery to fetch the value from the previous/next row. This means several accesses to the same table and is usually much slower.
    Edited by: Sven W. on Sep 20, 2010 2:32 PM

  • Missing numbers in a sequence

    I need to list all the missing numbers in a sequence. For example, in a table containing work orders, the work order numbers start from WO0001 and end at WO9999. In this some work order numbers like WO8001 may be missing. Can someone suggest me a way to extract these missing numbers?

    This example uses the all_objects view and requires that you have at least as many rows in that view as in your work order table. If not, create a table with at least as many number and use that instead. The query in this example does not assume the lower and upper boundaries - it can be optimized a bit if those boundaries are hard-coded. Also, the fact that your work_order contains alpha characters (WO) had to be compensated for. Here is the idea (based on a Tom Kyte example, as usual):
    sql>create table t (work_order) as
      2    select 'WO' || to_char(rownum, 'FM0000')
      3      from all_objects
      4     where rownum <= 9999;
    Table created.
    sql>delete from t
      2   where work_order in ('WO1000', 'WO5000', 'WO9000');
    3 rows deleted.
    sql>select 'WO' || missing_id missing_id
      2    from t,
      3         (select rownum + min_id - 1 missing_id
      4            from all_objects,
      5                 (select max(to_number(substr(work_order, 3))) max_id,
      6                         min(to_number(substr(work_order, 3))) min_id
      7                    from t)
      8           where rownum <= (select max(to_number(substr(work_order, 3))) -
      9                                   min(to_number(substr(work_order, 3))) + 1
    10                              from t))
    11   where missing_id = to_number(substr(work_order(+), 3))
    12     and work_order is null;  
    MISSING_ID
    WO1000
    WO5000
    WO9000

  • The row was not found at the Subscriber error keeps popup and stopped synchronization even after inserting missing record at subscriber - transcational replication.

    The row was not found at the Subscriber error keeps popup and stopped synchronization even after inserting missing record at subscriber - transcational replication.
    first error throws: Grab exact sequence number, find row and inserted at subscriber...
    Start synchronizing, ran fine for a while, stopped again with error with different exact sequence number, repeat again same as step 1.......
    how can we stop this and make it run without this error?
    Please advise!!!

    Hi,
    This means that your database is out of sync. You can use the continue on data consistency error profile to skip errors. However, Microsoft recommends that you use -SkipErrors parameter cautiously and only when you have a good understanding of the following:
    What the error indicates.
    Why the error occurs.
    Why it is better to skip the error instead of solving it.
    If you do not know the answers to these items, inappropriate use of the
    -SkipErrors parameter may cause data inconsistency between the Publisher and Subscriber. This article describes some problems that can occur when you incorrectly use the
    -SkipErrors parameter.
    Use the "-SkipErrors" parameter in Distribution Agent cautiously
    http://support.microsoft.com/kb/327817/en-us
    Here are two similar threads you may refer to:
    http://social.technet.microsoft.com/Forums/en-US/af531f69-6caf-4dd7-af74-fd6ebe7418da/sqlserver-replication-error-the-row-was-not-found-at-the-subscriber-when-applying-the-replicated
    http://social.technet.microsoft.com/Forums/en-US/f48c2592-bad7-44ea-bc6d-7eb99b2348a1/the-row-was-not-found-at-the-subscriber-when-applying-the-replicated-command
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How do you insert page numbers into a pdf that combines multiple documents?

    I need to combine a number of documents into one PDF that then has correct pagination for the whole new document. How do you insert page numbers when combining into one PDF?

    Hi,
    You can go to Tool panel. Go to Pages. Click on Header& Footer -->  Add & Footer from the Add Header and Footer
    Regards,
    Ajlan Huda.

  • Insert line numbers into a document, Insert line numbers into a document

    Does anyone know how to insert line numbers into a pages document?

    One of the crude, but easy, workarounds is to Insert a 1-column table (zero Header Rows), Floating, and Fill the column with ascending numbers. Position the column in your left margin and adjust the row height to match your line spacing. Things will line up better if your body text is styled with line height set to "Exactly". When you have the alignment satisfactorily close, click once on the border of the table to select the entire table and go to the Graphic Inspector and set Stroke to None. Then, while the table is still selected, Format > Advanced > Move Object to Section Master to get it to appear on following pages.
    Jerry

  • TS1292 I scratched my itune card and some of the numbers came off. Please advise how to get the missing numbers

    I scratched my iTunes card and some of the numbers have come off. How do I get the missing numbers?

    See this support article:
    http://support.apple.com/kb/TS1292
    If you can't get to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

Maybe you are looking for

  • How to upload and search a document in KM

    Hi Experts, we are beginners in SAP EP.....can u guys provide me inputs for the follwing queries..... How to upload a document in KM ? How to search a document in KM? How to disable the windows authentication for protals? if it is enabled u can able

  • Calling one business role from another business role on CRM web client

    Hi, I have a requirement where, one business role can be launched just by click a navigation link on another., For eg. in a UTIL_IC role frame work , I add a link by clicking on it, I go to UITIL_SALES role. This is required so that person need to la

  • Regd. idoc INVOIC02

    Hi, does anyone know what the FM and the message type for IDOC Type INVOIC02 are?

  • Why are BT's ordering systems soooo bad??

    After a truely horrendous home move experience that could easily have cost me my job through lack of internet access, I am finally inching towards having infinity installed in my new house. My phone line was activated late on Tuesday 28th August, wit

  • Barcode POP UP issue in MIGO_GR by Two Users.

    Hi, I have an issue which the two users were facing while posting the GR against the same PO. For archiving process of goods receipt documents we should enter a Barcode in transaction MIGO_GR. By pressing icon "post" in MIGO_GR a pop-up window should