Scheduling Line qty greater than the Scheduling agreement qty

Hi Experts,
1. I have a scheduling Agreement (SA), and the qty mentioned against this SA is 1000 (say).
2. Now when i generate schedule lines for this SA (ME38), I am allowed to schedule more than the quantity that's mentioned in the SA.
3. Please advise, is it possible to restrict this behaviour. i.e. I want to give an error message if the Schedule Line qty exceeds the SA qty.
Please advise. Very urgent.
Regards,
Manju.

Hi Manju,
Yes its possible to restrict the case as u mentioned.
Check the below settings:
IMG-MM-Purchasing-Environment data- Define Attributes for system messages
go to meassage no : 00-06-067 set it as Error message.
U'll achieve ur result.
Award points if its helpful
Sangram

Similar Messages

  • Increasing maximum number of Logical Processors in a Processor Group greater than the default (64)

    Can the maximum number of Logical Processors allowed in a Processor Group be increased by Bcdedit command or registry key to a number greater than the default (64) to allow non-group-aware applications to seamlessly scale via multithreading across more cores
    MSDN documents methods to reduce the max number of LP's in a Processor Group to 1 or any power of 2 less than 64 in order to increase the number of Processor Groups.  But there is no discussion of how to increase the maximum number of Logical Processors
    allowed in a Processor Group to a number greater than the default (64), e.g. to 128 or 256. 
    Since a non-group-aware application/process can only run on 1 Processor Group, increasing this limit is needed to allow non-group-aware multithreaded applications to scale seamlessly for parallel computation across more than 64 cores simultaneously on systems
    with more than 64 cores (for example, a quad-socket Intel Xeon system with 24 cores per socket, including true and hyper cores).  If that limit can be set via registry key or command line, or if there is another way to force all the cores on
    all 4 sockets (4 NUMA nodes in this case) to join in 1 Processor Group, then non-group-aware applications will not need to be rewritten using group-aware thread-affinity APIs.  

    Hi John,
    Are you trying to specify a static NUMA-node-to-group assignment, rather than letting Windows dynamically assign NUMA nodes to groups at boot time? If yes, You can refer the
    following related KB:
    How to manually configure K-Group assignment on multiprocessor machines
    http://support.microsoft.com/kb/2506384
    Systems with fewer than 64 logical processors always have a single group, Group 0. On systems with 64 or fewer processors, existing applications will operate correctly without
    modification. Applications that do not call any functions that use processor affinity masks or processor numbers will operate correctly on all systems, regardless of the number of processors. To operate correctly on systems with more than 64 logical processors,
    the following kinds of applications might require modification:
    •Applications that manage, maintain, or display per-processor information for the entire system must be modified to support more than 64 logical processors. An example of
    such an application is Windows Task Manager, which displays the workload of each processor in the system.
    •Applications for which performance is critical and that can scale efficiently beyond 64 logical processors must be modified to run on such systems. For example, database
    applications might benefit from modifications.
    •If an application uses a DLL that has per-processor data structures, and the DLL has not been modified to support more than 64 logical processors, all threads in the application
    that call functions exported by the DLL must be assigned to the same group.
    By design, a non-NUMA computer is considered to have one NUMA node. Because NUMA nodes cannot span groups, the system creates a node for each group after you restart the computer.
    The related KB:
    Processor Groups
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd405503(v=vs.85).aspx
    More information:
    Uneven Windows Processor Groups
    http://blogs.msdn.com/b/saponsqlserver/archive/2011/10/08/uneven-windows-processor-groups.aspx
    Boot Parameters to Test Drivers for Multiple Processor Group Support
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff542298(v=vs.85).aspx
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • BDC line items greater than 7

    Hi,
    I have a sales order BDC program using Upload function to upload the file. It was working fine till now, as we are receiving more orders, this program is not working if we have the line items more than 7 in same order. Can you please help me how to change this program so that it takes line items greater than 7also?
    Thanks
    Veni.

    Hi Veni,
    There is one button (+ Sign) exist in the Sales order creation check the ok-code for this object in the
    put
    BDC_OKCODE = '=POAN'
    This OK code is for showing up the next 7 line items on the screen.
    -- if it works then please reward points--

  • Currency  IDR  becomes greater than the maximum price

    Dear All
    We have error message (no 06217), when create PO, like bellow :
    =================
    Net price in IDR becomes too large
    Message no. 06217
    Diagnosis
    The calculated net price in currency IDR becomes greater than the maximum price ("99999999999") defined in the system.
    Procedure
    Make sure your entries are correct.
    Check the following:
    The exchange rate, if the currency differs from the local currency;
    The conversion order unit --> order price unit.
    ==================
    Would you like help me please
    thanks
    imron

    Hello,
    The PO value in IDR currency is larger than the maximum length the SAP field and hence the error message. Either your order currency or your company code currency must be IDR in the PO and the total order value is exceeding the technical field length limitation in SAP.
    The best way ahead would be to break down the PO line into different purchase orders.
    Regards
    Greg

  • "Reversal value greater than the  value invoiced to date" error

    Hi all,
    I have a scenario.  there is a invoice which we tried to reverse through MR8M. But it was not successful. Now , as a alternative solution I am trying to book credit memo. There were two line items in the PO.  When I try to book Credit memo, the system throws error "Reversal value greater than the  value invoiced to date" only for line item 2. Line item 1 is perfectly OK. Any suggestions why this is happening ? If it would have been exchange rate problem then I think the error should be for both the line items.
    Regards,
    Vivek

    Hi,
    You told that youtr PO is having two line utems and you are trying to post the credit memeo for the two line items.
    Does your po is invoiced for the two line items ?
    if the second line item is not posted with any invoice , while posting credit memo to second line item system will give this error.This is one scenario.
    May be you would have wrongly entered the values ?
    There could have been already reversed or posted the credit memo for then second line item .
    check whather you are posting any subsequent posting ?
    Regards,

  • Error Message FF747  -The tax amount must not be greater than the tax base

    Hello,
    We are attempting to post an import vendor invoice through transaction    FB60 for Israel company code . Since the tax charged by the vendor is not fixed every time , we are entering the tax amount in the    FB60 screen manually , without selecting 'calculate tax'.The amount of tax is greater than the amount of expense as per the real business scenario. For example amount of expense is 100, amount of tax is 200 and the total amount charged by the vendor is 300 .However when we simulate the posting we get an error - The tax amount must not be greater than the tax base-Message no. FF747
    We tried putting a very high percentage in the tax code also but it didn't help
    We would like to go ahead with this posting. Could you pl throw light on the same . ? Is there any way (OSS note ) or a work around which can resolve the issue ?
    Best Regards
    Amit  Kulkarni

    Hello
    This may be  a work around in other cases , but since we want the amount to be updated in the BSET table for further VAT reports , we would like  this to be posted along with the expense item

  • Java always returns 15 minutes greater than the current time.

    Hi,
    I am using Microsoft Windows Server 2003R2,Standard X64 edition with Service Pack 2 and jdk1.6.0-03.
    Java always returns time 15 minutes greater than the current system time.
    eg:
    SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    System.out.println("Now time: "+simpleDateFormat.format(new Date()));
    System.out.println("Now time: "+new Date());The output of the program is :
    Now time: 2008-12-22 18:47:04
    Now time: Mon Dec 22 18:47:04 NPT 2008
    When my actual system time is 6:32 PM or (18:32)
    I have checked the current time with other programming languages like python and it always returns the actual date and time.
    Note: To my observation java is always utilizing a time which is 15 minutes greater than the current time even for its log.
    Thanks,
    Rajeswari (Msys)

    I think a more practical time machine would be one that actually travels back in time rather than forward (by 15 minutes). Sounds like it needs some more work.
    Anyway, I suggest changing the system time on your computer to some other value (say, 2 hours ahead), then running the program again. If its off by 2 hours and 15 minutes, its getting the time from your computer. However, if its still off by only 15 minutes (from your wristwatch's time), then its getting the time form somehere other than the computer clock.

  • The tax amount must not be greater than the tax base

    Hi Experts,
    User is trying to "Relase to Account" in t-code VF01 he is getting an error message The tax amount must not be greater than the tax base.
    During Debuging i found the error is raised in Function module      RV_ACCOUNTING_DOCUMENT_CREATE
    Message raised is
    Message Class : FF
    Message number: 747
    Mesage "The tax amount must not be greater than the tax base"
    Request to through some lights on this issue.
    Reagrds
    Sree

    Hi,
    did you check SAPNET notes with "VF01" and the message class/number as search terms. There are some notes dealing with this case eg 872449, and 184985.
    Best regards, Christian

  • SAP Table index size is greater than the size of the actual table

    Hello Experts,
    We are resolving an issue related to database performance. The present database size is 9 Terabytes. The analysis of response times through ST03N shows that the db time is 50% of the total response time. We are planning to reorganize the most updated tables (found from DB02old tx).
    Here we see that the size of the index for a table is greater than the actual size of the table. Is this possible, if yes then how can we reorganize the index as it does not allow us to reorganize the index using brspace command.
    Hope to hear from you soon, and if any additional activities you can suggest to improve the performance of the database will be appreciated.
    Thank you

    Hi Zaheer,
    online redef may help you (for a little while) , but also check WHY the index became fragmented.
    Improper settings can bring the index fragmented again and you have reoccuring reorg needs.
    i.e.
    check if PCT_INCREASE >0 if you are using Dictionary Managed Tablespaces or locally managed tablespaces  that uses a "User" allocation policy. Set it to 0 to generate uniform next extents in the online reorg.
    select
                SEGMENT_NAME,
                SEGMENT_TYPE,
                round((NEXT_EXTENT*BLOCKS)/(EXTENTS*BYTES))*(BYTES/BLOCKS),
                PCT_INCREASE
            from
                DBA_SEGMENTS
            where
                OWNER='SAPR3'
            and
                SEGMENT_TYPE in ('INDEX',
                                'TABLE')
            and
                PCT_INCREASE > 0
            and segment_name in ('Yourtable','Yourindex')
    In the following cases, it may be worthwhile to rebuild the index:
         --> the percentage of the space used is bad - lower than 66%: PCT_USED
         --> deleted leaf blocks represent more than 20% of total leaf blocks: DEL_LF_ROWS
         --> the height of the tree is bigger than 3: HEIGHT or BLEVEL
    select
      name,
      '----------------------------------------------------------'    headsep,
      'height               '||to_char(height,     '999,999,990')     height,
      'blocks               '||to_char(blocks,     '999,999,990')     blocks,
      'del_lf_rows          '||to_char(del_lf_rows,'999,999,990')     del_lf_rows,
      'del_lf_rows_len      '||to_char(del_lf_rows_len,'999,999,990') del_lf_rows_len,
      'distinct_keys        '||to_char(distinct_keys,'999,999,990')   distinct_keys,
      'most_repeated_key    '||to_char(most_repeated_key,'999,999,990') most_repeated_key,
      'btree_space          '||to_char(btree_space,'999,999,990')       btree_space,
      'used_space           '||to_char(used_space,'999,999,990')        used_space,
      'pct_used                     '||to_char(pct_used,'990')          pct_used,
      'rows_per_key         '||to_char(rows_per_key,'999,999,990')      rows_per_key,
      'blks_gets_per_access '||to_char(blks_gets_per_access,'999,999,990') blks_gets_per_access,
      'lf_rows      '||to_char(lf_rows,    '999,999,990')||'        '||+
      'br_rows      '||to_char(br_rows,    '999,999,990')                  br_rows,
      'lf_blks      '||to_char(lf_blks,    '999,999,990')||'        '||+
      'br_blks      '||to_char(br_blks,    '999,999,990')                  br_blks,
      'lf_rows_len  '||to_char(lf_rows_len,'999,999,990')||'        '||+
      'br_rows_len  '||to_char(br_rows_len,'999,999,990')                  br_rows_len,
      'lf_blk_len   '||to_char(lf_blk_len, '999,999,990')||'        '||+
      'br_blk_len   '||to_char(br_blk_len, '999,999,990')                br_blk_len
    from
      index_stats where index_name = 'yourindex'
    bye
    yk

  • Runtime error:ABAP program lines are longer than the internal table

    Hi all,
    Below is the code I have written,when Iam running it Iam getting
    'ABAP program lines are longer than the internal table' runtime error.How can I resolve it.
    REPORT  ZTEST1  NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES:MARC,CDHDR,CDPOS.
    TYPE-POOLS:SLIS.
    DATA:HEADER TYPE SLIS_T_FIELDCAT_ALV,
         WA TYPE SLIS_FIELDCAT_ALV,
         LAYOUT TYPE SLIS_LAYOUT_ALV.
    TYPES:BEGIN OF MARC_TY,
            MATNR LIKE MARC-MATNR,
            WERKS LIKE MARC-WERKS,
            EKGRP LIKE MARC-EKGRP,
            MINBE LIKE MARC-MINBE,
            EISBE LIKE MARC-EISBE,
            MABST LIKE MARC-MABST,
           END OF MARC_TY.
    TYPES:BEGIN OF MATNR1_TY,
            MATNR1 LIKE CDHDR-OBJECTID,
          END OF MATNR1_TY.
    TYPES:BEGIN OF CDHDR_TY,
             OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
             OBJECTID   LIKE CDHDR-OBJECTID,
             CHANGENR   LIKE CDHDR-CHANGENR,
             USERNAME   LIKE CDHDR-USERNAME,
             UDATE      LIKE CDHDR-UDATE,
            END OF CDHDR_TY.
    TYPES:BEGIN OF CDPOS_TY,
             OBJECTCLAS LIKE CDPOS-OBJECTCLAS,
             OBJECTID   LIKE CDPOS-OBJECTID,
             CHANGENR   LIKE CDPOS-CHANGENR,
             TABNAME    LIKE CDPOS-TABNAME,
             FNAME      LIKE CDPOS-FNAME,
             CHNGIND    LIKE CDPOS-CHNGIND,
             VALUE_NEW  LIKE CDPOS-VALUE_NEW,
             VALUE_OLD  LIKE CDPOS-VALUE_OLD,
            END OF CDPOS_TY.
    **************TABLE TYPES********************************************
    TYPES: MARC_TAB   TYPE TABLE OF MARC_TY,
           MATNR1_TAB TYPE TABLE OF MATNR1_TY,
           CDHDR_TAB  TYPE TABLE OF CDHDR_TY,
           CDPOS_TAB  TYPE TABLE OF CDPOS_TY.
    *******************INTERNAL TABLES************************************
    DATA:MARC_ITAB   TYPE MARC_TAB,
         MATNR1_ITAB TYPE MATNR1_TAB,
         CDHDR_ITAB  TYPE CDHDR_TAB,
         CDPOS_ITAB  TYPE CDPOS_TAB.
    ****************WORK AREAS********************************************
    DATA:MARC_WA   TYPE MARC_TY,
         MATNR1_WA TYPE MATNR1_TY,
         CDHDR_WA  TYPE CDHDR_TY,
         CDPOS_WA  TYPE CDPOS_TY.
    *******************SELECTION-SCREEN***********************************
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
      PARAMETERS:PLANT LIKE MARC-WERKS.
      SELECT-OPTIONS:MATERIAL FOR MARC-MATNR.
      SELECT-OPTIONS:DATE FOR CDHDR-UDATE.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
    SELECT MATNR
            WERKS
            EKGRP
            MINBE
            EISBE
            MABST
            FROM MARC INTO TABLE MARC_ITAB
            WHERE MATNR IN MATERIAL
            AND WERKS = PLANT.
      CHECK MARC_ITAB[] IS NOT INITIAL.
      LOOP AT MARC_ITAB INTO MARC_WA.
       MATNR1_WA-MATNR1 = MARC_WA-MATNR.
       APPEND MATNR1_WA TO MATNR1_ITAB.
       CLEAR MATNR1_WA.
    ENDLOOP.
    CHECK MATNR1_ITAB[] IS NOT INITIAL.
    SELECT OBJECTCLAS
            OBJECTID
            CHANGENR
            USERNAME
            UDATE
            FROM CDHDR INTO TABLE CDHDR_ITAB
            FOR ALL ENTRIES IN MATNR1_ITAB
            WHERE OBJECTCLAS = 'MATERIAL'
            AND OBJECTID = MATNR1_ITAB-MATNR1
            AND UDATE IN DATE.
    CHECK CDHDR_ITAB[] IS NOT INITIAL.
    SORT CDHDR_ITAB[]  DESCENDING BY OBJECTID  CHANGENR.
    DELETE ADJACENT DUPLICATES FROM CDHDR_ITAB[] COMPARING OBJECTID.
    SELECT OBJECTCLAS
           OBJECTID
           CHANGENR
           TABNAME
           FNAME
           CHNGIND
           VALUE_NEW
           VALUE_OLD
           FROM CDPOS INTO CORRESPONDING FIELDS OF TABLE CDPOS_ITAB
           FOR ALL ENTRIES IN CDHDR_ITAB
           WHERE OBJECTCLAS = CDHDR_ITAB-OBJECTCLAS
           AND OBJECTID = CDHDR_ITAB-OBJECTID
           AND CHANGENR = CDHDR_ITAB-CHANGENR
           AND TABNAME  = 'MARC'
           AND FNAME    IN ('MINBE','EISBE','MABST','LVORM')
           AND CHNGIND  = 'U'.
    CHECK CDPOS_ITAB[] IS NOT INITIAL.
    *LOOP AT CDPOS_ITAB INTO CDPOS_WA.
    WRITE: / CDPOS_WA-OBJECTCLAS,
             CDPOS_WA-OBJECTID,
             CDPOS_WA-CHANGENR,
             CDPOS_WA-TABNAME,
             CDPOS_WA-FNAME,
             CDPOS_WA-CHNGIND,
             CDPOS_WA-VALUE_NEW,
             CDPOS_WA-VALUE_OLD.
    *ENDLOOP.
    WA-SELTEXT_L = 'OBJECTCLAS'.
    WA-COL_POS   = '1'.
    WA-FIELDNAME = 'OBJECTCLAS'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '15'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'OBJECTID'.
    WA-COL_POS   = '2'.
    WA-FIELDNAME = 'OBJECTID'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '20'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'CHANGENR'.
    WA-COL_POS   = '3'.
    WA-FIELDNAME = 'CHANGENR'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '8'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'TABNAME'.
    WA-COL_POS   = '4'.
    WA-FIELDNAME = 'TABNAME'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '5'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'FNAME'.
    WA-COL_POS   = '5'.
    WA-FIELDNAME = 'FNAME'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '7'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'CHANGING'.
    WA-COL_POS   = '6'.
    WA-FIELDNAME = 'CHANGING'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '1'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'VALUE_NEW'.
    WA-COL_POS   = '7'.
    WA-FIELDNAME = 'VALUE_NEW'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '5'.
    APPEND WA TO HEADER.
    CLEAR WA.
    WA-SELTEXT_L = 'VALUE_OLD'.
    WA-COL_POS   = '8'.
    WA-FIELDNAME = 'VALUE_OLD'.
    WA-TABNAME   = 'CDPOS_ITAB'.
    WA-OUTPUTLEN = '5'.
    APPEND WA TO HEADER.
    CLEAR WA.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
        I_PROGRAM_NAME               = SY-REPID
        I_INTERNAL_TABNAME           = 'CDPOS_ITAB'
        I_CLIENT_NEVER_DISPLAY       = 'X'
        I_INCLNAME                   = SY-REPID
      CHANGING
        CT_FIELDCAT                  = HEADER[]
    EXCEPTIONS
    IF SY-SUBRC <> 0.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM                = SY-REPID
        IT_FIELDCAT                       = HEADER[]
      TABLES
        T_OUTTAB                          = CDPOS_ITAB[]
    IF SY-SUBRC <> 0.
    ENDIF.

    Your select querry on MARC is not matching with MARC_TY.
    The field in the MARC table and MARC_TY should be same.
    and also, when you are making select querry on CDPOS table
    with all entries.
    When ever you are using all entries select statement, you should check whether the internal table is having value.
    you should check
    if CDPOS_IT[] is not initial.
    SELECT OBJECTCLAS
    OBJECTID
    CHANGENR
    TABNAME
    FNAME
    CHNGIND
    VALUE_NEW
    VALUE_OLD
    FROM CDPOS INTO CORRESPONDING FIELDS OF TABLE CDPOS_ITAB
    FOR ALL ENTRIES IN CDHDR_ITAB
    WHERE OBJECTCLAS = CDHDR_ITAB-OBJECTCLAS
    AND OBJECTID = CDHDR_ITAB-OBJECTID
    AND CHANGENR = CDHDR_ITAB-CHANGENR
    AND TABNAME = 'MARC'
    AND FNAME IN ('MINBE','EISBE','MABST','LVORM')
    AND CHNGIND = 'U'.
    endif.
    Regards
    Madhan D

  • Goods receipt date should be greater than the P.O. date

    Hi
    Is there any option to control the Goods receipt date should not be lesser than the P.O.Date??
    Eg: P.O. is raised in 10.1.9, User should not do the GRN before 10.1.9. In which way we can control  this???
    Regards
    Ravi

    Dear,
    You have to include User exit in MIGOwhich will trhrow an error at the time when Goods receipt date is greater than the P.O. date.
    Regards
    Utsav

  • COMPAQ presarioc700 my lap showing that MBR nomber is greater than the BIOS nomber

     when am  trying to start my laptop it saying that some MBR no is greater than the BIOS nomber and after that its taking time and up to click enter and sometimes its giving sound like a crack, and when am trying to update my bios in that its not showing my OS presently am using WINDOWS7,is there require to update bios or what should i do please help thank u

    Hi SURESH13,
    Welcome to the HP Forums! I see that you are having some problems with your Master Boot Record. I have included a link to a third-party site that will show you how to fix the MBR corruption.
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • FF747 Tax amount must not be greater than the tax base

    We have sample orders where the order amount is calculated and then discounted fully.  However, our freight goes to our tax software separately due to different taxability rules.  Therefore, the original tax amount (pre-discount) is sent and we end up with FF 747: The tax amount must not be greater than the tax base.
    The business wants to track this freight amount.  How do we change the message from error to warning or does anyone have a work around so we can invoice these customers?
    Thanks,
    Michelle

    Hello ,
    I am facing the same issue. Could you please let me know how you resolved it ?
    Thanks.

  • User_id should be one greater than the last

    i want to insert a new row and make the user_id one greater than the last user_id. anyone any ideas

    user8652681 wrote:
    ive wrote the code and it updates the row i want once, is there anyway i can change this so it adds a message into REPORT for evey instance of where last_login is < '05-MAY-09'
    insert into REPORT (message_id)
         select max(message_id) + 1 from REPORT
         where exists
              select
                   null
              from
                   users u
              where
                   last_login < '05-MAY-09'
    )For that sort of thing you'll want a sequence.
    SQL> select max(empno) from emp;
    MAX(EMPNO)
          7934
    SQL> create sequence empno_seq start with 7935 nocache;
    Sequence created.
    SQL> create table emp2 as select * from emp;
    Table created.
    SQL> insert into emp2
      2  select empno_seq.nextval, ename, job, mgr, hiredate, sal*2, 0, deptno
      3  from emp;
    14 rows created.
    SQL> select * from emp2;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
          7935 SMITH      CLERK           7902 17-DEC-80       1600          0         20
          7936 ALLEN      SALESMAN        7698 20-FEB-81       3200          0         30
          7937 WARD       SALESMAN        7698 22-FEB-81       2500          0         30
          7938 JONES      MANAGER         7839 02-APR-81       5950          0         20
          7939 MARTIN     SALESMAN        7698 28-SEP-81       2500          0         30
          7940 BLAKE      MANAGER         7839 01-MAY-81       5700          0         30
          7941 CLARK      MANAGER         7839 09-JUN-81       4900          0         10
          7942 SCOTT      ANALYST         7566 19-APR-87       6000          0         20
          7943 KING       PRESIDENT            17-NOV-81      10000          0         10
          7944 TURNER     SALESMAN        7698 08-SEP-81       3000          0         30
          7945 ADAMS      CLERK           7788 23-MAY-87       2200          0         20
          7946 JAMES      CLERK           7698 03-DEC-81       1900          0         30
          7947 FORD       ANALYST         7566 03-DEC-81       6000          0         20
          7948 MILLER     CLERK           7782 23-JAN-82       2600          0         10
    28 rows selected.
    SQL>

  • Reversal quantity greater than the ref. issue qty.

    Hi All,
    With the goods Issue to cost centers, with movt type 201, the system gives a material document.
    When I refer the same material docuemnt number for the complete / partial reversal (with movt type 202) system is allowing more quantity than the referred original issue quantity.
    Ex.- If I issue 10 EA of a material to cost center, system is allowing to make reversals (202) of more quantity (say 50 EA) for the same material, even after I refer the 201 material document in the transaction MIGO.
    Please advise.
    Thanks.
    Karthik

    I didnt find any Message Control  during MB1A 201 Reversal.
    I would suggest you to use MIGO with Cacellation Category and Give MB1A 201 Reference document number and try.
    If you Refer 210 Document no system, then you will no thave possibility to change qty etc during reversal.
    Regards,
    Ashok

Maybe you are looking for