Problem Occurs when CFL is added with User defined field
form-672-BOM
item-3-datagrid
U_EmpNo - user defined field column
if i will give following codes under form load event will CFL bound with U_EmpNo
or else plz suggest me with write codes
oForm = SBO_Application.Forms.Item("672")
oItem = oForm.Items.Item("3")
oClmn = oItem.Specific
oClmns = oClmn.Item("U_EmpNo")
oClmns.DataSources.UserDataSources.Add("U_EmpNo", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
MessageBox.Show("Did")
AddChooseFromList()
oClmns.DataBind.SetBound(True, "", "U_EmpNo")
oClmns.ChooseFromListUID = "CFL1"
oClmns.ChooseFromListAlias = "CardCode"
hi
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 -
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 -
Formatted Search with user defined fields??
Hai everyone,
I know how to use the search.. I did like this...
SELECT U_Discount FROM OITM WHERE ItemCode = $[$38.1.0]
But now i want to know the other way...ie.
SELECT U_TVal FROM OITM WHERE U_Tcode='??????'
the where condition is to be like this -I have 2 user defined fields
1. U_TCode
2. U_TVal
I want to select the U_TVal where the U_Tcode= ????
HOW TO SPECIFY THE USER DEFINED FIELD HERE like this one $ $38.1.0 ....or is there any other method??
Thanks
VibinIts Same..I didnt try your way but i tried this
select oNHand from OITW where ItemCode=$[RDR1.ItemCode]
Here in sales order- when an item selected the Stock in different warehouse will be listed in quantity...
Try that
$[Tablename.FieldName] -
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 -
AIST0002-User Exit - Validation of user defined field
I have implemented the enhancement aist0002. I added a user defined field in a user defined subcreen and added it to the leasing tabstrip. I would like to validate this field against a another field in sap's leasing subscreen. In the pai of the user defined subsrceen the field of the other subscreen does not get filled. Is there a way to access the field of the other subscreen on the leasing tabstrip from the pai module of the user defined subscreen?
Thank you
TomThank you for your response but I am not sure where the import occurs?
This is the pai of the user subscreen 9000 for AS01.
form edit_input .
data: itab type lfza.
if anlu-zzempfk is not initial.
select * from lfza into itab
where empfk = anlu-zzempfk and
lifnr = anla-leafi.
endselect.
if sy-subrc <> 0.
set cursor field 'ANLU-ZZEMPFK'.
message e007(zvalid).
endif.
endif.
endform.
Function exit EXIT_SAPLAIST_002 include zxaisu03
looks like this:
anlu = i_anlu.
anla = i_anla.
Data gets moved to anlu or anla if it was already built. They are empty when it is a create transaction(as01).
Function exit exit_saplaist_003. include zxaisu04
looks like this:
e_anlu = anlu.
After the subscreen is processed it exports the data to global variable.
The problem is the pai module for the user subscreen 9000, the field anla-leafi is not filled. This field is located in sap's subsceen 1403. It has data in the screen field. My assumption is that it would be accessible as global data that could be used by my user defined subscreen once I began the validation in the pai of subscreen 9000.
Could you provide more insight on how I would access the field from the other subscreen? -
Hi All,
I have one issue with the User-Defined Fields window of the ACTIVITY form.
I had added some user defined fields (UDF) to the Activities so that the User-Defined Fields are displaying in a separate window just near to the Activity window with Type (-651). All the UDFs are bound to the table, "OCLG".
I want to initialize the values in the User defined fields controls with a text when the form is loading.
I had tried to do this using
oForm.Datasources.DBDatasources.Item("OCLG").SetValue("U_CUST",0,"MyValue");When I executed this statement, i am getting HResult error.
Then I tried this by using UserDataSources.
The same error repeats.
But the code with .Specific.String = NewVal is working fine.
Can you please explain the scenarios that we are able to do it using .Specifc.String. Is this a true method for doing this?
if not
please tell me How can we do this using Datasources (DBDatasources/ UserDataSources),?
Please Help.
Thank you in Advance
AnoopAnoop,
when you have created UDF in master item data, the textbox you can see on left side of form (separate form) is bounded already to this field. You cannot rebound it (its system form).
When you want to change the value, you must use specific.string or specific.value for that textbox (as you wrote), but the calcualted value will be stored into master table (change of udf will set formmode to update mode). If you dont need to update formmode, set the formmode by code to normal mode.
hope it helps
Petr -
User Defined field and User defined values.
Curently testing this in the demo database before rolling it out to a customer.
I added a user defined field to my item master data base called Lengthcm of type Amount.
I have created a query:
SELECT u_lengthcm = CASE
WHEN $[oitm.blen1unit] = 5 THEN $[oitm.blength1] * 2.54
WHEN $[oitm.blen1unit] = 6 THEN $[oitm.blength1] * 2.54 * 12
ELSE 0 END
Length unit 5 is inches and length unit 6 is feet.
In Item Maintenance then I create a user defined value for the lengthcm field linked to the query and set to auto-update when the blength1 field changes.
This works perfectly for 1 inch through 9 inches (1" through 9") and fills in the centimeter value. When I put in a value in feet (1', 2'), it does nothing and if I put in any value of 10" or greater gives an error message:
[Microsoft][SQL Server Native Client 10.0][SQL Server] Arithmetic overflow error
converting nvarchar to data type numeric. 'Received Alerts' (OAIB).
Checking database structure back end, blen1unit is of type small int, blength1 is numeric of size 19, 6 and so is my lengthcm field.
Edited by: Danielle Ostach on Mar 18, 2011 8:18 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:19 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:20 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM
Edited by: Danielle Ostach on Mar 18, 2011 8:21 PMHi Danielle ,
Try this...
SELECT u_lengthcm = CASE
WHEN $[oitm.blen1unit] = 5 THEN (cast(($[oitm.blen1unit]) as decimal(19,6))) * 2.54
WHEN $[oitm.blen1unit] = 6 THEN (cast(($[oitm.blen1unit]) as decimal(19,6))) * 2.54 * 12
ELSE 0 END
Regards,
Sachin -
Match codes and user defined fields
Hi all,
I would like to display match codes associated with user defined fields in tcode CJ20N. How do I do that:?
regards,
MatHi Ravi,
I think I'm using the wrong terminology here...my apologies. Let me clarify. I will build a ztable that contains the field key from the screen and the values I want displayed in my drop down list. My search help will be linked to this table with an import parameter of field key. When the user chooses to view selectable values the search help will use the field key to filter the values in the ztable and display only those selectable values that match the field key. Does that sound correct?
Mat -
User defined fields in XL Reporter
Hi
I'm using SAP Business One 2007B PL:4,
I cant able to enable User defined fields in XL-Reporter. How to enable this.
Kindly help me in this.
Awaiting for your response.
Thanking You
Best Regards,
Gayathri.PCheck this SAP Note: 976218 Upgrading XL Reporter with user defined fields exposed
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E¬e_numm=976218] -
Hi,
Std SAP provides the following user-defined fields for WBS.
4 numeric fields
4 general fields
2 date fields
2 check boxes
We would like to use as many as 20 numeric user-defined fields for wbs.
Is there a way to do this?
Thanks in advance.
Manoharhi,
It is not possible with user defined fields. You can achieve this using SPRO menu path Project System ->Structures->Work Breakdown Structure->Enhancement for Project Definition WBS lements -> Create customer specific fields in WBS.
You have to use enhancement CNEX0007 to create the required fields.
You will, ofcourse, need the help of an ABAPer to do this.
Muraleedharan.R -
Hi,
My client has added an user define field in SO line level. Now, i want use the BAPI to create the sale order. How can i map the value to this user defined field??
Regards,
KitVALUEPART2,VALUEPART3 and VALUEPART4 are also to be used for populating data in the custom fields.
Lets say you have added a structure to MARA called STR1 which has 3 fields, 10 char each. You also need to create STR1X which has 1 character flags for the fields in STR1.
To populate values in these fields u need to maintain the extension tables as below:
BAPIPAREX-STRUCTURE = 'STR1'.
BAPIPAREX-VALUEPART1+0(10) = '1st FLD'.
BAPIPAREX-VALUEPART1+10(10) = '2nd FLD'.
BAPIPAREX-VALUEPART1+20(10) = '3rd FLD'.
APPEND BAPIPAREX.
BAPIPAREXX-STRUCTURE = 'STR1X'.
BAPIPAREXX-VALUEPART1+0(1) = 'X'.
BAPIPAREXX-VALUEPART1+1(1) = 'X'.
BAPIPAREXX-VALUEPART1+2(1) = 'X'.
APPEND BAPIPAREXX.
If you have more than 60 fields you could split the fields in to multiple strucutres and populate the extensions for each structure.
-Kiran
*Please reward useful answers -
Problem occurring when opening and saving files in AI SC5 with Windows 7
Hi, I ‘am a Graphic Designer and first time working in UAE Windows 7 is basically the only OS here. My PC is:
HP Elite 7000
Intel® Core™ i5 CPU 2.67GHz
4GB RAM
32-bit
Now to the problem, not that knowledgeable in IT stuff so here goes:
1. Problem occurring when opening and saving files in AI SC5 with Windows 7. (You will actually see a “Not Responding” word coming out while opening and saving files, whether small or large files)
2. Locked layers occasionally are moved accidentally.(Working on multiple layers is normal so we need to lock it specially the once on top. But there are times I still manage to select locked layers)
3. After typing and locking the text, pressing “V” for the arrow key shortcut is still added to the text that is locked. (After typing I lock the text layer with my mouse and Press “V” to activate the arrow key… yes the arrow key is activated but the text is still typing the actual keyboard pressed)
I’ve only use the brand new PC and installer for a month now. Not sure if this is compatibility issues or something else I’m not aware of.
Thanks in advance to people that will reply.
Cheers!!!Well I’m still wondering if it is compatibility issues because I’m also having problem with Photoshop CS5. These 3 are all bought at the same time (PC, Illustrator and Photoshop installers). The problem I’m having in Photoshop is not that too important, every time I Ctrl+O to view files, all PSD are shown in white paper like icons, no preview, and saving as well.
Or I just purchased a corrupted or pirated installers… Adobe updates are done every time I’m prompted. -
After Effects Warning: A problem occurred when processing OpenGL commands
Hi There Fellow Adobe After Effects Users.
Please could some one help assist me with the following error i am getting.
I bought a template and needed to do a logo animation reveal. It was done using After Effects CC for PC.
AE had to then convert it to Mac which did so successfully. I was able to modify, add my logo and render out.
The following day i opened the file again and it gave me the follwoing error:
"After Effects Warning: A problem occurred when processing OpenGL commands"
What is confusing to me is that this issue would normally appear if my graphics cards did not support OpenGL, and it would not have opened in the first place if it was not supported.
My graphics card is a - ATI Radeon HD 5770 1024 MB - running Mavericks OS. So i know that this card does support GPU acceleration.
Please could someone point me in a direction that will fix this.
Thank you so muchThank you for the update Mylenium.
If I look at my display info, the card says OpenGL engine. Does this mean anything?
If it's not supported, then what's the point in purchasing a Mac If you cannot use AE's full capacity. Mac doesn't put Nvidia cards in there machines and on the Adobe website, ATI cards ate not listed; but in the same breath it says that most ATI cards that have come out in the past 5 years are supported. Surely Adobe and their technicians must have spoken with Mac technitions.
I am considering to buy the new Mac Pro; but am definitely going to change my mind if I cannot use AE's full compatibility. I don't see why spend so much cash if the cards aren't great.
Please could you then tell me what functions to switch off in the project file. I'll get the guy whom I bought the template from to switch of those functions.
Thank you.
Have a great day -
After Effect warning: A problem occurred when processing OpenGL commands
I have After Effects CS6 in a computer where also CS5.5 is installed. 64bit windows 7 Ultimate 20GB memory and two AMD Radeon HD 6900 Series Display adapters with drivers updated an hour ago (Driver date 27.7.2012, version 8.982.0.0).
When trying to use After Ecffects, I get error message "After Effect warning: A problem occurred when processing OpenGL commands" immediately when clicking Composition window.
What could be done?Not much, I'm afraid. You probably need an older graphics driver. Other than that you could always disable the second card or play with the configuration. Unfortunately some not so smart person decided that CS6 would no longer need manual OpenGL control for the user, so there's no way to suppress it from within the program to force-revert to software-only modes in case of such issues...
Mylenium
Maybe you are looking for
-
Itunes 7 has messed up my video ipod 30GB
I am getting the error "itunes has detected an ipod that appears to be corrupted" I have tried everything: Reset, restore to factory settings,upgrade ipod to 1.2.1, now it's going to a loop of Do not disconnect, but the ipod still gets unrecognised a
-
Is it okay to closed the lid after using Macbook Pro even the it is hot?
Hi. I'm using MBP early 2011 I5 and I noticed the temperature getting high and palm rest is getting hot/warm when I'm playing games. Is this normal? temperature around 80 degree celsius accoringding to istat. Also, after using the MBP, ofcourse the p
-
Hi All I am using CL_SALV_GRID class to cretae ALV. Column size limit in this alv is 128. my daya data is of size 255 chars. Can we concatenate 2 columns of 128-128 length each in ALV display with single column header. Please suggest. Thanks and Rega
-
Can't get MEJB with J2EE1.4 Ref Impl
Hello, I'm trying to obtain the Management EJB with the J2EE 1.4 Reference Implementation but I am receiving a ClassCastException. Is this not implemented to JSR 77 spec yet? Here is my code snippet: String MEJB = "ejb/mgmt/MEJB"; ManagementHome mana
-
Greetings to all, I'm getting familiar with the demo and I find it the tool I need. I would to know if possible customize the dimension of video windows imported in the lateral bar. Thank in advance to all for any suggest.