Function module to get due date by terms of payment

Hi,
Is there any function module which can give me the due date when I pass
1) Terms of payment
2) Baseline date
Read the terms of payment and use the properties of the terms of payment ( Like Fixed date )  to get to the due date.
Thanks in advance.,
Raj

Hi,
I had the same problem, as J_1A_SD_CI_DUEDATE_GET does not work when FI document is not created yet.
This is the way I used and it works:
    CALL FUNCTION 'FI_TERMS_OF_PAYMENT_PROPOSE'
      EXPORTING
        i_bldat               = sy-datum        "if baseline is filled, value here is ignored
        i_budat               = sy-datum
        i_cpudt               = sy-datum
        i_zfbdt               = vbdkr-zfbdt    "baseline due date
        i_zterm               = vbdkr-zterm   "payment terms
      IMPORTING
        e_zbd1t               = lv_zbd1t
        e_zbd2t               = lv_zbd2t
        e_zbd3t               = lv_zbd3t
        e_zfbdt               = lv_zfbdt
      EXCEPTIONS
        terms_not_found       = 1
        OTHERS                = 2.
    IF sy-subrc <> 0.
    ELSE.
      CALL FUNCTION 'J_1B_FI_NETDUE'
           EXPORTING
                zfbdt   = lv_zfbdt
                zbd1t   = lv_zbd1t
                zbd2t   = lv_zbd2t
                zbd3t   = lv_zbd3t
           IMPORTING
                duedate = z_duedate.
    ENDIF.
Hope it helps.
Regards,
Fernando

Similar Messages

  • Function Module to determine due date in BI form Payment Terms

    Hi to all,
    Can any one tell me what is the Function Module to determine due date in BI, form ZTERM ( Payment Terms ).
    I am working on Accounts Receivable (AR). and need to calculate Due date.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana

    Thanks For reply,
    I have to do aging for Receivables and report format is like that.
                    1 - 10      11 - 30        31 - 60         61 - 90       > 90     Notoverdue   Overdue
    North
    East
    south
    West
    According to client requirement in first 5 bucket i need to display Receivables according to aging
    and for  Notoverdue   Overdue  bucket condition is like that.
    if sy-datum - vbrk-fkdat  > 0NETDUEDATE then it is under Overdue bucket
    if sy-datum - vbrk-fkdat  < 0NETDUEDATE then it is under notOverdue bucket
    there i have created 2 DSO , one for sales which have North,East,south,West and vbrk-fkdat using 2LIS_13_VDHDR,2LIS_13_VDITM
    and other  DSO which will have 0NETDUEDATE from 0FI_AR_4 .
    for Notoverdue   Overdue how i will calculate aging at query level.
    also is 0p_keydt is variable for 0CALDAY which will take user entery and should i applied offcet, to get firts 5 bucket Receivables data for aging.
    i shall be thankful to you for this.
    Regards
    Pavneet Rana

  • Function module to get the dates from the year and the period

    Is there a function Module to get the dates from the year and the period

    Check with :
    To get last day of period use .
    LAST_DAY_IN_PERIOD_GET.
    To get last of month Use :
    RE_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    LAST_DAY_OF_MONTHS
    ISB_PREVIOUS_PERIOD_DATE_GET
    Thanks
    Seshu

  • Function module to get md04 data

    I need function module to get below data of the material as per the mrp area.
    Thanks,
    Kiran

    Hello Kiran and Kumar
    As I have explained in the following thread, BAPI_MATERIAL_STOCK_REQ_LIST should be used instead of MD_STOCK_REQUIREMENTS_LIST_API.
    Material shortage report after mrp run.
    BR
    Caetano

  • Due Date specific terms of payment

    Hello Gurus,
    How to set-up Due Date Specific Terms of payment ?
    Thanks

    Hi
    I got the below answers in my mind.Whether it may work for you or not. i am telling you the possibilities.
    1) Please explain the client about the process in SAP and try to convince them this will have risk. we are giving free hand to the sales person for selecting a imaginary date as due date.
    2) if they are not agreeing for that, they have to put some manual work in that.
    In OBB8 Select Default date for base line date -Posting Date.
    when they want to post the invoice tell the sale person, select a random date (like customer's birthday), back calculate the days and put the months there.
    3) check for any user exits available or you have to develop  a custom enhancement screen for calculating the due date
    You can create a substitution in FI (OB28) and use exit RGGBS000 (Form u100) to write your code
    In OB28 - (use method "exit only")
    Prerequisites: Company code = XXXX and Account Type = D and (Syst-Tcode = VF01 or FB70 or VF02)
    Choose Field "Baseline date" and mention exit name as U100... Write ABAP code here in
    or wait for until some experienced consultants response on this.
    with regards
    siva
    Edited by: Siva Rama Krishna Yanamandra on Dec 9, 2010 4:19 AM

  • Function Module to get Last date of previous year

    Is there any function module to get the Last date of the previous year. e.g, if i give date as 03/02/2009 the output  should be 31/12/2008.

    pls use below 2 FM's
    CALL FUNCTION 'MONTH_PLUS_DETERMINE'
              EXPORTING
                months  = -1
                olddate = curent_date
              IMPORTING
                newdate = w_prevdate.
    CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
              EXPORTING
                day_in            = w_prevdate
              IMPORTING
                last_day_of_month = w_lastdayprevmonth
              EXCEPTIONS
                day_in_no_date    = 1
                OTHERS            = 2.

  • Function Module to Calculate Due Date from Payment Terms?

    I'm writing an aged debtor report as the SAP standard one isn't quite right for our requirements.  Is there a function module that will calculate the payment due date if I give it the payment terms and the base line date?
    I did a search in SE37 but couldn't see one which fitted my requirements (I was searching on CALCDUEDATE and variantions of).
    Any suggestions welcome, thanks.
    Gill

    Hi,
    Use the FM FI_TERMS_OF_PAYMENT_PROPOSE for calculating the Payment due date
    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_zbd1p         = gv_zbd1p
        e_zbd2t         = gv_zbd2t
        e_zbd3t         = gv_zbd3t.
    Regards,
    Dwaraka.S

  • 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 order data from delivery

    hi ,
    is there any function module to which i can pass the delivery number and get the order number (s) and other data .
    basically i want the order currency.
    pls help.
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 21, 2008 9:44 AM

    Hi Surendra,
    If your requirement is just to retreive the Order number for a given delivery then you can go with following:
    Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
    You can also do the same by using VBFA table.
    Also have a look to the following thread:
    Re: Getting sales order number against Delivery Number
    Hope this will help.
    Regards,
    Nitin.

  • Is there any function module to get the data from st06?

    Hi,
    I'm new to this forum.
    I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
    I would like to call it from external program in order to view part of the data available in st06.
    Thanks,
    Erez Gordon.

    have a look at function group SMON.
    Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
    Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM

  • Function Module for getting J1IEX Data

    Dear All,
    Is there any F.M available for getting details whatever is posted in  J1IEX, like ED, Ecess, HEcess etc.
    regards,
    paras
    Point Assured.

    Hi,
    I'm not sure what you mean with 'textmodule' but try with function module READ_TEXT.
    Regards,
    Eduardo

  • Function module to get posting date from posting year and posting period

    Hi all,
    I need a function module which will return posting date when posting period and fiscal year is passed to it..
    Thanks and regards,
    Puja.

    Hi puja
    try this FM
    this will solve ur problem
    G_POSTING_DATE_OF_PERIOD_GET
    G_POSTING_DATE_OF_YEAR_GET
    FCJ_CHECK_POSTING_DATE
    Cheers
    Snehi Chouhan

  • Function Module to get the data like in LS26

    Hi Gurus,
    We are designing a new program and we need to get information about the "available stock", "putaway stock" and "pick quantity" for some storage types. So this is exactly what the LS26 shows.
    Do you know any Function Module that can extract or calculate this information?
    I would really appreciate any suggestion.
    Thank you in advance
    Edited by: Abel Raya on Jul 4, 2011 11:39 AM

    I don't think there is a function module exists. But you can get the details from table LQUA for item details and LEIN for header records.

  • Function module to get any date format in DD.MM.YYYY

    Hi  Experts,
    i want a FM which can convert any type of date format user entered on selection screen in DD.MM.YYYY
    date format entered by user  can be any of below format
    DD/MM/YYYY
    MM/DD/YYYYY
    DD/MMM/YYYY
    MM.DD.YYYY
    YYYY/MM/DD
    i want date format in DD.MM.YYYY
    Also is there any FM  which can tell  us that  day of today date is  25th or  not .

    Read forum rules of engagement before posting.
    Basic date posts are not permitted.

  • Function module to get the configuration of Individual objects

    Hi all,
    Is there is any std function module to get the data of individual object configuration.
    In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by using the PRODUCT_GUID.
    Pl  through some light on this.
    Regards
    A.Sureshbabu.

    Hi,
    You can get the item configuration using FM CRM_CONFIG_READ_OW.
    This is used to read the product configurations for IPC calls.
    Just pass the configured item guid and it will return the configuration data.
    Use FM CRM_PRODUCT_I_READ_OW to get the product configurations but this FM checks whether any item has this product guid.
    Regards,
    Arun Kumar
    Edited by: Arun Kumar on May 12, 2010 10:20 AM

Maybe you are looking for

  • Cannot see all the essbase dimensions when performed reverse engg.using ODI

    Hi, I performed the reverse engineering process for getting the dimensions from Essbase to the Model. First time the session has shown an error. When i right clicked the session in the operator and clicked on restart it has run succesfuly. But only t

  • PDF Reports in client machines

    Dear all, What are all the chances that a PDF report is not getting opened at the client machine.. all the user can able to print the same in their pc's .. in particular 2 clilent machines no PDF reports are opening.. Thanks Yusuf

  • Photos are corrupted on iphone.

    i recently replaced my iphone.  restore seems to have gone smoothly except that my photo folders are corrupted.  the camera roll and photo stream folders seem ok; all others behave as follows:  i open the folder, select a thumbnail, and the photo tha

  • Query on the Load Balancing ?

    Guys I would like to understand how the FAV_COMPUTE_TIME has been calculated for the system to indentify the FAV_COMPUTE_SERVER I have enclosed a snapshot of our prd server.Appreciate  advise on this subject Integer-Storage             MSGSERVER REL_

  • Error 0xc0150002

    error 0xc0150002 after installing Indesign CC (2014) Log file: Kan activeringscontext voor 'C:\Program Files\Adobe\Adobe InDesign CC 2014\adbeape.dll' niet maken. Fout in manifest of beleidsbestand 'C:\Windows\WinSxS\manifests\amd64_policy.9.0.micros