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
Similar Messages
-
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 -
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 -
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?
-
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 -
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 -
User defined fields in Goods Issue and Goods Reciept
Hello,
I would like to know how to add user defined fields in the Goods Reciept and Goods Issue matrix. These two are not displayed under user defined fields management.
Thanks,
Edited by: Martin Kamau on Apr 15, 2009 5:34 PMMartin,
From within the SAP Business One user interface under Tools > Customization Tools > User-Defined Fields - Management, you need to add to the Marketing Documents > Tile and/or Rows, etc.
Eddy -
In Item Master Data ( General Tab) an Option is available as <b>Excisable</b>
Under neth Specified as Material Type :<b>1. Finished Goods
2. Capital Goods
3. Raw Materials</b> which are Predefined.
Now can we Have a provision as <b>Define New</b> in this Box.
If I would like to add with the Help of User Defined Field process will it be help ful can any body guide me.User Defined Fields can be managed by choosing User Defined Fields and Manage User Defined Fields from the Tools menu. I'm not sure about yours but on our system the UDFs we use are under the Marketing Documents tab.
Click Marketing Documents and Title. Make the Title row highlighted in yellow and click ADD. It is then up to you what you call your UDFs. Make sure they are in the correct format (Alphanumeric etc) -
Retreve current form value in user define field
Hi,
I got a questions, please help.
I want to retrieve values in current form, like the quantity and discount in Sales order, into a user define field with formatted search, is it possible?
Many Thanks!
PaddyThis is the Syntax of FOrmatted Search Query. This syntax will work only with SBO.
$[$38.11.0]
38 Represents the Matrix(Table) in a Marketing Document
11 Represents the Quantity Field in the Matrix
0 Represents the Number Format.
Place your Cursor on the Matrix and Press CTL + SHFT + D, you'll find the Column information in the Left side of the Status Bar -
User defined fields window / formatted search
HI
I 've created a user defined field in the marketing documents
I want tO put the result of a query into this field :
I use a formatted search in order to have the result :
SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[$4.0]
My query is based on CardCode(item 4), but when the user defined field window is open, the item 4 is the cross of this form and i have the result next :
SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = N'RSRCButtonCloseBox'
Thanks
SylvainHi,
It happened the same today for me, but using both, $[$4.0.0] and $[$4.1.0]... both of them return that RSRCButtonCloseBox....
So, what is wrong here?
Regards,
Leo -
Assign category of user defined field to different user
hi to all on forum,
please help me to find the solution of this query
i had created several UDF and set them in different category as setting is there for user defined field. now i am getting different different user defined field in different category ,
now i want to set this different category of user defined field to different user .can we do it in SAP B1
like category---- general , cat1, cat2,
user --- Ram , Vipul
i want to assign cat 1 to ram and and cat 2 to Vipul so that with the document ram will see only UDF of cat1 and Vipul will see UDF of Cat 2.
hope for response
with best regards
vikasVikas,
You can do it for each user by assigning a category
to each of user defined field by setting visible tick mark.
Tools>User Defined Fields>Settings
Jeyakanthan -
Hi, we have a user defined field in our item master data. It's for a link to a pdf on one of our servers. I can enter a URL into this field and when I double click it, the pdf loads. This is what we want. But I can't for the life of me figure out how to clear or change the value of the field. If I click the field it does nothing or if I double click it opens the document. If I right click one of the options is "Cancel" but I'm terrified of cancelling the entire item.
How do I manage the value of this field?
Thanks!Hi,
Its Data Transfer work bench.
Start --> Programs --> SAP Business one --> Data transfer work bench.
Check with your IT admin to have it installed if you dont have one.
Regards,
Rakesh N -
User Defined Fields greyed out for one user
Hi Experts,
One of our users is a Super User but on the Business Partner Master Data screen, the User Defined Fields are greyed out.
This is user specific as the issue is happening for the same user on 2 seperate PCs.
Other users can update these UDFs - any suggestions?
Thanks
GreigHi
take a look at this SAP Note :
Cannot access settings for the user defined fields
Symptom
Cannot access settings for the User Defined Field(UDF)
Other terms
UDF, user defined field, sbo-udf, settings for UDF are inactive, the settings for the udf are greyed out.
Reason and Prerequisites
Need to use the Settings option to order the udf.
In Tools -> User Defined fields -> Settings the option 'Settings' is greyed out and inactive.
Solution
If in Tools -> User Defined fields -> settings and this option is not available then return to the document and click anywhere in the main document window.
Now return to Tools -> User Defined fields -> settings and this option will now be active. -
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 -
User Defined Fields are read-only for a specific user
I have a user that has lost her ability to edit user defined fields. They are all grayed-out for all UDFs, all document types. Other users have access to these fields. I've even copied the authorizations from a user not experiencing the problem, but with no positive results. Anyone have any thoughts on this?
We are on SBO 8.8 PL 16Hi Randy......
This might be the Authorisation issue......
Please check properly whether you have given Full authorisation for Form Setting to such user or not and check by enabling it through Form Setting
Regards,
Rahul
Maybe you are looking for
-
Interesting Presence issue and changing the domain
I've got an interesting problem that I recently posted about in a different discussion forum. Basically I've got a presence setup. This is federated with an OCS. The OCS domain is something like company.com This is the same as the email domain, and t
-
Animated .gif has dither on bitmaps even if disabled
I'm trying to create an animated .gif from Flash Pro. I set from Publish window to export a animated .gif with Smooth, with a custom Palette made in Photoshop (because default palette settings generate an awful result...) and with Dither set to none.
-
Photoshop camera raw opening images in jumbled order
Hello, Im opening CR2 files into photoshop and this opens camera raw as planned. When I open a batch load of images, it opens them in a jumbled selection instead of in name order. I've named them "image 1, image 2, etc, etc". can somebody please help
-
Why is the Canadian flag missing from the selection of emoji?
i am disappointed tha the Canadian flag is not present on the national flag section of emoji
-
Adobe Ink pen software for Windows? Or just Mac?
I am in a pinch for time and knowledge, so I imagine someone can answer this quickly. I want the Adobe Ink/Slide hardware and software for my IPAD - I think it has great functionality. My second question is can I also use the Ink Stylus in the Windo