Reg Function Module to Date Calculation
Hi,
Could anybody assist me, My requirement is to determine delay of delivery date is equal to (goods receipt posting date u2013 planned delivery date).Is there any function module to find out the dated diffrence. The difference should be '+' or '-' OR 'ZERO'
Thanks in advance.
Regards.
I.Reddy Prasad.
Hi,
Use this Function Module 'FIMA_DAYS_BETWEEN_TWO_DATES'.
Reward If Helpfull,
Naresh.
Similar Messages
-
Function Modules for Data and Time
Hi all,
I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
Thanks in advanceHi Ranjith,
i think this will b usefull for you..
SAP Bar Chart Function Modules and what they are used for
Function module
Used for
BARC_GRAPHIC_PBO
Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
BARC_GRAPHIC_PAI
Analyzing data returned by the graphic
BARC_SET_TIME_AXIS
Setting start and end of time axis
BARC_SET_OPTIONS
Setting options
BARC_ADD_CHART
Creating a chart
BARC_SET_CHART_ATTRIB
Setting chart attributes
BARC_ADD_SECTION
Creating a section on the time axis
BARC_SET_SECTION_ATTRIB
Setting section attributes
BARC_ADD_RIBBON
Adding a ribbon to the time axis
BARC_SET_RIBBON_ATTRIB
Setting attributes for ribbons in the chart
BARC_ADD_GRID
Adding a time grid
BARC_SET_GRID_ATTRIB
Setting grid attributes
BARC_ADD_LAYER
Adding a layer (graphic elements)
BARC_SET_LAYER_ATTRIB
Setting layer attributes
BARC_ADD_LINE
Adding a line
BARC_ADD_CALENDAR
Creating a calendar
BARC_SET_CALENDAR_ATTRIB
Setting attributes for a calendar
BARC_ADD_TIME_PROFILE
Creating time profiles
BARC_SET_TIME_PROFILE_ATTRIB
Setting attributes for time profile
BARC_ADD_INTERVAL
Adding a time interval
BARC_SET_INTERVAL_ATTRIB
Setting time interval attributes
BARC_ADD_TIME_OBJECT
Creating a time object
BARC_CONVERT_DATE
Creating a date string in bar chart format
BARC_REVERT_DATE
Converting a date string in bar chart format to date and time
BARC_ADD_DATELINE
Creating a date line
BARC_SET_DATELINE_ATTRIB
Setting dateline attributes
BARC_GET_PROFILE_CONTENTS
Obtaining profile contents for customizing a chart
BARC_GET_COLUMN_WIDTH
Selecting new column width
BARC_SET_COLUMN_WIDTH
Setting the column width
BARC_GET_TEXTINDEX
Obtaining the text index of a field
BARC_SET_LABELS
Positioning the chart display
BARC_SET_COLUMN_ATTRIB
Setting column attributes
BARC_SET_ROW_ATTRIB
Setting row attributes
BARC_SET_ROW_HEIGHT
Setting the line height
BARC_SET_MAXCHARTS
Setting the maximum number of charts sent
<b>If its usefull reward points
</b> -
Function Module for data retrival for work order clearence (WCA)
Hi All ,
Function Module for data retrival for work order clearence (WCA) for a particular Planning plant and (WCD's).
Thanks.Hi Anne,
BAPI_PRODORD_GET_DETAIL
BAPI_PRODORD_GET_LIST
You can find further FM in Function Group COPRINT and CODR or take F4 on CO* in Function Group
These will serve your purpose.
Cheerz.
Ram -
How to incoporate a function module in data source based on view
Hi,
I need to develop a data source in R/3 based on a view (which is straight forward).
One field in the R/3 Z table will be in like this 20,070,709,110,000
There is a function module developed in R/3 when executed will split the record(20,070,709,110,000) and display time & date
How can i incorporate this function module in data source so that the data and time records will be loaded to BW
ThanksEnhance the data source with date and time and populate these fields in the user exit using the function module IB_CONVERT_FROM_TIMESTAMP .
OR
You can create Z function module IB_CONVERT_FROM_TIMESTAMP in BW side and write a routine in update rules/transfer rules to populate date and time.
hope this helps ...
Ravi -
Table for Function modules - Changed date & Changed by.
Hi Experts,
Help me to get Function module changed date & changed by.
For programs we can get the mentained information in TABLE : TADIR.Function Modules change history can be retrieved from table TRDIR.
Function Module stores a program Include in table TRDIR.
The details of the Function Module can be found in Attributes-->general data tab in the Function Module.
You need to pass the Include which correponds the FM.
Hence you can find the Log changes.
Hope this helps.
Regards
Vinayak -
Function Modules in Data Modeling
Hi,
Can anyone give me example of use of functional modules at data modeling side?
Cheers!!!!!!Hi,
You can also define your own Z fucntion modules and use them.
Some more examples are converting letters from lower case to upper case, filtering data, transformations for languages, converting formats between systems, etc
Cheers,
Kedar -
Reg:function module to retrive the ekko table data
Hi all,
Is there any function module to retrive the ekko table data for the given select-options and parametrs.
could you provide that.
Thanks & regards,
S.chaitanya.dear chaitanya,
may be you can use this function module ME_READ_EKKO_MULTIPLE which can be used to pass the select options to retrieve the desired EKKO data.
OR the best way would be to do a SELECT Query which would retrieve the data faster and in an effective manner.
Hope this helps you.
Help Children of U.N World Food Program by rewarding and enocourage others to answer your queries
Thanks
Venugopal -
Hi ALL,
I would like to know the various function modules that can be used for calculating dates.Like first day of month,last day.....etc etc.
Please give me a list of the FM's and not the F4 help option info.
CheersHi ,
Here are a few FM used for date manipulation
<b>DATE_IN_FUTURE </b> Add / Substract days from a given date
<b>HR_SGPBS_ADD_TIME_TO_DATE</b> Find the next date based on input date , addition / sub and month , year ,date
<b>CONVERT_DATE_TO_EXTERNAL</b> Convert date to External format
<b>SG_PS_ADD_MONTH_TO_DATE</b> Find the next date based on input date , addition / sub and month , year ,date
<b>DATE_COMPUTE_DATE</b> For a input date gives the day of the week
<b>DATE_GET_WEEK</b>For an input date ,gives the week as output
<b>WEEK_GET_FIRST_DAY</b> Input year and week output is the first day of the week
<b>WEEKDAY_GET</b> Gives the day range , Monday , Tuesday , ..
<b>RP_CALC_DATE_IN_INTERVAL</b> Calculate Future Date
<b>CALCULATE_DATE</b> Calculate Future Date
<b>FIMA_DAYS_AND_MONTHS_AND_YEARS</b> Difference between two dates
<b>CONVERSION_EXIT_PDATE_INPUT</b> It checks if the date is in future , if yes an error is displayed
Reagrds
Arun -
Function module find date Range input for scheduling a job
hi i have created a program for scheduling a back ground job for purchase order extract in that i have to get the last 7 days records when i schedule it on every sunday can any one tell me the function module which satisfies the requirment
Date Range input in my program to be calculated for past 7 days from current date (ie from Sunday to Saturday of the week.)Hi,
You can do it simply by
v_cdate TYPE sy-datum, " current system date
v_cdate = sy-datum - 7. " take date 7 days before current date
Pass this v_cdate in your logic
Hope it will help you.
Thanks
Arun Kayal -
Function modules for data retrieval from diff. tables
Hi,
I would just like to ask if there are function modules that can be used to retrieve data from the ff. tables:
TSAD3T
KNVV
ESTRH
for TSAD3T i need to get the value of title_medi
for KNVV i need to get the fields klabc vkorg vtweg
for ESTRH i need to get the fields subcat subid.
Thanks.I doubt if you have such a FM
-
Hello experts.
my requirement is , I am having a fiscial year ( gjahr) and period ie month (monart) . Now i need afunction module that gives the last date of the month. say if it is january it should give 31 - month-year. I want to populate this date to the budat field. so please tell me how to solve this issue. i want to pass as date-month-year to budat. but i am having year as seperate field and month as seperate field. so please tell me the function module that gives all the three or any other solution to this.
thanks for all the repliespopulate month, year u have and 01 into w_datum in and it should always give day1 of that month like this.
concatenate l_year l_month '01' into w_datum_in.
CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = w_datum_in
IMPORTING
last_day_of_month = w_datum_out
EXCEPTIONS
day_in_not_valid = 1
OTHERS = 2.
*reward if solved* -
Hi All,
When i execute the function module SAPWL_GET_SUMMARY_STATISTIC in CRM ABAP 6.0 passing the values below,
PERIODTYPE
HOSTID
STARTDATE
it's not showing any values in the summary.
it's showing the exporting parameters as,
RFC_ERROR_TYPE L
SUMMARY_AVAILABLE N
HITLISTS_N_PROFILES_AVAILABLE A
if this function module will not work means kindly provide me the solution for calculating
Average Response Time as in tcode st03 - Instance - total - Workload Overview.
Average CPU Time and some more fileds.
Regards,
SureshHi
I used the FM mentioned and found the details as below:
VKORG
TABNAME TVKO
FIELDNAME VKORG
LANGU EN
POSITION 0001
OFFSET 000006
DOMNAME VKORG
ROLLNAME VKORG
CHECKTABLE
VTEXT
TABNAME TVKOT
FIELDNAME VTEXT
LANGU EN
POSITION 0002
OFFSET 000014
DOMNAME TEXT20
ROLLNAME VTXTK
CHECKTABLE
LENG 000020
Shiva -
Reg: Function Module thats used to check the status of JOBS and mail it
Hi Experts,
Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
Please help me,Hello Nagaraj,
You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
ABORTED TYPE C,
FINISHED TYPE C,
PRELIMINARY TYPE C,
READY TYPE C,
RUNNING TYPE C,
SCHEDULED TYPE C.
Following is the link for the same:
http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
Warm Regards,
Riki Dash -
Function module for date format
Hi,
what is the function module name to get the date format in <b>(dd.mm.yyyy)</b> from (<b>dd-mon-yyyy)</b>
Thanx.try this Fm
CONVERSION_EXIT_SDATE_INPUT
input as dd-mon-yyyy
28FEB2007
im assuming mon in literal format.
output is 20070228
WRITE STATEMENT WILL DISPLAY THE DATA IN DEFALUT DATE FORMATS OF SU3 .
<b>Elaborate teh query with an example .</b>
check this
regards,
vijay. -
HI!
IS there any function module existing wherein I give the Date(eg 09/09/2005) and daytext( eg: monday --etc.
The function module should return the date for Monday ( this date should be after 09/09/2005)
eg : date - 09/10/2005 ( mm/dd/yyyy)
daytext - tuesday
the function module should return me the tuesdays date ( 09/13/2005)Hi ,
try that:
REPORT zforum51 .
PARAMETERS:date LIKE sy-datum DEFAULT '20050909',
day LIKE t246-langt DEFAULT 'Tuesday',
sprsl LIKE t246-sprsl DEFAULT 'EN'.
DATA i .
DATA z TYPE p DECIMALS 0.
SELECT SINGLE wotnr FROM t246 INTO i
WHERE sprsl = sprsl
AND langt = day.
IF sy-subrc <> 0.
MESSAGE e001(00) WITH 'false input'.
ENDIF.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = date
IMPORTING
wotnr = z.
WHILE i <> z.
ADD 1 TO date.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = date
IMPORTING
wotnr = z.
ENDWHILE.
WRITE: day, 15 date.
Andreas
Maybe you are looking for
-
Hi, I recently started to use iCloud and have therfore now got an @me email address. I have managed to make it my primary email address but it won't let me make it my Apple ID even though there is an option to make your primary email address one of t
-
How can I add an Image to a text
Hello I want to add a image into the block of text as in the following link: (you can see a image in yellow color=50 years is aligned with the text) http://www.gammonconstruction.com/hk/eng/home/default.html How can I do this in DW-2004? do i have to
-
hiya, i have JTable, and with a button click, i want to make one of the Columns DISABLE not editable or not. can i do that? tx
-
Need help changing colours in a picture
I would like to take a picture of someone's face and make it only black and white (like the picture show here), but I have no idea how. Any help you can offer is greatly appreciated. Thank you!
-
The Never-Ending Dishwasher Saga
These are two posts I originally posted to Best Buy's facebook page. One on July 7th and today July 14th. Please read on,...its CRAZY! Ok people, so get this. I ordered a dishwasher May 21st with delivery scheduled May 27th. It’s now July 7th. They r