I need a function module for covert TRIP START DATE to TRIP FISCAL YEAR
Actually my req is
TRIP START DATE (z object) is coming from TRIP MASTER DATA TABLE.
based on TRIP START DATE I have to update the fields like
1.TRIP FISCAL YEAR,
2.TRIP CALENDER YEAR,
3.TRIP FISCAL YEAR PERIOD
4.CALENDER MONTH
in the cube.
my FISCAL YEAR START from JULY 1st to JUNE 30th.
i need a code for update rules.
please help me out. its very urgent.
Thanks in Adv.
Hi Satya,
Check these FM.
GM_GET_FISCAL_YEAR
'FTI_FISCAL_YEAR_MONTH_GET'
DATE_GET_WEEK
MC_PERIO_CONVERT_TO_WEEK_MONTH
UMC_FISCPER_TO_CALQUARTER
GET_CURRENT_YEAR
'GET_CURRENT_YEAR' or FM 'FTI_FISCAL_YEAR_MONTH_GET'
You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
Enter the date you need in the place of sy-datum.
FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date
Kindly reward points by clicking the star on the left of reply,if it helps.
Regards,
Vijay.
Similar Messages
-
Need a Function Module for fetching the prior date-Urgent!!
Hi All,
I need a function module which will give the prior date with respect to the no: of days days that are entered as input.
Can anyone please help me to fing one function module which acts as the above.
Required very urgently!!!
Thanks and Regards,
NeethuHi Neethu,
Please run the report 'ZRECTIFY_FM_DOCUMENTS' in your system.
Before running the report, create the following selection texts for the parameters/select-options as given below:
P_BUKRS: Company code
S_GJAHR: Fiscal year
S_BELNR: FI document no.
P_TEST: Test run
For More information please refer <b>SAP Note: 309619</b>
Best Regards,
Johnny. -
Function Module for getting Payroll start date and end date
Hi Gurus,
If I give one date then is there any function module to find the payroll period start date and enddate for that given date?
Points will be awarded
Thanks
RaviHi,
Try these FMs
HR_PAYROLL_PERIODS_GET
HR_BEN_PAY_GET_PAYROLL_PERIODS
HR_PAYROLL_PERIOD_GET
HR_P06I_GET_PAYROLL_PERIOD
Regards,
PRashant -
Function Module for getting the desired date
Hi All,
I need a function module where in get the date value from Current date - 540 days.
i,e System Date - 540 days = ????
Thanks
Sureshprevious FM works good , this is for ur info , to give in month, date and year instead of onlly days
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = sy-datum
months = '00'
days = '07'
years = '00'
signum = '-'
IMPORTING
calc_date = w_due_date.
Message was edited by: chandrasekhar jagarlamudi
Message was edited by: chandrasekhar jagarlamudi -
Functional module for Getting Material classification data.
Please tell me Functional module for Getting Material classification data like class type , class, characteristics and characteristics values for material.
Dear,
FM:
CLAF_CLASSIFICATION_OF_OBJECTS
Table KLAH Class Header Data
- KSML Characteristics of a Class
Regards,
R.Brahmankar -
I need a function module for processing idoc
i need a function module that can be used for processing of idocs. The name of the fm should be Z_AS4_IDOC_INPUT_SHPMNT you should create functiongroup ZAS4 as copy of group ZS40. The functionmodule should be build on the basis of Z_S_IDOC_INPUT_ZSDELV.
Messagetype: ZASHPMNT
Idoctype: SHPMNT05
Partner: ASSIST
The purpose is to check the delivery number in Segment E1EDL20, to find the invoice in the documentflow and to select an message record of this invoice in tha table nast.
plz help..
<THREAD LOCKED. This is a forum for solving problems, not for getting other people to do your work. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting any further questions.>
Edited by: Mike Pokraka on Oct 15, 2008 4:13 PMgreat work done in copy /paste all your functional requirement here.
Now search and get a primer on ALE / IDOCs processing and start from there -
Need SMD function module for business partner in SRM
Hi Gurus,
I am looking for standard Master Idoc create SMD function module for business partner in SRM.
I need to send an Idoc from SRM to ECC based on change pointers i.e. whenever a business partner is changed in SRM. So there are standard function modules *smd* available for other data but i am not able to find any FM for busienss partner.
Please suggest if anyone has came accross such scenario.
Thanks,
RavindraGot it
-
Function Module for calculating hours between dates and their times.
Hi all,
Is there any standard function module for calculating the time difference in hours between two dates with start and end times.
Regards,
Sudipto.Sudipto,
How're you ????????????????????
Check out the following Function Module:
SD_DATETIME_DIFFERENCE (Give the difference in Days and Time for 2 dates)
Regards,
Abir
Don't forget to award Points * -
Need a function module for fetching description of fields in a table
Hi experts,
I have a requirement where i need to fetch the descriptions of all the fields of a given database table.
I am looking for a function module that gives the descriptions of a field. Please suggest a way.
Points will be rewarded.
Thanks in advance.Use FM DDIF_FIELDINFO_GET to get information about a field. Pass table name and Fieldname.
Use FM DDIF_FIELDLABEL_GET if you need only the field label.
Use FM DDIF_TABL_GET for getting information of all fields of a particular table.
Regards,
Lakshmi.
Edited by: Santhanalakshmi V on Jun 11, 2008 5:26 PM -
Need a Function Module for Week Calculation
Dear Experts,
I want a function module which calculate the week number.
Suppose for date 04.05.2010
week is 19...........
i want to fetch through function module.
i have already tried function module like GET_WEEK_INFO_BASED_ON_DATE & DATE_GET_WEEK
throgh both function module output is come out is 18.
but i need 19.
when i pass 02.01.2010
then it giving 53 week of 2009.
plz. help me as soon as possible.
Thanks,Jan 2 2010 was indeed 53rd week of 2009, so SAP FMs are returning right value. I would strongly recommend to consult your functional consultant before assuming Jan1 2010 as week 1 of 2010.
[quote from wikipedia|http://en.wikipedia.org/wiki/ISO_8601#Week_dates]
'If 1 January is on a Monday, Tuesday, Wednesday or Thursday, it is in week 01. If 1 January is on a Friday, Saturday or Sunday, it is in week 52 or 53 of the previous year (there is no week 00). 28 December is always in the last week of its year.'
Regards,
Pawan.
Edited by: Pawan Kesari on May 4, 2010 4:56 PM -
Function Module for Creation of classification data for a Routing
Hi
Can you please let me know if there are any function modules/Bapi's to create Classification data for a Routing?
THanks
ShekarFor creating classification data, have a look at the function group CTMS and function module CTMS_DDB_SET_VALUE_INTERNAL.
Not sure what you mean by "Routing".
For BAPIs also look into the function group CLBPA, that sits in the same development package CLCL as the function group CTMS.
Hope this helps. -
BAPI/FUNCTION module for the configure varient data(MRP3 -MM02)
Hi all,
I have a requirenent to send the configure varient data(MRP3 -MM02) to another system.Please guide me how it can be created in receving system.ie please provide a function module or BAPI for the same.
Thanks.
Edited by: sanu debu on May 11, 2009 11:01 AMI am also looking for the same requirment . could you please let me know if you find any BAPI.
-
Function Module for Info Record conditions data
Hi, ALL
I'm looking for a Function Modlue or Method that we can insert conditions datas of Info Record.
Also, I'm looking for a FM that we can update them, and get these infomations.
Plese let me know if you know these.
Regards
Riehi,
For reading the purchase price, use the function module BASIC_PURCHASE_PRICE_READ ...function group WVKC (development class WVKP)
you can also check sap note 565002 for more info...
Regards
Priyanka.P -
Function module for finding differens in date
HI,
Friends can any one help me in finding out difference in date in select option .
i having problem when difference became negative .My requirement is to find out monthly report for a material . so i need to find out difference of date and need to add one month from the given date to require date.
Regards,
Mahendra.try the following fms
SD_DATETIME_DIFFERENCE
DAYS_BETWEEN_TWO_DATES
MONTHS_BETWEEN_TWO_DATES..
sample code is
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60.
<u><i><b>DATE DIFF W/O FM</b></i></u>
LOOP AT itab.
v_number_of_days = itab-date2 - itab-date1.
IF v_number_of_days > 1.
DELETE itab.
ELSE.
*-- Do something else.
ENDIF.
ENDLOOP.
regards
navjot
REWARD IF HELPFULL
Message was edited by:
navjot sharma -
Need a function module for commit
Hi Experts,
I have a requirement of displaying a PO report in alv and when the user clicks the po it showed navigate to ME23N to display the PO.
Here the user can go in change mode to change some details in po, and when he returns back, the report should show the changes in the PO.
I am able to update the report once the user return back to the report from ME23N.
But only thing is there is a lag(5 Secs) of updating the database table when the user saves the PO.
So we need to commit once the user return to the report and then fetch the data from database.
I tried to use the " Commit work Statement" but it does't update as early.
can some one please telll me some commit Fucntion module which can update the ME23N related tables qiuckly.?
Regards,
Venkatesh.>
kartik tarla wrote:
> since the same answer is already given above there's no need to post again.
Especially when that answer is wrong...
As we talk about a standard transaction here, the COMMIT is included in the standard transaction, so it does not make any sense to do it once more in an FM, or directly in the ABAP program (not mentioning that the LUW is closed already, so there is nothing to commit...)
On the other hand, the replies with WAIT UP TO ... are very strange, because now the time is 5 seconds, but next time it could be 7 seconds, who knows... this is not a stabile solution.
The only reply is worth considering is the one from Thomas!
Maybe you are looking for
-
Hey , Thought it may be useful for some on my own personal experience with the new iPhone 4. Bought the iPhone 4 last Friday , was please upon my purchase, excited to upgrade from my iPhone 3G to all the nice new features. Firstly I was quite pleased
-
Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with your app is it possible to attach the usb to my iphone using a adapter to watch the live video feed
-
Hi! I have an old computer witch I have installed apache, php and mysql. Every thing is working except from one thing (so far). I have tested that php works, but my problem is that I don't get any error messages back from the server if there is an er
-
When using SSL Word Files ask for username and password.
I have SharePoint Foundation 2013 setup and it works great. I need to allow users access when they are not connected to our local network, so for testing purposes I added a domain signed certificate and assigned it to IIS on 443. Internally when I t
-
Can I disable the subwoofer in my macbook pro?
The subwoofer on the right side is cracking and rattling. I know that you can fade the audio to the left but the actual right speaker isn't having an issue, it is just the subwoofer (which cannot be individually turned off in the speaker menu). I was