Adding DVM values at run time

Hi,
I am trying to adding domain values to DVM at run time,
it is getting added to DVM at that movement ,bt
when i redeploy the service I am not able to see the changes.
so help required regarding this

Hello
That is the solution to his problem, by the sounds of it when he redploys his code he gets the old values (the one in his code) if he migrates it to the MDS when he redeploys it won't change. This will seperate his deployment from run time configuration values which is a good idea.
Best Regards Tristan

Similar Messages

  • Adding new rows at run time in alv oops

    HI ALL,
    I have a created an editable alv report in oops. Now i have to add a new row having similar values as the previous row at run time when a custom button is clicked in the output and after entering some values in the new row and pressing the database must be updated and also the internal table at run time itself.
    for example let us suppose i have the following row in the alv output.
    MATNR                          DESCRIPTION                             NAME                             DATE
    001                                 TEST                                        MATRIKS                      10092001
    NOW if we click the custom button added on the alv toolbar, it should a new row at the run time similar to previous row as shown below
    MATNR                          DESCRIPTION                             NAME                             DATE
    001                                 TEST                                        MATRIKS                      10092001
    001                                 TEST                                        MATRIKS                      10092001 -> NEW ROW.
    can we do it in alv oops? pls let me know the soln or any helpful links
    thanks
    john

    Hi John,
       I dont think, you can find any method for that,
    one way what I can suggest is
    Get the selected row index.
    Insert the blank row in your internal table at this index
    Refresh the container.
    Hope  this will help.
    Thanks,
    Anmol.

  • Adding a button at run time

    I know that you can add components at run time (I've done it with a tree for instance) but how do you link a run time added component with an action handler?
    For example, when you use the designer, you just double click on a button to get an action handler built that automatically gets called when the application is deployed and that button is clicked. Well, when you add a button at run time, you have no way of doing this.
    Just how do you link a dynamic button to an action handler then?
    Thanks

    Hi,
    I generate a table at runtime and also bind it to a dataprovider at runtime and display the records in a table. It works find and I have no problem with that.
    I am trying to add a new column with the button in them, i generate the buttons at runtime. Even this works fine. Along with the data in the table i have the last column with all buttons.
    I am having problem binding the method to the button at runtime. My code is something like this...
         for (int i = 0; i <= numOfCols ; i++) {
              //add the delete button as the first column
              if( i == 0 ){
              TableColumn column = new TableColumn();
              column.setHeaderText("Delete");
              Button st = new Button();
              st.setText("Del");
              st.setId("del");
              MethodBinding mb = (MethodBinding) context.getApplication().createMethodBinding("#{Page.delete_action}", null);
              st.setAction(mb);
              column.getChildren().add(st);
              getTableRowGroup1().getChildren().add(column);
              } else{
              TableColumn column = new TableColumn();
              column.setHeaderText(rsm.getColumnLabel(i));
              log("rsm.getColumnLabel("+i+"): "+rsm.getColumnLabel(i));
              column.setNoWrap(true);
              column.setSort(rsm.getColumnName(i));
              ValueBinding vb = app.createValueBinding("#{currentRow.value['" + rsm.getColumnName(i) + "']}");
              StaticText st = new StaticText();
              st.setValueBinding("text", vb);
              column.getChildren().add(st);
              getTableRowGroup1().getChildren().add(column);
    public String delete_action() {
    log("Inside delete_action().");
    return null;
    The method delete_action() is not called at all.
    It would be appreciated if someone could help me with this problem of mine.
    Thanks,
    Adi.

  • No value at run time

    hi friends
    I have created zattribute for business object and i have delegated. when i debug the zattribute(ZSUBTYPE) its getting the value.Am using the zsubtype in my mail step to get the subtype.. But at run time am not getting any value in zsubtype but business object(EMPLOYEET) is getting filled Only my zsubtype attribute is not getting filled . I found this from the log. .
    Regards
    vijay

    hi Arghadip
    I have created my custome virtual attribute namely zsubtype without any database refernce or object type. Inside the attribute i have written a code calculate the subtype of the applicant
    My logic is
    From these ptreq_header,ptreq_items,ptreq_attabsdata tables am calculating am getting the subtype of the leave and passing this as input to the function module which gives the output has text of the subtype. setting this text my container element. The statement is
    SWC_SET_ELEMENT CONTAINER 'TEXT' ITAB-TEXT.
    OBJECT-ZSUBTYPE  = ITAB-TEXT.
    SWC_SET_ELEMENT CONTAINER 'ZSUBTYPE' OBJECT-ZSUBTYPE.
    when i hard code the request id and pernr and debug its working fine. My text is filling the object-zsubtype. But at run time its not filling.
    am using zsubtype in my mail step only to get the subtype text. All the attribute at runtime its fills only my zsubtype attribute is not filling. I found it from log.
    What is the way to solve this
    Regards
    vijay

  • Pass value at run time from one structure to diffrent structure

    hi  experts.
    i  m  workin on  crm domain  and faching problem to pass value  from one stucture to another . problem is that i want the output in xml file so i need all the values interm  of segment.
    initialy  i have  this structure.
    DATA: BEGIN OF struc1 occurs 0,
           ST_ORDERADM_H TYPE CRMT_ORDERADM_H_WRKT,
           ST_PRICING    TYPE CRMT_PRICING_WRKT,
           ST_ORGMAN     TYPE CRMT_ORGMAN_WRKT,
           ST_PARTNER    TYPE CRMT_PARTNER_EXTERNAL_WRKT,
          END OF struc1.
    and using fm CALL FUNCTION 'CRM_ORDER_READ' i got values  on this structure at run time.
    MOVE LT_ORDERADM_H  to STRUC1-ST_ORDERADM_H.
    MOVE LT_ORGMAN      to STRUC1-ST_ORGMAN.
    MOVE LT_PARTNER     to STRUC1-ST_PARTNER.
    MOVE LT_PRICING     to STRUC1-ST_PRICING.
    and after that using
    try.
      CALL TRANSFORMATION id
        SOURCE data_node = STRUC1
        RESULT XML xmlstring.
        CATCH cx_st_error.
    endtry.
    CLEAR:   tab_xstring,
             lv_filename,
             lv_path,
             lv_fullpath,
             lv_user_action.
    REFRESH: tab_xstring.
    lv_bytes = XSTRLEN( xmlstring ).
    IF lv_bytes > 0.
      lv_xstring = xmlstring.
      DO.
        APPEND lv_xstring TO tab_xstring.
        lv_xcnt = XSTRLEN( lv_xstring ).
        IF lv_xcnt > xsize.
          lv_xstring = lv_xstring+xsize.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    now it  convert to xml file .
    problem is  it gives  me value of all field associated with  standared structure.
    but  client requirment is that  he want only selected values of given structure.
    so i think i make  a new structure for given value  but  i m not able  to get values in new structure.
    thanks

    Hi,
    create a structure in se11 with following fields
    ST_ORDERADM_H.
    ST_ORGMAN.
    ST_PARTNER.
    ST_PRICING.
    for example as STRUCT2.
    data : begin of i_struct2 occurs 0.
       include structure struct2.
    data : end of i_struct2.
    MOVE LT_ORDERADM_H to i_STRUCt2-ST_ORDERADM_H.
    MOVE LT_ORGMAN to i_STRUCt2-ST_ORGMAN.
    MOVE LT_PARTNER to i_STRUCt2-ST_PARTNER.
    MOVE LT_PRICING to i_STRUCt2_PRICING.
    then
    try.
    CALL TRANSFORMATION id
    SOURCE data_node = i_STRUCt2
    RESULT XML xmlstring.
    CATCH cx_st_error.
    endtry.

  • Variable to hold the value at run time

    Dear Friends,
         I have a requirement in customer ageing report to select a particluar record from the cube based on the record selected by the query. Is there any option for holding a value of the dimension selected by the query in to a variable at run time. kindly let me know if am not clear.
    Thanks
    Prem

    you want to :
    Exeute a query - this will select a particular record and this is to be used to select another reord from a cube. I assume that the seletion from the cube will also happen through a query - then try using a prequery - have a variable on the query on the cube which is filled using replacement path from the previous query..?

  • ORA-06502: PL/SQL: numeric or value error(Run Time Error)

    Hi,
    Intially the table structure goes something like this.
    CREATE TABLE CLARITY_RESPONSE_LOG
      REQUEST_CODE   NUMBER,
      RESPONSE_FILE  BLOB,
      DATE_CRATED    DATE                           NOT NULL,
      CREATED_BY     NUMBER                         NOT NULL,
      UPDATED_BY     NUMBER                         DEFAULT 1,
    )The content of the RESPONSE_FILE column which is a BLOB data type has some XML content(XML file).
    The compiled proc which uses the above table is as follows.
    CREATE OR REPLACE PROCEDURE "MWF_ONLINE_RESPONSE_XML"
    AS
       v_file            UTL_FILE.FILE_TYPE;
       v_text            VARCHAR2 (20);
       v_filename        VARCHAR2 (200);
       v_delimitedchar   CHAR (1);
    ----log
      v_process_name  VARCHAR2(100) := 'MWF_ONLINE_RESPONSE_XML';
      v_sqlerrorcd          VARCHAR2(10);
      v_sqlerrormsg         VARCHAR2(255);
      v_seq_auto_email_job  NUMBER;
      v_cnt                 NUMBER := 0;
      v_user_name    VARCHAR2(30);
    BEGIN
      --- for log use
      SELECT sys_context('USERENV','OS_USER') INTO  v_user_name  FROM dual;
      INSERT INTO PROCESS_ERROR_LOG
                 (seq_num,
                  process_name,
                  status,
                  process_date,
                  user_name)
      VALUES     (seq_dataxprocesslog.NEXTVAL,
                  v_process_name,
                  'STA',
                  SYSDATE,
                  v_user_name);
       v_delimitedchar := CHR (124);
       v_filename := 'online_response_xml.txt';
       v_file := UTL_FILE.FOPEN ('MWF_DATA_EXTRACTS', v_filename, 'W');
       UTL_FILE.PUT_LINE
         (v_file,
           'online_response_xml'
       FOR online_response IN
          (SELECT XMLTYPE (response_file, NLS_CHARSET_ID ('char_cs')).getclobval () AS Online_Respone_xml
          FROM CLARITY_RESPONSE_LOG
          WHERE TRUNC(date_crated ) = TRUNC(SYSDATE-1)
          LOOP
          UTL_FILE.PUT_LINE (v_file, online_response.Online_Respone_xml);
        v_cnt := v_cnt + 1;
      END LOOP;
      UTL_FILE.FCLOSE(v_file);
      INSERT INTO PROCESS_ERROR_LOG
                 (seq_num,
                  process_name,
                  status,
                  process_date,
                  cnt,
                  user_name)
      VALUES     (seq_dataxprocesslog.NEXTVAL,
                  v_process_name,
                  'COM',
                  SYSDATE,
                  v_cnt,
                  v_user_name);
      COMMIT;
    EXCEPTION
      WHEN OTHERS THEN
        v_sqlerrorcd := SQLCODE;
        v_sqlerrormsg := SUBSTR(SQLERRM,1,255);
        INSERT INTO PROCESS_ERROR_LOG
                   (seq_num,
                    process_name,
                    status,
                    process_date,
                    error_msg,
                    error_id,
                    user_name)
        VALUES     (seq_dataxprocesslog.NEXTVAL,
                    v_process_name,
                    'ERR',
                    SYSDATE,
                    v_sqlerrormsg,
                    v_sqlerrorcd,
                    v_user_name);
        COMMIT;
    END;The above code has been compiled without any compilation errors but at run time I am getting the error:
    ORA-06502: PL/SQL: numeric or value error.
    Is it because of below statement in the above proc:
    SELECT XMLTYPE (response_file, NLS_CHARSET_ID ('char_cs')).getclobval () AS Online_Respone_xml
          FROM CLARITY_RESPONSE_LOG
          WHERE TRUNC(date_crated ) = TRUNC(SYSDATE-1)Please advice

    vine wrote:
    Is it because of below statement in the above proc:
    SELECT XMLTYPE (response_file, NLS_CHARSET_ID ('char_cs')).getclobval () AS Online_Respone_xml
    FROM CLARITY_RESPONSE_LOG
    WHERE TRUNC(date_crated ) = TRUNC(SYSDATE-1)Please adviceto see where the line code that gets the error try using dbms_output.put_line() and before you run your procedure use the SQL*Plus command set serveroutput on. see this example below using the dbms_output.put_line().
    CREATE OR REPLACE PROCEDURE "MWF_ONLINE_RESPONSE_XML" AS
       v_file            UTL_FILE.FILE_TYPE;
       v_text            VARCHAR2 (20);
       v_filename        VARCHAR2 (200);
       v_delimitedchar   CHAR (1);
    ----log
      v_process_name  VARCHAR2(100) := 'MWF_ONLINE_RESPONSE_XML';
      v_sqlerrorcd          VARCHAR2(10);
      v_sqlerrormsg         VARCHAR2(255);
      v_seq_auto_email_job  NUMBER;
      v_cnt                 NUMBER := 0;
      v_user_name    VARCHAR2(30);
    BEGIN
      --- for log use
      SELECT sys_context('USERENV','OS_USER') INTO  v_user_name  FROM dual;
    dbms_output.put_line('1');
      INSERT INTO PROCESS_ERROR_LOG
                 (seq_num,
                  process_name,
                  status,
                  process_date,
                  user_name)
      VALUES     (seq_dataxprocesslog.NEXTVAL,
                  v_process_name,
                  'STA',
                  SYSDATE,
                  v_user_name);
    dbms_output.put_line('2');
       v_delimitedchar := CHR (124);
       v_filename := 'online_response_xml.txt';
       v_file := UTL_FILE.FOPEN ('MWF_DATA_EXTRACTS', v_filename, 'W');
       UTL_FILE.PUT_LINE(v_file,'online_response_xml');
    dbms_output.put_line('3');
       FOR online_response IN
          (SELECT XMLTYPE (response_file, NLS_CHARSET_ID ('char_cs')).getclobval () AS Online_Respone_xml
             FROM CLARITY_RESPONSE_LOG
            WHERE TRUNC(date_crated ) = TRUNC(SYSDATE-1)) LOOP
          UTL_FILE.PUT_LINE (v_file, online_response.Online_Respone_xml);                                                  
          v_cnt := v_cnt + 1;
    dbms_output.put_line('4');
       END LOOP;
      UTL_FILE.FCLOSE(v_file);
    dbms_output.put_line('5');
      INSERT INTO PROCESS_ERROR_LOG
                 (seq_num,
                  process_name,
                  status,
                  process_date,
                  cnt,
                  user_name)
      VALUES     (seq_dataxprocesslog.NEXTVAL,
                  v_process_name,
                  'COM',
                  SYSDATE,
                  v_cnt,
                  v_user_name);
      COMMIT;
    dbms_output.put_line('6');
    EXCEPTION
      WHEN OTHERS THEN
        v_sqlerrorcd := SQLCODE;
        v_sqlerrormsg := SUBSTR(SQLERRM,1,255);
        INSERT INTO PROCESS_ERROR_LOG
                   (seq_num,
                    process_name,
                    status,
                    process_date,
                    error_msg,
                    error_id,
                    user_name)
        VALUES     (seq_dataxprocesslog.NEXTVAL,
                    v_process_name,
                    'ERR',
                    SYSDATE,
                    v_sqlerrormsg,
                    v_sqlerrorcd,
                    v_user_name);
        COMMIT; 
    END;

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Find out method argument values at run time

    Hi,
    I am looking to find out the argument names and values of a method at run time. (This would allow for instance to automatically log argument names and values without writing tedious code).
    The following thread did not seem to answer this problem
    http://forum.java.sun.com/thread.jspa?forumID=4&threadID=411455
    Any suggestions welcomed
    Ben

    As there is no Method-Object representing the current method call, I doubt you will get hands on the arguments passed to the method other than referencing them or building a framework "on top" (as, e.g., AspectJ). Also, Method in reflections does not hold the names of parameters, so it will be difficult to automatically print information on more than the signature.
    The following is a not very robust, little play-around code for logging. Maybe it delivers enough information for some situations:
    public class Test {
        void test(String arg0, int arg1) {
            log(new MethodGetter(){}.get(), arg0, arg1);
        public static void main(String[] args) {
            new Test().test("zero", 1);
        public static final void log(Method method, Object ... args) {
            final StringBuilder builder = new StringBuilder();
            builder.append(method.getDeclaringClass().getSimpleName()).append('.');
            builder.append(method.getName()).append('(');
            final Class<?>[] parameterTypes = method.getParameterTypes();
            for (int index = 0; index < parameterTypes.length; index++) {
                if (index > 0) {
                    builder.append(", ");
                builder.append('(').append(parameterTypes[index].getSimpleName()).append(") ");
                if (index < args.length) {
                    builder.append(args[index]);
                } else {
                    builder.append("null");
            builder.append(");");
            System.out.println(builder.toString());
        public static abstract class MethodGetter {
            public Method get() {
                return getClass().getEnclosingMethod();
    }It will print the following:
    Test.test((String) zero, (int) 1);
    Note that MethodGetter and log and main are enclosed for test purpose only.

  • Variant Values during Run Time

    Hi
      I am running a report as background job with a variant "VarOne"  which has the following values
    1. Duration Interval  - value -  60
    2. Program ID.       - value - 00123
    3. Current Date ( Value not saved while creating variant)
    4. Current Time ( Value not saved while creating variant)
    While the report is scheduled as background job with a particular variant value.. Is there a table that stores all the VarOne variant values....I want to know the values of 3 and 4. I know that looking at the job scheduling time I can get approximate values..But I need to know a place( like a table) where these variant values are stored.
    I have checked the following tables but didnt find the runtime values
    VARID
    VARIT
    TRVAR
    TRVARVC
    TRVARV
    VARICONCI
    VARICON
    Hope My question is clear
    Thank you

    VARCH is much the same as any editor (e.g. SE38 or SA38.. or where ever you can display development objects from and choose "variants" from the "Other Objects" menu).
    If you can display the variant from anywhere, but not from VARCH, then your concept seems to be a bit strange...
    Note that from VARCH you can display and also maintain the variants (if authorized), but you cannot execute the programs (via their variants). That is what it is designed to do, particularly in production systems...
    If your program concept in intact and correctly secured, then I recommend requesting standard VARCH to fullfill your requirement.
    Your security folks should give you the correct authority to do your job, and not rely on silly tcodes to secure the variants...
    Cheers,
    Julius
    Edited by: Julius Bussche on Jan 3, 2009 10:21 PM

  • How to verify input field value at run time

    Hi all,
    I have a input text field (username) on my jsf page and while entring username i have to verify that input provided by me is correct or not.
    For example-
    I started entering Test in username and error message occurs at the same time after validating from db.
    Can any body provide me the code snippet for the same.
    Thanks much,

    Hi,
    If I understood you correctly, you can set autosubmit="true" on af:inputText, and bind valueChangeListener to the method in backing bean where you can check whatever you need to check. That way, when inputText looses focus (or you press enter), the value will be submited to the server, where you can validate it.
    Pedja

  • How to change the variable value at run time in logical column in RPD

    for e.g..
    i have used a session variable in logical column in rpd in case statement. now in dashboard prompt i am using that variable to store data which user is passing but the data captured is not getting reflected in the logical column.
    its been always populated with the default value passed through the initilization block..

    resolved myself

  • Is it possible to set valid values at run time?

    Hi,
    I'am using a BPM Presentation and I want to know if it is possible to set the values of a combo box depending of the value of other field in the same presentation ando if so how to do it? I tried to do somethin like:
    var = fiedlValidValues()
    I tried to use refreshValidValues but it says that cannot execute the action in a presentation, I don&acute;t know wath else to do
    but it doesn&acute;t works, any idea??
    Thanks in advance
    Marig
    Edited by: user646988 on 05-feb-2009 19:30

    Hi, thanks Anup
    I followed your advise but i didn&acute;t success. I have question, if I'm getting the default values of a field with a method using a query. The type field is String and I'm using it into a combo box so the method I'm using returns a String[], is something like this:
    for each row in SELECT column
    FROM DataBase.SYSBPM.TABLE
    where var1 = var2
    do
    clases[] = row.clase
    end
    return clases
    But if I use a method for the onChange property if the field how to set the default values?
    I tried with
    for each row in SELECT column
    FROM DataBase.SYSBPM.TABLE
    where var1 = field1
    do
    clases[] = row.clase
    end
    clases = claseValidValues()
    But this is not working, do you have any ideas??
    Thanks
    Edited by: user646988 on 15-feb-2009 19:36

  • Standard text must change its value in run time in english or in chinese

    Hi all,
    i have created the standard text in SO10. name is  YTEST and inside i have declared &vbdpl-idnkd& since i need to get the value of this variable.
    In script i have written
    IL    ,,&VBDPL-POSNR+03(03)&,,&ZPRN_MTRL&,,
    /:     INCLUDE YTEST OBJECT TEXT ID ST LANGUAGE 'EN'
    =     ,,&VBDPL-BSTNK&,,&VBDPL-LFIMG(I10.0)&
    but the output is coming as &vbdpl-idnkd& only and not the value inside it.
    1) how to retrieve it.
    2) Also the value inside &vbdpl-idnkd& may come in English or sometimes in Chinese
    3) the standard text when printing is getting printed in the next line and not on the same line with posnr, mtrl ..... 
    Plz guide me how to process this.
    thanks
    Sakthi.

    Hi,
    Save the text in different languages in different SO10 objects .(Maybe with same name but dufferent LANGU Key).
    Now while calling the text, give in the appropriate langu key...for eg:
    /:     INCLUDE YTEST OBJECT TEXT ID ST LANGUAGE 'EN'    -
    > for English
    /:     INCLUDE YTEST OBJECT TEXT ID ST LANGUAGE 'ZH'   -
    > For chinese
    Hope this helps you.
    Cheers,
    Varna

  • To set Initial value at run time

    Hi all,
    i am working in forms.There is a poplist with 3 elements.Forms will be open for two different user. 1st user able to see only one element from the list, So I used Delete_list_element. Now I want to set this value as a default value without select that value because there is a only one element. Is it possible if yes please help me.
    Thanx in advance
    Sanjit

    I think, setting property required=Yes will do the job ...
    It is also possible to directly initialize a list item with a value (which should be then content of the actual list).
    :BLOCK.LIST_ITEM := VALUE;
    or you try something like (after your delete_list, to keep it dynamic) :
    :BLOCK.LIST_ITEM := GET_LIST_ELEMENT_VALUE('BLOCK.LIST_ITEM',1);
    Message was edited by:
    user434854

Maybe you are looking for

  • Is Coverflow no longer available in iTunes on the iMac ?

    Is Coverflow no longer available in iTunes on the iMac ?

  • How to make some fields disable mode in BAPI?

    Dear sir, I want to know in Bapi, In Import parameters of output display screen as we are entering values i want to make some fields disable mode (as in report program, in output screen, suppose 2 entry fields are der so i need only one and another o

  • Logon load balancing issue

    Hello Experts, We are having an issue with our load balancing. We have 4 app servers ,2 for batch and 2 for dialog. Dialog are used by SICF service for user to login. But the load is goign to the batch servers as well.Batch servers are running with d

  • Reg Custom GR message type

    This is regarding GR Message Type WE03 As part of Global template GR form for message we03 is already exists .. we need to develop new form for current roll-out , initially we decided to have a our own GR custon message for this purpose But when i se

  • Language for Dictation?

    What language does the dictation feature of the new iPad use? Is there a way to change the language, or is it always the same language that you use for the entire iOS on the iPad?