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
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 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
-
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 -
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* -
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 -
Function module searched: Data extraction from BW to R/3?
Hello everybody,
has anyboday any idea on which function module or function group could be used for data extraction from BW to R/3?I have seen some threads,and found the function group RSAX which is actually for extraction from R/3 to BW,is it also suitable for the other direction(BW to R/3)?
I have looked for this topic for a long time,but so far no success...
Would you like to give me some hints?
Regards,
Liying
Message was edited by: Liying WangHi,
It's going to be an extraction to specific application in R/3 - couldn't be any universal extractor - applications have their own specific.
But you can try application specific retractors, as examples look here:
http://help.sap.com/saphelp_sem320bw/helpdata/en/99/97157967e3440a94d199538959cd0b/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c4/b2af6569e64418a21bd0ab4d83be83/content.htm
Open hub functionality is another option:
http://help.sap.com/saphelp_sem40bw/helpdata/en/ce/c2463c6796e61ce10000000a114084/frameset.htm
Best regards,
Eugene -
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. -
Need function modules for date manupulation
HI,
Could you please suggest the function module the below reqiurments
1) adding days to date.
ex: 20 days to 25.03.2008 = 15.04.2008
2) To find the given date is working date or not according to factory calender id.
3) To find the previous or last working date to the given date(Holiday date) according to the factory calender id.
It is very urgent requirment. please help me.
Thanks in advance
sathish kumar swamyhi use this...
RE_ADD_MONTH_TO_DATE
DATE_CONVERT_TO_FACTORYDATE
CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
EXPORTING
I_DATE_OLD = date1
IMPORTING
E_DATE_NEW = date1
data date2 like sy-datum.
date2 = date1 + 1.
write date2.
If you put 27.12.2005 as the input date, date2 you will get as 01.12.2005.
Or else you can use the following code:
v_startdate = sy-datum.
v_startdate+6(2) = '01'.
v_enddate = v_startdate.
if v_enddate+4(2) >= '01' AND v_enddate >= '11'.
v_endate4(2) = v_enddate4(2) + 1.
elseif v_enddate = '12'.
v_enddate+4(2) = '01'.
v_enddate(4) = v_enddate(4) + 1.
endif.
v_enddate = v_enddate - 1.
regards,
venkat. -
Any BAPI or Function module upload data into /LOT/LEOMM01
Hi ,
Could you tell me please if there is any BAPI or Function module to upload LEO material Property group data (/LOT/LEOMM01)
Thanks & Regards
RK
nullHi Rk,
take this pavkage name MGA go to se80
in se80 provide package name click on display
open function group folder see the function modules and BAPI s that ful fill u r requirement
Regards
kishore ale -
Function Modules on date and day.
I need to calculate the date of the following Sunday based upon the current date.Could you suggest how to go calculate the same and if there are any function modules to do the same.
HI sandeep this will give u the best results....
parameters:
p_date like sy-datum ." here u give the required date
data:
w_date1 type i,
w_mod type i.
w_date1 = p_date.
* write: / p_date1.
w_mod = w_date1 mod 7.
write: / w_mod.
if w_mod ne 0.
w_date1 = w_date1 + ( 7 - w_mod + 1 ).
else.
w_date1 = w_date1 + 1.
endif.
move w_date1 to p_date.
write: / 'the following sunday is ',p_date.
I hope it will helps u..
if helps reward with points..
Regards Rk..
null
Maybe you are looking for
-
I've noticed that if something gets disconnected from the computer while the case is closed, it starts up, trying to tell me "device improperly disconnected". This seems normal to me. The problem here is that the next time I try to wake up my compute
-
Dear GURUs While running TCODE FBRA it is taking long time due to lots off record is available in table BKORM, The solution is delete all records from BKORM through F.63, is there any effect if we delete all record from Table BKORM. By which T. code
-
OIC_C03 dataflow...
Hi gurus, Iam implementing in BI7. Im confused with the dataflow of 0IC_C03. As far as my reading goes, previously they used 2lis_03_BF and 278 datasources which is now to be replaced by 2lis_03_BF and 2lis_03_BX. Thats fine.. But is there BI7 data
-
Hi! Everyone I have to develope an application for PDA in LabVIEW. Can someone tell me how and where to start....the interface is with RS485. The PDA needs to scan for attached devices and report devices available. There are some parameters to be acq
-
Building an array of Point[]
Hello, I just wondered if anyone could advise. My code delares an array Point[] points = new Point[7]; But I wondered if it was possible to declare the Point structure as Point[] point. And create an array of objects, without delaring the array size.