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 ?

Similar Messages

  • Any function module to calculate delivery date?

    Hello all,
    I think BAPI_PO_CREATE doesn't have ability to determine the delivery date by itself and needs delivery date be fed to it instead. I have a requirement to create a STO with a feed from a 3rd party system that doesn't specify the delivery date at the receiving plant. Could anyone help me identify a function module that returns the delivery date?
    Thanks,
    Rohit

    Hi Rohit,
    It is the same function module that is also called by the form MEPO_DEFAULT_DELIVERY_DATE. I thought that it would be better to call the whole form, since it performs more checks than just calling MD_CHECK_DELIVERY_DATE.
    MD_CHECK_DELIVERY_DATE is called with E_DISPODATUM = sy-datlo, i.e. the local date of the user.
    BR
    Raf

  • 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 create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

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

  • Function Module for Posting the Delivery Doument

    Dear Experts,
            Could you please send me the Function Module for Posting the Delivery Doument.
    Thanks & Regards,
    Ashok.

    Hi,
    What do you mean by POSTING the delivery document?
    Are you mentioning the creation of Goods Issue?

  • Delivery lead time in Sales Order--URGENT

    Hi SAP GURUS,
    How the Delivery lead time works in Sales Order  i.e
    "From the time a confirmed Sales order is punched till the time we have delivered the material"
    How to confgure to use effectively

    When you create sales order, system automatically proposes data based on configuration settings.
    1. Check the schedule line proposed by system in sales order. Let's say CP. Go to transaction VOV6 and see if availability check is checked.
    2. Check the requirement type proposed by system in sales order. Let's say 041. Go to transaction OVZH and see what requirement class has been assigned to it. Let' say 041.
    3. Go to transaction OVZG and see if availability check has been checked for this requirement class 041.
    4. Check the shipping point proposed by system in sales order.
    Go to transaction OVLZ and check Loading time & pick pack time maintained there for this shipping point. If there is nothing let's say we have 24 hours and 24 hours respectively.
    5. Check the route proposed by system in sales order. Let's say route selected is 000003. Go to transaction 0VTC and see Transit duration & Transportation lead times maintained there. Let's say timings maintained are  2  days and 1 days respectively.
    Now let's say a customer calls and says he wants a material delivered on Apr 25. Now what the system does is that it does backward scheduling. i.e. it goes backward from delivery date i.e. 25th April. It reduces 3 days for transit time, reduces time taken for loading time, reduces days taken for arranging transport, reduces time taken for pick pack. After calculation it arrives at date Apr 21. Now it checks whether material is available on this date i.e. Apr 21.
    If material is available, it confirms delivery date.
    Otherwise, if material is not available on Apr 21, it determines date on which material is available. Let's say material is available on Apr 23. Now, system immediately carries out forward scheduling. So it starts calculating from Apr 23 and adds time and dates maintained for picking & packing; transportation lead time, loading time and transit time.
    Also note that system takes into account factory holidays, factory timings when it is calculating above. If factory works 24 hours and is closed on Saturday & Sunday, system arrives at date Apr 30. It now confirms delivery date as Apr 30 to customer.
    I have given a simple example. There are many other aspects you can configure on scheduling.

  • To find Function Module is used for How many times

    Hi Gurus.
    How to find a Function module is used for how many times since it is created.. we went through the Tcode STAT , ST03, STAD, STATTRACE but in ST03 we can find it for Program but we could not find it for Function module , So can any one please suggest us . we are using ECC 6.0 version.
    Thanks and Regards,
    Chaitanya.

    Hi Chaithu,
    Go to SE37,enter your function module, click on where used list button on the application bar.
    All the program used your function module used is displayed.
    Regards,
    Venkat.

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

Maybe you are looking for

  • Looking for a simple photo gallery web server setup

    Hi, I have Arch running on my low powered AMD HP microserver and am looking at letting relatives,friends etc see my photos over the web. I have php and sqlite3 already installed and dyndns setup. What further would I need (I'm looking for as painless

  • Burning copies of authored DVD

    Hi, I recently finished authoring a DVD and put a copy of the video and audio TS in a folder that I pulled from the DVD. I would like to burn copies of the DVD from this folder. When I do however the DVD doens't perform from its authorship. Can anyon

  • Business Objects With ERP

    Actually I need your advice for a requirement I have a customer that donu2019t want to implement BW at all but he is very interested in SAP Business Objects BI Tools This customer has a huge amount of data and the manager insisting not using BW or BW

  • How do I manage more than one Ipod from the same computer?

    I just bought my boyfriend an Ipod and I want to set it up for him before I give it to him. We only have one computer and I'm not sure what to do. Can we both work from one itunes or can I install it twice?

  • Problem getting audio on a W540

    Hi all I have been having some problems getting audio to work on my brand new W540. I have tried everything in terms of driver-updates, bios-updates, software-updates, registry cleaning (cc cleaner), removal and re-installation of drivers, etc. etc.