Function Module for Start time and End time
Hi Experts,
I need a function module for getting particular Work schedule rule start time and endtime and further details by passing personnel number and day.
Thanks in advance.
Sunil
FYI - https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5338428
Thanks,
SK
Similar Messages
-
<header style="box-sizing:border-box;color:#777777;line-height:1;font-size:13px;padding-right:46px;margin-bottom:3px;font-family:'Helvetica Neue', arial, sans-serif;">
</header>
I'm doing SP app development and have the following problem.
I need to check Start time and End Time in SharePoint Calendar using CAML query and then add a new event to Calendar list using the Start time and End Time that user has entered in 2 datapickers
in the form.
function AddCalendarListItems() {
var SD = document.getElementById("datepicker1").value;
var SThh = document.getElementById("St1").value;
var STmm = document.getElementById("St2").value;
var ED = document.getElementById("datepicker2").value;
var EThh = document.getElementById("Et1").value;
var ETmm = document.getElementById("Et2").value;
var T = document.getElementById("Title").value;
var S1 = SThh;
SD = SD.slice(6, 10) + "-" + SD.slice(0, 2) + "-" + SD.slice(3, 5) + "T" + SThh + STmm + ":00Z";
ED = ED.slice(6, 10) + "-" + ED.slice(0, 2) + "-" + ED.slice(3, 5) + "T" + EThh + ETmm + ":00Z";
//alert("SD= " + SD + " , ED= " + ED);
var siteUrl = SiteCollurl + "/SharePointApp11";
var clientContext = new SP.ClientContext(siteUrl);
var oList = clientContext.get_web().get_lists().getByTitle('Calendar');
var ListItemCInfo = new SP.ListItemCreationInformation();
var newEvent = oList.addItem(ListItemCInfo);
newEvent.set_item("Title", T);
newEvent.set_item("EventDate", SD);
newEvent.set_item("EndDate", ED);
newEvent.update();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQueryAddCalendarSucceeded2), Function.createDelegate(this, this.onQueryAddCalendarFailed2));
function onQueryAddCalendarSucceeded2(sender, args) {
alert("Success");
function onQueryAddCalendarFailed2(sender, args) {
alert('Add new item to the calendar failed. ' + args.get_message() + '\n' + args.get_stackTrace());
But I receive the following error:
Add new item to the Calendar failed. Column 'Start time' does not exist. It may have been deleted by another user.
I've checked and 'Start time' does exist. So it seems in SharePoint Calendar lists, field [Start Time] and [End Time] exist but do not exist at the Site Column level.
Please advise.Hi Khojasteh,
Use “EventDate” for Start Time field, and “EndDate” for End Time field. They are the internal name of the two fields, you can check it in the column settings page url like “Field=EndDate”.
If it isn’t the issue, please debug the code, in which line the error occurs.
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support -
ESS Working Time - Start Time and End Time in Weekly View
Hello,
I'm having a problem with the business package ESS - functionality Working Time (cat2).
I need that information to Start Time and End Time appear in the Weekly View of the portal.
In Daily View that information are already visible, but In Weekly View that information does not appear.
Does anyone have any suggestions?
Thank you very much your attention.
Att,
Jair de Oliveira JuniorHi Bala
You can have clock in and clock out in a weekly view.
you have to change the data entry profile settings.
In general settings tab in data entry profile click the with clock times button and maintain the Period type to 02 in time settings tab.
And you can view the weekly entry in clock in and clock out.
Ravee
+91.99206.33669 -
Hide the start time and end time in ESS portal
Experts,
We have a requirement to hide the Start time and End time on the header section of the travel request / expense sheet in the ESS portal. I have searched through the configuration and found several place to hide the start time and end time of segment yet these have no impact on the porta start and end time fields.
Please Advise.
Best Regards,
Martin WeakleyHi Martin,
you can achieve this with administrative personalisation. In portal content navigate to the role where you deltalinked your iView, click "preview". When a new Window for the preview is opened, notice the URL contains "&sap-config-mode=true". Now right click on the fields you want to hide and choose "enter configuration" (or the like, wording is not exact) from the context menue. The WD-UI-Element tree opens where you can directly hide/customize properties of the WD. When clicking save+exist you can also transport the alterations you did.
maybe this helps or gives you a helpful alternative to the already stated measures in this thread
regards, Lukas -
Enter start time and end time of inspection
Dear all
Plz tell me where we can enter start time and end time of inspection.
Regards
NirmalaHi Nirmala,
I think Inspection start time is not required for any analysis or else. Days taken for closing lots are important than time. Any how, the stock posted or Inspection completed time is already available in Stock posting log - transaction QA33.
In transaction QA33,
1. Input Material, Plant & Period etc
2. Select a lot (UD made)
3. Select Usage decision tab
4. Select Stock posting tab
5. Select Stock posting log in the tab(header) - here your inspection completed (UD) time is getting stored
Further issue, pls reply.
VRMP. -
How to know the process chain start time and end time
Hi Experts,
How to know the process chain start time and end time .
Thanks in advance
Regards
Gutti
Edited by: guttireddy on Feb 23, 2012 11:30 PMHi Reddy,
You may find the run time of a PC using below steps.
1. Call SE38 > /SSA/BWT > Execute > Enter your PC , choose the date and time > Execute. Here Run-time of a PC is displayed. (or)
2. Call RSPC1 > Enter your PC > Execute > Goto Log view > Right click on the start Variant > Displaying Messages > Note down the start time in Chain Tab. Now Right click on the last Process type of the PC > Displaying Messages > Note down the End time in Chain Tab. The Difference b/w start time and end time gives the Run-time of your PC.
Hope this helps.
Regards
Sai -
Reg:picking work schedule satrt time and end time
Hi gurus,
I am wrkng on overtime report in hr abap.in pa0007 we will have work schedule rule,
for that they will assign timings.i nedd to pick up the start time and end time for that work schedule rule.
can any one help me from which tables i can pick that.
thanks & regards.I think best way is to have your 10.00 or 11.00 as Date objects in the database, and to use methods of Date or Calendar to compare them.
-
Function module for calculating planned and actual cost of production order
Hi ,
Do we have any standard function module for calculating planned and actual cost for production order?
i need to implement this in a Z-report.
Thanks
SriniHi,
try below function module
CRMCO_GET_PLAN_ACTUAL_COSTS
CO_IH_GET_PLANNED_COSTS_TOTAL
Regards,
Sankaran -
Function Module to get BEGIN and END date of a month?
Hello everybody,
Is there any function module to get BEGIN and END date of a month
GIVEN EITHER THE CURRENT SYSTEM DATE or MONTH?
Regards,
Sanghamitra.A.hi
CALL FUNCTION 'PA03_PERIODDATES_GET'
EXPORTING
f_abkrs = p_abkrs1
IMPORTING
f_permo = wf_permo
f_current_begda = wf_begda
f_current_endda = wf_endda
CHANGING
f_current_period = wf_pabrp
f_current_year = wf_pabrj
EXCEPTIONS
pcr_does_not_exist = 1
abkrs_does_not_exist = 2
period_does_not_exist = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
this is the function module to get the first date and last date of a particular month
if u have any doubts ask
regads
karthik
reward points if useful -
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 -
RFC enabled function module for insert update and delete in a Ztable..
friends..
Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
Thanks and RegardsHi,
Try this code.
REPORT ZMMC071Z_RMV.
TYPE-POOLS : ABAP.
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
<DYN_WA>,
<DYN_FIELD>,
<LV_CONDI>.
DATA: DY_TABLE TYPE REF TO DATA,
DY_LINE TYPE REF TO DATA,
XFC TYPE LVC_S_FCAT,
IFC TYPE LVC_T_FCAT.
SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_TABLE LIKE DD02L-TABNAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK F1.
Evento: At Selection Screen *
START-OF-SELECTION.
PERFORM GET_STRUCTURE.
PERFORM CREATE_DYNAMIC_ITAB.
PERFORM GET_DATA.
END-OF-SELECTION.
*& Form get_structure
text
FORM GET_STRUCTURE.
DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
XDETAILS TYPE ABAP_COMPDESCR.
DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
DATA VL_LENGHT(30).
Get the structure of the table.
REF_TABLE_DES ?=
CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
LOOP AT IDETAILS INTO XDETAILS.
CLEAR XFC.
XFC-FIELDNAME = XDETAILS-NAME .
XFC-DATATYPE = XDETAILS-TYPE_KIND.
XFC-INTTYPE = XDETAILS-TYPE_KIND.
XFC-INTLEN = XDETAILS-LENGTH.
XFC-DECIMALS = XDETAILS-DECIMALS.
APPEND XFC TO IFC.
ENDLOOP.
ENDFORM. "get_structure
*& Form create_dynamic_itab
text
FORM CREATE_DYNAMIC_ITAB.
Create dynamic internal table and assign to FS
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IFC
IMPORTING
EP_TABLE = DY_TABLE.
ASSIGN DY_TABLE->* TO <DYN_TABLE>.
Create dynamic work area and assign to FS
CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
ASSIGN DY_LINE->* TO <DYN_WA>.
ENDFORM. "create_dynamic_itab
*& Form get_data
text
--> p1 text
<-- p2 text
FORM GET_DATA .
*Get data from p_table into internal table <DYN_TABLE>
SELECT * INTO TABLE <DYN_TABLE>
FROM (P_TABLE)
Here you can implemente function DELETE, INSERT.
ENDFORM. " De_para -
LSO: Function Module for follow up and inserting qualification
Hi,
I have a situation where the employee is booked for a course in SAP, employee will attend the course and the results will come from an external system in a text file. I need to upload this text file and do the follow up for this course with pass or failure. Is there any function module for this scenario ?
Once I did the follow-up, if there is a qualification attached to the course type, I need to insert the qualification in the employee profile. Is there any function module for this scenario ?
Your help will be greatly appreciated and I will give the points accordingly.
Thanks
NareshLSO_BUFFER_PARTIC_CONFIRMATION
LSO_UPDATE_FOLLOWUP
LSO_BUFFER_QUALIS_FOR_TRANSFER
LSO_UPDATE_FOLLOWUP
LSO_BUFFER_TRAINING_FOUP
LSO_UPDATE_FOLLOWUP
We can use the above FM's to complete the course follow up. -
Function Module for HU Block and Unblock
Hi,
Can you please tell me the function module name to Block and Unblock the Handling Unit
which is exists iin a particular warehouse?
I searched in SDN already with no luck.
Thanks in advance...
Sridhar ....Hi,
Try the below Function Modules
SD_CUSTOMER_CHECK
SD_CUSTOMER_CHECK_1
SD_CUSTOMER_CHECK_B
SD_CUSTOMER_MAINTAIN_ALL
SD_CUSTOMER_MAINTAIN_KNKA_K
Regards,
Anki Reddy -
Require function module for start and end bucket of planning book
Hello All,
I need to fetch the start and end bucket date of a planning book. Is there any function module which can directly give first and last bucket date of a planning book ?
Thanks & Regards,
VivekHello dear Sanjeev / Datta,
Thanks for your prompt response.
The problem resolved. The solution is as follows.
Step1) CALL FUNCTION '/SAPAPO/MSDP_PB_READ_DVIEW'
Input : Plng book and dataview
output: cs_pbdvwhdr = ls_header (in changing parameter)
Step2) CALL FUNCTION '/SAPAPO/SDP_TB_CREATE_COLS'
Input: bucket Profile of past and future, which we will get from step1.
And from date as space in a variable of type datum (As the parameter is mandatory)
Output: et_cols_ext (Importing table) which will give start and end date.
Hope, This solution will help others also.
Thanks & Regards,
Vivek -
Function module for getting month and year of the previous month (say -6)
Hi,
Is there a function module that will get you the month and year of say, a month before, and as far as 11 months ago.
For example, say today is 6/2007. I want 7 months ago.
How do i get this value?
What function module or method is available?
Points will be rewarded and responses will be appreciated.
Thank You,
JohnHi
lv_period gives the month and year which is two months earlier now as we have specified lv_months as -2.
DATA: LV_PERIOD LIKE S001-SPMON,
LV_MONTHS(2) TYPE C VALUE '2-',
LV_DATUM LIKE SY-DATUM,
LV_NEWDT LIKE SY-DATUM,
P_SPMON LIKE S001-SPMON VALUE '200601'.
CONCATENATE P_SPMON '01' INTO LV_DATUM.
LV_PERIOD = P_SPMON+0(6).
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
MONTHS = LV_MONTHS
OLDDATE = LV_DATUM
IMPORTING
NEWDATE = LV_NEWDT
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 0.
LV_PERIOD = LV_NEWDT+0(6).
ENDIF.
WRITE :/ LV_PERIOD.
OR
Use the following FM for getting the year and the month based on date
CACS_DATE_GET_YEAR_MONTH
or
Call Function 'CCM_GO_BACK_MONTHS '.
Funny module: 03/31/2002 - 1 month = 02/31/2002
OR
RE_ADD_MONTH_TO_DATE ( Add / substract month to/from date )
Need ur reward points.
Best regards,
Ravi
Maybe you are looking for
-
Error when running a .sql file
hello all. i keep getting an error when i try to install sample schemes for APEX on XE. I was wondering if any could help thank you:) ================ ================ SQL> @oehr_sample_objects_installer.sql APPLICATION 543 - OEHR Sample Objects Set
-
When I open text messages sometimes it will freeze and I am unable to see the conversation. The only fix is reopening the program several times and waiting till it returns to normal (takes about 5 minutes). It happens regularly
-
Sorting a grid with CollapseLevel = 1
hi i have a grid in my form, and i use a DataTable to fill up that grid. My sql commando was 2 fields in order by. And it works fine. They are represented by [COL 1] and [COL 5] DESC. COL 1 ! COL 2 ! COL 3 ! COL 4 ! COL 5 01 Ex ! 00001 ! 00001 ! 0000
-
How to download SP for PI 7,0
hi , Can somebody please tell me how to download the SP 18 for PI 7.0 as i have been to the market place and provide the SMP logon but still i am unable to download and getting Not visible for the logged on user. Can somebody upload the link for down
-
I am using PS CS5 Extended 64 bit with WIN 7 64 bit and would like to be able to import scans from a Nikon Coolscan 4000. The scanner works in WIN 7 independently of CS5 however it does not appear in CS5's import panel of devices under WIA. Is there