Function module to calculate quantity of unrestricted stock

Is there any function module to calculate the quantity of unrestricted stock in alternate units of measure.
For example we have a material '123456', its unit of measure is 'EA'(eaches) and we have 172 'EA'.
but this material can be issued only in boxes. Each box has 50 'EA.
I believe that SAP has a standard function module to convert the quantity, because the quantity gets updated in transaction 'MMBE' depending on our UOM selection.
If not can you please let me know which table stores the relation between the UOMs.
Thank you,
Goldie.

Try function MD_CONVERT_MATERIAL_UNIT
the table of UOM's is MARM.
Doug

Similar Messages

  • Function module to calculate Variable-Size Item

    I am creating a report for manual reservation. User wants to calculate quantity of material if he enters size1, size2 and size3. Also he wants that a formula key option to be provided so that he can mention conversion formula. Is there any standard function module to calculate quantity?

    Hi Vishal,
    I've declared two variables
    DATA: LDATE(20),
               LTIME(20).
    CALL FUNCTION 'GET_SYSTEM_TIME_REMOTE'
    IMPORTING
      K_DATE        =
      K_TIME         =
       L_DATE         = LDATE
       L_TIME          = LTIME
    AND IN THE FORM HEADER I'VE GIVEN IT AS,
    WA_HEADER-TYP  = 'S'.
    WA_HEADER-INFO = ': Date'.
    WA_HEADER-KEY  = LDATE.
    APPEND WA_HEADER TO IT_HEADER.
    WA_HEADER-TYP  = 'S'.
    WA_HEADER-INFO = ': Time'.
    WA_HEADER-KEY  = LTIME.
    APPEND WA_HEADER TO IT_HEADER.
    STILL IM NOT GETTING WAT ELSE IS REQUIRED ?

  • Function Module to calculate Open Contract Quantity

    Hi All,
    Is there a function module to calculate Open Contract Quantity?
    Thanks.

    Hi Ravi,
    Thanks for the reply.
    For this FM, i need to pass the Sales Doc Number. Is there an FM where i can pass the contract number?
    Best regards,
    Sindy

  • Function module to calculate available budget

    Hi everyone
    Is anybody aware if there is any function module which calculates the available budget from the report alr_87013558?
    thanks and kind regards

    thanks Paolo
    yea, i tried to debug that report but in vain
    is there any other way?
    I could get the value assigned, the budget value but not the actual
    So was wondering if anybody can help me
    thanks for your help

  • Function module to calculate Estimate delivery lead time

    Hi Experts,
    It's ugrent.
    In APO System,
    I need a function module to calculate the estimated delivery lead time, The estimate delivery lead time is the time in weeks between the current date and the estimated delivery date. This is rounded up to the next integer value.
    Thanks in advance,
    Regards
    Adil

    Hi Vishal,
    I've declared two variables
    DATA: LDATE(20),
               LTIME(20).
    CALL FUNCTION 'GET_SYSTEM_TIME_REMOTE'
    IMPORTING
      K_DATE        =
      K_TIME         =
       L_DATE         = LDATE
       L_TIME          = LTIME
    AND IN THE FORM HEADER I'VE GIVEN IT AS,
    WA_HEADER-TYP  = 'S'.
    WA_HEADER-INFO = ': Date'.
    WA_HEADER-KEY  = LDATE.
    APPEND WA_HEADER TO IT_HEADER.
    WA_HEADER-TYP  = 'S'.
    WA_HEADER-INFO = ': Time'.
    WA_HEADER-KEY  = LTIME.
    APPEND WA_HEADER TO IT_HEADER.
    STILL IM NOT GETTING WAT ELSE IS REQUIRED ?

  • Function Module to calculate pallets

    Hi,
    I need a Function Module to calculate pallets for free of charge articles while creating a sales order.
    can someone name any FM for this purpose.
    Thanks in advance

    Hi Abhishek,
    Check FM L_PALLET_SUGGESTION.
    Hope this helps.
    Thanks
    Lakshman

  • Function module to calculate due date of FI document

    Hi All
    I need a function module to calculate the due date of FI document considering BSId Zterm ( Payment terms ) Document date , Basline date .
    Regards,
    chitra

    call function 'FI_TERMS_OF_PAYMENT_PROPOSE'
      exporting
        i_bldat         = gv_bldat
        i_budat         = gv_budat
        i_cpudt         = sy-datum
        i_zfbdt         = gv_zfbdt
        i_zterm         = gv_terms_paym
        i_bukrs         = gv_comp_code
      importing
        e_zbd1t         = gv_zbd1t
        e_zbd2t         = gv_zbd2t
        e_zbd3t         = gv_zbd3t.
    faede-shkzg = 'H'.
      faede-koart = 'K'.
      faede-zfbdt = gv_zfbdt.
      faede-zbd1t = gv_zbd1t.
      faede-zbd2t = gv_zbd2t.
      faede-zbd3t = gv_zbd3t.
      faede-bldat = gv_bldat.
      call function 'DETERMINE_DUE_DATE'
        exporting
          i_faede = faede
        importing
          e_faede = faede.
    *    if sy-subrc eq 0.
      duedate = faede-netdt. <<<<<< ------

  • Function module to get detials of blocked stock of Material

    Hi al.....
    I like to know the function module to get details of blocked stock of material
    for particular plant.... like blocked by sales order or damaged material ..etc..
    Thanks...

    Hello ,
    just check this FM
    please just read the document of the FM.....
    ME_CONFIRMATION_READ_GR_BLOCK
    RV_MATERIAL_STATUS_BLOCK
    MATERIAL_MAINTAIN_DARK_DB
    MATERIAL_MAINTAIN_DARK
    MATERIAL_MAINTAIN_DARK_PR
    MATERIAL_MAINTAIN_DIALOGUE
    MATERIAL_MAINTAIN_DIAL_RETAIL
    MATERIAL_MAINTAIN_DARK_RETAIL
    This May help....u.....
    Thank u,
    santhosh

  • Function module to calculate capacity requirements of production order

    HI
    Hav a requirement to calculate capacity requirement  for production orders like we see in cm50... does anyone know a function module to calculate capacity requirement?

    Hi All,
    Just to reopen this issue, even I am looking for a similar functionality.
    To reinstate the requirement:
    I want to find shifts and corresponding capacities for a work center. These details are obtained from CR03 and CR13 transaction.
    If possible do let me know Function module or tables for the same.
    Debs

  • Function module to calculate withholding taxes

    Hi all,
    Can anyone please tell me if there is any function module to calculate withholding taxes?
    Thanks,
    Diogo LF Moreira

    Hi,
    You can use the function module FI_WITHHOLDING_TAX_CALCULATION
    Regards,
    SDNer

  • Function module to calculate WBS Remaining Plan

    Hi all,
    Is anyone know if there is Function Module to calculate WBS remaining plan?
    thanks,
    libl69

    Try function MD_CONVERT_MATERIAL_UNIT
    the table of UOM's is MARM.
    Doug

  • What is the function module to calculate "years of services" in HR?

    What is the function module to calculate "years of services" in HR?

    hi ,
    following function module will help you to find the years of service
    CALL FUNCTION 'HR_HK_TOTAL_YOS' "HR-HK: Calculate an employee's total years of service
      EXPORTING
        years1 =                    " pea_scryy     Years of service
        months1 =                   " pea_scrmm     Months of service
        days1 =                     " pea_scrdd     Days of service
        years2 =                    " pea_scryy     Credit years of service
        months2 =                   " pea_scrmm     Credit months of service
        days2 =                     " pea_scrdd     Credit days of service
      output_format = '01'        " char2         Format to display the output
      IMPORTING
        years =                     " pea_scryy     Total years of service
        months =                    " pea_scrmm     Total months of service
        days =                      " pea_scrdd     Total days of service
        .  "  HR_HK_TOTAL_YOS
    thanks u..

  • Function module which calculates GL balances

    Hello to you all,
    I am looking for a function module which calculates balances for GL account as Tcode FS10N do.
    I would like to implement this FM in an ABAP program,
    Thanks,
    Amir

    Hi
    Check the  Code, if it could be of use to you
    http://www.sapfans.com/forums/viewtopic.php?f=10&t=317349
    Regards
    Sanil Bhandari
    Edited by: Sanil K Bhandari on Jun 29, 2011 6:17 PM

  • Require a function module to calculate sum of the quantity based on GRNDATE

    hi friends,
    I need to calculate the sum of the quantity based on GRN DATE and invoice date.
    the invoice date given in select-options should be captured by program and from the previous day it need to retrieve the GRN dates and corresponding quantities and i need to do the summation of all these quantities can anybody tell any function module.
    Thanks in advance.

    Try function MD_CONVERT_MATERIAL_UNIT
    the table of UOM's is MARM.
    Doug

  • Function modules for open quantity

    Hi Experts,
    I am having requirement,i have to calculate the open quantity for particular item in the range of dates like 01/02/2008 to 28/02/2008 and 05/03/2008 to 05/04/2008(depending on the user input).
    I have searched function modules:
    MONTHS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES
    Please suggest me,Which of this function modules suits for my requirement?
    Is there any bapi for calculating open quantity for particular period of time?
    Regards,
    Bharath.

    Hi ,
    Open Qty of  particular item  ? is that PO or SO?...
    regards
    Prabhu

Maybe you are looking for

  • Problem in displaying images stored in Blob variable

    Hi all, I have a requirement where i need to retrieve the image stored in Blob variable in DB and display the image in JSP page. I have written the below code to achieve this, it works fine In JSP, I am calling a action in the <img tag <img src='down

  • Can I use the mobile site as the tablet site?

    What i would like is to see my phone site when I view my site on the tablet. Currently I have created a phone and desktop version, but when I view with a tablet I see the desktop version. I realize you can click the tablet tab, copying the phone vers

  • Disjointed Rollover Link

    Hi, I'm not sure if this is even remotely possible using solely HTML and CSS. The idea is that I have a disjointed Rollover with the OnMouseOut for Image Restore deleted. Then in the rollover there will be 2 different links to click. So in essence Mo

  • CCMS - File Content Monitoring

    Hi @ll, I stuck during the creation of a file monitoring via CCMS - Monitoring the file content I visited the following help.sap.com site http://help.sap.com/SAPHELP_NW04S/helpdata/en/47/4daa79abc16d18e10000000a421138/content.htm ...and many more - b

  • What virus software is compatible with OS 10.4.10?

    I use Microsoft Encourage for my mail and a combination of Opera and Firefox as my browsers (Opera mostly because of its security). I didn't renew my virus software because the Mac ads said that I didn't need to, but closer reading led me to find out