Extracting MS Project Custom Field Lookup "Description" data
I'm using MS Project 2010 Professional and
I have created a Custom Field which is called "Responsible Person" which is linked to Text2 field
On it Under Custom Attributes> Lookup I have Under "Value" column ---->Responsible Person Names and Under "Description" Column ----> I have entered email addresses for each person.
For each project tasks , under Text2 I have selected from the dropdown the Responsible person Name ( which is the Value Column)
My Question is there a way to read using VBA, the Lookup "Description" column data which i have entered as email address.
If some one have done it in MS Project 2010 using VBA please guide me how to do this.
Thanks a lot.
Hi,
I have never done before for a text field. But the following works for OutlineCodes, I renamed OutlineCode2 a "xx". Perhaps you can also use an Outlinecode? Or can use this a basis to get it work with text fields.
Sub ReadDescription()
Dim oc As OutlineCode
Dim lt As LookupTable
Dim lte As LookupTableEntry
Dim tsk As Task
Set oc = ActiveProject.OutlineCodes("xx")
Set lt = oc.LookupTable
For Each tsk In ActiveProject.Tasks
If Not tsk Is Nothing Then
For i = 1 To lt.Count
Set lte = lt.Item(i)
If lte.Name = tsk.GetField(Application.FieldNameToFieldConstant("xx", pjTask)) Then
tsk.Text30 = lte.Description
End If
Next
End If
Next
End Sub
Hope that helps!
Barbara
To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
an appropriate solution faster. Thanks for your support!
Similar Messages
-
Creating an SQL Query for Project Custom Fields Values
Hello:
I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
SELECT
MSP_PROJECTS.PROJ_NAME,
MSP_CUSTOM_FIELDS.MD_PROP_NAME,
MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
FROM
MSP_PROJ_CUSTOM_FIELD_VALUES
INNER JOIN
MSP_CUSTOM_FIELDS
ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
INNER JOIN
MSP_PROJECTS
ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
WHERE
MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
ORDER BY
MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
field has NULL value when CODE_VALUE field isn't NULL)
Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
Awaiting your kind reply,
Sebastián Armas PMO Project ManagerHi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data. Take a look at the ProjTool sample in the SDK whcih gets this data.
Best regards,
Brian.
Blog |
Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter |
Project Developer Center |
Project Server Help | Project Product Page -
XRPM: Need to find the BADI for adding custom fields to master data
Hi,
We have activated XRPM(4.0) business content and need to add some custom fields to some of the master data ( for example need to add custom fields to master data info object 0RPM_IHGU, 0RPM_IGCG etc).
We have enhanced the data sources ( 0RPM_ITEM_HEADER_GUID_ATTR and 0RPM_FIN_CAT_GUID_ATTR respectively) in the source system by appending additional fields to the append structure of the data source We are trying to find the BADI where we can implement the custom code.
Can anybody help to find the particular BADI, id there one for all master data carrying data source in the xRPM source system?
ThanksDear Arunava,
1) In your R3 goto SE16 --> open table ROOSOURCE.
Search for your OLTP source...eg: 0RPM*
The column EXTRACTOR will give you the module name.
2) Also look/follow the link:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f668696-0701-0010-22be-a278e4587b68
Currently available BAdIs include:
RPM_BUPA_CUST_FIELDS BUPA customer fields
RPM_CALC_BUPA_BPFTE Calculate the business partner availability
RPM_CALC_STAFF_ICON calculate the staffing icon
RPM_CREATEUSR_NAME Generates user names
RPM_HR_IN_IF001 Customer exit for inbound time processing
RPM_HR_IN_IF002
RPM_HR_IN_IF003
RPM_HR_IN_IF004
RPM_HR_IN_IF005
RPM_HR_IN_IF006
RPM_INTEGRATION_OPTS get and set the project integration options
/RPM/OBJECT_SERVICES Object support services
/RPM/PERSON_CUST_FLD Resource customer fields
RPM_PROCESS_DATA Inbound processing of time data by customer
Good Luck, BB -
Workspace Project Custom Field Web Part on different Site Collection?
Hello experts,
I'm working on a project site template in a SharePoint 2010 environment. My client wants project custom fields to be displayed on the Project Site homepage.
To accomplish this, I'm using the Solution Starter's Workspace Project Custom Field Web Part.
It works fine, as long as we create the project sites under the PWA site collection.
However, due to administrative reasons, we've decided to provision all project sites under a separate Site Collection, in a separate content database. In this case, we manage to add the webpart to the page, but as soon as we try to edit it, to configure
the visible Custom Fields, we get this error:
Server Error in '/' Application.
Unhandled Communication Fault occurred
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Unhandled Communication Fault occurred
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Unhandled Communication Fault occurred]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
WorkspaceProjectCFWP.WebSvcCustomFields.CustomFields.ReadCustomFieldsByEntity2(Guid entityUid) +181
WorkspaceProjectCFWP.Services.<>c__DisplayClass12.<GetCustomFields>b__11() +158
Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +729
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +26839062
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +27885657
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +93
WorkspaceProjectCFWP.Services.CustomFieldsService.GetCustomFields() +208
WorkspaceProjectCFWP.Services.CustomFieldsService.GetAllProjectFields() +173
WorkspaceProjectCFWP.ProjectCFEditorPart.SyncChanges() +325
Microsoft.SharePoint.WebPartPages.ToolPane.OnSelectedWebPartChanged(Object sender, WebPartEventArgs e) +283
System.Web.UI.WebControls.WebParts.WebPartEventHandler.Invoke(Object sender, WebPartEventArgs e) +0
Microsoft.SharePoint.WebPartPages.SPWebPartManager.BeginWebPartEditing(WebPart webPart) +96
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ShowToolPaneIfNecessary() +579
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +296
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +11146206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474
Now, I've activated every possible feature, both on the Site Collection and Site level (or SPSite, SPWeb). Alas, no succes. Which brings me to these questions:
What might be causing this error? Can this be solved?
Are there any cases of working webparts of this kind in site collections other than PWA?
If this is a technical limitation, what are alternative options for me to display custom fields on a project site?
Link to the Solution Starters: http://archive.msdn.microsoft.com/P2010SolutionStarterHi
I did not use this solution starter, but it might be that the webpart just looks for a Project Server instance in the current site collection - and there is none.
You could use a SQL Reporting Services Report to show on the site to accomplish this. Either you would have to set the project as a parameter manually once for each site, or you could try to determine the project automatically using the URL.
Kind regards
Christoph
Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany -
Custom field in Basic data screen of invoice entry screen
hello,
I want to add custom fields in basic data screen of Invoice entry in SRM 5.0.
As invoice Entry screen is divided into three parts:
1. Basic data Screen
2. Header data screen
3. Item data screen
Now according to OSS Note number 672960 we are able to add Custom fields in the header as well as item data screen of invoice entry without any difficulty.
but our requirement is to add custom fields in the basic data screen.
Is there way available to add custom fields in the basic data screen.
Thanks
Sarabjeethi
check this spro path
Financial Accounting (New) --> Travel Management --> Business Add-Ins and User Exits in Travel Management --> Entry --> Screen Modifications: Adjustment of "User Data" Screen -
Change of custom fields in header data
Hi Experts,
How to change of custom fields in header data in frontend SRM for Process PO transaction ?
Help is appreciable.
Thank You.
Regards,SunuThank you for your replies.
There is one custom field in header data called 'SDN Number' of our PO for example and i would like to change this from 'SDN Number' to 'Login Name' as the logic for taking the value for this field should remain the same. Only the display text should change.
So, whenever i login into frontned SRM and process the transaction 'Process PO' i should be able to see 'Login Name' instead of 'SDN Number' in header data of the PO.
Hope i reaced my query in clear way.
Highly thanful for your replies.
Regards, Sunu -
PSI Bulk Project update on Custom Field lookup tables.
Using PSI Is it possible to update project custom filed which has a lookup table. I tried but it throws the following exception
An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
Additional information: ProjectServerError(s) LastError=CICOCheckedOutInOtherSession Instructions: Pass this into PSClientError constructor to access all error information
Any Idea on this.
VIKRAMHello,
If you are trying to update the lookup table values, see this PowerShell example:
https://gallery.technet.microsoft.com/Update-Server-Lookup-table-bb1ae14f
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS |
MVP | Downloads -
Screen Exit for adding custom fields in Additional Data tab in ME21N
I need a screen exit or whatever other method for adding custom fields to the additional data tab at header level.
I also need a similar exit for adding a filed at item level.
Thanks in advance
MartinHello,
1st find badi or exit and then create screen ...and assign the screen group and screen no for that implementation....some steps i can give u i did with SPRO tcode....
please check it for VA02
SPRO u2013 SAP Reference IMG --- Logistics General --- Basic partner u2013 customers -- Control u2013 Adaption of customers own masters data element u2013 prepare modification of customer free enhancement of customer master record
1)Screen group description
zs creating badi --- (save)
click on (label tab pages) u2013 new entries
number u2013 10 , function code u2013 zs10 , description u2013 func ---(save) u2013(back)
2)select (FM_CUSTOMER_ADD) u2013 copy
Implementation name u2013 ZAS
(desc u2013 impl for cust) u2013 (save)
interfaceu2014(check_add_on_active) double click on it
3)the above screen appear -- write the code in it u2013 (save) --- (activate) u2013 (back) u2013 (save)
-- (activate) u2013 (back)
Business adds in customer sub screens
4)select (FM_CUSTOMER_ADD) u2013 copy
Implementation name u2013 ZAS1
(description -- cust) u2013 in attribute u2013 (give screen group name)
5)go to interfaces (GET_TAXI_SCREEN) double click on it
(save) --- (activate)
6)(SAVE) --
Goto SE38 -- CREATE PROGRAM WITH NAME (ZQW) type module pool
Goto SE51 -- Prog : ZQW
Screen : 200 (Create)
Goto layout u2013 design the screen
7)save u2013 activate
then goto transaction : va02
For User Exit's
goto to tcode->status->program name->double click on that,
then goto to-> attribute take the package name and
Goto SMOD tcode ->Utilities->give the package name and F8
then a list of exits will display for that tcode as well as that package.
u can check the table MODSAP
u can check the table MODACT
For BADI's,
1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
2)Goto to tcode->status->program name->double click on that program will display's
then press crtl+F then cl_exithandler
Thank u ,
santhosh -
Delta enabling for Custom fields after Master Data Enhancement
Dear Friends,
Two new custom fields were added to MARA table in ECC. I enhanced the extractor 0MATERIAL_ATTR by adding an append structure and added these new fields. For enabling DELTA, I did the following:
1. In table ROOSGEN lookup the 'Message Type' for extractor 0MATERIAL_ATTR. Found 'RS0152' as message type.
2. Used transaction BD52 to create and entry in table 'TBD62' for Message Type - 'RS0152', Change object- 'MATERIAL' and fields - ZFIELD1 and ZFIELD2.
3. Did a SCC1 in the test system for the transport carrying the above changes and did a re-init in BW. Then did a DELTA.
I am seeing 0 records for DELTA eventhough I made some changes to the ZFIELDS in ECC.
Please share your thoughts and suggestions if I am missing anything.
Thanks,
RajHi Raj,
Check the following
1) If you transport the changes, the message type name changes across the system
2) The Data Element of the Z fields, check whether you have set the 'Change Documents' option in the 'DEFINITION' tab(Below th Parameter ID).
Regards,
BINetweaver2004s -
Custom fields in additional data B not displaying - Sales Order
Hi gurus,
I added some custom fields to the addtional data B tabstrip in sales order screen, but they didn't display. This is in the client's system. BUT in our own system it works perfectly. The screen has been activated.
Maybe it's because of the version difference?
Anyone experienced this before?
Any suggestion will be great.
ThanksResolved by myself.
For those who would have the same question, please refer to SAP note 386694. -
Custom field in General data of Travel request
Hi All,
I need to add a custom field in the General data section of the travel request screen.The requirement is such that if user creates an expense report corresponding to that travel request then the same field with the value should appear.Can anyone brief on how to achieve this.
Can the same field be added to each line item (expense types) of the expense report ?
I am wondering if its possible since the tables for line items and header data are different.
Thanks
Kind regards,
Induhi
check this spro path
Financial Accounting (New) --> Travel Management --> Business Add-Ins and User Exits in Travel Management --> Entry --> Screen Modifications: Adjustment of "User Data" Screen -
My custom fields now show dates. Can't enter names etc.
I just migrated my Address Book from a Powerbook running Tiger into a MacBook Pro running Leopard. All went smoothly except my custom fields that I used to enter info into now have dates as the only entry option. I cannot find a way to change this and I don't use dates. Can someone tell me how to fix this? Thank you SO much!
The Custom Fields are set up in Preferences/Template. I would add the new fields to Address Book before importing data with custom fields.
-
Search help for custome field with different data type
Hi Friends,
I have Created a custom table in which i have created a field is
ZMATLONG which stores material number.
Now the data element is zdmat which is of char 40..
Now i want to give search help for this field ZMATLONG..
I have tried many ways giving search help to this field
a) i Tried to attach the standard search help of MATNR ie : MAT1 but its showing me data type inconsistancy
b) i created a zsearch help and in the selection method i have used database table mara , again here iam getting the same error data type inconsistancy...
Now how can i give the search help like matnr field to my custom field ZMATLONG...
How can i do it..?
Thanks in Advance..
Regards
KumarHi,
MATNR ahs length 18 and ZMATLONG has length 40.So due to this u cannot use MAT1 search help.
best way would be cope MAT1 into Z search help. Then in the search help parameter change the data element of field
MATNR as ZMATLONG.
Now if you assign Z search help to ZMATLONG it will work.
I tried this its working fine.
Shanmugavel Chandrasekaran -
Custom field on Additional Data Tab, VT0*N
Hi Experts,
I would like to know if there is an existing user exit or CMOD or anything that can allow me to add a custom field on the Additional Data tab of transactions VT01N, VT02N and VT03N without using the access key.
I have a requirement that requires me to add a checkbox on the Additional Data tab of the transaction stated above.
I place using access key as a last option on this requirment.
Thanks,Hi Experts,
I would like to know if there is an existing user exit or CMOD or anything that can allow me to add a custom field on the Additional Data tab of transactions VT01N, VT02N and VT03N without using the access key.
I have a requirement that requires me to add a checkbox on the Additional Data tab of the transaction stated above.
I place using access key as a last option on this requirment.
Thanks, -
Add new customer fields on Basic Data Header of Bid Invitations
Add new fields on Basic Data of Header of BID INVITATIONS and other screens. I found many notices sap that it indicates that I can use badi BBP_CUF_BADI_2, both how does it?
I understand that method MODIFY_MODE_QUOT is due to implement because he is the one that allows to use in way edition the screen. In this method only CV_MODE ='E'.
In which method I assign the structure with the new fields or customer fields?
In where I indicate to him in that screen must add the new fields or customer fields?
I need to implement more methods to add the new fields the headed one of basic data of BID INVITATIONS.
Thank you.Perhaps some answer for you can be found here:
in this forum thread: Bidding Engine general questions :-(
I have moved your thread from the general Business Process Expert forum to here as I think it has a better chance of being answered.
cheers,
Marilyn
Maybe you are looking for
-
Hi, I have 1000 records that are coming in a column one after the other below in different rows. I require these records to come in a single row, with a comma after each record. how to do this ?
-
I upgraded to iOS 5.1 and had to reload all my apps. They take more than the max allowed pages so I had some in folders prior to upgrade. Now some do not appear. I can search but they are commonly used apps & I want to restore the icon to the screen.
-
I recently finished installing Messaging Server 6.3 ( 64-bit ) and Communications Suite ( 32-bit ) . Messaging Server seems to handle internal mail perfectly ( from uwc ) , but does not send mail to external domains . I set the SMTP port to 25 and di
-
Pacman -Syu locks on manpages download
Just did pacman -Syu like normal and 3 times, it locked up on downloading the manpages. we're talking where it gets to 37% or something like that and 10 minutes later, still idling there. I havent seen anyone mention this, but I'd be suprised if this
-
Filter files by rating before import?
Is there any way of filtering files by rating BEFORE importing them from my camera to my PC? I can sort them once they have been imported but it would save a lot of hard drive space if I could only import the ones I rated before importing. Thanks.