How to add a calculated field in a list definition (schema.xml)?
Hello,
I'm currently trying to add a calculated field to a list definition (schema.xml).
I have put the following code at the end of the schema.xml for the list I want to create. But when I deploy and activate the feature for the list, it doesn't appear in the list field.
<Field ID="{EE20EC4B-4216-4259-A84F-C478CE42B70F}" Name="EC_EventsMgmt_CalculatedTime" StaticName="EC_EventsMgmt_CalculatedTime" Group="EC_EventsMgmt" Type="Calculated" DisplayName="Calculated Time" Required="TRUE" Hidden="FALSE" ReadOnly="FALSE" Format="DateTime"> <Formula>=DATE(2009,1,1)+TIME(EC_EventsMgmt_ScheduleHour,EC_EventsMgmt_ScheduleMinute,0)</Formula> <FieldRefs> <FieldRef Name="EC_EventsMgmt_ScheduleHour"/> <FieldRef Name="EC_EventsMgmt_ScheduleMinute"/> </FieldRefs> </Field>
Could you please give me some help and explain me why it is not working?
Thanks a lot.
Hi there.
If I understand correctly, you create this list within the same feature?
If so, the list isn't available during the propagation, and therefore the calculated field can't be added.
If this is the case, then you could work around this by adding a feature activated event handler to your feature and add the calculated field programmatically in that event.
Hope this helps.
Regards,
Magnus
My blog: InsomniacGeek.com
Similar Messages
-
How to add the date field in the dso and info cube
Hi all.
I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
Thanks & Regard
KKmy prob is solved
KK -
How to add a new field in MM01, with say contaminent as a field?
How to add a new field in MM01, with say contaminent as a field? I process that i know is i has to go the user exit and check out the three user exits that are available for MM01 after that what i have to do please can any one help me out with the procedure to proceed?
Hai venkateshwar reddy ,
try with these user exits
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Refer these steps also
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/screen-exit-on-mm01-mm02-mm03-322717# -
How to add an input field in the web UI of CRM 2007
Hi everybody.
I want add an Input field in the Web UI Screen. How it is possible.
I want get the information with detailed descriptions if possible with screen shorts.
What type of methods it will be generated and what are the code we entered in those methods.
Take according to any example. But with detailed description.
I am new for the CRM 2007. So, please give the screen shorts with proper data.
Not only adding the field. If any data i entered in the adding field then that will be stored in the tables otherwise no use by adding the field.
So, Can anybody please send a proper information according to this.
Here another one How to Add our own table (Ztable) field in the Web UI Screen.
How to add the same field in the BOL.
Please expalin about those concepts with full of screen shorts messages.
Thank You.
Regards,
Krishna.If you want to add extra standard fields (like one you mentioned), you can use Component Workbench and Copy the configuration and create your own configuration and make the "Available Fields" appear there.
If the standrd field is not available, you can Add Context Node using wizard and make it visible.
If its a custom field (a new one); you will have to use EEWB and add the fields and then make it visible in the UI using Component Workbench.
Regards,
Alin -
How to add a customer field or extn coll in the tab1&2&3..of a UDO doc?
Hi Experts,
Does anybody know how to add a customer field or extn collection in the unused tabs like tab1&2...in a UDO document?
Thanks for your reply in advance.
Thanks & Regards,
DavidHi Subhasini - <br><br>
It seems you have discovered that adding an extension field to the Project Suppliers collection is not possible; many of the collections in E-Sourcing do not support extensions and, even when they do, typically, the table view of the data cannot be changed to show the extension value (it would only show on a "details" page, for example.<br><br>
The solution that you have proposed may work, although I think there is a slight mistake in your logic. I believe you are saying that the script would take data from the newly created extension collection and populate data in the out-of-the-box vendor collection. <br><br>
In thinking about your solution, I believe the benefit is that any logic and reporting based on the standard collection continues to function correctly (e.g., creating an RFx from the Project will use the out-of-the-box vendor collection).<br><br>
That being said, I generally am reluctant to do a "replace" of a standard collection with an extension collection as you propose. My recommendation is that you challenge the customer on the importance of this requirement. For example, could the code be maintained on the vendor record? Why is it maintained in Projects? If it is maintained in the vendor record, could you just populate a read only collection the Projects that shows the vendor and code? Could a report be written that can be launched from within the Project to show the values? How does the customer intend to use this field? Could the display name of the vendor object be the right place for it?<br><br>
I hope these ideas are helpful.<br><br>
Regards,<br><br>
Rob<br><br> -
How to add a Custom field in the Standard SAP Sales Order main screen
Dear Experts,
We have a requirement of adding a Custom field in the Sales Order screen. I know how to add the Customer field in the Additional data B tab of the Sales Order Header Screen as that is the screen user exit provided by SAP. Can someone tell me how to add the Custom field in the Sales Order main screen. Program Name - SAPMV45A and Screen Number - 4001. What is all I need to take care.
Thanks,
SNK.I have not added the Custom filed in the main screen and added in the Additional data B screen. So closing the message.
-
How to add new text field in standard report
how to add new text field in standard report?
Hi,
I presume you are talking about a report display in ALV and u wish to add a column to it .
If it is a global requirement ,as in table being used there in ALV can be modified, then you can append the table and the system should pick up the same automatically from there.
Otherwise , you can make a Z program . Modify the catalog being used in ALV.
Regards,
Shweta -
How to add new customise field in standard SAP ME28 Report?
Hi Anybody,
How to add new customise field inside Standard SAP Screen report ME28?.
Anybody, Please tell me how to do?.
Thanks,
Regards,
S.Muthu.Hi Subramaniyam,
You can find enhancement in me28 by following steps and then apply your logic in include of this enhancement.
cmod>Give a project name>in enhancement column give the package name ME >f4>in package write ME-->ENTER>It will show you all enhancements available in me28> find which ever suits your requirement>save > click on components> from there you can make changes in include program.to add that particular field. -
How to add one more field to an exist internal table
hi abapers
i am a very new abap programmer and just started learning it.
i want to know How to add one more field to an exist internal table.
lemme me put my question in a very simple way.
i have a internal table having fields f1,f2,f3 and which also that internal also contains some data.
now i want to add two more fields (mm & nn) to that internal table now.
how can i do that.
and i wanna know the websites names where i can find some brain teasing questions in abap programming.
eagerly waiting for ur reply
regards,
Maqsood A KhanHi, MAQSOOD.
You can insert more fields in your internal table like this.
refer this code snippet.
DATA : BEGIN OF tbl_itab OCCURS 0.
INCLUDE STRUCTURE zsdtc009.
DATA : vkorg LIKE vbak-vkorg, "inserted one
vtweg LIKE vbak-vtweg, "inserted one
vkbur LIKE vbak-vkbur, "inserted one
vkgrp LIKE vbak-vkgrp, "inserted one
END OF tbl_itab.
you can also read the book "Teach yourself abap in 21 days"
at http://cma.zdnet.com/book/abap/
but that book is just about basic concept of abap and report program.
it doesn't give a lecture for on-line program.
you can get pdf version books(about abap, sap...things) from sap.
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
I wish I could help you.
Regards
Kyung Woo. -
Hi All ,How to add a new field for MEDRUCK if we havea ZMEDRUCK
Hi All ,
How to add a new field for MEDRUCK if we have a ZMEDRUCK
Req: If I want to add a new field for the following text editor line :
IN MAIN WINDOW > TEXT EDITOR> SERCH FOR TOTAL_AMOUNT-->
In that we will have
&ekko-waers& &komkfkwrt&
(currency) (numerics)
Pls send the Code to make these changes .Pls its urgent
Thanks&Regards.
Bharat.Hi
If that field which you wants to add is available in one of the structures like EKKO,EKPO then you can add that field just beside the other fields
If that field is not there in the any of the structures then you can define a variable using define command
/: DEFINE &VAR&
/ &VAR& = <some value>
or you can write subroutines to fetch the data from outside tables and can use those fields data in the script
<b>Reward points for useful Answers</b>
Regards
Anji -
How to create a calculated field
Hi. I'd like to know how to create a calculated field for a master- detail form. For example: having two db fields price and quantity, i created a the total item (price * quantity) as pl/sql function like this:
begin
:p13_item_total := :p13_price * :p13_quantity;
end;
However, the item is not calculated. It is not and instant calculation. I mean if i modify either price or quantity, how to recalculate item total immediatelyYou must submit the page to do it with PL/SQL. If you do not want to submit the page, you must do it with JavaScript.
Thanks,
Tyler -
How to add a standard field to the Product search criteria ?
Hello all,
despite my searches on google and sdn, i'm still confused on how to add a standard field in the search criteria of the Product seach screens (component/view PRD01QR/Search for example) , I mean a standard Product field that is not included in the available fields list in the UI configuration tool.
I found some explanations for adding a specific Z-Field, this is ok , but I'd like to add a standard field as a search criterion, namely the item category group.
Could someone give me the needed detailed steps for this?
thanks
LudovicHi
Chk ths link out :
http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component
Rgds,
Swati -
How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
Message was edited by: Suhas SahaDid you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
Regards,
Raymond -
Calculated fields in Sharepoint list view
Hi,
I have to add a calculated field with formula as
if the difference between 2 date fields is 0 then i have to add todays date-modifed date.
how to achieve this in sharepoint list view/column ?
ArunaHi Aruna,
SharePoint doesn't allow you to use the[Today] function
in a calculated column, but there are other work around for this.Please find below link for this.
http://abstractspaces.wordpress.com/2008/05/19/use-today-and-me-in-calculated-column/
Regards
Soni K -
How to add a new printer into printer list?
Dear all,
May I know how to add new printer into my printer list in SAP system? My company SAP is SAP 4.0B. Can any one please teach me how to add printer step-by-step?
Thanks alot!!
PCSolved
Maybe you are looking for
-
I launch and relaunch and the same message appears over and over. Should I uninstall and then re-install Lightroom? Would this fix the problem?
-
Just set up a new PC and downloaded Firefox. It will not display my Zenfolio Photo website correctly nor will it play the music that accompanies the main page slideshow. I have 2 other PCs and it works fine on them. All are Windows 7 Home Premium.
-
Need help ! While running DS job through designer we are getting below error: ODBC call <SQLDriverConnect> for data source <SErver name> failed: <[>. Notify Customer Support. Additional notes: 1. Source and Target datastore are getting connected prop
-
Hi All why can I not download Itunes for windows the I click on down load now. A popup appears asking me to save the file " itune64setup.exe" I click save then nothing. Bob
-
[SOLVED] Gstreamer General
Hi All, I've been trying to get my iPod to work as it did in the days I had Ubuntu and Virtualbox. So I can get my music off, before I hand my phone over to my brother's windows laptop and itunes to get the OS updated to the newest one, incase it rem