Regarding  quantity limit in S O

Hi,
      for a paticular material when iam creating sales order the quantity is milimted to 20 .if i give 10  it automatically round it to 20.
but if i give 30 it just gives a warning message and allows it.i want to restrict it if the quantity is not 20 or multiples of 20.
let me know the way if you know

Hiii
There is so many work arround available........................
This can be achieve through User exit.
1. USEREXIT_SAVE_DOCUMENT_PREPARE
2. USEREXIT_READ_DOCUMENT.
3. USEREXIT_SAVE_DOCUMENT
here you can take the help of ABAPer to build the logic for maximum quantity before  saving the document or while reading the document.
Another one you can create the Ztable to store material quantity with customer or as per your logic and can read the table in your user exit.
Regards
Shambhu Sarkar

Similar Messages

  • Urgent regarding credit limit

    Hi Gurus
    I have a issue regarding credit limit:
    for a customer "ABC" i have maintained a credit limit for 1000/- in FD32 now when we create a sales order of more than 1000/- for the same customer a popup MSg is comming saying amount has exeeded ...so far so good
    my issue is that the requirements should not pass to MD04 (Stock/Requirement List)
    some of the SAP gurus giving the answer  check out OVB8 and see the requirement 101, i want to know the functionality of requirement "101" and how to go about the issue ..... issue is very urgent
    Regards
    Rajesh

    HI RAJESH
              This can be  done through  go to IMG--> S&D->Basic functions>Availabililty check&transfer of requirements>Transfer of requirements-->block quantity confirmation for delivery blocks. Here u give blocking reason as credit limit,,,,,, Here u find  confirmation block,here u make tick  and save . Here the reason is that even the order is saved,requirements will not be passed to MRP     i.e requirements will not be passed to stock requirement list.
                        Award points if it is helpful for u
                       Regards
                       Prasad.G

  • Regarding quantity field...value in layout

    Hi All,
    my issue is here i am passing vbrp-fkimg value to layout..
    the value in the field above is 100.000, but here in the layout it is coming as 100 and printing it.
    how the value of 100.000 become 100.
    any settings, configuaration are there which changes the value..
    Regards,
    vinesh..

    Hi,
    quantity field will be whole no.
    if the requirment is like printing decimals.
    Then declare one variable of type pack decimal.
    data : w_var type p decimal 3.
    Move vbrp-fkimg to w_var.
    and desplay this variable w_var.
    Reward pts if helpfull.
    Regards,
    Dhan

  • Error regarding quantity unit

    Hi everyone.
    I have the below statement in report program.WHEN I SYNTAX CHECK I DOESN'T SHOW ANY ERRORS
    write:/ 'zorder : ', itab-zorder,
                   '  with quantity ', itab-zQUAN.
    BUT WHEN I DO THE EXTENDED SYNTAX CHECK AT SE10 OR SE09 I.E WHEN I DO THE EXTENDED CHECK TO THE TRANSPORT OF THAT REPORT I GET THE FOLLWING ERROR.
    Use addition UNIT when outputting ITAB-ZQUAN
    Use auxiliary field when outputting with MESSAGE          
    ZQUANT  IS THE QUANTITY OF MATERIAL
    PLEASE LET ME KNOW IF I NEED TO DO ANY THING TO OVERCOME THIS.
    Thanks in advance

    Taken from ABAP Help.....
    <i>
    <b>... UNIT unit</b>
    This addition cannot be used together with the addition TIME ZONE.
    <b>Effect</b>
    This addition cuts off decimal places that have the value 0 and are outside the exactness of a unit of measure during output of data objects of data type p. For all other data types, except f, this addition is ignored. For unit, a three-digit, character-type field is expected that contains a unit key from the column MSEHI in the database table T006 in uppercase letters. The system determines the number of decimal places from the column DECAN in the corresponding row in the database table T006. If the content of unit is not found in T006, the addition is ignored.
    If the data type of dobj is p and has at least as many decimal places as specified by unit, and if no positions are thus cut off that are not equal to 0, then dobj is output with this number of decimal places.
    In the case of data objects of type f, the addition UNIT will be treated like the addition DECIMALS (see above). Here, the number of decimal places is determined by unit.
    If the addition UNIT is used with the length specification * or ** after AT, it is used first, and the output length is determined from the result.
    If the addition CURRENCY is used at the same time, this is used first for data type p and then the addition UNIT is used. In the case of data type f, the addition UNIT is ignored.
    Example
    If no decimal places are specified for the number "PC" in T006, the output of the WRITE statement is "1234".
    DATA pack TYPE p DECIMALS 4 VALUE '1234.0000'.
    WRITE pack NO-GROUPING UNIT 'PC'.
    </i>
    REgards,
    Rich Heilman

  • Regarding table limit

    hi all,
       what is the table limit in data dictionary.....am thinking its size category..is it correct????

    Hi Friend,
                  You can provide the expected records for you table in the Size Catagory,  these are 0,1,2,3,4
    with different sizes.   
    Regards,
    Md Ziauddin.

  • What is the quantity limit for custom ringtone can be keep in iPhone 4

    Hi, I just brought a new iPhone 4. I only can add two custom ringtone in it. Is that the limit?

    There is no limit that I am aware of.
    I have 186.

  • Regarding quantity

    Hi friends
    wat is the diif between target qty and order qty?
    wat is meant by target qty?
    plz reply me
    thanks in advance

    hi,
    Target quantity
    The target quantity for an item in a sales document. The quantity is expressed in sales units (for example, bottles).
    Use
    The following list shows the use of target quantities in different types of sales document.
    Scheduling agreements: A target quantity represents the total quantity of an item that the customer has agreed to buy during the validity period of the agreement.
    Credit and debit memo requests: A target quantity represents the total quantity of an item for which you want to issue a credit or debit memo request.
    Product proposals: A target quantity represents the total quantity of an item that is suggested as part of a product proposal. After you have copied the product proposal into a new sales document, you can create schedule lines.
    order quantity
    The total (rounded) order quantity for this item.
    Use
    If there is more than one schedule line for the item, the total order quantity is taken from the rounded quantity of the total of all the schedule lines.
    If no rounding is carried out, then the order required quantity corresponds to a schedule line of the rounded quantity.

  • Regarding QUANTITY AND CURR FIELD

    Hi Expert,
      i want to divide Currency field but when i divide currency field it givies garbage
      values.
       BSEG-WRBTR is curr field when i divide it by 10 it gives garbage value.
      plz tell me silution.
    regards,
    sonu

    Hi
    What is the field to which you are moving the resultant of division?
    Check the declaration of that field.
    Regards
    Raj

  • Regarding quantity variations in po

    Hi,
    when we create the PO for 181.904 units but it takes 181 units. how can we configure for to take 181.904 units.

    Hi,
    Are you SURE that it just takes 181 (check the stock in MMBE, that shows three decimal places).
    If the system is rounding the receipt an "losing" the decimal places then the UOM must be set to have no decimal places (check in transaction CUNI ).
    be VERY careful though, don't just try to change the UOM config, you will get lots of warnings telling you that you can cause serious problems if you try this.
    I would suggest that you use a different UOM for all future materials (one that has three decimal places).
    As for existing materials you can change the issue UOM to one with 3 decimal places and all should work fine (I think !)
    You can't really change the base UOM.
    Steve B

  • Regarding: User limit and tables limits

    For Application demo, we need to Install oracle Express addition, Please specify what the limitation it has comparzing with standard edition. If we are developing our application on stardard addition and we have around 400 tables, 1600 Sps and 100 views , then can we run Express addition with all the required database objects. we are not using replication or clustering.

    You can look for the details yourself:
    here
    http://www.oracle.com/technology/products/database/xe/index.html
    and here
    http://www.oracle.com/technology/pub/articles/cunningham-database-xe.html
    Denes Kubicek

  • Storage limit

    my ipad is 16GB but when i try to record a video it says no storage left.  i checked in settings and it is showing total storage 5.gb and available 5gb so why is it not allowing me to record

    Dear,
    If you would like to consider without MRP, you can restrict with Purchase order release strategy. While approving the management candidate can reject or approve the order quantity ... subject to available stock in system.
    For defining material master for restricting the order creation, do consult with ABAP team for possible options.
    I do believe that there is no option to enter quantity limit in material master (without MRP).
    If you go to Warehouse management there you can define a storage bin and you can define bin storage capacity.
    http://help.sap.com/saphelp_47x200/HELPDATA/EN/c6/f845604afa11d182b90000e829fbfe/content.htm
    http://help.sap.com/saphelp_45B/helpdata/en/c6/f844de4afa11d182b90000e829fbfe/content.htm
    http://help.sap.com/saphelp_45B/helpdata/en/c6/f845124afa11d182b90000e829fbfe/content.htm
    Regards,
    Syed Hussain.

  • Is there a PDF file size limit in Mail?

    Hi
    On an iPad 2 IOS 5.1.1, if I receive an email with a PDF sized around 1.6mb I can touch the download arrow and it counts up from 0 bytes to the size of the file then, once downloaded, I can open it in iBooks, Goodreader etc.
    If, however, I receive a PDF attachment of around 2mb or bigger, I touch the down arrow, it says "0 bytes of 2.1mb", the spinning wheel goes around in the PDF attachment icon for a few seconds and then it sort of blinks and goes back to giving me the download arrow.
    I've tried this with various size pdf's and on cellular and wifi connections and it's consistently the same.
    Update: it does the same with jpg's too, which is odd. Just tried a 3.6mb file attached to an email and it does the same.
    Any ideas?
    Regards,
    Matt

    The limit of an e-mail is 25MB.
    That means you cant send e-mail if you are over the limit.(mission impossible)
    There can be a problem with the mail server.

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • ONHAND QUANTITY SETUP을 확인하는 방법

    제품: Applications
    작성날짜 : 2006-05-30
    ONHAND QUANTITY SETUP을 확인하는 방법
    ==============================
    PURPOSE
    Onhand quantity setup을 확인하는 방법
    Explanation
    script을 통해, 여러 setup사항들 및 onhand수량을 check할 수 있다.
    1. Check Organization controls
    2. Check Subinventory controls
    3. Check item attributes and controls for lot, locator, serial and
    revision.
    4. Check onhand quantity stock records a) non lot control
    b) lot controlled
    5. Check that stock records agree with attribute settings including
    the following:
    - Check that stock has a lot number if under lot control.
    - Check expiration date, lots which have expired still show in
    transaction screen
    - LPN containerized items
    6. Show reservations for the item
    7. Show overall quantities (from an internal routine called qtytree)
    8. Check that cost groups are correct.
    9. Check that quantities agree.
    아래의 script을 onhand.sql로 생성하여 수행하시기 바랍니다.
    $Header: onhand.sql 115.9 2005/05/25 $
    FILE
    onhand.sql
    DESCRIPTION
    Gives information regarding quantity values for an item within an organization,
    subinventory, revision and lot to determine why the system does not find
    available stock.
    Quantity on hand
    Reservable quantity on hand
    Quantity reserved
    Quantity suggested
    Quantity available to transact
    Quantity available to reserve
    The retrieved information will be written to an O/S file called: onhand.lst
    This script should be used for Release 11.5 only.
    BASE
    Bug 3089073, 4349223
    ARGUMENTS
    Organization_id
    Inventory_item_id
    lot_number => return over this if item is not lot controlled
    revision => return over this if item is not revision controlled
    subinventory_code
    /*WHENEVER SQLERROR EXIT FAILURE;*/
    spool onhand.lst
    set linesize 125;
    set pagesize 200;
    set verify off;
    set serveroutput on
    PROMPT 1/ To check Organization controls
    SELECT organization_id ORG_ID,
    primary_cost_method CST_TYP,
    cost_organization_id CST_ORG,
    master_organization_id MAST_ORG,
    default_cost_group_id DEF_CST_GRP,
    project_reference_enabled PROJ_FLG,
    wms_enabled_flag WMS
    FROM mtl_parameters
    WHERE organization_id = &&org_id;
    PROMPT 2/ To check Subinventory controls
    SELECT secondary_inventory_name, organization_id org_id, default_cost_group_id DEF_CST_GRP,
    locator_type LOC, asset_inventory ASSET_INV
    FROM mtl_secondary_inventories
    where organization_id = &&org_id;
    PROMPT 3/ To check item attributes
    select LOT_CONTROL_CODE LOT, REVISION_QTY_CONTROL_CODE REV, LOCATION_CONTROL_CODE LOC,
    SERIAL_NUMBER_CONTROL_CODE SER
    from mtl_system_items_b
    where organization_id= &&org_id
    and inventory_item_id = &&item_id;
    prompt control = 2 for on
    prompt serial_number_control 1-No serial number, 2-Predefined serial number, 5-Dynamic entry at inventory receipt
    prompt 6-Dynamic entry at sales order issue
    PROMPT 4/ To check onhand quantity stock records a) non lot control b) lot controlled
    select moqd.inventory_item_id ITEM_ID, moqd.organization_id ORG_ID,
    moqd.primary_transaction_quantity PRIM_QTY, moqd.subinventory_code, moqd.revision REV,
    moqd.locator_id, moqd.lot_number,
    moqd.cost_group_id CST_GRP_ID, moqd.project_id, moqd.task_id, moqd.lpn_id,
    moqd.CONTAINERIZED_FLAG CONT_FLG
    from mtl_onhand_quantities_detail moqd
    where moqd.organization_id = &&org_id
    and moqd.inventory_item_id = &&item_id;
    select moqd.inventory_item_id ITEM_ID, moqd.organization_id ORG_ID,
    moqd.primary_transaction_quantity PRIM_QTY, moqd.subinventory_code,moqd.revision REV,
    moqd.locator_id, moqd.lot_number, mln.expiration_date EXPIRE_DATE,
    moqd.cost_group_id CST_GRP_ID, moqd.project_id, moqd.task_id, moqd.lpn_id,
    moqd.CONTAINERIZED_FLAG CONT_FLG
    from mtl_onhand_quantities_detail moqd, mtl_lot_numbers mln
    where moqd.organization_id = &&org_id
    and moqd.inventory_item_id = &&item_id
    and moqd.inventory_item_id = mln.inventory_item_id
    and moqd.organization_id = mln.organization_id
    and moqd.lot_number = mln.lot_number;
    PROMPT Check that stock records agree with attribute settings ie. stock has a lot
    PROMPT number if under lot control. Also check expiration date, lots which have expired
    PROMPT still show in transaction screen but cannot be reserved (bug 3818166) and for
    PROMPT negative balances, if found apply patch 3747966.
    PROMPT Also check for LPN containerised items will not show as available on forms need
    PROMPT unpack the material and then try to issue out from desktop or Perform the Misc
    PROMPT issue of the LPN from the Mobile (bug 4349223).
    PROMPT
    PROMPT 5/ Show reservations for item
    select organization_id, inventory_item_id, demand_source_name, demand_source_header_id,
    demand_source_line_id, primary_reservation_quantity, revision, subinventory_code,
    locator_id, lot_number
    from mtl_reservations
    where organization_id = &&org_id
    and inventory_item_id = &&item_id;
    PROMPT 6/ Show overall quantities from qtytree
    SELECT
    x.organization_id organization_id
    , x.inventory_item_id inventory_item_id
    , x.revision revision
    , x.lot_number lot_number
    , To_date(NULL) lot_expiration_date
    , x.subinventory_code subinventory_code
    , sub.reservable_type reservable_type
    , x.locator_id locator_id
    , x.primary_quantity primary_quantity
    , x.date_received date_received
    , x.quantity_type quantity_type
    , x.cost_group_id cost_group_id
    , x.containerized containerized
    FROM (
    SELECT
    x.organization_id organization_id
    , x.inventory_item_id inventory_item_id
    , NULL revision
    , NULL lot_number
    , x.subinventory_code subinventory_code
    , x.locator_id locator_id
    , SUM(x.primary_quantity) primary_quantity
    , MIN(x.date_received) date_received
    , x.quantity_type quantity_type
    , x.cost_group_id cost_group_id
    , x.containerized containerized
    FROM (
    -- reservations
    SELECT
    mr.organization_id organization_id
    , mr.inventory_item_id inventory_item_id
    , mr.revision revision
    , mr.lot_number lot_number
    , mr.subinventory_code subinventory_code
    , mr.locator_id locator_id
    , mr.primary_reservation_quantity
    - Nvl(mr.detailed_quantity,0) primary_quantity
    , To_date(NULL) date_received
    , 3 quantity_type
    , to_number(NULL) cost_group_id
    , 0 containerized
    FROM mtl_reservations mr
    WHERE
    Nvl(mr.supply_source_type_id, 13) = 13
    AND mr.primary_reservation_quantity > Nvl(mr.detailed_quantity,0)
    UNION ALL
    -- onhand quantities
    SELECT
    moq.organization_id organization_id
    , moq.inventory_item_id inventory_item_id
    , moq.revision revision
    , moq.lot_number lot_number
    , moq.subinventory_code subinventory_code
    , moq.locator_id locator_id
    , decode(NULL, NULL, moq.transaction_quantity, nvl(pjm_ueff_onhand.onhand_quantity
    (NULL,moq.inventory_item_id,moq.organization_id
    ,moq.revision,moq.subinventory_code,moq.locator_id,moq.lot_number)
    ,moq.transaction_quantity))
    , nvl(moq.orig_date_received,
    moq.date_received) date_received
    , 1 quantity_type
    , moq.cost_group_id cost_group_id
    , decode(moq.containerized_flag,
    1, 1, 0) containerized
    FROM
    mtl_onhand_quantities_detail moq
    UNION ALL
    -- pending transactions in mmtt
    --changed by jcearley on 12/8/99
    --added 1 to decode statement so that we make sure the
    --issue qtys in mmtt are seen as negative.
    --This problem arose because create_suggestions stores
    --the suggested transactions in mmtt as a positive number.
    -- added 5/23/00
    -- if quantity is in an lpn, then it is containerized
    SELECT
    mmtt.organization_id organization_id
    , mmtt.inventory_item_id inventory_item_id
    , mmtt.revision revision
    , NULL lot_number
    , mmtt.subinventory_code subinventory_code
    , mmtt.locator_id locator_id
    , Decode(mmtt.transaction_status, 2, 1
    , Decode(mmtt.transaction_action_id
    , 1, -1, 2, -1, 28, -1, 3, -1, Sign(mmtt.primary_quantity))
    * Abs( decode(NULL, NULL, mmtt.primary_quantity, Nvl(apps.pjm_ueff_onhand.txn_quantity(NULL,mmtt.transaction_temp_id,mmtt.lot_number,
    'N',mmtt.inventory_item_id, mmtt.organization_id, mmtt.transaction_source_type_id,
    mmtt.transaction_source_id, mmtt.rcv_transaction_id,
    sign(mmtt.primary_quantity)
    ),mmtt.primary_quantity)) )
    , Decode(mmtt.transaction_action_id
    , 1, To_date(NULL)
    , 2, To_date(NULL)
    , 28, To_date(NULL)
    , 3, To_date(NULL)
    , Decode(Sign(mmtt.primary_quantity)
    , -1, To_date(NULL)
    , mmtt.transaction_date)) date_received
    , Decode(mmtt.transaction_status, 2, 5, 1) quantity_type
    , mmtt.cost_group_id cost_group_id
    , decode(mmtt.lpn_id, NULL, 0, 1) containerized
    FROM
    mtl_material_transactions_temp mmtt
    WHERE
    mmtt.posting_flag = 'Y'
    AND mmtt.subinventory_code IS NOT NULL
    AND (Nvl(mmtt.transaction_status,0) <> 2 OR -- pending txns
    -- only picking side of the suggested transactions are used
    Nvl(mmtt.transaction_status,0) = 2 AND
    mmtt.transaction_action_id IN (1,2,28,3,21,29,32,34)
    -- dont look at scrap and costing txns
    AND mmtt.transaction_action_id NOT IN (24,30)
    UNION ALL
    -- receiving side of transfers
    -- added 5/23/00
    -- if quantity is in an lpn, then it is containerized
    SELECT
    Decode(mmtt.transaction_action_id
    , 3, mmtt.transfer_organization
    , mmtt.organization_id) organization_id
    , mmtt.inventory_item_id inventory_item_id
    , mmtt.revision revision
    , NULL lot_number
    , mmtt.transfer_subinventory subinventory_code
    , mmtt.transfer_to_location locator_id
    , Abs( decode(NULL, NULL, mmtt.primary_quantity, Nvl(apps.pjm_ueff_onhand.txn_quantity(NULL,mmtt.transaction_temp_id,mmtt.lot_number,
    'N',mmtt.inventory_item_id, mmtt.organization_id, mmtt.transaction_source_type_id,
    mmtt.transaction_source_id, mmtt.rcv_transaction_id,
    sign(mmtt.primary_quantity)
    ),mmtt.primary_quantity)) )
    , mmtt.transaction_date date_received
    , 1 quantity_type
    , mmtt.transfer_cost_group_id cost_group_id
    , decode(mmtt.transfer_lpn_id, NULL, 0, 1) containerized
    FROM
    mtl_material_transactions_temp mmtt
    WHERE
    mmtt.posting_flag = 'Y'
    AND Nvl(mmtt.transaction_status,0) <> 2 -- pending txns only
    AND mmtt.transaction_action_id IN (2,28,3)
    ) x
    WHERE x.organization_id = &&org_id
    AND x.inventory_item_id = &&item_id
    GROUP BY
    x.organization_id, x.inventory_item_id, x.revision
    , x.subinventory_code, x.locator_id
    , x.quantity_type, x.cost_group_id, x.containerized
    ) x
    , mtl_secondary_inventories sub
    WHERE
    x.organization_id = sub.organization_id (+)
    --AND Nvl(sub.availability_type, 1) = 1
    AND x.subinventory_code = sub.secondary_inventory_name (+) ;
    PROMPT Check that cost groups are correct see Bug 4222079
    PROMPT 7/ To find stock values from system nb.<cr> over lot and revision if item
    PROMPT is not under lot or revision control, <cr> over subinventory for all subinvs
    DECLARE
    L_api_return_status VARCHAR2(1);
    l_qty_oh NUMBER;
    l_qty_res_oh NUMBER;
    l_qty_res NUMBER;
    l_qty_sug NUMBER;
    l_qty_att NUMBER;
    l_qty_atr NUMBER;
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(1000);
    l_rev varchar2(100):=NULL;
    l_lot VARCHAR2(100):=NULL;
    l_loc VARCHAR2(100):=NULL;
    l_lot_control BOOLEAN :=false;
    l_revision_control BOOLEAN :=false;
    l_lot_control_code NUMBER;
    l_revision_qty_control_code NUMBER;
    l_location_control_code NUMBER;
    l_org_id NUMBER;
    l_item_id NUMBER;
    l_subinv VARCHAR2(10);
    BEGIN
    select LOT_CONTROL_CODE ,REVISION_QTY_CONTROL_CODE, LOCATION_CONTROL_CODE
    into l_lot_control_code, l_revision_qty_control_code, l_location_control_code
    from mtl_system_items_b
    where organization_id= &&org_id
    and inventory_item_id = &&item_id;
    if l_lot_control_code = 2 then
    l_lot_control :=true;
    l_lot:='&lotnumber';
    end if;
    if l_revision_qty_control_code =2 then
    l_revision_control:=true;
    l_rev:='&revision';
    end if;
    inv_quantity_tree_grp.clear_quantity_cache;
    dbms_output.put_line('Transaction Mode');
    apps.INV_Quantity_Tree_PUB.Query_Quantities (
    p_api_version_number => 1.0
    , p_init_msg_lst => apps.fnd_api.g_false
    , x_return_status => L_api_return_status
    , x_msg_count => l_msg_count
    , x_msg_data => l_msg_data
    , p_organization_id => &&org_id
    , p_inventory_item_id => &&item_id
    , p_tree_mode => apps.INV_Quantity_Tree_PUB.g_transaction_mode
    , p_onhand_source => NULL
    , p_is_revision_control=> l_revision_control
    , p_is_lot_control => l_lot_control
    , p_is_serial_control => NULL
    , p_revision => l_rev
    , p_lot_number => l_lot
    , p_subinventory_code => '&&subinv_code'
    , p_locator_id => NULL
    , x_qoh => l_qty_oh
    , x_rqoh => l_qty_res_oh
    , x_qr => l_qty_res
    , x_qs => l_qty_sug
    , x_att => l_qty_att
    , x_atr => l_qty_atr );
    dbms_output.put_line('Quantity on hand --> '||to_char(l_qty_oh));
    dbms_output.put_line('Reservable quantity on hand --> '||to_char(l_qty_res_oh));
    dbms_output.put_line('Quantity reserved --> '||to_char(l_qty_res));
    dbms_output.put_line('Quantity suggested --> '||to_char(l_qty_sug));
    dbms_output.put_line('Quantity available to transact --> '||to_char(l_qty_att));
    dbms_output.put_line('Quantity available to reserve --> '||to_char(l_qty_atr));
    end;
    PROMPT Check that quantities agree with script 4 and 5.
    Spool off;
    PROMPT *** Print file onhand.lst created ***
    exit
    Reference Documents
    Bug 4529874

  • ALV lines limit

    Hi,
    I'm using FM to show an ALV report, but report stops at line number 16.073, and the itab have 16.230 lines.
    I didn't see any document regarding lines limit at ALV reports. Does anybody knows what happing?
    Thanks!
    Furlan

    I just found the error...
    In the itab, I had a field that started with ", and ALV object 'lost' data because that  (don't ask me why...).
    It was not a problem with ALV FM, but with ALV Grid object.
    So, in my program, I wrote a routine to eliminate all " in all fields that starts with that char (please, don't judge me.)
    That's it...
    Furlan

Maybe you are looking for

  • Problem with starting ssh

    Hi Everybody I am facing an issue with starting ssh on AIX. It was working fine but after server reboot, I am not able to start it with startsrc -g ssh It gives a message like 0513-059 The sshd Subsystem has been started. Subsystem PID is 626812. but

  • SendAndLoad with accented url

    Hi all, I have a little flash application(cs4) to read xml files and to display the contents. xml files are being read using LoadVars::sendAndLoad() over http. It works fine unless I have an accented characater in the url. For example: http://localho

  • Grid/as page vs ias console

    Am trying to understand why there are subtle differences between the grid control page for app server middle tier and the app server iasconsole. Any indications appreciated. Specific differences found (so far) on the app server 'home' page are: 1) Mi

  • Restarting the MS Exchange Information Store

    Exchange 2013 SP1 with 2 member server DAG. We installed the 2nd member server product key and need to restart the information store. What is the proper way to restart the information store with a DAG? The dag member that needs to have the informatio

  • Element container & tab strip

    Hi All,     I creating z transction for my customer requirment . actualy i am new in dialog program. i want three subscreen in a main screen thru tab strip. but i dont know how to create element container and view and tab strip and how to assign sub