Function module to caclculate employee workin time??
Hi ,
I have a requirement where in i need to calculate employee per month working time , i am using
CATT_PERSONAL_WORKING_TIMES but the problem with this FM is that it gives the working time on per day basis ,Please
Suggest me some functional module where in i can fetch the working time for the entire month
hi,
pls go thru this post. it might help u.
function module to calculate total working hours of the employee
thanks
Similar Messages
-
RFC function module - to have it as time dependent
Hi,
I have a RFC call to CRM system from R/3 side. This call is made to get email address of users in CRM system - during the triggering of order confirmation output.
Some times the RFC queue is full and these calls also get in to the queue blocking the queue. This call for me it is an optional and it should not get struck in the queue meaning the order output process should not wait for longer time.
Is there a way that I can say if the call is taking longer time say over 60 seconds no need to wait for the CRM data. Is there any option in the function module to do so (something similar to "starting new task", "performing <a routine> on end of task").
Thanks in advance...
KrishThanks for your responses.
May I know where I can set the timeout in SM59? If it is a common setting for all RFC connections, then I cannot touch since the regular calls to CRM/ other systems shouldn't get affected. If it is specific to the RFC connection then I can create a new one and use it over here with time out setting.
Asynchronous RFC I can try but this call to CRM system is made from the output routine - so I am not sure how we can use it over here. The output routine checks if any valid email address found in CRM system for the customer. If so then it sets sy-subrc = 0. Since this routine is called during the order creation the wait causes delay in order getting saved. This happens occasionally when the CRM queue is fully occupied.
Thanks,
Krishnan V -
Function Module for getting the System time.
Hello All,
Which is the Function Module used in APO to get the system time?
Thanks for your response in advance.
Regards, ChiragHi Chirag,
Please try the following function modules
1) /SAPAPO/CRES_GET_TIMESTREAM_BT
2) /SAPAPO/OM_TIME_GET
The field name for system time is UZEIT under
structure SYST
Also try
3) CALENDAR_GET_TIMESTAMP
4) SAL_CSM_RECEIVER
I guess the third one will have your required data
Regards
R. Senthil Mareeswaran. -
Function module to convert date and time
Hi ,
Requirment is i want to create a file in the application server.So the file name should be in the following format.
0XX-XXXX-YYYYMMDDHH.format.
in this HH-hours.I need to take current date and time.so is there any function module to convert into this format.If it is not there how to create file name in this format.
Thanks,
MRREPORT ZTEST_CONV.
data: time_stamp TYPE timestampl.
GET TIME STAMP FIELD time_stamp.
You can try with GET TIME STAMP
But it will be in Different format. -
Function module for comparing dates and times
Hi,
I have a date and time stamp in one filed for example as below:
20070125183045
(the first 8 are date in YYYYMMDD format, the next 6 is time in HHMMSS format). Now I want to compare this value to another such value in terms of date and time. First I want to compare dates and then times. Do you know any function module that can serve this purpose?
Thanks very much!You can compare these using the function module DURATION_DETERMINE. This fuction will give you the difference, and it can be in a view different units, such as the difference in days, months, etc.
Funciton module takes in Start date and time and end date and time.
Regards,
RIch HEilman -
Function Module to convert Current Date & Time to Julain Date.
Hi Guys,
Is there any Function Module for converting Current system Date to Julian Date.
I only want a Function Module not any report program.
Thanks......
Sudheer.hiii
i tried to find a FM for that but could not find any..ya after reading this thread i read about how julian date can be make..from this link only i read about Julian date
and for this time is also needed but i think there is not any FM for this.still i am searching.let me know if you get any. -
Function Module to get Date and Time out of Timestamp
Hi,
Source system timestamp field CREATED_TS of Type DEC-15
BW PSA data in format 20.140.707.105.948
In DSO, I have created two target InfoObjects; one for Date and one for Time.
In transformation from PSA to DSO, in field level routine, I want to split timestamp into Date and Time.
There is a function module CACS_TIMESTAMP_GET_DATE in source system but it is not available in BW. Another function module ADDR_CONVERT_TIMESTAMP_TO_DATE which is available in BW but returns only Date.
Does anyone know a function module in BW which takes Timestamp (PSA data in format 20.140.707.105.948) and returns Date and Time.
Much better would be a FM which take timestamp and also Timezone and returns Date and Time.
Thanks
AhmadTimestamp to date time conversion (with time zone) is built into ABAP. Why use a function module?
Read the ABAP help on CONVERT. -
Function module for converting German Data/Time to Indian Date/Time
Dear All,
My requirement is to convert German date and time to Indian date and time. Is there any function module available or any way we can get it?
Thanks and regards,
Atanuhi,
first get the timezone of that country
CALL FUNCTION 'TZON_LOCATION_TIMEZONE'
EXPORTING
if_country = p_it_userid-zcountry
IMPORTING
ef_timezone = l_tzone
EXCEPTIONS
no_timezone_found = 1
OTHERS = 2.
then use the below statements
-- Convert from server time to GMT
CLEAR l_tstmp.
CONVERT DATE l_datum
TIME l_ctime
INTO TIME STAMP l_tstmp TIME ZONE sy-zonlo.
*-- Convert from GMT to user backup time
CONVERT TIME STAMP l_tstmp TIME ZONE it_usr_timezone-ztzone
INTO DATE it_usr_timezone-zdate
TIME it_usr_timezone-ztime. -
Function Module to change employee's entry date
Is there a function module to change the employee's entry/hire date?
I just know in the menu of transactio PA30, there are a 'Utilities' and I can change there, but since I need to implement into an ABAP program, so I need a function module to handle this.
Appreciate your suggestion and opinion. Thanks.Hi Duxton,
I've tested the FM you said in SE37.
However, it's just get the hire date for the employee and not change it.
Can you tell me what should I put for the parameters' value?
Thanks. -
How to run ABAP Function Module in Background FOR LONG TIME?
I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
RSDRT_INFOCUBE_DATA_COPY.
I used SE37 and then executed the module, I supplied the parameters on the form which opped-up and then program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run it in background without interruption?
THANKS A LOT.Change parameter rdisp/max_wprun_time.
Default value for this is 600 seconds (10minutes).Change it to a time which you think you need for copying infocube data.
May be 5 hours.
PS:You can not run Function Module in background directly,but you can create a Z* program and call that FM from within that program and then run the program in background.
Hope this answers your query. Best of Luck!
Thanks and Regards
Anindya
Edited by: Anindya Bose on Jun 30, 2009 1:24 PM -
Function module to delete employee
Hi experts is there any function module which deletes a complete pernr
I am not sure about function module but you can use program RPUDELPN for the same.
PU00 transaction can also be used. -
Function modules to read Time clusters B1 and B2 from PCL1 and PCL2
Hi All
Are there any function modules or macros to read time clusters B1 & B2?
I want to read time data in the clusters for reporting purpose.
Regards,
Rupesh MhatreYou can also call the FM HR_TIME_RESULTS_GET and get the exact cluster you need from B2 like WPBP, ZE, SALDO etc.
Otherwise if you want to use the older FM declare the GET_TBUFF and GET_BUFFER_DIR as of below structure.
DATA: BEGIN OF TBUFF OCCURS 5000. "XPMK014785
INCLUDE STRUCTURE PCL1.
DATA: SGART(2),
END OF TBUFF.
DATA: BEGIN OF BUFFER_DIR OCCURS 2000, "XPMK014785
SGART(2),
CLIENT LIKE PCL1-CLIENT,
RELID LIKE PCL1-RELID,
SRTFD LIKE PCL1-SRTFD,
NTABX LIKE SY-TABIX, "pointer auf aktuellen satz
OTABX LIKE SY-TABIX, "pointer auf alten satz (falls vorhanden)
NNUXT LIKE PCL1-SRTF2, "anzahl folgesaetze aktueller Satz
ONUXT LIKE PCL1-SRTF2, "anzahl folgesaetze alter Satz
ofset(3) type p, "offset innerhalb eines entry
END OF BUFFER_DIR.
INT_TIME_RESULTS should be of type PTM_TIME_RESULTS.
Regards
Ranganath -
How to run the Function module Parallelly at a time.
Hi all,
LOOP AT ITAB.
call function 'Z_SAMPLE'
ENDLOOP.
Here if ITAB is having 4 records, Function module Z_SAMPLE will be runned 4 times one by one .
My requirement is If ITAB is having 4 record ,Function module should be runned 4 times parallely(parallel process) .
Please tell me how i can do this Can i run that statement 4 times by removing the loop or
Can i Create 4 different jobs and run that jobs at a time if yes please tell me how to creat the jobs and run parallelly.
Please suggest me the solution
Please do ask me if question is not clear
Thanks in Advance
AjayIs it possible ?
DATA : f1 TYPE string VALUE '1',
f2 TYPE string VALUE '2',
f3 TYPE string VALUE '3',
f4 TYPE string VALUE '4'.
DATA : f1o TYPE string ,
f2o TYPE string ,
f3o TYPE string,
f4o TYPE string.
PERFORM call_fm USING f1 CHANGING f1o.
PERFORM call_fm USING f2 CHANGING f2o.
PERFORM call_fm USING f3 CHANGING f3o.
PERFORM call_fm USING f4 CHANGING f4o.
WRITE f1o.
WRITE f2o.
WRITE f3o.
WRITE f4o.
*& Form CALL_FM
* text
* -->P_F1 text
FORM call_fm USING f1 CHANGING f1o.
* FUNCTION Z_TEST_MULTI.
*"*"Local Interface:
*" IMPORTING
*" VALUE(A) TYPE STRING OPTIONAL
*" EXPORTING
*" VALUE(B) TYPE STRING
*b = a.
*ENDFUNCTION.
CALL FUNCTION 'Z_TEST_MULTI'
EXPORTING
a = f1
IMPORTING
b = f1o.
ENDFORM. " CALL_FM -
Function module to convert to time stamp format
Hi friends,
can you tell me any function module to convert date and time to time stamp format?
kind regards.Just use
CONVERT DATE d
TIME t [DAYLIGHT SAVING TIME dst]
INTO TIME STAMP tst
TIME ZONE tz.
look at this example
DATA:
tstamp type timestamp,
d TYPE D VALUE '19971224',
t TYPE T VALUE '235500'.
SET COUNTRY 'US'.
CONVERT DATE d TIME t INTO
TIME STAMP tstamp TIME ZONE 'UTC+12'.
" tstamp : 19971224115500
" (12/24/1997 11:55:00)
CONVERT TIME STAMP tstamp TIME ZONE 'UTC+12' INTO
DATE d TIME t.
Also look at the blog..
/people/himanshu.gupta/blog/2006/11/14/abap4-date-time-and-timestamps
Raja T
Message was edited by:
Raja Thangamani -
How to run ABAP Function Module in Background Wchich Takes Long Time to Run
How to run ABAP Function Module in Background FOR LONG TIME
I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
RSDRT_INFOCUBE_DATA_COPY.
I used SE37 and then executed the module, I supplied the parameters on the form which opped-up and then program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run it in background without interruption?
THANKS A LOT.Hi,
You can call this FM in a program and run that program in background.
Regards,
Raju
Maybe you are looking for
-
Is there a way to create an image of a CC installer that way I can install without internet?
I work for a college that has a department of over 100 mac computers currently runing 10.6 and above. I am the IT here and am in charge of installing all programs the students use, so ease of installation helps. I know I can install using an internet
-
User exit for save_document in delivery
hello! What is the include for the user exit of save document in a delivery? Thx
-
Business Partner relationships issue
Hi All.....I am creating Business Partners in Partner Financial Systems. When I go to Relationships screen, where I can create, display, change and delete the relationships for the BP. I want to control the create/change/delete functionalities when I
-
Command Link not working with Tabbed Pane
I am calling one action on click of CommandLink in a DataTable, When I submit the action from an individual page , It is working fine, When I include that JSP in the TabbedPane , it is throwing JavaScript error "Error on the page" and action won't su
-
Authorizations for document management
Hi, I'm trying to figure out what every authorization means and which effects it has... I created a new user, gave him all the necessary authorizations to use certain transactions in Document management by making a new role/profile for him After tryi