UDF value lookup
Hi Guys
i have created a UDT and linked this to UDF's on a marketing document, i then reference this on the print spec but the print spec returns the key, ie the line # in the UDT, not the description of the key.
What can i do so that i return the description? if i refer to the description straight from the print layout then there is no link to the actual value selected on the UDFs so the description returned is the first one in the UDT regardless of what i have chosen.
Thanks
I have this exact same problem, how did u solve this ?
My UDF field shows the item number instead of the item name.
The query behind the udf field in the offer screen looks like this,
SELECT T0.[Name], T0.[U_ORB_IMO_NR] AS "IMO Nr.", T0.[U_ORB_BOUWNR] AS "Bouw Nr", T0.[U_ORB_EXNAAM] AS "Ex Naam"
FROM [dbo].[@ORB_TBU_SCHEPEN_2] T0
I added it to my print layout by choosing field source database -> table is offer -> column the UDF.
Also tried with enabling and disabling of the get Description field.
What am I doing wrong ?
Thank you!
Similar Messages
-
Message Mapping UDF for lookuping of a value inside field's list of values
Hey everyone,
For a FI mapping I'm working on, I was wondering if somebody has some Java UDF which lookups for a value inside the whole list of values which the mapping gathered for a specific field?
Thanks,
Bensource code --
//write your code here
JCO.Repository myRepository;
// Change the logon information to your own system/user
JCO.Client myConnection = JCO.createClient(
// all the client information namely client ,user id pwd etc
myConnection.connect();
// create repository
myRepository = new JCO.Repository( "SAPLookup", myConnection );
// Create function
JCO.Function function = null;
IFunctionTemplate ft = mRepository.getFunctionTemplate("xxxxx"); //Name of RFC
function = ft.getFunction();
// Obtain parameter list for function
JCO.ParameterList input = function.getImportParameterList();
// Pass function parameters
input.setValue( a , "xxxxx" ); //import parameter of RFC, a is input argument.
myConnection.execute( function );
String ret = function.getExportParameterList().getString( "XXXX" ); //export param
myConnection.disconnect();
return ret;
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
File Lookup in UDF
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file%2blookup%2bin%2budf
Lookupu2019s in XI made simpler
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
SAP XI Lookup API: the Killer
/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
Webservice Calls From a User Defined Function.
/people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function -
UDF Value is not coming in the query report
Hi all,
i have designed query report based on AR Invoice which has some UDF .
all udf have FMS applied and all these udf has values.
when i run report some times udf values are coming in the report and somtimes not even if udf contains values.
if i open perticular invoice and again update that udf and again run report now udf value will come in the report.
every time i need to manualy update the udf even if that udf contain value.
how to avoide this problem.
Pls suggest solution.
Regards,
ChetanHi Chetan,
Try this,
-> Open the require document(module).
Assign this procedure and then ADD the document
and Run the Query Report.
1. Goto the UDF and Click (ShiftAltF2).
2. Select the SEARCH BY SAVED QUERY.
3. Assign the FMS Query in UDF.
4. Select the AUTO REFRESH WHEN FIELD CHENGES.
5. Select the Auto Refresh Field (for example CardCode (or) Remarks).
6. Check the Display Saved Values.
OR
-> Open the require document(module).
1. Goto the UDF and Click (ShiftAltF2).
2. When will you add the document at that time
you can Click the SHIFT + F2 and than ADD the document.
and than Run the Query Report.
Regards,
Madhan. -
How to get a Header UDF value in a FMS ?
Hi !
How is it possible to get a Header UDF value from a Formatted Search in a header ? If we don't want to create as many FMS as there are marketing documents in the system, how is it possible ? Can we have a syntax like the following ?
SELECT T0.OnHand
FROM OITW T0
WHERE T0.ItemCode=$[$38.1.0]
AND T0.WhsCode=$[$U_Nwr_WH.0.1]
Thanks,
LuceHi Gordon,
oh, I'm sorry, I did a mistake...
In fact, my question is "How can we get a header UDF value in any FMS without specifying the table name?" !!!!!
Can we access it through specific syntax like $ and [ ?
thanks,
Luce -
Reporting counts on multi-value lookup columns
Hi,
I have a list containing 2 columns - student, and subjects. Subjects is a multi-value lookup column. Students may study multiple subjects. What I'm trying to achieve is a simple pie chart (I don't care if it's done using SharePoint Web Part, Excel or
SSRS) that displays a breakdown of how many students are studying each subject.
So if I have 2 list entries:
Person 1, Science, Maths
Person 2 , Maths
Person 3 , Science
The report/chart would report 2 Science and 3 Maths. What I'm struggling with is that because the data is stored in an un-normalized fashion ('#;') separated it's not possible to do straight charts without coding (C# or VBS). I
would have assumed that this issue would be widely spread but I've had no luck looking through forums. Does anyone have any experience/;ideas on how to handle this??
Thanks.
MDBHi
From your description, my understanding is that you want to get counted values of a Multi-Value lookup column.
You can get counted values of a Multi-Value lookup column
in DVWP using XSLT.
Refer to the following post:
https://social.msdn.microsoft.com/Forums/en-US/f9d4cf16-4460-48a7-9514-dee19503b9fc/getting-counted-values-of-a-multivalue-lookup-column-in-dvwp-using-xslt?forum=sharepointdevelopmentprevious
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to change UDF value in system form if its invisible or inactive?
Hi all,
I need to compute some document total values and save them on UDFs defined on Sales Order Header document, when the user adds a new order line.
However I must not allow the user to change them (or see them). Also, there are other UDFs on the Sales Order Header that the user must be allowed to change...
Is there any way to control this? If I set a UDF as not 'Active', I cannot change its value with programming.
I'm using the following command to change a UDF value on the Sales Order form:
Form form = B1Connections.theAppl.Forms.GetForm("-139", pVal.FormTypeCount);
EditText et = (EditText)form2.Items.Item("U_TotalTax1").Specific;
et.Value = "10"; // this raises an exception "Form item is not editable"
Is there any other way to change this UDF contents (maybe with datasources? etc)
Thanks all,
Manuel DiasHi You can Enable/Disable the item after your transaction. follows the code
oForm.Items.Item("U_TotalTax1").Enabled = True
oEdit.value=10
oForm.Items.Item("U_TotalTax1").Enabled = False
Try this
Manmath -
Hi,
1) I need help regarding how to do value lookup in SAP XI.
2) My particular scenario includes a small list as well a long list. Is their a differnce in how i can eficiently do a value lookup based on whether it is short or long list.
Thanks,
KunalHi Kuna,
If the values have to be maintained by user then it's normally done in tables (any database)...and then within the message mapping by using function we can connect to databse for lookup (JDBC lookup).
You can also use value mapping if you are not looking at picking up values from application system.
It is just like your SM30 transcation.You can get the info under SAP XI->Design and Configuration->Configuration->Value Mapping.
If you are in SP13 you can use lookup API SAP XI->Design and Configuration->Design->Mapping look ups.
Also have look at these Blogs and threads...
/people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
JDBC Lookup
EJB Lookup
Re: RFC Lookup.
CSV File LookUp
I hope it helps...
Regards,
Abhy -
Dear Experts...
Here is a strange situation in my DB. I have some UDF on A/P Invoice for TAX details print preview.
UDF Values are properly showing in SAP but not in SQL in same table, Same document they are blank in SQL.
I can't understand why SQL does not showing me Value of UDF.
Regards,
RaviHi Ravi,
Run below query in query generator for specific document number and check if udf values are shown or not?
SELECT T0.DocNum, T0.CardCode As 'Vendor Code',T0.CardName As 'Vendor Name', T0.NumAtCard As 'Vendor Ref. No.', T0.DocDate, T0.TaxDate, T0.DocTotal - T0.VatSum As 'Basic Value of Goods', T0.U_CENVAT As 'CENVAT', T0.U_ECess, T0.U_HSCess, T0.U_VAT_4, T0.U_Add_VAT1, T0.U_VAT_12,
T0.U_Add_VAT2, T0.U_CST2, T0.U_CST4, T0.U_CST5, T0.U_Service_Tax, T0.U_ST_ECess, T0.U_ST_HSCess,T0.TotalExpns As 'Others',T0.DocTotal - T0.VATSUM As 'Total' FROM OPCH T0 WHERE T0.docType = 'I' and T0.DocNum=[%0]
Thanks,
Neetu -
Does Access 2013 Web App support multi-value lookup fields?
I hope someone can please help me with this as I've not been able to find the answer by searching this site, nor elsewhere on the web. I have Access 2013 open connected to my web app on Sharepoint Skydrive with a table open in 'edit table' mode. When I add
a new lookup field I don't see any option to make it a multi-value lookup field. Is there no support for that in web apps or am I doing something wrong?
Cheers, Henk.
Cheers, Henk.This is what I use in the Parent RowSource:
This in the parent child relationship
In the row source query from the child, I have a simular expression. By inverting the boolean 'childToggler' I can force the child-form to requery. Because the boolean is in the session table record (which is part of the child form recordsource query as
well), the boolean will be inverted in both and won't disrupt the relationship.
Besides the toggler this relationship only contains an ID with preceding zero's, but the expression can contain pretty much everything. -
Not copying UDFs values from Payment voucher to JE UDF value
Hi
I created UDF in outgoing payment and Journal Entry name Department , when i saved outgoing document the department udf value did not copy in JE. Is there any way to copy outgoing document udf values in JE udf.
ThanksHi,
You need an FMS query to copy the value. UDF value will not be automatically copied for JE.
Thanks,
Gordon -
Assignment on Multi-Valued Lookup field
Hi experts,
Is it possible to assign value to a multi-valued lookup field using assignment.
For example, "Products" is the main table. In the products table I have a multi-valued attribute "PLANT". Product table contains a field "PLANT" of type look-up multivalued to the Plants table.
So, is it possible to assign Plant attribute values to PLANT Look-up multivalued field in the main table using assignment??
Is not, then is there any other work around solution to acheive this requirement?
Best Regards,
Shivhi,
So, is it possible to assign Plant attribute values to PLANT Look-up multivalued field in the main table using assignment??
No this is not possible, to get the values of the plant attributes you again have to lookup at the plant master data and fetch the values from there in the routine.
regards,
Arvind. -
Issues updating/setting multi value lookup columns via powershell
Hi All,
I have an issue updating multi values in a lookup field via powershell
I can update a single value lookup field as below but can't get to update if its multi value.
As stated below when I hardcode it. It works.
No idea what 'm missing. Any help will be appreciated.
#Hardcoded works below as you can see i'm setting 3 values
$array = @($realval.Split(';'))
for ($i = 0; $i -lt $array.Count - 1; $i += 2)
$word = $array[$i].Trim('#')
$number = $array[$i+1].Trim('#')
"$number $word"
$lookupvalue1 = GetLookUpValues -val $number
[Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
[Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
[Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue2 = New-Object Microsoft.SharePoint.SPFieldLookupValue
[Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue3 = New-Object Microsoft.SharePoint.SPFieldLookupValue
$lookupvalue.LookupId = 1
$lookupvalue2.LookupId = 2
$lookupvalue3.LookupId = 6
$itemValues.Add($lookupvalue)
$itemValues.Add($lookupvalue2)
$itemValues.Add($lookupvalue3)
#$itemValues.Add($lookupvalue)
$CMRSItems["Event Type"] = $itemValues;
Write-Host "items:" $itemValues
$CMRSItems.Update()
# This works when its updating only one value but when it needs to update multivalue it only updates the last one
#so for example with the lookupvalue above only 6 gets updated below
$array = @($realval.Split(';'))
for ($i = 0; $i -lt $array.Count - 1; $i += 2)
$word = $array[$i].Trim('#')
$number = $array[$i+1].Trim('#')
#$number
"$number $word"
#send param to GetLoolValues func to return records as SPFieldLookupValue
$lookupvalue1 = GetLookUpValues -val $number
#I can view the lookupvalue returned successfully
#Write-Host $lookupvalue1
[Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
#This LookupId returns 3 values like on the hardcoded one above like so :1,2,6
$lookupvalue.LookupId = $number
$itemValues.Add($lookupvalue)
$CMRSItems["Event Type"] = $itemValues;
#I can view the items returned successfully
Write-Host "items:" $itemValues
$CMRSItems.Update()The problem I can see with your code is that the below line of code, you are instantiating inside the for loop. This should have been outside the for loop as by keeping it inside the loop you are overriding the value.
[Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
Please have a look at the below solution and modify your code as per your requirement. What I am trying to achieve in the below code is that I have a listA in which one of the field is being used as a multi-lookup in my listB.
$lookupCollection = $something.split(";")
$LookupMasterList=$web.Lists["ListA"]
[Microsoft.SharePoint.SPFieldLookupValueCollection] $lookupValueCollection = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
#Get the Lookup Item from Parent List
foreach($item in $lookupCollection){
IF([string]::IsNullOrEmpty($item.trim())) {
continue;
$LookupItem = $LookupMasterList.Items | Where-Object { $_.Item("FieldInternalName") -eq $item.trim()}
if($LookupItem -ne $null)
$myLookup = New-Object Microsoft.Sharepoint.SPFieldLookupValue($LookupItem.ID,$item.trim())
$lookupValueCollection.Add($myLookup);
#Set the Lookup field value
if([string]::IsNullOrEmpty($lookupValueCollection)){
continue;
else{
$newItem["Lookupfieldinternalname"] = $lookupValueCollection
The above logic has no hard coding and it fetches the lookup information directly from the master list and generates a collection based on that. You can modify the above code as per your requirement.
Geetanjali Arora | My blogs | -
FMS to Display Item group UDF value
Hi,
I have created Title level udf named U_WP in the item group table. Each group wise i have entered diferent values in this field.
I have created one more title level UDF in item master by same name U_WP.
I want FMS to select the UDF value from U_WP in OITB to be displayed in U_WP in OITM when when ever user select the
respective item group in item master while adding new code.
swapHi Swap,
I've tested the query below and it should give you what you need:
SELECT T0.\[U_WP\] FROM OITB T0 WHERE T0.\[ItmsGrpCod\] = $\[$-39.0\]
A couple of things, make sure both the Item Group UDF and Item UDF are setup as the same structure (type and length).
Set the formatted search on the Item UDF so that it refreshes when the Item Group changes.
That should give you what you need.
Regards,
Adrian -
How to change UDF value in created A/R Invoice or A/P Good Receipt PO?
I have created my UDFs in Marketing Document Rows.
After I've added some documents such as A/R Invoice or Good Receipt PO , I want to change my UDFs value for sometime. But B1 don't let me do that. I know and understand the reason why we can't change this rows data. But I want to change my UDFs only , so it don't effect any other things.
How can I do this? or Can SDK help me?
thxYou can change with such statement :
ObjInv.Lines.UserFields.Fields.Item("U_FieldName").Value = "123"
Edited by: Riny Liu on Mar 17, 2008 5:39 PM -
Batch details window cannot save UDF value
Hi experts!
Did anybody else experience that if you want to update a user defined field of a batch in 'Batch details' window, it pretends as everything was saved successfully, but UDF values are not saved in fact. I tried it with 8.81 PL05 (and earlier versions as well)
I found a note (1431365) of a similar problem but it is about the General update button of "Batch management" window, and this note suggests to use "Batch details" instead. Quite weird that updating (normal update, not global) a UDF value in "Batch management" window seems to work fine for me, the modified value can be seen on "Batch details" window.
Regards: GergőWell, originally our customer recorded this behavior on 8.8 PL20 (8.80.238)
I tried it on almost the same database, in our developer environment, that has slightly different patch level: PL21.
Then i tried with a 8.81 PL05 database too. There are some addon installed, but none of them was running, and i could not find any formatted search on this window.
But i suppose i figured out what happened.
For updating UDF i always switch on the user defined fields window (Ctrl-shift-U), and use this window. I did so in this case as well. (and our customer did so)
But now i realized that in this case UDF-s appears on the native window as well. We have to scroll down to see them, that's why i hadn't realized them before. Those fields work fine. I guess you used those fields too. Can you confirm it?
Regards, Gergo
Maybe you are looking for
-
I lost My Icloud Id and it's not the same as in the Apple Id also I do not Security questions
I have Lost My Icloud and cannot know the Email with Icloud, however I have access to My Apple Id, I want to change my Security Questions and rescue email,I do not know the answers of my Questions I made them Long time Ago.Also I do not have an Apple
-
Error message to the launch of a SPARQL query well trained in Java
Hello, I am not if it is a compatibility problem between JENA ARQ and got the message that I sometimes not consistently (at least I can not reproduce !!!) so it is very difficult to correct at least to understand and find a solution? (Anyone have a s
-
How do I use a JDBC Resource set-up in Sun Java System Appliation Server?
How do I use a JDBC Resource set-up in Sun Java System Appliation Server 8.2? I created a JDBC Resource labeled "jdbc/__PetroPool" that is backed by a Connection Pool labeled "PetroPool". Since this is set-up in Sun Java System Appliation Server 8.2,
-
Fax and Scan with Airport Express
I have an Airport Express with my Mac and a Windows Vista PC running on my wireless network. I have a HP PSC printer, but I am unable to scan or fax from either computer. Any ideas if this is possible, and if so, how?
-
EDI 832-Sales/pricing catalogue from vendor
Hello Experts, We are setting up sales/price catalogue interface from our vendors to SAP through EDI 832. I'm new to Retail and wanted to know the process of once we receive the 832 idoc from them what are the follow up documents that idoc generates