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

Similar Messages

  • 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

  • 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 ?

  • Is there any function module which gives open invoices &open amount?

    Hello All,
    I want to use function module which gives open invoices with open amount.
    I know 'CUSTOMER_OPEN_ITEMS'  'BAPI_AR_ACC_GETOPENITEMS' function which gives open invoices but does not give open amount.
    Can anyone help me to find such function?

    From this BAPI ,
    BAPI_AR_ACC_GETOPENITEMS, You got amount for items in lc_amount field of lineitems table parameter.
    I hope, it will helpful to you.
    by
    Prasad GVK.

  • How to calculate open PO quantity

    Hi all,
    Can you let me know the way to calculate open PO quantity? WHich table do I need to get the value from? THanks in advance.

    Hi
    You can select the Open PO's from MKPF and MSEG tables.
    All the GOODS RECEIPTS will be stored in MSEG table.
    Against each PO item there will be GR's in MSEG table.
    Take related Movement types and fetch the GR's received against each PO item by passing EBELn and EBELP fields to MSEG.
    Again OPEN PO means, If the PO qty is 20 and the GR qty is 15 , then again it's a Open PO. So you have to take the PO qty for each item and take the all GR's for a single PO item (you have to LOOP MSEG, as it contains multiple records for a single EBELN and EBELP) and sum up the GR qty's .
    Again here you have to substract the Returns and GI's depending on the movement types.
    So find the total effective GR qty and compare with PO qty if both are same that PO is closed. If PO qty is more than GR qty it is still OPEN.
    For each Item Check if the PO Item Quantity (EKPO-MENGE) is equal to the NEt total of EKBE-MENGE for VGABE= 1 (For Goods Recept).
    for example EKPO-MENGE = 100.
    and It is Partally GRed for 50 quantity, then it is still open. In this case the BELNR will still be there but it is still open.
    Regards
    Raj

  • 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 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..

  • Is there standard function module to read "open office" in SAP

    Hi All,
    Is there any standard function module to read open office document from SAP.
    Please confirm.
    Thanks and best regards
    Rajeev Chhabra

    Hi all!
    I have a similar problem. I need  create a formatted spread sheet managed open office. The work sheet must be formatted.
    I do not find the function module for doing this.
    Do yo have any idea? The only thing I have found is the functionallity included in program BCALV_TEST_GRID.
    Also I will need a function to upload the file to fill a table control.
    Thanks in advance.
    Cristina.

  • 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

Maybe you are looking for