Add values to userfields problem

Hello all,
I use SBO 2004 and a try add values to fields in user table. I have a few questions:
- when I create table and fields I use UserTableMD and UserFieldMD. I create numeric fields with editable = 10. When I see on this table and this field in Enterprise Manager this field is int type. I don't know what's up.
oUserFieldsMD.TableName = "@wbank"
oUserFieldsMD.Name = "saldo"
oUserFieldsMD.Description = "Saldo konta"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Numeric
oUserFieldsMD.EditSize = 10
lRetCode = oUserFieldsMD.Add
        If lRetCode <> 0 Then
            oCompany.GetLastError(lErrCode, sErrMsg)
            MsgBox(sErrMsg)
        Else
            MsgBox("Field: '" & oUserFieldsMD.Name & "' was added successfuly to " & oUserFieldsMD.TableName & " Table")
        End If
- next when I try add value to field appear error:
Inwrite KontoStr is OK, but if I will inwrite saldo_poczatkowe appear error:      "The entered value does not match the specified field type."
saldo_poczatkowe is double type. On start I read editbox value, change "." to "," and cast it to double and inwrite in saldo_poczatkowe.
SaldoStr = SaldoKonta.Value
SaldoStr = CleanOutput(SaldoStr)
saldo_poczatkowe = Val(SaldoStr)
Try inwrite:
oUserTable.Code = 1
oUserTable.Name = "wyciag"
oUserTable.UserFields.Fields.Item("U_konto").Value = KontoStr
oUserTable.UserFields.Fields.Item("U_saldo").Value = saldo_poczatkowe I try inwrite values in all fields )            
oUserTable.UserFields.Fields.Item
            '// add the data to the Data base
            oUserTable.Add()
            '// Check for errors
            oCompany.GetLastError(lErrCode, sErrMsg)
            If lErrCode <> 0 Then
                MsgBox(sErrMsg)
            Else
                MsgBox("Record saved in DB successfuly")
            End If
            oUserTable = Nothing
            System.GC.Collect()
Mayby I do error in code? Thanks for help
Krzysztof Sala

Hi Krzysztof,
I mean when you add the field the to database
oUserFieldsMD.subType = SAPbobsCOM.BoFieldSubTypes....
BoFldSubTypes EnumerationDescription
Indicate special field types supported by the SAP Business One application. Use this enumeration when working with User Defined Fields.
Members
Member Description
st_None  No special sub-type.  0 
st_Address  Address format.  63 
st_Phone  Phone format.  35 
st_Time  Time format.  84 
st_Rate  Double format with the system's rate accuracy.  82 
st_Sum  Double format with the system's summery accuracy.  83 
st_Price  Double format with the system's price accuracy.  80 
st_Quantity  Double format with the system's quantity accuracy.  81 
st_Percentage  Double format with the system's percentage accuracy.  37 
st_Measurement  Double format with the system's measurement accuracy.  77 
st_Link  Link format (mostly used for a web site links).  66 
st_Image  Image format.  73 
regards
Ad

Similar Messages

  • Add Value to userfield of system table

    Hi.
    How can I Add Value to userfield of system table?
    Regards,
    Jose

    Jose,
    you have to use the official object for this.
    for example.
    when you want to add a value to a userfield in a document you use:
    oDoc.UserFields.Fields.Item("U_FIELD").Value
    the best is to look in the SDK help if the Table has an Object and a UserFields property.
    EDIT:
    or do you need something else ?
    lg David
    Edited by: David Nussböck on Jul 7, 2008 4:25 PM

  • Add value days (VALTG) causing invoice split

    Hello!
    I'm currently having a problem with field VALTG in sales order which is an invoice splitting criteria.
    Additional value days was added to a pricing condition in VK12, by mistake. This value has been removed.
    But created sales orders during this time now has this value in table VBKD and re-pricing of the orders does not remove the value. How can I fix this?
    Appreciate ASAP answers as our invoicing is put on hold.
    Best regards, Carina Karlsson

    Hii,
    Use the T-Code Mass
    Give the business object BUS2032  and Execute
    Select sales order business Item data MASSSDPOSVBKD
    Select the field (Add.value days (MASS) MASSSDPOSVBKD-VALTG) and execute
    now select the sales order range and give the value which u want to change
    Hope it will solve the problem.
    Regards
    Shambhu Sarkar
    Edited by: SHAMBHU SARKAR on Sep 7, 2011 1:52 PM

  • Value-added tax problem about free goods!

    Hi All,
    I've got a value-added tax problem.....
    Can anyone can come out with a solution.
    Here is the Business Scenario....
    One product company offen give some free goods to its customer company for test or probation. In pricing, the free goods have no income so that the value-added tax is zero, but by the law, the product company must pay the VAT(value-added tax) base on the cost of the free goods.
    How to implement this in SD R/3 Scenario...
    Can any one of you suggest me a solution for this plz..
    Regards,
    wang-yuzhen.

    Hi,
    You need to bring in a consition type "VPRS" in your pricing procedure. The VAT will be determined based on this condition type. VPRS is a statistical condition type. That means eventhough it appears with a value it will potentially not be displayed in your invoice. The invoice value will be 0 and there will be no account posting for this condition type

  • Is it possible to add value item and non stock item in one billing?

    Is it possible to add value item and non stock item in one billing?

    Hi,
    Yes,it is possible .Take example of service scenario,where material used in servicing and service charges(labour) can be billed in single invoice.
    Billing document type,Customer and other header data should be same.
    Reward points if useful
    Regards,
    Amrish Purohit

  • Add value field to existing/ productive operating concern

    Dear All,
    I need to create a new value field and add it to an existing operating concern, which is already in use (there is already transaction data in the live system).
    In my opinion I have to do the following steps:
    1. Create new value field (KEA6).
    2. Add value field to operating concern (KEA0).
    3. Activate operating concern (KEA0).
    4. Transport operating concern (KE3I).
    Is that strategy ok?
    Is it ok, to transport an operating concern, when the system is already "live" and there is transaction data in the system?
    Thanks for your answers,
    Regards,
    Michael

    Hi,
    first create new value field in KEA6. then take those new Value field in your operating concern Data Structure in t-code KEA0. Then generate the operating Concern.
    Regards,
    Sreekanth

  • How can I add values on a Drop Down by Index Webdynpro Element?

    Hi every body
    Can anybody help me?
    How can I add values on a Drop Down by Index Webdynpro Element?
    How can I invoque my element on the Implementation Webdynpro?

    Hi Jesus,
    You can add elements to your DDbyIndex like this:
    //Example: Popular un Dropdown by Index usando Nodos de contexto  
    // NODE[Card: 1..n, Sele:1..1]  Si es obligatorio;            ||    NODE[Card: 0..n, Sele:0..1]  Si no es obligatorio y se puede dejar en blanco
    //Assuming we created a node called "Source", with a string attribute called "Texto" binded to the dropdownbyindex
    for (int i = 1; i <= 101; i++)
         ISourceElement sourceElement = wdContext.createSourceElement();
           sourceElement.setTexto("Text number "+i);
           wdContext.nodeSource().addElement(sourceElement);
    Regards.
    Julio Herrera

  • How can I add values on a Drop Down by Index Webdynpro Element by a Model?

    How can I add values on a Drop Down by Index Webdynpro Element with a Model RFC?

    Hi Jesus,
    Please use the below code for DropDownByIndex Elements :-
    Suppose you have model node ABC and attribute xyz. Now you have created custom node CustNode and attribute CustAtt.
    ICustNodeElement  ele = null;
    if(wdContext.nodeABC().size > 0)
                  for(int i=0; i< CustNode< wdContext.nodeABC().size; i++
         ele = wdContext. createCustNode();
                          ele.setCustAtt(wdContext.nodeABC().getABCElementAt(i).getXYZ)
         wdContext.nodeCustNode.add(ele);
    Refer to http://help.sap.com/saphelp_nw70/helpdata/en/3b/f1754276e4c153e10000000a1550b0/frameset.htm
    Best Regards
    Arun Jaiswal

  • How to add value in service header

    Hi,
    Following is the portion of service header which I am sending to my Trading Partner-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ServiceHeader SYSTEM "ServiceHeaderPartMessageGuideline.dtd">
    <ServiceHeader>
    <ProcessControl>
    <ProcessIdentity>
    <GlobalProcessCode></GlobalProcessCode>
    <GlobalProcessIndicatorCode>3A4</GlobalProcessIndicatorCode>
    <initiatingPartner>
    I want to add value "Request Purchase Order" in tag "GlobalProcessCode". So this portion of service header should be like this-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ServiceHeader SYSTEM "ServiceHeaderPartMessageGuideline.dtd">
    <ServiceHeader>
    <ProcessControl>
    <ProcessIdentity>
    <GlobalProcessCode>Request Purchase Order</GlobalProcessCode>
    <GlobalProcessIndicatorCode>3A4</GlobalProcessIndicatorCode>
    <initiatingPartner>
    Can anyone tell that where exactly I should add "Request Purchase Order" value in my B2B configuration so that I get the required service header value?
    Thanks & Regards,
    Anuj Dwivedi

    Hi Anuj,
    Guess you are using RNIF 1.1.
    Please ensure to provide the collaboration code while creating collaboration.
    Regards,
    Dheeraj

  • On the Web Wiz Forum, id="gwProxy" ="" ="ifofjsCall==''jsCall;elsesetTimeout'jsCall',500;" id="jsProxy" ="" is added to every reply that I make. Safe mode cures it but how do I know which add-on is the problem?

    When I go to a reply window, sometimes it almost looks like there is a little window/box appears (with the 6 dots that allows the size to be changed) It appears to be the cause of the string/code?
    On the Web Wiz Forum, < id="gwProxy" ="">< ="ifofjsCall==''jsCall;elsesetTimeout'jsCall',500;" id="jsProxy" ="">
    to be added once the reply is posted, to every reply that I make. Safe mode cures it but how do I know which add-on is the problem? I have 25-30 add-ons.

    Disable all addons by going to Tools -> Addons and clicking the disable button in every entry under Extensions or Plugins panels.
    Restart Firefox.
    Confirm the problem isnt there.
    Enable each addon one by one by going to Tools -> Addons and clicking the enable button in every entry under Extensions or Plugins panels, in such a way that each time you enable ONE addon, you RESTART the browser and see if the problem STILL happens.
    AS SOON AS the problem happens, disable the last addon you enabled. That one is the culprit. You can now enable all the others, if needed.

  • Add values in Dropdown list

    Hi,
    My reqiurement is to add values in Dropdown list which is standard one. Already threre some values are there, like
    hourly,daily,wekly.
    Now I need to add montly value to the above dropdown list.How this can be done.
    Suggest me.
    Thanks,
    Brahmaji

    Hi,
    Expand the Attribute Period_type and double click on its GET_V method.
    You will find following code line :
    lr_ddlb->set_selection_table( me->job_wizard ).
    Double click on the Set_selection_table method to open the method code.
    You will find a LOOP.. ENDLOOP there. Here,to remove the values, comment out this LOOP- ENDLOOP.
    and  add following lines
             ls_ddlb-key   = 'Y'.
            ls_ddlb-value = 'Yearly'.
            APPEND ls_ddlb TO me->ddlb.
    Thats All .
    Hope it Helps.
    Regards,
    Suchita

  • External XML data files to add values to drop down lists

    I would like to have external XML data files to add values to drop down lists in my form.. But when i create a data connection it is working properly only in the Preview in Livecycle Designer.. but not in the PDF form(Adobe Reader). Moreover im not sure whether it will work in the form manager..!plzz help me!
    Raghava Kumar V.S.S.

    Hi,
    For the case of raghavakumar, Is it really that I need to have LiveCycle Reader Extensions? Is there any other way that could do the same?
    Thank you

  • How to add values to drop down list in adobe forms

    how to add values to drop down list in adobe forms

    Hi,
    If you are using WD Java following are steps of filling values in DD Box:
    1 Create a simple type in the Dictionary.
    2 Create an attribute "CountryNew" in the Context of type created by you.
    3 Write following code in the init method of the form:
    IWDAttributeInfo countryinfo =
                   wdContext.nodeEmployee().getNodeInfo().getAttribute("CountryNew");
    ISimpleTypeModifiable Country = countryinfo.getModifiableSimpleType();
    IModifiableSimpleValueSet countryValueSet =
                   Country.getSVServices().getModifiableSimpleValueSet();
    countryValueSet.put("IN", "INDIA");
    countryValueSet.put("US "USA");
    4 Add a Enumrated DD box in the form and bind it to the attribute "CountryNew"
    Hope this helps
    Amit

  • Error upgarde 4.2 plugin Add Value Selectlist

    Till the upgrade on 4.2 the plugin Add Value Selectlist issue the error below
    Please help me with that case
    Error in PLSQL code raised during plug-in processing.
    ORA-06550: Ligne 2, colonne 10737 : PLS-00302: Le composant 'C_APEX_VERSION' doit être déclaré ORA-06550: Ligne 2, colonne 10695 : PL/SQL: Item ignored ORA-06550: Ligne 2, colonne 14262 : PLS-00320: déclaration de type de cette expression est incomplète ou mal structurée ORA-06550: Ligne 2, colonne 14105 : PL/SQL: Statement ignored
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: WWV_FLOW_PLUGIN.RUN_PLSQL_ERR
    ora_sqlcode: -6550
    ora_sqlerrm: ORA-06550: Ligne 2, colonne 10737 : PLS-00302: Le composant 'C_APEX_VERSION' doit être déclaré ORA-06550: Ligne 2, colonne 10695 : PL/SQL: Item ignored ORA-06550: Ligne 2, colonne 14262 : PLS-00320: déclaration de type de cette expression est incomplète ou mal structurée ORA-06550: Ligne 2, colonne 14105 : PL/SQL: Statement ignored
    component.type: APEX_APPLICATION_PAGE_ITEMS
    component.id: 67877970602536501716
    component.name: P25_COMMICPT
    error_backtrace:
    ORA-06512: à "SYS.DBMS_SYS_SQL", ligne 1926
    ORA-06512: à "SYS.WWV_DBMS_SQL", ligne 973
    ORA-06512: à "SYS.WWV_DBMS_SQL", ligne 999
    ORA-06512: à "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", ligne 806
    ORA-06512: à "APEX_040200.WWV_FLOW_PLUGIN", ligne 1025

    Could you please send an email to [email protected] with your workspace / application / plug-in information.
    Also include an attachment with the plug-in you are trying to implement.
    Regards,
    David

  • Report Manager: Security Workbench missing Add Value Sets

    Hi:
    R12.1.3
    When I navigate Report Manager Super User -> Security Workbench, I do not see the Add Value Sets button or link.
    Can someone tell me why I'm missing this?
    Thanks.

    user11987733 wrote:
    Hi. Thanks for your response. I did see that note, but it applies to 11i, not R12. I could not find that profile option in R12.Search for "FRM: User To Value Owner Access". If the profile option is not visible/updatable, please go Application Developer responsibility > Profile, query the profile option and make it Visible/Updatable.
    Thanks,
    Hussein

Maybe you are looking for