FUnction Module to Calculate future date after 'x' years
Hi Gurus,
Can anyone tell me the Standard Function Module which will take today's date as i/p & return the date after 10 years.
e.g say input date is 18.05.2010 & input year is 10.
output = 17.05.2020
Regards,
Rohit.
why would it be in 10 years 17.05.2010 and not 18.05.2010 ??
which logic do you want to use to calculate the 10 years after ?
kind regards
arthur
Similar Messages
-
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 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,
chitracall 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 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.
GillHi,
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 -
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,
RohitHi 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 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 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 -
Is there function module to calculate customer arrears after due date?
Hello,
Can any one tell me how to calculate arrears after due date for customer? Is there any specific function modue?
BTW, in my case, we do not trigger dunning procedure. There is no data will be updated in table MHND.
Thank You and Best Regards,
MurielDear Andreas,
Thanks for your reply. I need function rather than standard report, caulse I have to develop a ABAP program.
I find function ITEM_OVERDUE_DAYS which solved my problem.
Thanks for your help. -
Date after 3 years...function module needed
Hi
i need to find the date after 3 years from today. please let me know how (function module or class) to do this.
thankshi,
<b>
Use this function module.
RE_ADD_MONTH_TO_DATE
old date = sy-datum ( any date u want ).
months = 36</b>
<b>U can also use other FM</b>
Date Manipulation
SD_DATETIME_DIFFERENCE
DAYS_BETWEEN_TWO_DATES
MONTHS_BETWEEN_TWO_DATES.
RE_ADD_MONTH_TO_DATE
CALCULATE_DATE
HR_JP_MONTH_BEGIN_END_DATE
LAST_DAY_OF_MONTHS
ADD_TIME_TO_DATE
CONVERT_DATE_TO_ALPHA_NUMERIC
PERIOD_AND_DATE_CONVERT_OUTPUT
CONVERSION_EXIT_LDATE_OUTPUT
DATE_TO_DAY
CCM_GO_BACK_MONTHS
SD_DATETIME_DIFFERENCE
Give the difference in Days and Time for 2 dates
FIMA_DAYS_AND_MONTHS_AND_YEARS
Get number of days. Year, Months between two dates.
<b>
Mark Helpfull Answers</b>
Regards
Message was edited by: Manoj Gupta
Message was edited by: Manoj Gupta -
Function module to predict the date for a given date
hi friends,
is there any function module to predict the date
means for example if i enter one date , what will be the date
after 4 months(say) to the given date.
my requirement is when a person is hired today (10.06.2008)
and if he is under probationary for 6 months, then on what date he comes into the permenant employee's list(predicted date after date 6 months)Date calculations
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_IN_FUTURE Calculate a date N days in the future.
RP_CALC_DATE_IN_INTERVAL Add days/months to a date
RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
DATE_CREATE Calculates a date from the input parameters:
Example: DATE_CREATE
CALL FUNCTION 'DATE_CREATE'
EXPORTING
anzahl_jahre = 1
anzahl_monate = 2
anzahl_tage = 3
datum_ein = '20010101'
IMPORTING
datum_aus = l_new_date.
Result:
l_new_date = 20020304
Example: MONTH_PLUS_DETERMINE
data: new_date type d.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -5 " Negative to subtract from old date, positive to add
olddate = sy-datum
IMPORTING
NEWDATE = new_date.
write: / new_date. -
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
AdilHi 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 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 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 RanaThanks 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 md04 data
I need function module to get below data of the material as per the mrp area.
Thanks,
KiranHello 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
Maybe you are looking for
-
Hello all My daughter has tried to download paid apps, she is three so is forgiven but I don't want them and certainly don't want charging for them. Only issue is its now wanting me to enter billing info when I download a free app
-
My contacts on my old Iphone I gave a family member were deleted then synced to icloud. My current iphone lost all its contacts when it next synced. I retreived a 6mth old backup to get my contacts, but I want my recent messages back, any help?
-
PO creation with invalid articles
we have a timing issue with articles being changed or placed in delete status at the same time po's are being created. Resulting in po rejections. Is there a way to configure or do an ABAP customization making all valid lines create the po and then
-
Subsidiary company, differentiate the client or company code?
Hi All, I have a question. I am new to SAP and I want to implement SAP HR in subsidiary company. I will use the same server which has been use by parent company. The business process will be different between the two company and also the data will be
-
Optimum image size for flexible cropping
Hi, My clinets often order from the same photo 4X6, 5X7, 8.5 X 11 and even 11 X 14's. While I am happy with these requests, I wonder how you professionals (I am just an old retired widower using CS3 and LR to kill time) size an image during shooting