Function Module to find the Last Execution date of Back ground Job
Hi,
Is there any function module to find the <b>last execution date of back ground job</b>.
So that I can transfer the data from SAP to Legacy system based on the document creation date should be in between last execution date and current date.
thanks in advance.
Eswar.
Don't know of a function module, but you should be able to use the information in table TBTCO to get the last start date and time of the job you are interested in.
Similar Messages
-
How to find the last executed date of any program?
<<Frequently asked questions. So search>>
How to find the last executed date of any program?
is there any system variable or function module?
Edited by: Matt on Oct 5, 2010 12:48 PMcheck the transaction STAD.
Prabhudas -
Function Module to find the Difference between two times.
Hi All,
Wud you plz let me know the Function Module to find the Difference between two times.
Input Time1( Hours:Minutes) Time2 ( Hours:Minutes)
Need Output in Hours:Minutes only . ( No seconds Needed )
Ex :
Input :
06:00 to 18:00 Output : 12:00
and 20:00 to 06:00 Output: 10:00 with +ve sign only. No -ve sign.
Thanks,
N.L.Narayanacheck this .
data : p_timel like sy-uzeit,
p_timeh like sy-uzeit,
diff like sy-uzeit,
di(8) type c .
p_timel = '200000'.
p_timeh = '060000'.
diff = p_timeh - p_timel.
concatenate diff+0(2) ':' diff+2(2) into di.
write:/ di.
also check for this.
p_timel = '060000'.
p_timeh = '180000'.
see if this can be implemented in ur code .
or else u can try with Fm L_TO_TIME_DIFF passing startdate enddate starttime endtime with UOM as MIN
hope this helps regards,
vijay -
Function Module to find the day
Hi,
I have a date S_DATE with me.
I need to find the day of that date.
I hope there is a function module for this.
Please reply me if you know the name of the Function Module to find the date.
Thanks in advance.Hi Rajesh,
Thanks for the reply. Your answer solved my problem. -
Function module to find the Credit limit of a Customer based on Credit Area
hi Experts,
Is there any function module to find the Credit limit of a Customer based on Credit Area.
Regards,
Dheepakhi
try this:
select single * from KNKK INTO zzKNKK
where KUNNR = xkunnr and KKBER = xkkber.
credit limit: zzKNKK-KLIMK...
regards,darek -
Function Module to find the Diff bt Two Times : O/p : Hours:Minutes only
Hi All,
Wud you plz let me know the Function Module to find the Difference between two times.
Input Time1( Hours:Minutes:Seconds) Time2 ( Hours:Minutes:Seconds)
Need Output in Hours:Minutes only . ( No seconds Needed )
Thanks,
N.L.NarayanaHi
Please use FM
<b>SD_DATETIME_DIFFERENCE</b> -
Function module to find the path of application server
Hi can any one say me what is the function module to find the path of the application server
Hi ,
What i understand from ur question is that u need path for application server from the presentation layer i.e user screen.
u can achive the path this way
parameter: file type filename-fileintern.
when user presses F4 here, it will show the directories and path in the AL11.
I didnt find any FM which will get the path of Al11.
revrt back if any issues,
Regards,
Naveen -
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
How to find the Last modified date and time of a package
Hi,
We need a clarification on how to find the Last modified date and time of a package in Oracle. We used the example below to explain our scenario,
Lets consider the following example
Let A, B be two packages.
Package A calls the package B. So A is dependent on B.
When A is compiled the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated.
Now there a modification in package B so it is compiled. There is no modification in package A.
Now when the package A is executed the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated but we did not make any change in Package A. Now we need to find last modified date and time of the package A . So we can not rely on the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS . Can u please tell us any other solution to get last modified date and time of the package A .
Regards,
Vijayanand.CHere is an example:
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 10:57:32 2004-05-20:10:57:32 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 VALID
SQL> CREATE OR REPLACE PROCEDURE A AS
2 BEGIN
3 NULL;
4 NULL;
5 END;
6 /
Procedure created.
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 INVALID
SQL> EXEC B
PL/SQL procedure successfully completed.
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 11:01:53 2004-05-20:11:01:53 VALID
Note that the date under the column 'created' only changes when you really create or replace the procedure.
Hence you can use the column 'created' of 'user_objects'. -
How to find the last update date time and user of record field peoplecode
how to find the last update date time record field peoplecode?
Thank you.One can check the last update date time using the following query
SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME' -
How to find the last modified date of a workflow.
How to find the last modified date of a workflow.
thanks.Hi,
There is nothing as standard that does this - you could write some code to determine the latest begin_date from each of the workflow tables and assume that this was the last time that the definition changed.
What you need is something like this:
select max(wfa.begin_date)
from wf_process_activities wpa
, wf_activities wfa
, wf_item_types_tl wit
where wpa.activity_item_type = wfa.item_type
and wpa.activity_name = wfa.name
and wfa.version = (select max(version) from wf_activities wfa1 where wpa.activity_item_type = wfa1.item_type and wpa.activity_name = wfa1.name )
and wpa.process_item_type = 'your item type'
and wpa.process_item_type = wit.namewhich I think gives what you want.
HTH,
Matt
Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
http://www.workflowfaq.com
http://forum.workflowfaq.com
NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com -
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 -
Any Function module to find the vendor description
Any Function module to find the vendor description.
Regards
PaulHi,
Do you mean that you need the name and address details of the Vendor. you can get it in table LFA1.
regards,
Mahesh -
Help find the Last run date from previous month
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKWelcome to the forum!
user2931503 wrote:
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
Normally, the "previous" month means the month before the current month. In April, the previous month is March.
By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKTry this:
WITH got_real_date AS
SELECT TO_DATE ( SUBSTR (date_ran, 1, 14)
, 'MM/DD/RR-HH24:MI'
) AS real_date
FROM table_x
-- WHERE ... -- If you need any filtering, put it here
SELECT TO_CHAR ( MAX (real_date)
, 'MM/DD/RR-HH24:MI'
) AS last_date
FROM got_month_num
WHERE real_date < (
SELECT TRUNC (MAX (real_date), 'MONTH')
FROM got_real_date
;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM -
Need to know how to find the last execution time for a function module
HI all
I need to know
1) How to find out the last execution time of the function module ?
say for eg. I have executed a func. module at 1:39pm. How to retrieve this time (1:39pm)
2) I have created 3 billing document in tcode VF01 i.e 3 billing doucment no. would be created in SAP TABLE "VBRP" b/w 12am to 12:30 am.
How to capture the latest SAP database update b/w time intervals?
3) Suppose I am downloading TXT file using "GUI_DOWNLOAD" and say in 20th record some error has happened. I can capture the error using the exception.
Is it possible to run the program once again from 21st records ? All this will be running in background...
Kindly clarify....
Points will be rewarded
Thanks in advance1.Use tcode STAT input as Tcode of Fm and execute .
2. See the billing documents are created in table VBRk header and there will always be Creation date and time.
VBRk-Erdat "date ., u can check the time field also
So now if u talk the date and time we can filter then display the records in intervals.
3. with an error exeption how is my txt download finished .
once exception is raised there will not be a download .
regards,
vijay
Maybe you are looking for
-
Macbook Pro 13" Early 2011: out of use! ITALIAN&ENGLISH help Me!!
Salve a tutti, volevo esporvi il mio problema in attesa di portare il mio MBP in assistenza, ieri per la prima volta da quando l'ho comprato (1 anno e 8 mesi fà) ho aperto la parte posteriore per dare una leggera soffiata al tutto, la mia prima inten
-
I have been working on this issue for DAYS and have searched the web and this support community but can find no answers. I have a PC, iPad, and iPhone. I installed iCloud on my PC so that I could sync calendars, contacts, and maybe tasks. Nothing
-
Can't activate Windows 8.1 from Windows Store Upgrade.
I have updated one of my client's computer to Windows 8.1 by the windows store after first reseting the Windows 8 from the Windows 8 Settings. After the update, the computer didn't activate and was asking for a product key. I have went ahead and open
-
Set file name by global variable
Hi, I am trying to load data from excel file. I have created batch job with global variable $GV_FileName. When I set a global variable value in a script inside Workflow the data load successfully. When I set a global variable value as a job property
-
Variable, hierarchy, only leaves with posted values presented
Hello friends Small question on strange behavioyr in BEx query. The query is based on the multiprovider built with Info Cube and a characteristic Cost Element. The columns are restricted using "constant selection" and the option to present all values