Update Last Changed Date when attaching a Document to Opportunity/Activity
Hi my CRM peers,
we have the requirement to update the last changed date of the one order object (Activity, Lead, Opportunity) when a user attaches a document to the object. Has anyone solved this requirement?
Best regards
Gregor
Hi Stephen,
what do you think about using the SEARCH_DOCUMENTS method of CL_CRM_DOCUMENTS to get the documents uploaded during the last day. I fill the table IT_QUERY_PROP is filled to search for the Documents Created starting yesterday:
Query:
IT_QUERY_PROP[1]
PROP_NAME CREATED_AT
SIGN I
OPTION BT
LOW 20100217000000
HIGH 99991231235959
And I get this result:
LT_SRES[1]
OBJTYPEP P
CLASSP CRM_P_ORD
OBJIDP DF1C76C7D7D02BF1ABA8005056857C4E
OBJTYPEL L
CLASSL CRM_L_ORD
OBJIDL DF1C76C7D7D02AF1ABA8005056857C4E
RANKV 05000
DOCREFER 0000000001
When I now use the WHERE_USED method I can find the Business Object where this document is attached to by filling the
IS_IO parameter:
IS_IO
OBJTYPE P
CLASS CRM_P_ORD
OBJID DF1C76C7D7D02BF1ABA8005056857C4E
Now my follow up question is: How can I update the last changed date of the document without changing any data?
Best regards
Gregor
Similar Messages
-
VBOF/SDBONT06 does not update "last changed" field of billing documents
Hello,
we have developed a solution in BI, where billing document information (VBRK) and corresponding condition information (KONV) is loaded into infocube in BI. We want to work with delta-loads in BW. The delta loads can be triggerred based on field ERDAT (creation date) or AEDAT (last change date) in the VBRK table.
However, the VBOF/SDBONT06 program does only update the condition information in KONV, but does not change anything to VBRK. Therefore the AEDAT field in VBRK is not changed. And the records in KONV table do not have a creation/change date at all. Thus, the delta load in BW will not pick up the changes made by VBOF.
Does anybody know whether e.g. user-exit for VBOF/SDBONT06 exists that enables to update the AEDAT field of VBRK table?
ThanksHi,
You are correct that stauts is updated in table VBUK and VBUP.
However, a sales order does not determine a billing status for delivery related billing, field
VBUP-FKSTA is only determined for delivey.
So, it is correct behavior that VBUP-FKSTA = BLANK when searching VBUP with
VBUP-VBELN = sales order number.
Just because of above reason, you will not find billing status field in VA03 -> goto header/item;
you could only find billing status field for delivery in VL03N -> status overview.
It seems that you are trying to find out sales orders that have been fully deliveried and fully billed, am I right? As far as I know, there is no directly table/field/tcode that could meet your requirement.
You could consider following workaround:
firstly, get a list of deliveries that have been fully billied(search VBUP with VBUP-FKSTA = C or search VBUK with VBUK-FKSTK = C);
Secondly, using these deliveries to search table VBFA to find out related sales orders.
Hope this helps.
Best regards,
Crystal -
Last changed date of query showing old date
Hi All,
We have made a change to a query (description change) and saved. When we open the Analyzer we still see the old description and also the last changed date shows an old date. Not the latest date the query was last changed on. We tried generating the query in RSRT, but no luck.
Can someone let us know what we can do?
Thanks!Hi Kams,
We are using the Analyzer, log out back in, etc...
As mentioned we did a regenerate by RSRT 'generate'
any other ideas? -
Last change date and time of Reservation Record
Hi All,
I have a requirement to find out the last changed date / time of a reservation (table - RESB). I was not able to find any change document object for reservation. Please let me know what I can do for this.Hi Mitrajit,
You can find the change history for any Data element from CDHDR and CDPOS, if for that data element Change Document is enables.
If you check SBTER in SE11 unser tab Further Characteristics, there is one chekc box 'Chnage Document'.
If you tich this checkbox, a change entry will be populate in CDHDR and CDPOS Table.
Check Table DBTABLOG if its maintan the chnage entry for SBTER.
Thanks
Piyush
Rewards points, if helpfull -
File names with last changed Date and time in a directory
Hi All.
I need to get all filename, last changed date, last changed time in a directory. Is there any function module for this?
Regards,
Venkat.hi,
if the directory is in any application server try to use this code
> DATA: wa_file TYPE zdpp_file_read.
> DATA: nomefile(75).
> DATA: ext_chek(3).
>DATA: BEGIN OF wa_file,
> dirname TYPE DIRNAME_AL11, " name of directory
> name TYPE FILENAME_AL11," name of entry
> type(10) TYPE c, " type of entry.
> len(8) TYPE p, " length in bytes.
> owner(8) TYPE c, " owner of the entry.
> mtime(6) TYPE p, " last mod.date, sec since 1970
> mode(9) TYPE c, " like "rwx-r-x--x": prot. mode
> useable(1) TYPE c,
> subrc(4) TYPE c,
> errno(3) TYPE c,
> errmsg(40) TYPE c,
> mod_date TYPE d,
> mod_time(8) TYPE c, " hh:mm:ss
> seen(1) TYPE c,
> changed(1) TYPE c,
> END OF file.
> data: files like wa_file occurs 0 with header line.
>
> CALL FUNCTION 'FILE_GET_NAME'
> EXPORTING
> client = sy-mandt
> logical_filename = logpath
> operating_system = sy-opsys
> IMPORTING
> file_name = path
> EXCEPTIONS
> file_not_found = 1
> OTHERS = 2.
> IF sy-subrc <> 0.
> RAISE file_not_found.
> ENDIF.
>
> DATA: last_path TYPE i.
> DO.
> last_path = strlen( path ).
> last_path = last_path - 1.
> IF pathlast_path(1) = '/' or pathlast_path(1) = '\'.
> EXIT.
> ELSE.
> CLEAR path+last_path(1).
> ENDIF.
> ENDDO.
>
> MOVE extension TO ext_chek.
> TRANSLATE ext_chek TO UPPER CASE.
> nomefile = '*'.
>
> CALL 'C_DIR_READ_FINISH'
> ID 'ERRNO' FIELD wa_file-errno
> ID 'ERRMSG' FIELD wa_file-errmsg.
>
> CALL 'C_DIR_READ_START' ID 'DIR' FIELD path
> ID 'FILE' FIELD nomefile
> ID 'ERRNO' FIELD wa_file-errno
> ID 'ERRMSG' FIELD wa_file-errmsg.
> IF sy-subrc <> 0.
> RAISE wrong_directory.
> ELSE.
>
> DO.
> CLEAR wa_file.
>
> CALL 'C_DIR_READ_NEXT'
> ID 'TYPE' FIELD wa_file-type
> ID 'NAME' FIELD wa_file-name
> ID 'MTIME' FIELD wa_file-mtime
> ID 'ERRNO' FIELD wa_file-errno
> ID 'ERRMSG' FIELD wa_file-errmsg.
> IF sy-subrc <> 0.
> EXIT.
> ENDIF.
>
> PERFORM p6_to_date_time_tz(rstr0400) USING wa_file-mtime
> wa_file-mod_time
> wa_file-mod_date.
> MOVE path TO wa_file-dirname.
> APPEND wa_file TO files.
> ENDDO.
> ENDIF.
>
> CALL 'C_DIR_READ_FINISH'
> ID 'ERRNO' FIELD wa_file-errno
> ID 'ERRMSG' FIELD wa_file-errmsg.
bye,
marco -
How do I get the last changed date & time of a file in app server?
Hi Experts,
How do I get the last changed date & time of a file in app server?
Thanks!
- Anthony -Hi,
that's what I use...
CALL 'C_DIR_READ_FINISH'. " just to be sure
CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
IF sy-subrc <> 0.
EXIT. "Error
ENDIF.
DO.
CLEAR l_srvfil.
CALL 'C_DIR_READ_NEXT'
ID 'TYPE' FIELD l_srvfil-type
ID 'NAME' FIELD l_srvfil-file
ID 'LEN' FIELD l_srvfil-size
ID 'OWNER' FIELD l_srvfil-owner
ID 'MTIME' FIELD l_mtime
ID 'MODE' FIELD l_srvfil-attri.
* l_srvfil-dir = p_path .
IF sy-subrc = 1.
EXIT.
ENDIF." sy-subrc <> 0.
PERFORM p_to_date_time_tz
USING l_mtime
CHANGING l_srvfil-mod_time
l_srvfil-mod_date.
TRANSLATE l_srvfil-type TO UPPER CASE. "#EC TRANSLANG
PERFORM translate_attribute CHANGING l_srvfil-attri.
CHECK:
NOT l_srvfil-file = '.',
l_srvfil-type = 'D' OR
l_srvfil-type = 'F' .
APPEND l_srvfil TO lt_srvfil.
ENDDO.
CHECK NOT lt_srvfil IS INITIAL.
pt_srvfil = lt_srvfil.
FORM p_to_date_time_tz USING p_ptime TYPE p
CHANGING p_time TYPE syuzeit
p_date TYPE sydatum.
DATA:
l_abaptstamp TYPE timestamp,
l_time TYPE int4,
l_opcode TYPE x VALUE 3,
l_abstamp TYPE abstamp.
l_time = p_ptime.
CALL 'RstrDateConv'
ID 'OPCODE' FIELD l_opcode
ID 'TIMESTAMP' FIELD l_time
ID 'ABAPSTAMP' FIELD l_abstamp.
l_abaptstamp = l_abstamp.
CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
TIME p_time.
ENDFORM. " p_to_date_time_tz
Regards,
Clemens -
Need FM to get Last change date of Objects in package
Hi All,
Is there any Function module to get Last changed date of all Objects in a package .
How to get the last change date of class,methods,function module.....
I can get last change date of programs from TRDIR....UDAT....Similarly how can I get for Function Module and Class Methods.
With Thanks,
Dina.
Message was edited by: Dinamol SasidharanGo/double click on the affected cubes you want to see the time stamp.
click the Extras(tab on the upper of part of SAP) or simply 'Ctrl + F5'.
Box will appear.
Click on Logs for Save/Activate so you will see the linfo for the users who used this cube.
Then put time restriction for From and To(always the current day and time).
Then execute, all of the users who changed then saved/activated that cube will appear on that timeframe you view.
Hope this help. -
Last changed date different between two systems after transport
Hi, first of all, I am not from basis background and just want to make sure whether is this something correct or not.
I found that the "Last changed date" and "username" are not same between the original system and the target system. Is this something configurable?
And the "username" field is totally empty. However, the program code's version is identical in both systems.I think I misunderstood your question. You are referring to the system Transports not the connections between systems. If the Transports are not transferring all the contents, you really should talk to your basis folks and tell them which items are not being reproduced correctly.
Regards,
Mike -
How to fetch last changed date for Header in me22n?
Hi Experts,
I need to create a report for PO, where I have created one screen tab in Header level(customer data), therefore I need to fetch last changed date for header , I must mention that I do not want last changed date for item level, only for header last changed date is required.
Kindly assist me on this.
Thanx
ShireenRead table CDHDR (object "EINKBELEG") and CDPOS (look for table name EKKO), keep the last CDHDR record with "EKKO" data actually changed.
Regards,
Raymond -
Get last changed date by Program ID/Object type/Object name of a task
Hi to all.
I'm looking for a way to get last changed date of an object by task number(CR). Any SAP function or utility someone has??
For example if I have a task with the object list:
R3TR PROG ZSD_ORD_COND_P
R3TR TABL ZCNDSLCTN
LIMU REPS ZSD_ORD_COND_CLS
R3TR TRAN ZZDIS
R3TR VIEW ZSD_VBAK_KONV
I need to get last changed date for each object.
Thanks,
Yuval Kaduri, Cellcom, Israel.
Edited by: yuval kaduri on Mar 2, 2008 2:59 PMHi Venu, thanks for the input.
In the table I don't have all changes made in objects that the CR is not released. I need to know all changed date of objects even if the CR is not released. There are few tables containing the date and time object last changed for the deferent types but I'm looking for a function or some utility someone wrote that gets the CR line info as - PgmID/Obj/Object name - and gives back last changed date and time.
Thanks,
Yuval Kaduri, Cellcom, Israel. -
I need help :-(
Did an IOS update last week and after the Ipad rebooted it said slide to unlock then asked for a passcode to be entered..... I have never set a passcode ever ??
What number do I enter to unlock the Ipad ... have tried the usual 0000 and 9999 etc but just locks me out .... HELP !!!
Or is there a way to go back to factory settings ?? (Without losing my Apple ID etc)
ThanksIf this was your first update to iOS 7 then you were asked to CREATE a passcode. Also there would have been a small Skip button to avoid creating the passcode. If, when you encountered that request you went ahead and entered a passcode number then you must use that number to unlock your device. Once the device is unlocked you can change or delete the passcode using the Settings app.
To completely remove the passcode lock you need to connect your iPad to the computer you normally sync with and restore the iPad. This will erase all data on the iPad so be sure your info, photos, etc. are backed up first. -
RME Detailed Device interface Last Changed date reporting
How do I create a custom template rule to get ports that have changed since a particular date?
LMS 3.1 RME 4.2
when creating a custom template rule for "interfaces" "Last Changed", the date format in the rule is different than
the field in detailed device reports. I thought the field " last changed " was the point along the sysuptime timeline
but the sysuptime is less than the number of days in "LastChanged".
any help appreciated..That explains why the last change numbers are sometimes higher than the sysuptime. Thank You!!!!
is there a particular way to select the "Value" in RME-Custom Template Reports-Custom Template-rules when choosing
Inventory group= interface , Attribute = Last Changed (yy:mm:dd:hh) ?
The format requires years,months,days and hours while the value of the field is xxxx days, hh:mm:ss
I seem to be unable to get the correct results... -
Read "last changed" data from AL11 into BSP page
Hi all,
I'm looking for a way to read the following information from the application server
Last change Creator Name
17.07.2006 09:19:58 cbdadm file1.csv
27.05.2003 10:53:11 cbdadm file2.csv
13.07.2006 17:01:30 cbdadm file3.csv
I want to see for a number of filenames, when it was last changed, but I don't know where to get this data? Is it stored in a table? And how should I read this data?
I see that a program named RSWATCH0 is generating the required output for transaction AL11...maybe this is helpful?
The following code works in ABAP, but I need to use this in BSP... is this possible somehow?
REPORT ZUPLOAD_TIME .
TABLES epsf.
PARAMETERS dir LIKE epsf-epsdirnam.
PARAMETERS file LIKE epsf-epsfilnam.
DATA mtime TYPE p DECIMALS 0.
DATA time(10).
DATA date LIKE sy-datum.
CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
EXPORTING
file_name = 'TESTFILE.CSV'
dir_name = '/usr/sap/data/'
IMPORTING
file_size = epsf-epsfilsiz
file_owner = epsf-epsfilown
file_mode = epsf-epsfilmod
file_type = epsf-epsfiltyp
file_mtime = mtime
EXCEPTIONS
read_directory_failed = 1
read_attributes_failed = 2
OTHERS = 3.
PERFORM p6_to_date_time_tz(rstr0400) USING mtime
time
date.
WRITE: / mtime,
/ date, time.
thanks in advance! points will be rewarded for usefull answers
Message was edited by: Joris Hens
Message was edited by: Joris HensIn the TYPES Definition tab :
types: BEGIN OF t_file,
date TYPE d,
time(10) TYPE c.
INCLUDE TYPE epsf.
TYPES: END OF t_file.
types: tt_files type table of t_file.
In the Page attributes tab :
ta_files TYPE tt_files
In the OnInitialization Event Handler :
* event handler for data retrieval
DATA: epsf TYPE epsf.
DATA: mtime TYPE p DECIMALS 0.
DATA: time(10) TYPE c.
DATA: date TYPE sy-datum.
CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
EXPORTING
file_name = 'myfile.csv'
dir_name = '/usr/sap/data'
IMPORTING
file_size = epsf-epsfilsiz
file_owner = epsf-epsfilown
file_mode = epsf-epsfilmod
file_type = epsf-epsfiltyp
file_mtime = mtime
EXCEPTIONS
read_directory_failed = 1
read_attributes_failed = 2
OTHERS = 3.
PERFORM p6_to_date_time_tz IN PROGRAM rstr0400 USING mtime
time
date.
FIELD-SYMBOLS: <fs_file> LIKE LINE OF ta_files.
APPEND INITIAL LINE TO ta_files ASSIGNING <fs_file>.
MOVE-CORRESPONDING epsf TO <fs_file>.
<fs_file>-time = time.
<fs_file>-date = date.
In the Layout :
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = "List files on application server ">
<htmlb:form>
<htmlb:tableView id = "tvx"
table = "<%= ta_files %>" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
Then, you still have some minor modificaions to perform on the tableView thanks to an Iterator, for instance.
Best regards,
Guillaume
Message was edited by: Guillaume Garcia -
Running BitLocker/MBAM 1.0.1237.1.
About 1 month ago, "Last Contact" date/time listed in MBAM "Enterprise Compliance Report" stopped updating (last updated 1 month ago) for all systems. However, reporting against these exact same systems individually via
"Computer Compliance Report" shows current/correct "Last Contact" date/time (last updated today).
Have tried http://support.microsoft.com/kb/2620269/en-us but no luck.
Hoping someone has experienced this before, fixed, and can share insights.
Thx,
DCLYou may want to look for communication errors under the MBAM node in Event Viewer.
You may also want to review the registry settings discussed under the
Configure Lab Computers for MBAM Evaluation section of this TechNet article:
HKLM\Software\Policies\Microsoft\FVE\MDOPBitLockerManagement\ClientWakeupFrequency
HKLM\Software\Policies\Microsoft\FVE\MDOPBitLockerManagement\StatusReportingFrequency
HKLM\Software\Microsoft\MBAM\NoStartupDelay
Specifically the StatusReportingFrequency
key.
Brandon
MDOP on the Springboard Series on TechNet -
How can forbid changing data when using BAPI 'BAPI_MATERIAL_SAVEREPLICA'?
I am using BAPI 'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
But this BAPI also can be used for change mode.
How to forbid the change of MAT data when use this BAPI?
TKS a lot~~
I am looking foward to your response~~~you have to find out what the user did before your program goes ahead and starts the BAPI.
Maybe you are looking for
-
When using multiple monitors Windows moves all open windows and apps to the primary monitor after they have either gone to sleep or been powered off. I have been looking for 2 months now trying to find a solution. My current setup is running Windows
-
Hello ladies & gentlemen, I have the problem that my own podcast have no picture in Itunes store... I tagged a picture to the mp3 data...but not when I registered this podcast. is that the problem? So I should delete the podcast and register new? Lin
-
Internet is OK, Apple TV refuses to function
Started about two nights ago; took a long while for Netflix to load, figured it was just my internet connection so I left it alone and it eventually started working again. But then yesterday, Netflix still was not loading for me; my internet was runn
-
Tecra A11 - Cannot get the FN buttons to work on Win 7
I had to do a new install of Windows 7 on my Tecra A11. Everything works fine but, I am finding that I really really miss the ability to turn the trackpad on and off and turn the wireless on and off. I'm guessing that the only way to do this would be
-
Anybody's Audio Driver has problem with PhotoShop CS 5?
I hate when this happened. I have downloaded the lastest version of Nvidia Quardo 2000m driver, which is 285.62. And I have also update the BIOS to 1.33. They did not work at all. However, I did not have this problem about 2 days ago. I had exactly