Linking the UDO of type document to user defined field
I created the user defined field and i need to link the UDO of type document to that user defined field. How to link the UDO to user defined field.
Dear
do you mean to add a user defined field to an document type UDO? if this is the case,
1. create the UDT
2. go to Tools-> customization tools->User Defined Fields-Management, expand User Tables, add the udf to the UDT
3. register the UDT as UDO.
best regards,
xiaodan an
Similar Messages
-
Display of document line items with user defined fields
Hi all,
I have created two user defined fields in CI_COBL structure and they are available on OBC4 screen. I maintained optinal for entry in the screen layout. I posted one document with user defined fields and saved.
Now the document is updated in BSEG table. I then display the document, and it display the doucment
But when i double click on the one of the line items system gives an error that there is some problem in customising and entries missing in Table COBM.
I checked OXK3 and see that in field information for user fields, it says entries maintained in table COBM.
But still i couldnt display my line items in detail.
Any solutions
Thanks in advance
RamYes your are looking at the correct sap note.
Things look pretty straight forward in the notes documentation.
1)Extend the VBKRED structure with the fields you want.
2)Populate thse values in the user exit in program DBKMVF02 in FORM routine USER_EXIT_FUELLEN_XVBKRED.
For extending a standard structure you need to create a zstructuree in se11 first and then append it to the standard structure.
In your case you need to extend VBKRED_EX1 structure rather than VBKRED.
Regards,
ravi -
User defined fields in SC with searchhelp ?
is it possible to link a searchhelp to user defined fields in a shoppincart ?
I have already defined 2 fields in ZINCL_EEW_PD_ITEM_CSF which I can see and edit when I create a shoppincart, but for 1 field I would like to add a searchhelp which connects to the backend for retrieval of possible values. is this possible ?
kind regards
arthur de smidtHi Arthur,
Yes, this is possible
Follow the below text in note 672960 User-defined fields 2
===
Search results
You have the option to see user-defined fields in the list of search
results. To specify them, use the following structures depending on the
document type:
Doc.type Set type Structure name
SC HEADER INCL_EEW_PD_SEARCH_HDR_CSF_SC
SC ITEM INCL_EEW_PD_SEARCH_ITM_CSF_SC
PO HEADER INCL_EEW_PD_SEARCH_HDR_CSF_PO
PO ITEM INCL_EEW_PD_SEARCH_ITM_CSF_PO
QUOT HEADER INCL_EEW_PD_SEARCH_HDR_CSF_QUT
CONF HEADER INCL_EEW_PD_SEARCH_HDR_CSF_CNF
INV HEADER INCL_EEW_PD_SEARCH_HDR_CSF_INV
Search criteria
You can also use user-defined fields as search criteria. To do this, you
have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the
fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN.
The so
The fields defined this way are displayed if you choose the 'Extended
search' link.
===
Also the below notes may help,
752586 Customer fields in extended classic scenario
732112 CUF. Customer fields on item level disappear
728782 CUF. Account assignment fields disappear when openi
710474 CUF. User-defined fields on search screen
683684 CUF. Values are not transferred from input help
672960 User-defined fields 2
458591 User-defined fields: Preparation and use
Kind Regards,
Matthew -
Assigning of g/l account for user defined field
IN the sales invoice i am creating the user difined field
for manual tax( i.e manual tax the customer how much tax amount he will give that much amount he will feed in that field )in the row level and i want to assign the g/l account for that user defined field
please explian what is the procedure
Edited by: Philip Eller on May 23, 2008 10:11 AMHi,
Do you want the G/L account input automatically or manually ? if manually try to use this query FMS:
SELECT T0.[AcctCode], T0.[AcctName] FROM OACT T0
In the UDF, just press shift+F2 and select the account code you want to input.
Rgds, -
Cannot enable an user defined field as the type of link
I created an user defined field and set it to the type of link. I want to link it to a external file.
But only the "visible" checkbox of the UDF is available, the "enable" checkbox cannot be actived (displayed in grey).
Can someone tell me how to do next?
Thanks.I did a lot of tries but still failed.
http://faculty.stut.edu.tw/~jywu/others/B1UDF1.JPG
I want to know how to use the function marked in the red-box in the above link. What's that for?
When i created a UDF using the setting, I can only set it visiable, cannot active it.
Furthermore, I cannot find any document expaining how to set these parameters in user defined field function.
Can someone help me?
Thanks. -
User Defined Field with Link Type
Hi,
I am trying to create a user defined field to allow users to attach word documents to Item Master Data.
I have successfully created a User Defined Field under master data with Type: Data, Structure: Link.
It appears in the Item Master Data as I would expect. My questions relates to how to use this field. The first time I click on the field, a file browser window appears where I can select a file. Once I select the file I want I click ok and the path to this file appears in the field. The next time that I click on the field the file will open in its respective application.
My question is: How when the field already contains a path to a file do I change this path so it points to a different file.
Any help I can get on this would be greatly appreciated.
Thanks
BrianHi,
If you hold down Ctrl on your keyboard and then double click in the link it will allow you to browse to a different file.
Regards,
Adrian -
How to insert a row in UDO of type document with document line using DIAPI
Does somebody knows if there is a way to insert a new row in a UDO of type document and document lines using the DI API?
I tried it by using <i>oCompany.UserTables.Item( "PMX_DOC" )</i> but this was not working.
Thanks for the help.
Regards,
JeffreyWe have to insert the row in a server process so it is not possible to use the UIAPI.
I wanted to do it by writing SQL statements to do the insert/update/deletes but it seems that we are not allowed to do this if you want to certify your addon. Does somebody knows how we can get an addon certified but also updating our own UDO using DIAPI?
Thanks.
Regards,
Jeffrey -
How to use xsl in the veriable (of type Document packorg.w3c.dom)?
I have xml document in the variable of type Document from the package "org.w3c.dom". I want to use xsl to this xml document to format it.
I am trying to do something like this:
<c:set var="aaa">
doc // doc is of type Document created by traversing the ResultSet.
<c:set>
<c:import url="/generic_stylesheet.xsl" var="xsl" />
<x:transform xml="${aaa}" xslt="${xsl}" />
</td></tr></table>
Helphi "user615720"
If you have questions about JDeveloper 11g TP, you might also want to try this forum :
"JDeveloper and OC4J 11g Technology Preview"
JDeveloper and OC4J 11g Technology Preview
(tip : You can use "Your Control Panel" to make your name visible in forum posts.)
regards
Jan Vervecken -
Error -5002 when adding linked user defined field using DI API
Hello,
When I try to add a linked user defined field using DI API I get the error number -5002 with description:
"The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values"
I Get the error when I use the Add method.
What is the solution for this problem? I use SBO 2005 A SP1 Patch 18
The code I use is (.NET C# 2.0):
SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
uf.Name = "S_BUCO";
uf.TableName = "OPOR";
uf.Type = SAPbobsCOM.BoFieldTypes.db_Memo;
uf.SubType = SAPbobsCOM.BoFldSubTypes.st_Link;
uf.LinkedTable = "S_BU";
uf.Description = "Description";
uf.Add()
Regards,
JeffreyHi Jeffrey,
Your code above does not match the settings you are using in the UI. In particular, the type and subtype you are setting in code are not correct.
To create the UDF via code, set the field types as follows:
SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
uf.Name = "S_BUCO";
uf.TableName = "OPOR";
uf.Type = SAPbobsCOM.BoFieldTypes.db_Alpha;
uf.EditSize = 8;
uf.LinkedTable = "S_BU";
uf.Description = "Description";
uf.Add()
There's no need to set the SubType property as you require a regular alphanumeric field.
Kind Regards,
Owen -
User defined field with Linked Table property
Hi All,
I know this has been posted several times but I cannot get this to work. I am trying to add a user defined field and link it to a table.
I am getting the error "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values "
Everything I check says that the code I am using is correct. Is it possible the problem is that I am trying to connect to an SAP table instead of a user defined table. Is it possible to link a user defined field to an SAP table?
My code below:
oUserFieldsMD.TableName = "OITM"
oUserFieldsMD.Name = "SHP"
oUserFieldsMD.Description = "Must ship via"
oUserFieldsMD.LinkedTable = "OSHP"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
oUserFieldsMD.EditSize = 8
oUserFieldsMD.Size = 8
oUserFieldsMD.Mandatory = SAPbobsCOM.BoYesNoEnum.tNO
Thanks
KarenHello Karen,
you cannot link a userfield to a system table. it has to be link to a user table.
oUserFieldsMD.LinkedTable = "OSHP"
when you have error, just try to do it using the same value in the application. If you cannot do it, it means you cannot do it neither with the DI
Sebastien -
Create User-defined field for Marketing Documents
I need to create a User-Defined field for Marketing Documents under Title and Rows.
I need to do it via .NET instead of manually go into SAP to create it.
Does anyone can give me idea on how to do this?Hi David,
There are examples of how to do this in the SDK samples (look for MetaDataOperations project in the DI samples).
There are also examples in the SDK help. Here's one:
Private Sub AddUserField()
'// The UserFieldsMD represents a meta-data object that allows you
'// to addremove fields from tables or change the fields' characteristics
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
'// In any meta-data operation there should be no other object "alive"
'// but the meta-data object, otherwise the operation will fail.
'// This restriction is intended to prevent a collisions.
'// The meta-data object needs to be initialized with a
'// regular UserFields object
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
'// When adding user tables or fields to the SAP Business One database
'// use a prefix identifying your partner name space
'// this will prevent collisions between the various partners add-ons
'// SAP's name space prefix is "BE_"
'// Set the Fields' mandatory properties
oUserFieldsMD.TableName = "OCRD" '// BP table
oUserFieldsMD.Name = "BE_UserField1"
oUserFieldsMD.Description = "A user field"
oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
oUserFieldsMD.EditSize = 20
'// Add the field to the table
oUserFieldsMD.Add
End Sub
Kind Regards,
Owen -
User defined field in marketing documents
Hi All,
How to add user defined field in marketing documents using Programtically.
Thanks,
P.Suresh Kumar.Private Sub AddUserField()
'// The UserFieldsMD represents a meta-data object that allows you
'// to add\remove fields from tables or change the fields' characteristics
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
'// In any meta-data operation there should be no other object "alive"
'// but the meta-data object, otherwise the operation will fail.
'// This restriction is intended to prevent a collisions.
'// The meta-data object needs to be initialized with a
'// regular UserFields object
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
'// When adding user tables or fields to the SAP Business One database
'// use a prefix identifying your partner name space
'// this will prevent collisions between the various partners add-ons
'// SAP's name space prefix is "BE_"
'// Set the Fields' mandatory properties
oUserFieldsMD.TableName = "OCRD" '// BP table
oUserFieldsMD.Name = "BE_UserField1"
oUserFieldsMD.Description = "A user field"
oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
oUserFieldsMD.EditSize = 20
'// Add the field to the table
oUserFieldsMD.Add
End Sub -
SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR
Hello!
I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
Using the Query below, it works fine with already saved records:
SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
However, I need that it work with non saved (yet) records.
Thank you!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 22, 2010 10:14 PMGordon, thank you for your fast answers!
In other circumstances I would agree with you.
But the U_Soma field must be used to control the maximum weight of a charge.
It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
(The U_TotalPorUM field shows the weight of each item).
I would appreciate any help!
Thanks a lot!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM -
Linking a User Defined Field in Items table
How to Link a User Defined Field in 'Item Master Data' table, to my own User Defined Table?
Example:
In Item Master Data table, I want to add 3 User Defined Fields, for e.g, Country, State and Region.
When the value of Country combo is changed, values loaded in State and Region combos should change automatically.
I'm storing the relationship between Country,State and Region in my own user defined table. I want to load the comboboxes with a query from that table.
Or, if there's no solution to the above problem:
when the Item Master data table is opened, can we launch our own form?
Is there a way to specify that?
Please reply me back.. I'm a beginner learning SAP.
With Thanks in advance,
Geetha
Key: Loading a user defined field through Query defined by us.Geetha,
You should search this forum on user defined fields as you will find many posts that may assist you with your question.
HTH,
Eddy -
Badi: for user defined fields in Budget Entry Document
HI,
I am implmenting BADI for user defined field in budget entry document definatin name 'FMBW_CUSTOMER' . I have created two fields in include 'CI_FMBH' and also created a sub screen and assign this subscreen to badi. I have called get data and put data methods in PBO and PAI. like this.
<b>
PBO
create object grid1.
CALL METHOD grid1->if_ex_fmbw_customer~get_data_from_screen
importing doc_header = doc_header.</b>
<b>PAI
CALL METHOD grid1->if_ex_fmbw_customer~put_data_to_screen
EXPORTING
doc_header = doc_header
processing_mode = 'CRE'.</b>
But the system is not saving these fields in database.
What could be the problem .Hi, did you have any advance on this issue?
Maybe you are looking for
-
Security error accessing url (Unable to load WSDL)
Hi folks. I have a Flex project that use a WCF webservice. In my localhost everything is allright, but I want to upload my flex project to a web host (http://www.dorj.ir) and upload my WCF webservice to a server that has a valid IP... After going to
-
Hi all, Can anyone help me in creating Z business object. I searched in the forum, But i didnot find any help. Thanks, Krishna.
-
Pack and unpack in ABAP objects
can anyone explain me how to pack or unpack a field inside a method which is inside a class.
-
I have a text frame selected and it contains a story having various pargraph styles applied. I want to get name of each paragraph style applied in it and replace each with some other styles. But when I am applying style only one style is applied to w
-
Macbook Aluminum to VGA Output
I have a Macbook Aluminum and I am trying to output that to my TV. I have bought the miniPort to VGA adapter and hooked it up to my LCD TV with a VGA input. When this happens, I am only able to see my desktop background and nothing else. It will not