Update date of translated Item
my content Area is Multi language: french and English. When I translated an item the updated date is update to date of day even on my original item. So New icon is display because I translate an item.
Is it Possible to update only the date of the Translated Item ?
ExtendScript doesn't currently allow direct access to that item property on the project side unfortunately. What you may be able to do is create a .txt document via script that lists all your project assets with the current modified date in a array style layout with item id's used as variable names.
var projItem1 = ["Mon", "Jan", "31", "12:57:20"];
var projItem20 = ["Sun", "Mar", "5", "3:10:00"];
var projItem9 = ["Wed", "Jun", "10", "1:24:11"];
...and so on.
To do that you would need to loop through all items checking for the item types you want (stills, audio, video, etc...). Then saving their id. Then take the .modified values of each file and split the value into an array using the .split(" ") method. So "Mon Jan 30 2012 10:43:30 GMT-0800" would basically get broken down into separate array items like so...
var myItem = app.project.item(1).file.modified;
var miSplit = myItem.split(" ");
//You can now access each section of the modified date by the array index number.
alert(miSplit[0] + " " + miSplit[1] + " " + miSplit[2] + " " + miSplit[4]);
You would then have to combine all the info into a single string that would get written to your document. Something like...
"var projItem" + myItemID + " = [\"" + miSplit[0] + "\", \"" + miSplit[1] + "\", \"" +miSplit[2] + "\", \"" + miSplit[4] + "\"];";
You would then run a script to check this database up against the current modified values of the items and if they differ, you can tell if they are newer or not. I'm generalizing this whole description of course, in reality it would be a chore to script out, but not impossible though.
Similar Messages
-
BAPI or FUNC, MOD. to Update Date Field in Item Detail Sub-Header In PO
Hi All,
I'm working with SAP IS-Retail. In a PO, at the Item Detail, Import Tab, there are 2 sub-tabs Verif.4 and Verif. 5. This fields which are EIPO-NACD4 and EIPO-NACD5. When a new X-factory is entered for PO, this dates are deleted. I'm required to write a program to feed these fields of the required dates.
So basically, the user will run the program, input the PO no., the range of Line items they want to use the date for and lastly input the date he/she wants to use to populate the Verif. 4/5 date field.
Is there any BAPI's or Function Modules I can use to export the values to the EIPO fields.
Thanks.This issue is resolve.
I foung a Function Module to use. The FM is
"EXPIMP_POSTING"
Thanks all. -
New Price Updates for newly added Items Through VA02
Hi All,
Through VA02 ,If you change first date in line item we have written code in MV45AFZB(USEREXIT_NEW_PRICING_VBKD
) for updating price for that item.
Now the issue is if u add one more new line item through VA02 itself..here we were not getting that line item detials.because its not yet saved.
We want to update prices for newly added items also.Hi Reddy,
For translation of any text , goto SE63 -> in menu TRANSLATION -> R/3 Enterprise - > Transport object -->
for Transport Entry of Object : R3TR SHI3 ZABC
then select target & source lang. click EDIT.
Hope this helps you.
Reagards,
Aby -
Hi All,
I'm trying to write a program to update the DB informations.
For example, an Invoice Maintenance program that involve 2 tables,
Invoice Header and Invoice Details. I load the Invoice Details
records from db table to a DBGrid for user update and call a PHP
program using mx:HTTPService to write the updated data to db.
I would like to know how can I check the dbGrid that only
modified rows will pass to the HTTPService to updating? Or I need
to pass all rows one by one to HTTPService and update the records
one by one? Also is it only possible to pass one row every time
when I call the httpService or I can pass the whole dbGrid and
extract row by row in the php program?
If this problem can be solved I think I can complete the
system without any big problem (except printing ;-) )
Thanks a lot!
WilsonUsing the edit events, I would store a list of the item
indexes that have been changed. Then use that list to return and
build an xml string, and post it to the server via HttpService.
Tracy -
Background job not updating data for some steps of program
We have created a custom program and submitting the standard program RPRCCC_READ_KR1025
which is used for conversion of AMEX credit card files.
Since this program can update data for 1 company id at a time,we have created a background job
for that program with 10 steps and 10 variants of data related to 10 different company codes.
when this job is executed it is not updating data for all the 10 files , sometimes it updates 5,7,etc...
If we execute the other files which didnt update in job manually they are getting updated.
All the files executed with that program can be seen in PRTA transaction.
Regards,
Gautham.
Edit: Solved.
Since the standard program updates the database every time with commit work
there should be some time until the next database update,so we can use wait command
after the submit statement which will do the trick.
Edited by: Gautham Vangaveti on Aug 5, 2010 7:20 PMHi,
I mean B(Sub Assembly)
Item Rollup Flag
A No
--B Yes
---B1 No
---B2 No
---B3 No
--C Yes
In this case when we run cost rollup by giving item A, Oracle will consider below structure.
A
--C
Regards,
Sarvottam. -
Can I use one infosource to update data to CUBE and ODS???
Hi all,
Can anyone tell me if I can load data to OSD and Cube from one the same InfoSource? As I know, I have to have "0recordmode"(update mode) in communication structure for ODS not for Cube. So how can ODS and Cube use the same Infosucre to update data?
Thank youJohn,
Depending on the volume of data and the type of infosource, sometime one update to ODS first and then subsequently update to the Cube or update both cube and ODS in parallel.
For example, if you use AR or AP line item datasources, since you are extracting from both open line and closed line items tables, there could be multiple records for the same thing coming through. First when it appears as an open line item, and when it is paid, it appears again as a paid line item so if you update directly to the cube, you can have multiples of the real value. Thus in this instance you update from infosource to ODS then subsequently use delta update from ODS to cube. CCA and C0-PA on delta mode are example where there are no overlapping, thus you can update both ODS and Cube at the same time.
Hope this helps,
Mary -
BADI for MIGO update - Data not getting saved in table sometimes
Hi,
This is regarding automatic update of material document number to our Z Table for Gate entry in MM.
Steps for Generating GR throu2019 MIGO:-
1) the user has to key in the gate entry number and plant,
2) then after giving i/p values the user has to click the save button,
3) MIGO number is generated by the system which is updated in gate entry header table.
For updating the MIGO number BADI is used . But some time the system is not updating the GR number in gate entry header table.
Can we use COMMIT WORK statement in BADI? Hope its not advisable to use it.
What else can we do if data is not getting stored in table while updating throu2019 BADI?
Inside the Method : IF_EX_MB_MIGO_BADI~POST_DOCUMENT the below code is written,
Instead Of Updating The Gate Entry Item Table Now
Update The Gate Entry Header Table. Update The
Value Of The Field MBLNR With Current Document Number
Generated Updating the header table ZMM_GATE_ENTRY
SELECT SINGLE *
FROM ZMM_GATE_ENTRY
INTO WA_ZMM_GATE_ENTRY
WHERE GATEENTRYNO EQ GS_EXDATA_HEADER-GATEENTRYNO
AND WERKS EQ GS_EXDATA_HEADER-WERKS
AND GYEAR EQ GS_EXDATA_HEADER-ENTRY_DATE+0(4).
Check To Ensure That Once A Gate Entry Number
Is Associated With A GR It Cannot Be Reused
IF WA_ZMM_GATE_ENTRY-GR_NUMBER IS INITIAL.
WA_ZMM_GATE_ENTRY-REFERENCE = GS_EXDATA_HEADER-REFERENCE.
WA_ZMM_GATE_ENTRY-REFWERKS = GS_EXDATA_HEADER-WERKS.
WA_ZMM_GATE_ENTRY-GR_NUMBER = IS_MKPF-MBLNR.
WA_ZMM_GATE_ENTRY-GR_YEAR = IS_MKPF-MJAHR.
MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the workarea
u201CThe above modify stmt updates data sometimes and does not updates the data sometimes
ELSE.
MESSAGE E901(ZMM) WITH GS_EXDATA_HEADER-GATEENTRYNO WA_ZMM_GATE_ENTRY-GR_NUMBER.
ENDIF.
Plz suggest some soln?
Regards,
P.S.ChitraHi,
This is regarding automatic update of material document number to our Z Table for Gate entry in MM.
Steps for Generating GR throu2019 MIGO:-
1) the user has to key in the gate entry number and plant,
2) then after giving i/p values the user has to click the save button,
3) MIGO number is generated by the system which is updated in gate entry header table.
For updating the MIGO number BADI is used . But some time the system is not updating the GR number in gate entry header table.
Can we use COMMIT WORK statement in BADI? Hope its not advisable to use it.
What else can we do if data is not getting stored in table while updating throu2019 BADI?
Inside the Method : IF_EX_MB_MIGO_BADI~POST_DOCUMENT the below code is written,
MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the workarea
u201CThe above modify stmt in code updates data sometimes and does not updates the data sometimes
Moderator message: duplicate post locked.
Edited by: Thomas Zloch on Aug 10, 2010 11:33 AM -
Pop up to enter text in QA11 and then update in material document item
Hi everyone,
I have a requirementt which states that: In QA11 t-code under inspection lot stock tab if any qualtity is entered in Blocked stock then user should be prompted for a pop to enter text and that text should finally update in material document item text.If anyone has encountered it earlier please let me know .
Regards PallavHi Pallav,
Please use exit EXIT_SAPMQEVA_005 "Transfer of Inspection Lot Data to User Screen" for this purpose and if necessary create a module pool screen for user interface.
Regards,
Gaurav -
Hi
how to create a external content type for Read and Update data from two tables in sqlserver using sharepoint designer 2010
i created a bcs service using centraladministration site
i have two tables in sqlserver
1)Employee
-empno
-firstname
-lastname
2)EmpDepartment
-empno
-deptno
-location
i want to just create a list to display employee details from two tables
empid firstname deptno location
and same time update in two tables
adilWhen I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list. When I attempt to edit it, I get an error:
External List fails when attached to a SQL view
Sorry, something went wrong
Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
I can edit the view in SQL Manager, so it seems strange that it fails.
Any advice would be greatly GREATLY appreciated.
Thanks,
Randy -
How to update data according to row_number in sql
hi,
after deleting an item I need to update data according to row_number.
in oracle database I have a code like this... working perfectly..
update regitem set line_sn= LPAD(ROWNUM,2,'0') where doc_no='" & mydocno & "'
how it will work in sql server...
thanks..........There is an example at the below link which uses the Transact SQL ROW_NUMBER():
http://stackoverflow.com/questions/6729616/sql-server-how-to-update-a-column-for-a-desired-row-number
Paul ~~~~ Microsoft MVP (Visual Basic) -
Update data immediately when modify !
Hello everyone, I have problem with my list data. My data isn't updated when modified. I have two page :
1. BookPage contains a list of song
- XAML code :
<ListView Grid.Column="1"
Name="ListViewSong"
IsItemClickEnabled="True"
ItemClick="SongDetail_Click"
Margin="10,0,0,10"
ContinuumNavigationTransitionInfo.ExitElementContainer="True">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Holding="ListViewItem_Holding" Width="340"
Margin="0,0,0,15">
<FlyoutBase.AttachedFlyout>
<MenuFlyout>
<MenuFlyoutItem Tag="{Binding}" Click="AddToFavorite_Click"
Text="Thêm vào yêu thích..." />
</MenuFlyout>
</FlyoutBase.AttachedFlyout>
<TextBlock TextAlignment="Center"
Text="{Binding ID,Mode=TwoWay}"
FontSize="22"
Foreground="DodgerBlue" />
<TextBlock Foreground="GreenYellow"
TextWrapping="WrapWholeWords"
TextAlignment="Center"
Text="{Binding FullName,Mode=TwoWay}"
FontSize="18" />
<TextBlock
TextAlignment="Left"
FontSize="12"
Text="{Binding Lyric,Mode=TwoWay}"
Visibility="{Binding Lyric,Converter={StaticResource ConvertTextToVisibility}}"
FontStyle="Italic"
TextTrimming="WordEllipsis" />
<TextBlock
Foreground="Silver"
TextAlignment="Right"
FontSize="14"
Text="{Binding Author,Mode=TwoWay}" Margin="0,0,10,0" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
- Class Song code :
public class Song {
public string ID { get; set; }
public string FullName { get; set; }
public string Lyric { get; set; }
public string Author { get; set; }
public string ShortName { get; set; }
public string NoMarkName { get; set; }
- Load data and Bind to ListView:
public static ObservableCollection<Song> ListAllSongs = new ObservableCollection<Song>();
private async void BookPage_Loaded(object sender, RoutedEventArgs e)
// hiện panel progressbar loading
ProgressBarLoading.Visibility = Visibility.Visible;
ProgressBar.IsIndeterminate = true;
await Task.Delay(1000);
App.ListAllSongs = await App.ViewModel.LoadArirang();
// binding data to Pivo Item "Tat ca"
ListViewSong.ItemsSource = App.ListAllSongs;
// binding data to Pivo Item "Yeu Thich"
ListFavoriteSong.ItemsSource = App.FavoriteSong;
// ẩn panel loading
ProgressBarLoading.Visibility = Visibility.Collapsed;
ProgressBar.IsIndeterminate = false;
// cho phep filter
LeftPanelFilter.IsItemClickEnabled = true;
-- Click any song on the List and navigate to SongDetail Page for modifying. After modify , then save and go back to
BookPage but data not change on the UI.
protected override void OnNavigatedTo(NavigationEventArgs e)
_song = e.Parameter as Song;
this.DataContext = _song;
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
var updateSOng = App.ListAllSongs.SingleOrDefault(s => s.ID.Equals(_song.ID));
updateSOng.FullName = txtNewNameTextBlock.Text;
Frame.GoBack();
How could I do that ?
OmegaVN - Window Phone Application Researching and Developmentthe song class should implement the INotifyPropertyChanged interface so the UI knows the data has been changed and to update itself.
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged%28v=vs.110%29.aspx
I use ObservableCollection - it implement interface INotifyPropertyChanged internal ... .I read this from the Windows Phone 8.1 Development for Absolute Beginners on Channel9.
"Having said all of that, the Hub App Template does not have any classes the directly
implement INotifyPropertyChanged. Instead, it uses ObservableCollection<T> (as well as a
custom class, ObservableDictionary) which implements the INotifyPropertyChanged interface
internally. So, the moral to the story is that, as long as we’re using ObservableCollection<T> to
expose collections of the objects from the ViewModel to the View" -
Windows Phone 8.1 Development for Absolute Beginners – Page 199
OmegaVN - Window Phone Application Researching and Development -
Create Quotation by sending different partner data to header & item table in a Report
Hello all,
Can any one please guide me how can I send different Partner data to Header & Item by running a Z Quotation Report in SE38. Actually Now I am able to create a Quotation which takes same Partner data of Header to Item data as well but my requirement is to send different Partner data to Header & Item in a quotation.
If you have sample code for the same please do share. I will be thankful to you.
Waiting for helpful suggestions.
Regards
-AjayHi Ajay,
I was referring to CRM_PARTNER_MAINTAIN_MULTI_OW and CRM_PARTNER_MAINTAIN_SINGLE_OW function modules. A sample working code (written in badi) for an order below.
l_wa_partner_com-partner_no = l_v_bp_guid.
l_wa_partner_com-partner_fct = l_c_partner_fct.
l_wa_field_names-fieldname = l_c_field_partner.
INSERT l_wa_field_names INTO TABLE l_i_input_fields.
l_wa_field_names-fieldname = l_c_field_fct.
INSERT l_wa_field_names INTO TABLE l_i_input_fields.
** Update the order with new partners
CALL FUNCTION 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
EXPORTING
iv_ref_guid = is_orderadm_h_wrk-guid
iv_ref_kind = l_c_ref_kind " Pass B here in u'r case
is_partner_com = l_wa_partner_com
CHANGING
ct_input_field_names = l_i_input_fields
EXCEPTIONS
error_occurred = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
Thanks,
Faisal -
Updating a Salesorder at Item level
Hi All
I am trying to update a saleorder at item level(order quantity field) thru the function module BAPI_SALEORDER_CHANGE. I have 3 items in my saleorder. I am able to update the first item but I am unable to update the schedule_lines-req_qty(order quantity field) of the second and third item.
Can anyone plz suggest me how 2 overcome this prob.??
Thanks in Advance
Vijay.Hi Kevin
Here is the code you were asking for. I will repeat my problem. The prob is: I am able to update the first item level but I am unable to update the req_qty field of the subsequent item levels.
Expecting an early reply.....
CODE:
data: salesdocument like bapivbeln occurs 0 with header line,
order_header_in like bapisdh1 occurs 0 with header line,
order_header_inx like bapisdh1x occurs 0 with header line,
order_item_in like bapisditm occurs 0 with header line,
order_item_inx like bapisditmx occurs 0 with header line,
partners like bapiparnr occurs 0 with header line,
schedule_lines like bapischdl occurs 0 with header line,
schedule_linesx like bapischdlx occurs 0 with header line,
partnerchanges like BAPIPARNRC occurs 0 with header line,
return like bapiret2 occurs 0 with header line.
data : pur_ord_no like vbkd-vbeln.
parameters : puro_num like vbkd-bstkd.
start-of-selection.
*Retrieving salesorder number by passing the purchase order number.
select single vbeln from vbkd into pur_ord_no where bstkd = puro_num.
salesdocument-vbeln = pur_ord_no.
append salesdocument.
order_header_inx-updateflag = 'U'.
order_header_inx-sales_org = 'X'.
order_header_inx-distr_chan = 'X'.
order_header_inx-division = 'X'.
order_header_inx-sales_off = 'X'.
order_header_inx-purch_no_c = 'X'.
order_header_inx-req_date_h = 'X'.
order_header_inx-purch_date = 'X'.
append order_header_inx.
order_header_in-sales_org = 'JNJ1'.
order_header_in-distr_chan = '02'.
order_header_in-division = 'J1'.
order_header_in-sales_off = 'JNJ1'.
order_header_in-purch_no_c = 'XMLFileUpload6'.
order_header_in-purch_date = '20060101'.
order_header_in-req_date_h = '20060202'.
append order_header_in.
*partnerchanges-itm_number = '000030'.
*partnerchanges-updateflag = 'X'.
*partnerchanges-partn_role = 'AG'.
*partnerchanges-p_numb_old = '0000000011'.
*partnerchanges-p_numb_new = '0000000011'.
*append partnerchanges.
order_item_inx-updateflag = 'U'.
order_item_inx-material = 'X'.
order_item_inx-plant = 'X'.
order_item_inx-itm_number = '000020'.
append order_item_inx.
schedule_linesx-updateflag = 'U'.
schedule_linesx-req_qty = 'X'.
schedule_linesx-itm_number = '000020'.
SCHEDULE_LINESx-SCHED_LINE = '0001'.
append schedule_linesx.
order_item_in-itm_number = '000020'.
order_item_in-material = '000000000000000877'.
order_item_in-plant = 'JNJ1'.
append order_item_in.
schedule_lines-sched_line = '0001'.
schedule_lines-itm_number = '20'.
schedule_lines-req_qty = 64.
append schedule_lines.
Calling the function module updating the salesorder.
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = salesdocument
order_header_in = order_header_in
order_header_inx = order_header_inx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
tables
return = return
order_item_in = order_item_in
order_item_inx = order_item_inx
PARTNERS =
PARTNERCHANGES = partnerchanges
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES = schedule_lines
SCHEDULE_LINESX = schedule_linesx
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN = conditions_in
CONDITIONS_INX = conditions_inx
EXTENSIONIN =
if sy-subrc ne 0.
write: return-message,return-number,return-type.
else.
write: return-message,return-number,return-type.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
endif.
Thanks,
Vijay. -
Update Date field automatically
When a user is adding a new entry I want two of the fields in the table to be automatically updated without the user knowing (hidden fields), I want a current date and time to be entered into the Updated Date field and the :APP_USER to be entered into the Updated_by VARCHAR2 field.
How do I go about doing this can I just put code to do so into the source of ITEMS or do I have to create a process?
Thanks
sS,
Triggers are a good method, see this thread:
Re: Table Trigger Syntax
Jeff -
How we will update data in datasources
hi gurus,
how we will update data in data sources say salesorder header data,
delivery&billing data and how can we link all these.
i think my question is not correct, but i am gettin doubt
please clear anybody it will helpful for me
thanks in advance
venuHi
We have different data sources for sales order header, sales order item level, delvivyer hedear level, delivery item....
The data will be updated based on Sales order number, delvery number etc..
Whatever changes you do a sales order, it has a unique number. WIth this as primary key all the related updates are maintained.
Even for sales order item detail, we refer the header number of sales order and do the updates
*if useful******
Thanks
N Ganesh
Maybe you are looking for
-
How do I add a book on my MacBook Pro to my iPad 3
I have an iPad 3 on iOS 8 I have a MacBook Pro on 10.9.5 I have 4 PDF/Epub/Mobi files on my Mac. How do I add books to iTunes? How do I view the books I have in iTunes? How do I add them to my iPad so they'll be in iBooks?
-
Is there a way to use an adapter to connect my ipad to a USB keyboard and to an ACDC for power
I have a tablet keyboard with a male USB plug attached to it and it came with an adapter with a female USB on one end and a mini male USB on the other end. I was wondering if there is a way to use that keyboard with my iPad and iPod? There are adapte
-
Google Mobile App & GPS work together randomly
I'm surprised we don't have a specific area for application questions, unless I missed it somewhere, however : I'm currently back to driving a cab in the metropolitan suburbs of New York City, and often find I'm needing to know "where is the nearest
-
I am posing this question for two reasons. I am curious to see what a CF developer is worth to a company and also because I might be switching dev jobs to another company that is going to switch from ASP to CF and would like to know what I should be
-
Where can I download Adobe's modifications to WebKit?
You can find out more about Adobe's changes to WebKit for Adobe AIR on the Adobe Open Source site.