UDF value addition at runtime

Hello Experts,
As there are lots of UDFs are being used in the system. But problem we are facing is that whenever request comes to add a new value in UDF. I need to shutdown the system rather close all the screens and all the users are required to stop working.
Is there any way that we can add value without interupting the users.
Thanks

Hi Muhammad,
If I understand you correctly, you are trying to add new UDF to B1, right?
It is very important to ensure nobody else in the system. Because you are making change to your database, not just add a value like normal data entry.
You can ignore the warning to add or edit UDF even with someone else logged in.  However, that should be avoid since you are taking chance to be lucky that those user are not lock up any tables.
It is not convient for you. But those restriction will ensure your database integrity.
My recommendation is: plan ahead for UDF, add them in a batch and restrict adding UDF only when there is no other choice
Thanks,
Gordon

Similar Messages

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

  • 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,
    Chetan

    Hi 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,
    Luce

    Hi 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

  • 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 Dias

    Hi 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

  • Value additions in pp module

    Hi, pls mention some of the examples for value additions that can be proposed in pp module? also mention if that value additions are the functionlities of the pp module, then can we call them as value additions? pls clarify.

    closed as no response recieved

  • UDF Value not showing in SQL

    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,
    Ravi

    Hi 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

  • 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.
    Thanks

    Hi,
    You need an FMS query to copy the value.  UDF value will not be automatically copied for JE.
    Thanks,
    Gordon

  • 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.
    swap

    Hi 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

  • Pass values to formulas runtime using cr4e

    I need urgently to find a way for passing a value to formula runtime using cr 4 eclipse.
    Hope this is implemented in some way.

    <p>You should be able to use the FormulaField&#39;s setText() method to pass a formula (which evaluates to some value) at runtime.  Take a look at the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_api_doc/doc/jrcsdk_java_apiRef/index.html" target="_blank">JRC API Reference</a> on the DevLibrary for details.</p><p>-MJ</p>

  • Error 5398 Duplicate value addition in attribute ...

    I'm seeing the following error messages in my error log and am not sure what to do about it since the reference guide does not list it. Solaris 8, DS 5.2.
    ERROR<5398> - Entry - conn=-1 op=-1 msgId=-1 - Duplicate value addition in attribute "objectClass" of entry "ou=Configs, o=Contivity, o=vpn"
    ERROR<5398> - Entry - conn=-1 op=-1 msgId=-1 - Duplicate value addition in attribute "objectClass" of entry "cn=14649, ou=Configs, o=Contivity, o=vpn"
    Here are some historical events that may help shed light on things:
    The errors are occuring on Searay. I have another LDAP server called Mantaray. Here is some historical data that ay help shed light on the matter:
    I wanted the DNS domain the LDAP was using changed on Searay so I configured searay:o=vpn for Master replication and created o=vpn on Mantaray and configured it as a consumer.
    After the suffix was replicated I broke the replication and unconfigured Searay and then configured it. I then did the reverse and made Mantaray:o=vpn the master and Searay:o=vpn the consumer. I then broke the replication again and tried to get Multi-Master replication to work between the two servers. It took a few tries before things seemed to start working right.

    This thread (http://swforum.sun.com/jive/thread.jspa?forumID=13&threadID=21473) seems similar but I cannot find where the nsslapd-rererral that kunal mehta mentions is located.
    I did look at the des.ldif for each server and both looked okay.

  • Getting value type at runtime

    Hello everyone,
    I am using Scanner to get tokens from a buffer. I need to know the type (class) of the value returned. Instead of using "if" statement and hasNext?() for each possible type, is there a method that just return the type. Something like:
    Class c = get(String s);So, if s is "Address", c would be set to String.class. If s is "true", c would be set to Boolean.class... etc
    Thank you

    Yeh, I just saw your other post:
    http://forum.java.sun.com/thread.jspa?threadID=783200
    The two topics are different but related. The topic, you refer to, are taking about getting a value. In that topic I need a method like:
    Object o = String.toObject (String s, Class c);However, the topic "Getting value type at runtime" are taking about getting a type. In this topic I need a method like:
    Class c = string.getClass();to return the type this string represents.

  • SOA 11g value addition to business

    Can any provide any document/presentation, which presents all the value additions to client bsuiness if it migrates from SOA 10g to 11g?
    Regards
    pidi

    Lots of reasons to mention, like -
    1. Complete suite running over weblogic server
    2. Both Oracle Service Bus and SOA can share the same domain
    3. Integrated SCA-based designer which enables easy and faster development
    etc etc etc.....
    You may like to contact your local Oracle sales representative to know more. Few links which you may like to visit -
    http://www.oracle.com/us/technologies/soa/soa-suite-066466.html
    http://www.oracle.com/us/technologies/soa/index.html
    http://download.oracle.com/docs/cd/E14571_01/relnotes.1111/e10132/toc.htm
    Regards,
    Anuj

  • 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?
    thx

    You 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

  • Bad SQL for filter expression

    Using Kodo JDO 2.5.3, I am attempting to do queries of the following form: select * from dschannel as c where not exists (select pk from channelsegment as s where c.pk = s.channel and c.supporting = ? and (s.validForEnd > ? or s.validForStart < ?));

  • Weird sort order for tracks / songs on walkman

    hi all just browsing through the various ways of viewing songs on the walkman app (i.e. by artist, album & song) and I've realised that some tracks are not sorting correctly. I know that would suggest a problem with their tagging but I don't think it

  • Problems with uploading instructor photo to course manager

    Does not work in Windows XP with Safari 5.1.7, can not upload instructor photo (300 x 300 or any other size).  No errors, just does "Uploading Photo" and never completes. Please advise.

  • Portal Development Issues

    Okay, this is a BIG general question for ANYONE out there... We are developing an Internet application (note - Internet, not intranet) that allows customers associated with clients of ours to sign up for services that we resell. We currently have a p

  • Retrieve general description/ contents in business event dates

    Hi all, May I know what function can I use to get general description, business event contents, notes, web link and etc in business event and business event dates? I would like to show this in my report. Thanks & regards, LOI