Quantity

Hi,
A quantity of five items will appear as 5.0 for example.  . So we need to pass 5 in the target.
Validations:
We can not have quantity in decimals (e.g. 5.1,1.3,23.5,1111.6 0.5 etc)
Quantity can not be non numeric or blank.
Thanks in Advance.
I need UDF or v can do in Graphical Mapping

Step1 )
use below code to check if the data eneterd is Numeric..
for (int i = 0; i < str.length(); i++) {
            //If we find a non-digit character we return false.
            if (!Character.isDigit(str.charAt(i)))
                return false;
        return true; 
Step 2)
if it is numeric, then use the Floor function to give you the non-Decimal value; and it does work n gives the correct number..
example ; 
for  5.1 it gives 5
for 1.3 it gives 1
for 23.5 it gives 23  etc...
Step 3)
to check if the numebr is null; in graphical mapping use constant(with null)  compare witrh data using Equals and  then use Boolean funtion if then

Similar Messages

  • Quantity fields not getting displayed in the second total row

    Hi,
    As per the requirement I have to display 2 total rows for an ALV report using CL_GUI_ALV_GRID. I am able to get the first total row properly using method get_subtotal(). However for the next total row only the character fields are getting displayed and the quantity fields are coming blank.
    The second total row will have different values based on a formula.
    Please help me out in resolving the issue.
    Thanks,
    Abhishek

    You can provide first row as the SUBTOTAL and next row as the TOTAL.
    Get one extra column on which you can do the SUBTOTAL.
    Regards,
    Naimesh Patel

  • Open sale order quantity in VA05

    hi all,
    can anyone please tell me the function module or bapi or Table to find out open sales order quantity coming in VA05.
    regards.

    First of all define what is open , is it created but notdelivered , or delivered but not invoiced.
    The table VBUP has flags for statuses eg
    A     Not yet processed
    B     Partially processed
    C     Completely processed
    A for open , B for partial C for complete , so by checking this table you will find which are actually delivered or invoiced completely.
    Tcode V.02 gives u this option.

  • Report including open purchase order quantity for one storage location

    Hello gurus,
    I am looking for a report giving me the total/available stock and the open purchase order quantity for all materials stored in a certain storage location.
    I.e. like this:
    Plant 0001, storage loc. 01
    Material        stock        open purchase order quantity
    100000        200 pcs.   50pcs.
    Is there such a report in SAP standard?
    Thanks
    Alicia

    hI
    U want the report like this ,
    MAterial stock availablein storage location and with Open PO quantity for the same material.???
    This report u can get in 2 different transaction . the n u can combine and create one custom transaction .
    One is for materil stock in storage location is MB52 or MB5B
    THen ME2N for open PO quantity for that material.

  • Report for open purchase order quantity

    Dear experts,
    Is there any report for showing open purchase order quantity for which goods are not yet received?
    Regards
    babu

    Hi
    ref the blw link which will have the complete sap std reports
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erplo/sapStandardReports

  • Open Order Quantity for open sales orders

    Is there a standard SAP Report that gives the open order quantity for every open sales order.   "Open" is defined as any order quantity that has not shipped.  Delivery creation is not the same as shipment.   VA05 Report does not contain enough information to calculate the open order quantity for an ERP-based backlog report.

    Try VA05 schedule lines standar variant...include status fields and both ordered qty and confirmed qty. In SAP standard system order status, status A means open orders fully (Nothing shipped, everything opened). Status B means in process orders (Partially processed - shipped). Status C means complete orders (Nothing opened). As there is no delivered qty in VA05,  you need to download to excel the file and calculate the difference between both qty fields for each A and B status. That is a way to get the missing qty to be delivered or open qty as you stated.
    Hope it helps.
    Jorge Fernandez

  • Delivery Completed Indicator  - Open PO Quantity Issue

    Hi All,
    I have an issue relating to our Open Purchase Order Report.  I have some POs which are appearing on the report eventhough they are marked, 'Delivery Complete' ie NOT open. The example of a PO is where the PO Quantity is 100 and the Goods Receipt is 99.  The user knows that there will be no further deliveries and therefore marks the PO 'Delivery Complete'
    In the Extractor to BI we have extracted this field ELIKZ 'Delivery Completed Indicator'.  The structure of our datamodel is
    PSA -> DSO (Write Optimised DSO) -> Cube
    We calculate the Open PO Qty by taking 'PO Qty' minus 'Goods Receipt Quantity' I have checked the example PO in the cube & DSO.  I can see that for the infoobject 'Delivery Complete Indicator' that it has been marked 'X' but only on the records relating to the Goods Receipt for this PO.  The original PO record is added to the cube eg on 1st Jan and then the Goods Receipt record, including the delivery complete indicator is added to the cube on 31st Jan, but the original record is not updated by this indicator.  Therefore at the moment I cannot use this to filter out records in my query.  See below how it looks in the Cube;
    Created Date - PO No - PO Line - Del Complete Indicator - PO QTy - Goods Receipt Qty
    01.01.2011       123      10             (Blank)                             100
    31.01.2011       123      10                 X                                                         99
    What should I do?  How have you created this report?
    Just to let you know I have already read the post Delivery Completed Indicator(ELIKZ:0COMPL_DEL) in 2LIS_02_SCL
    Many thanks for your help,
    Michelle

    Hi Kalyan,
    Thanks very much for your message,
    In my case if the Order Qty is not equal to receipted this does not always mean that it is open.  Sometimes the receipted quantity can be over or under (not equal) and the PO can be closed.  What do you mean by confirmed quanity?  Also, this is a Purchase Order report not a Sales report.
    You have said...
    "Then I would suggest to still keep the condition on the Net ord qty and Net confirmed qty and exclude the del compl indicator as X and also the status as open "
    I don't understand how this will work.  My issue is that the indicator is not on all the records of a PO only the receipted records.
    Can you help again please?
    Many thanks
    Michelle

  • Open PO Quantity

    Hi
    From the business content, in the update rule: 2LIS_02_SCL -> 0PUR_DS03. there is a routine for the PO open quantity 0BO_QTY as follows:
    RESULT = COMM_STRUCTURE-cpquaou * COMM_STRUCTURE-numerator /
               COMM_STRUCTURE-denomintr.
    cpquaou is mapped to BWMNG which is the PO quantity "not the OPEN PO quantity".
    1. So how come this routine calculates the open quantity?
    2. I have to report parital open quantity as soon we have confirmed quantities, so I am trying to use 2LIS_02_SCN as a datasource and map it to 0PUR_DS03. Then I will map 0OPNQTY -> 0BO_QTY. Is my logic valid??
    3. To resolve the first issue I am thinking to enhance my datasource 2LIS_02_SCL with two fields:
       - MENGE (Scheduled Qty.)
       - WEMNG (GR Qty.)
       then i will change the update rule routine as: Open Qty. = MENGE - WEMNG.
      Do you think that approach is ok?
    Thanks in Advance
    Edited by: Omar on Apr 7, 2010 10:43 AM

    Hi,
    The DSO 0PUR_DS03 is loaded from 2LIS_02_SCL & 2LIS_02_SGR .
    Open qty is updated both from SCL & SGR.
    In SCL it is calculated in datasource level..
    In SGR it is calculated in datasource as difference between the schedule line quantity (SCLQTY) and the total quantity (TTLQTY).
    SCLQTY u2013 TTLQTY
    The loading sequence is SCl then SGR.
    1. So how come this routine calculates the open quantity? - it is calculated in datasource level..
    2. I have to report parital open quantity as soon we have confirmed quantities, so I am trying to use 2LIS_02_SCN as a datasource and map it to 0PUR_DS03. Then I will map 0OPNQTY -> 0BO_QTY. Is my logic valid??
    Partially open Qty is Confirmed Qty - EKES -MENGE.
    3.  To resolve the first issue I am thinking to enhance my datasource 2LIS_02_SCL with two fields:
    - MENGE (Scheduled Qty.)
    - WEMNG (GR Qty.)
    then i will change the update rule routine as: Open Qty. = MENGE - WEMNG.
    Do you think that approach is ok?
    No need to enhance can be updated from SGR - SCLQTY u2013 TTLQTY.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/063f3f2615e07fe10000000a114084/content.htm

  • How to calculate the OPEN QUANTITY in delivery Duelist Report

    Hi Everybody,
       I have a query for finding out the OPEN QUANTITY for schedulines for a delivery.
    If for example the report is run for 2nd of February, it is necessary to
    determine whether there are delivery relevant schedule lines before the
    2nd.
    If yes, we need to know whether there is an open quantity to this line
    item.
    If yes, this open quantity is a negative deviation (we delivered not
    enough).
    If there is no open quantity it is necessary to determine whether for the
    earliest future to be deleviered schedule line, the open quantity equals
    the ordered quantity (VBEP-WMENG),
    if No the the difference between both values equals the positive deviation
    (we delivered more than requested)
    If the open quantity equals the ordered quantity there is no deviation.
    The problem is to calculate the open quantity and the SAP standard there is function
    builder used in SAP standard include MV45AF0O_OFFENE_WERTE_ERMITTEL, the
    function builder is called RV_SCHEDULE_CHECK_DELIVERIES'. But how could we use in this formulae in a Custom delivery report.
    Looking for your helpful suggestions.
    Many thanks in Advance,
    Mira Saikrishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • A/P Credit Memo (Item Type) not to deduct quantity in inventory

    Hi,
    1. I purchased an item > supplier gave me invoice> I key in A/P Invoice (Item Type)
    2. Found out item was overpriced
    3. Supplier gave me Credit Note to adjust the price
    How do I key in this credit note via A/P Credit Memo? To my understanding if I key in the a/p credit memo (item type), my inventory quantity will be deducted as well.

    Because the item is over priced, it means that my inventory gl is over stated. When I get the supplier's CN, I will have to reduce the inventory gl. When I create a Service Type A/P Credit Memo I must choose inventory gl. But this will create another problem - Inventory Audit Report balance will not tally with Inventory gl balance (because i didn't reduce the item price in the first place). To solve this is to do a Inventory Revaluation.
    Hi Lay Chin, what you suggested is the best option so far.
    Thank you everyone for the reply.

  • Free Goods Quantity

    Dear SAP Guru's,
                                I have a query my user needs to prepare the report in that report he needs to identify actaul quantity and free quantity.
    conditions are:
    1. in free goods/ sales promotion scenario business offerd some free of cost materials to customer (free goods exclusion procedure) in this scenario business wants to prepare a report free goods quantity against actaul sales quantity.
    Thanks,
    Hussain.

    Hello,
    Item Category in Sales Documents for Normal Goods & Free Goods is different.
    Thus with help of ABAPer you can develop a Z-Report which can fetch the required data based on Item Category of Sales Documents.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Free goods determination (Quantity Update)

    Hi Experts,
    Need your help in below scenario
    Company wants if a customer buys 100 tons of cement in a month, 2 tons of cement is given to him free
    Kindly suggest how to map this scenario in SAP
    I have thought of free goods but donu2019t know how to update the quantity
    For example if a customer buys 100 tons of cement in 10 days
    10 tons of cement each day on 10th day he should get 2 tons of cement free automatically.
    It means if he places the order for 10 tons of cement on 10th day he should get 12 tons of cement
    As customer has completed the target of 100 tons of cement and we are giving 2 tons of cement free
    Thanks in Advance for your help
    Krushnakumar Rathi

    hi,
    create a schedule agreement to the same. say 100 bags of cement for 10 days = 10 bags per day and at the last day
    basing on the quantity it has to pickup 10+ 20 bags as free.
    In exclusive free goods access sequence there is a requriment field in which you can assign your own routine for your requriment.
    logic:
    create a Z table with maintaince view and the fields there inside maintaince view is:
    1. line items, order quantity, order date, last day of the sales order creation for eg.
    and make it to compare to the order quantity or according to no of line items split.  here you need to consider some parameters & give logic to the system that when is the last date of your delivery. for that you need to take last line item or order quantity ends into consideration in that routine.
    when ever the scheduling agreement is getting triggered from there only system understands that this is the last day and it will trigger the free goods as expected
    then only the exclusive goods that is 10+20 bags has to trigger automatically.
    please check teh same in teh system and confirm the fourm
    regards,
    balajia.

  • Customer wants to see Discount Field and Quantity field in Sales order Form

    Hi Gurus,
    Highly appreciate if you provide the solution for below issue:
    My customer requirement is to see Discount field in sales order lines screen...They want to know how much percentage of discount they are giving to customer, if they want to modify for respective line they modify in that field.
    Standard functionality discount field is NOT there in SO lines for because they manual enter discount in SO form, system should calculate Discounted price.
    One more required if they enter Item code, able to see available quantity bottom of the form Sub inventory wise, Availability, resealable.
    Current standard functionality supports - Click Availability button to check the availability..Its very difficult for them to check for each and every line item, is there any functionality to support this issue.
    Thanks
    Satti

    Hi,
    Both of your requirements should be customised.
    There is no standard functionality which attains your requirements.
    For my present project, we have customised 2 seperate reports, one which shows the availability of the items in subinventory and locator.
    Also a report which shows discount for all the lines and for the entire order.
    Thanks
    -Arif.

  • How to Restrict Confirmed Quantity in Sales Order (Based on Batch Expiry)

    Dear SD Experts,
    Currently our sales order confirms any amount of quantity if stock is available. And only during delivery it checks for the expiration of the batch and reduces the delivery quantity to batches available in stock within expiry.
    But since we are doing a bulk creation of deliveries at the end of the day, the check for expired batches is happening too late and no visibility for the data entry operators of stock that cannot be delivered during creation of the sales orders.
    So I am looking for solution to restrict the confirmed quantity in sales order to actually confirm only stock what can be delivered. i.e. based on expiry of the batch.
    Thanks!

    hi
    in Logistic general - batch mangement - batch determination allocation and check activation - maintain allocate SD search Procedure/ activate check
    check this for your sales area and sales document type and then in the search procedure maitain the strategy to check the Expiration date.
    regards,
    Sudhir

  • Changing the Confirmed Quantity in Sales Order

    Hi Gurus,
    I have a requirement to change the confirmed quantity of the line item of the sales order. Is there any FM or BAPI that I can use? And how?
    Thanks,
    Andre

    Hello,
    I am having to deal with a similar issue.
    The allocated quantity needs to be reset, so that the quantities can be allocated again according to the checking rule for product allocation.
    This is probably not clear anymore, I am also totally confused now, so I'll add an example.
    Example:
    SCENARIO 1: Rejected item quantity not available to earlier order:
    Assume product ABC is on a monthly allocation plan at a channel level
    Available units = 100 units
    Allocation plan = 50 units for Channel1, 50 units for Channel2
    Assume all orders in this scenario are for one channel
    1.     Order 1 is entered
    Qty of 40     confirmed from ATP check, confirmed from allocation check
    RESULT: allocation of 40 units is consumed, available allocation = 10 units
    2.     Order 2 is entered
    Qty of 20     confirmed from ATP check, confirmed for 10 units from allocation check
    Remaining 10 units unconfirmed
    RESULT: allocation of 10 is consumed, available Allocation = 0 units
    Unconfirmed order quantity = 10 units
    3.     Order 1is rejected
    line item for Qty 40 is rejected
    RESULT: available allocation = 40 units
    4.     Order 3 is entered
    Qty of 40     confirmed from ATP check, confirmed from allocation check
    Allocation of 40 is consumed
    RESULT: allocation of 40 is consumed, available allocation = 0
    5.     Rescheduling is run for this product (order creation date determines priority in the queue)
    EXPECTED RESULT:
    Order 2 has highest priority and would be committed for 20 units, leaving 30 units for Order 3
    Order 3 Commit quantity 30, unconfirmed quantity 10
    Order 1 Line item was rejected, (no committed quantity)
    RESULT:
    Order 2 - Commit quantity 10, unconfirmed = 10 (as available allocation 0)
    Order 3 - Commit quantity 40
    Order 1 - Line item was rejected
    So I need to reset the allocated quantities first...
    Were you able to find a solution for this?

Maybe you are looking for

  • How to use xs:date() in an update query?

    I cannot test xs:date attributes in an "update" query. In a "select" query, all work fine. This is the sample schema: <?xml version="1.0" encoding="utf-8"?> <!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) --> <xs:sche

  • Lsmw Idoc  ......

    Hi friends,   I am working on LSMW Idoc ....after uploading the data ...The idoc got created with 53 staus successfully .   after succesfull creation Of Idoc , when i check the data in the database  its not going to updating the data base. is there a

  • I found the answer to my question on my own via Demo from Pittsburgh PA thanks restarting the printer and iPad worked thanks

    I asked the question I am unable to print from my iPad 3 since the last update it says printer no longer available with an error code 5809EC well no one directly answered my question so I started looking at other questions that were similar and I fou

  • Deploy Live Office XI 3.1 on Websphere 6.1

    Hi everybody! I have a problem with Live Office XI 3.1 on a system that uses a Websphere 6.1 AS. If I point (from connect panel of LiveOffice) to the default Tomcat AS I'm able to use LiveOffice and connect to enterprise (BOE XI3.1) but, if I use Web

  • How to invoke a servlet from MDB

    Hi, Can someone please tell me how to invoke a servlet from MDB. Actually I want to have a MDB that will invoke a servlet that takes arround ~3 minutes to process and send the response back to MDB. Any small code snippet on invoking a servlet. Thanks