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. <<<<<< ------
Similar Messages
-
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 -
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 retrieve appraisal data using a Document ID (GUID)
Hi,
Is there a function module to retrieve appraisal data of a document using the document ID (GUID). The new Document ID is of 32 char length. I am working on version 4.7 110.
Edited by: Beril PC on Jul 16, 2008 8:01 AMcheck for functiona modules starting with phap* or hap*
Regards,
Divya -
Function Module - FBL1 (Payment due date)
Hi All,
In FBL1n i notice that once an invoice is posted into system, the due date for payment is calculated based on the payment terms for the vendor. I would like to know which FM i can use to get the same functionality?
VivekMr. Santosh,
Thanks for the quick response. Well actually i need to build a customized report for a specific requirement. I will be reading in 2 different dates & then I want to calculate the due date of payment as on those dates
eg: Vendor payment terms 30 days.
Case 1:
Date 1: 3.4.2008
Case 2:
Date 2: 15.4.2008
I want to pass these 2 dates individually into the FM & then the output should read me
Case 1:
Payment Due on: 3.5.2008
Case 2:
Payment Due on: 15.5.2008
I hope i was able to put across my need clearly.
Addition:
Is there any function module or any other way to calculate the payment due date depending on baseline due date(ZFBDT) and payment terms(ZTERM)?
Edited by: Vivek on Apr 23, 2008 10:04 PM -
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 -
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.,
RajHi,
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 -
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 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 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 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 for access OM Data from infotype 1001
We had a function module for accessing OM data viz. Infotype 1001. Could you let me know.
Advanced thanks,
Dasaradh kosanaHi Dasaradh,
Do you want the fm which fetches the data from HRP1001 , if this is the case you can use this FM RH_READ_INFTY_1001.
Reward Points if it is helpful
Regards,
Kiran I -
FUNCTION MODULE CREATION FOR GENERIC DATA SOURCE
Hi BI gurus,
I am creating function module for generic datasource. For that I followed below mentioned steps
Steps
1. Created s structure with the fields that needed.
2. Created FM by copying the standard Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. IN SE37 ->Your Function module name -> Change, In table tab given structure
name by deleting the associated type given in E_T_DATA .
And inserted the required code given below
PROGRAM 'ZHU_BALANCE'.
*& Report ZHU_BALANCE
TABLES: VEKP, VEPO.
DATA: BEGIN OF T_DISPLAY,
DATE LIKE SY-DATUM,
EXIDV LIKE VEKP-EXIDV,
LGORT LIKE VEPO-LGORT,
WERKS LIKE VEKP-WERKS,
END OF T_DISPLAY.
DATA: ITAB_DISPLAY LIKE TABLE OF T_DISPLAY.
DATA: WA_ITAB_DISPLAY LIKE LINE OF ITAB_DISPLAY.
SELECT VEKPEXIDV VEPOLGORT VEPO~WERKS
INTO CORRESPONDING FIELDS OF TABLE ITAB_DISPLAY
FROM VEKP AS VEKP INNER JOIN VEPO AS VEPO
ON VEKPVENUM = VEPOVENUM
AND VEKPWERKS = VEPOWERKS
WHERE VEKP~VSTEL = SPACE
AND VEKP~VEGR1 = '401'
AND VEKP~VPOBJ = '12'
AND VEKP~STATUS = '0020'
AND VEPO~VEPOS = '000001'.
LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
WA_ITAB_DISPLAY-DATE = SY-DATUM.
MODIFY ITAB_DISPLAY FROM WA_ITAB_DISPLAY TRANSPORTING DATE.
ENDLOOP.
WRITE:/ 'DATE', 20 'EXIDV', 40 'LGORT', 60 'WERKS'.
ULINE.
LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
WRITE:/ WA_ITAB_DISPLAY-DATE, 20 WA_ITAB_DISPLAY-EXIDV , 40 WA_ITAB_DISPLAY-LGORT, 60 WA_ITAB_DISPLAY-WERKS.
ENDLOOP.
While checking the function module its populating the syntax error as
THE TYPE SRSC_S_IF_SIMPLE IS UNKOWN. (Though this is commented in program)
So pls suggest
Regards,
prafulhi indira,
thanx for ur reply we have created the funcion module successfuly it is also showing the output correct. But when we put that function module in the generic data source and try to extract data in RSA3 it shows the correct output of function module but with the msg ' 0 entries found in customer enhancement' and therfore zero records in the display list.
is there any correction or steps to be followed in data extraction
pls suggest
regards,
praful -
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 regardsthanks 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
Maybe you are looking for
-
Where does Credit Card Reconciliation Occur, and which form it is suppose to be interfaced with? The solution will provide a function to reconcile these card-level adjustments with the associated card balances displayed on A Bank provided reports. If
-
Exporting Objects Style Manager file? And Overriding Preset Defaults?
Hi, We received our upgrade of Captivate 5 from Captivate 4. I noticed the Captivate 5 does not use design template as it is replaced with Object Style Manager. I have a question, how do I override objects styles preferences presented to us from a
-
GetDefaultToolkit().beep();
java.awt.Toolkit.getDefaultToolkit().beep(); I,ve looked in the api but not very clear(dohhhhhhhhhhh). can,t make it work,any help appreciated. basic question to you guys but do i need to import the package or is this part of awt anyway.code to show
-
Help: My Creative Zen Micro 8 GB d
Hi All I bought this gr8 player from HK in Jun06...it was working fine uptil now..but now comp doesnt seem to recognise it as USB nor does it gets charged.. I tried every faq sol. of creative manual..but it didnt start..when i thought of buying its e
-
Keyboard Esc & Alt not working
My esc and alt keys are not working....i'm ronning on windows 7 32 bit...and i think some virus came through my phone messd up these....pls help me...