How to get button at runtime

Hi Experts,
In my report i use for dipaly button:
I have 3 button in my report
below my dispaly button code:
selection-screen function key 1.
selection-screen function key 2.
selection-screen function key 3.
INITIALIZATION.
  MOVE 'DISPLAY' TO SSCRFIELDS-FUNCTXT_01.
  MOVE 'DELETE' TO SSCRFIELDS-FUNCTXT_02.
  MOVE 'UPDATE' TO SSCRFIELDS-FUNCTXT_03.
when programn run i have to disable the update:
through this coding :
AT SELECTION-SCREEN OUTPUT.
  APPEND 'ONLI' TO itab.
  APPEND 'FC03' TO ITAB.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
  EXPORTING
    p_status = sy-pfkey
    TABLES
    p_exclude = itab.
now what i want when i click on display button then my update button is enable on the screen. in Itab i have value of update but how can i get this value.... from itab...
Pl give me suggestion.........
Jigar

Hi Ashish,
below my code:::
just refer it.................
REPORT  ZFI_DLC_DESKCODE_DELETE.
DATA DECLARATION
TABLES : ZDESKDLC,SSCRFIELDS.
selection-screen function key 1.
selection-screen function key 2.
selection-screen function key 3.
DATA: LW_SELECT TYPE zdeskdlc,
      LW_UPDATE TYPE ZDESKDLC,
      W_ANSWER(20).
clear: lw_update, lw_select.
data: begin of itab occurs 0,
      sy-ucomm like sy-ucomm,
      end of itab.
*DATA itab TYPE TABLE OF sy-ucomm.
*DATA ITAB type SY-UCOMM OCCURS 0 WITH HEADER LINE.
DATA: P_REPID LIKE SY-REPID.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: CCOD LIKE ZDESKDLC-CCODE MODIF ID ABC.
    PARAMETERS: DESKCODE LIKE ZDESKDLC-DESK_CODE MODIF ID ABC.
SELECTION-SCREEN END   OF BLOCK B1.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-001.
    PARAMETERS: CCOD1 LIKE ZDESKDLC-CCODE MODIF ID DEF,
                DESKCD LIKE ZDESKDLC-DESK_CODE MODIF ID DEF,
                SR_MANAG LIKE ZDESKDLC-SR_MANAGEMENT MODIF ID DEF,
                LASTNAME LIKE ZDESKDLC-LAST_NAME MODIF ID DEF,
                FIRSTNM LIKE ZDESKDLC-FIRST_NAME MODIF ID DEF,
                DEPART LIKE ZDESKDLC-DEPARTMENT MODIF ID DEF,
                ADM_SYS LIKE ZDESKDLC-ADMIN_SYSTEM MODIF ID DEF,
                RACF_ID LIKE ZDESKDLC-RACF_ID MODIF ID DEF,
                OPEN_DT LIKE ZDESKDLC-OPEN_DATE MODIF ID DEF,
                CLOSE_DT LIKE ZDESKDLC-CLOSE_DATE MODIF ID DEF,
                SAPUSRID LIKE ZDESKDLC-SAP_USER_ID MODIF ID DEF.
SELECTION-SCREEN END   OF BLOCK B3.
START-OF-SELECTION
INITIALIZATION.
  MOVE 'DISPLAY' TO SSCRFIELDS-FUNCTXT_01.
  MOVE 'DELETE' TO SSCRFIELDS-FUNCTXT_02.
  MOVE 'UPDATE' TO SSCRFIELDS-FUNCTXT_03.
AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
  APPEND 'ONLI' TO itab.
  APPEND 'FC03' TO ITAB.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
  EXPORTING
    p_status = sy-pfkey
    TABLES
    p_exclude = itab.
AT SELECTION-SCREEN.
AT SELECTION-SCREEN.
    clear lw_update.
    LW_UPDATE-SR_MANAGEMENT = SR_MANAG.
    LW_UPDATE-LAST_NAME   = LASTNAME.
    LW_UPDATE-FIRST_NAME  = FIRSTNM.
    LW_UPDATE-DEPARTMENT   = DEPART.
    LW_UPDATE-ADMIN_SYSTEM   = ADM_SYS.
    LW_UPDATE-RACF_ID   = RACF_ID.
    LW_UPDATE-OPEN_DATE   = OPEN_DT.
    LW_UPDATE-CLOSE_DATE   = CLOSE_DT.
    LW_UPDATE-SAP_USER_ID   = SAPUSRID.
    SELECT SINGLE * FROM ZDESKDLC
    INTO lW_SELECT
    WHERE CCODE = CCOD1 and
    DESK_CODE = DESKCD OR CCODE = CCOD AND DESK_CODE = DESKCODE.
IF SSCRFIELDS-UCOMM = 'FC01'.
*MOVE: P_REPID TO GLOBAL-PROG.
*MOVE ITAB(2) TO 'SCRH'.
*MOVE ITAB(2) TO SSCRFIELDS-FUNCTXT_03.
*MOVE P_REPID TO GLOBAL-PROG.
   move itab-fc03 to SSCRFIELDS-FUNCTXT_03.
*move 'FC03' TO SSCRFIELDS-FUNCTXT_03.
*append itab to 'FC03'.
*CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
   p_status = sy-pfkey
   TABLES
   p_exclude = itab.
*MOVE 'UPDATE' TO SSCRFIELDS-FUNCTXT_03.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
    clear lw_update.
    CLEAR LW_SELECT.
    lw_update-ccode = ccod1.
    lw_update-desk_code = deskcd.
    LW_UPDATE-SR_MANAGEMENT = SR_MANAG.
    LW_UPDATE-LAST_NAME   = LASTNAME.
    LW_UPDATE-FIRST_NAME  = FIRSTNM.
    LW_UPDATE-DEPARTMENT   = DEPART.
    LW_UPDATE-ADMIN_SYSTEM   = ADM_SYS.
    LW_UPDATE-RACF_ID   = RACF_ID.
    LW_UPDATE-OPEN_DATE   = OPEN_DT.
    LW_UPDATE-CLOSE_DATE   = CLOSE_DT.
    LW_UPDATE-SAP_USER_ID   = SAPUSRID.
    SELECT SINGLE * FROM ZDESKDLC
    INTO lW_SELECT
    WHERE CCODE = CCOD1 and
    DESK_CODE = DESKCD OR CCODE = CCOD AND DESK_CODE = DESKCODE.
    move lw_select-ccode to ccod1.
    move lw_select-desk_code to deskcd.
    move LW_select-SR_MANAGEMENT to SR_MANAG.
    MOVE LW_SELECT-Last_name TO LASTNAME.
    MOVE LW_SELECT-FIRST_NAME TO FIRSTNM.
    move LW_select-DEPARTMENT to DEPART.
    move LW_select-ADMIN_SYSTEM to ADM_SYS.
    move LW_select-RACF_ID to RACF_ID.
    move LW_select-OPEN_DATE to OPEN_DT.
    move LW_select-CLOSE_DATE to CLOSE_DT.
    move LW_select-SAP_USER_ID to SAPUSRID.
    CLEAR LW_SELECT.
    if sy-subrc <> 0.
        MESSAGE S002(zjig)." WITH 'NO RECORD FOUND'.
        clear: ccod, deskcode.
    endif.
ENDIF.
IF SSCRFIELDS-UCOMM = 'FC02'.
  if sy-subrc <> 0.
        MESSAGE S002(zjig)." WITH 'NO RECORD FOUND'.
        clear: ccod, deskcode.
  else.
  CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
  titlebar = 'Warning'
  text_question = 'Are you sure want to delete this record'
  text_button_1 = 'YES'
  text_button_2 = 'NO'
  DEFAULT_BUTTON = 1
  display_cancel_button = ' '
  start_column = 25
  start_row = 6
  IMPORTING
  answer = W_ANSWER.
  CASE W_ANSWER.
    WHEN 1.
    DELETE from zdeskdlc where
    CCODE = CCOD AND
    DESK_CODE = DESKCODE.
      IF SY-SUBRC = 0.
        MESSAGE S001(zjig)." WITH 'Data Delete successfully'.
        clear: ccod, deskcode.
        clear: CCOD1,DESKCD,SR_MANAG,LASTNAME,FIRSTNM,DEPART,ADM_SYS,RACF_ID,OPEN_DT,CLOSE_DT,SAPUSRID.
      ELSE.
        MESSAGE S002(zjig)." WITH 'NO RECORD FOUND'.
        clear: ccod, deskcode.
      ENDIF.
  ENDCASE.
  endif.
endif.
IF SSCRFIELDS-UCOMM = 'FC03'.
  UPDATE zdeskdlc SET SR_MANAGEMENT = LW_UPDATE-SR_MANAGEMENT
  LAST_NAME = LW_UPDATE-LAST_NAME
  FIRST_NAME = LW_UPDATE-FIRST_NAME
  DEPARTMENT = LW_UPDATE-DEPARTMENT
  ADMIN_SYSTEM = LW_UPDATE-ADMIN_SYSTEM
  RACF_ID = LW_UPDATE-RACF_ID
  OPEN_DATE = LW_UPDATE-OPEN_DATE
  CLOSE_DATE = LW_UPDATE-CLOSE_DATE
  SAP_USER_ID = LW_UPDATE-SAP_USER_ID
  WHERE CCODE = CCOD1
  AND DESK_CODE = DESKCD.
    IF SY-SUBRC = 0.
        MESSAGE S003(zjig)." WITH 'data modified successfully'.
    ENDIF.
    CLEAR LW_UPDATE.
ENDIF.

Similar Messages

  • How to get ESB's runtime?

    How to get exact ESB's runtime,when i replicate data in one table on one database to table on another database.
    thank you advance!
    lemon...

    you need to create Runtime intsance ESB in oralce home,that will work on the same instance for tranfering the table to anthor database ,
    You need to cluster the OC4J.
    Please gothrough the following document .
    http://download.oracle.com/docs/cd/E10291_01/core.1013/e10294/webapp.htm#CHDFEBBE
    please see the 3.13 section for Installing the Oracle Enterprise Service Bus Runtime Instances on two virtual Hosts ,
    please see the 3.19 section Deploying the Oracle Enterprise Service Bus Repository Instance on two virtual Hosts and see the 3.20 Configuring Service
    Thank you
    Venkat Bollineni

  • Q1. How to get version of runtime libraries

    Hi,
    I am not a developer but this seems like the best place to ask this question.
    I want to find out what version of the Sun C++ runtime libraries are being used on a machine. They are using the runtime version (there is no compiler installed). The SUNW* directories that are under /opt are:
    SUNWexplo
    SUNWconn
    SUNWebnfs
    SUNWits
    SUNWrtvc
    SUNWspro
    Which command do I need to run against what to find the version? I want to find out if they are using 5.0, 5.5 or 5.7.
    Thanks in advance,

    You need to know exactly which libraries are in linked => use ldd on the executable.
    Normally, /usr/lib/libCrun.so.1 (and /usr/lib/libCstd.so.1 if any of the standard library is used) are the ones that get linked.
    However, depending on how the application was built and some environment variables (LD_PRELOAD, LD_LIBRARY_PATH) it is possible for applications to use other versions of these files.
    In the standard case, the C++ runtime libs are in the packages SUNWlibC (and SUNWlibCx for 64bit) => pkgchk -l -p /usr/lib/libCstd.so.1 to see which package the lib is in
    To see which patch is applied, try
    showrev -p | grep libC
    This should show something like
    Patch: 108434-10 Obsoletes: Requires: 109147-07 Incompatibles: Packages: SUNWlibC
    Patch: 108435-10 Obsoletes: Requires: 108434-10 Incompatibles: Packages: SUNWlibCx
    Lastly, you could try
    elfdump -v /usr/lib/libCrun.so.1
    which will show you some version info (which should match what ldd indicates the application needs)
    Paul

  • How to  get button to go to another scene? Error #2108 scene not found.

    Hi flash users,
    I believe I'm not alone in this problem but I don't see any answers in any of the forums.
    I have a movie clip that has a button that I wish to take me and play my first scene at frame 1.
    I labeled my the 1st frame "startLabel" and my scene is named "mainScene", and that's where I want to go from my "button" that is placed in my "movie clip symbol scene".
    Here's my code:
    resetButton1.addEventListener(MouseEvent.CLICK, getToWhereIWant);
    function getToWhereIWant(event:MouseEvent):void
    gotoAndPlay("startLabel","mainScene");
    Here's the error I'm getting:
    ArgumentError: Error #2108: Scene mainScene was not found.
    at flash.display::MovieClip/gotoAndPlay()
    at project2_b_fla::building_1/getToWhereIWant()
    Thank you in advance for any insight to this problem....

    Hi kglad,
    I got my animation to work finally after hours trial and error....
    Here's the function code:
    function restartInMainScene(event:MouseEvent):void {
    //this original didn't work, error said can't find mainScene
    //gotoAndPlay(1, "mainScene")
    //FIXED
    //sets current movie clip symbol to frame 1
    gotoAndStop(1);
    //goes to mainScene and plays frame 1
    MovieClip(this.root).gotoAndPlay(1, "mainScene");

  • How to get buttons to play in numerical order

    On my menu page I have a total of seven buttons going left to right, slightly staggered up and down. They are labeled in correct order: Button 1, followed by Button 2...etc. When I simulate, however, and click the right arrow to go to the next video in the sequence, it goes from Button 1 to Button 3 (which are at same height), then to Button 2 (which is between Buttons 1 and 3 but slightly lower. I am sure it is because the items are staggered up and down and not perfectly in line, but how can I correct this so that when I push the "next" arrow it goes in proper numerical order?

    It sounds like you are using DVD SP to automatically assign Navigation. You can override this by clicking on each button in turn, then looking at the Inspector. Hit the Advanced Tab. There you will find the means to override the Navigation.

  • How to get Repeater's runtime height

    Hi,
    I have a Repeater that may contain several 'Text' UI components at runtime.
    Now I need the total height occupied by these collective text UI elements.
    Please let me know how to do it.
    Thanks,
    Amey

    Hi,
    Thank you for reply.
    But this gives me compile time error that -->
    Multiple markers at this line:
    -1120: Access of undefined property skillGroupsVBOX.
    -1046: Type was not found or was not a compile-time constant: UIComponent.
    In Script: -
                private function clickHandler(item:Object):void {
                    var cName : String = item.sgname;
                    item.textDecoration = "underline";
                    if(cName == "Grp1"){
                        selectedSkill = 1;
                        spacerHeight = 0;
                    }else if(cName == "Grp2"){
                        selectedSkill = 2;
                        spacerHeight = 1;
                    }else if(cName == "Grp3"){
                        selectedSkill = 3;
                        spacerHeight = 2;
                    for each (var component:UIComponent in skillGroupsVBOX.getChilderen()) {
                        repeaterTotalHeight += component.height;
    In MXMX: -
            <mx:HBox id="skillHbox" horizontalAlign="left" >
                <mx:VBox id="skillGroupsVBOX" horizontalAlign="left" verticalGap="0">
                    <mx:Repeater id="rptSkillGroups" dataProvider="{SkillGroups}">
                        <mx:Text text="{rptSkillGroups.currentItem.sgname}"
                                       click="clickHandler(event.currentTarget.getRepeaterItem());"
                                       mouseOver="clickHandler(event.currentTarget.getRepeaterItem());"
                                       buttonMode="true" useHandCursor="true"
                                       />
                    </mx:Repeater>
                </mx:VBox>
                <mx:VBox id="skillDescVBOX" >
                    <mx:ViewStack id="skillDescViewStack" selectedIndex="{selectedSkill}" >
                        <!-- child 0 -->
                        <mx:VBox id="emptyVBox" showEffect="{wipeRight}" hideEffect="{wipeLeft}">
                        </mx:VBox>
                        <!-- child 1 -->
                        <mx:VBox id="Act_A_VBox" showEffect="{wipeRight}" hideEffect="{wipeLeft}" >
                            <mx:Spacer height="{spacerHeight}"/>
                            <mx:Repeater id="rptAct_A" dataProvider="{Act_A}">
                                <mx:Text  htmlText="{rptAct_A.currentItem.act}" width="90%" />
                            </mx:Repeater>
                        </mx:VBox>
                        <!-- child 2 -->
                        <mx:VBox id="Act_B_VBox"  showEffect="{wipeRight}" hideEffect="{wipeLeft}">
                            <mx:Repeater id="rpt_B" dataProvider="{Act_B}">
                                <mx:Text  htmlText="{rpt_B.currentItem.act}" width="90%" />
                            </mx:Repeater>
                        </mx:VBox>
                        <!-- child 3 -->
                        <mx:VBox id="Act_C_VBox" showEffect="{wipeRight}" hideEffect="{wipeLeft}">
                            <mx:Repeater id="rpt_C" dataProvider="{Act_C}">
                                <mx:Text  htmlText="{rpt_C.currentItem.act}" width="90%" />
                            </mx:Repeater>
                        </mx:VBox>
                    </mx:ViewStack>
                </mx:VBox>
            </mx:HBox>

  • How to get the Form runtim diagnostics log file

    Hi,
    I followed the instruction of Metalink Notes:
    R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications http://ID 438652.1
    Option 1: Obtain FRD Trace Using Profile Options
    Method 1: Using profile option 'ICX: Forms Launcher'
    I was not able to get the log file.
    Any suggestions

    Yes, I follow the instruction, set profile at user level, and bounce Apache.
    When I log in to application, I do see a message that the low level trace is enabled.
    the directory is:
    /u1/dev/inst/apps/apps/dev/logs/ora/10.1.2/forms

  • How to hide buttons on standard FPM tool bar

    Hi,
    I have to hide two buttons on standard FPM tool bar....buttons are price simulation and useractions.
    Technical details are...
    FPM_OIF_COMPONENT and Configname is DPVMS_CC_VD
    When i start configuration and open view : Web Dynpro Built in...
    i can see..
    CNRVIEW
    ....TC MAIN AREA
    ......TOOLBAR TOP
    .......BUTTON CONTAINER
    i can't able to see button names existed here...
    Can anybody guide me how to get button names here ....i want to hide few buttons on button container...
    Thanks,
    Subba

    Hallo Subba,
    You should not be in Webdynpro build in.
    I might be wrong ! i think you have started the wda component configuration and not the FPM application configuration->Component configuration.
    In Se80,Navigate to your application,open the application node, select the application configuration,open it.
    From there select the component and go to component configuration->press display button would lead you to the FPM configuration editor.

  • How to get the ID of a Button

    Hi,
    There is an interface IF_WD_VIEW_ELEMENT inside the class CL_WD_BUTTON whi has two methods: GET_ID and GET_VIEW.
    My problem is i have to get the ID of a button at runtime inorder to get the text associated with it.  can anybody pls let me know how to get that?
    Points will be rewarded
    Regards
    raghav

    Dear Koen,
    Thanks a lot!!
    Finally I am able to resolve the issue with your help!!
    But why I tried your last posting still i was getting error!!
    "lo_button = wd_this->m_view->get_element( ID )."
    i did a minor correction to the above statement as follows:
    lo_button <b>?</b>= wd_this->m_view->get_element( ID ).
    But to my surprise what is the purpose of the method <b>IF_WD_VIEW_ELEMENT~GET_ID</b>?  When can we use this? 
    This is just for my information. 
    If you have time, please let me know
    Thanks & Regards
    Raghav

  • SRM7 - how to get clipboard content at runtime

    Hello gurus,
    not sure this is the proper section as my question is kinda technical and ABAP-related, anyway.... SRM 7.0 has a Copy/Paste option on items of a document (purchase order or contract): once the user selects an item, the "Copy" button uploads the item on the clipboard, while the "Paste" one gets clipboard's content and generate a new item with that data.
    I have to check at runtime which data are in the clipboard in a WDDOMODIFYVIEW post-exit enhancement.
    For a specific customer desiderata, I have to check the "copied" position w.r.t. the item that is selected at runtime in order to enable/disable the "Paste" button.
    So the question is: how can I get the "copied" item? I need to check some fields in it in order to eventually disable the "Paste" button dinamically.
    I assume this question could be equivalent to the following: how can I access the clipboard area and get the "copied" item(s) ?
    I'm working on the item main area (/SAPSRM/WDC_CTR_DOTC_IT web dynpro) and tried as follows:
    DATA: lv_FILLED Type abap_bool.
      DATA: facade_clip TYPE REF TO /SAPSRM/IF_CH_WD_SETF_CLIPBRD.
    * check clipboard
      CALL METHOD wd_this->MO_DODM_CTR_ITEMS->/sapsrm/if_cll_do_mapper~is_clipboard_filled
        RECEIVING
          rv_data_contains = lv_filled.
      IF lv_filled EQ abap_true.
        CALL METHOD wd_this->mo_dodm_ctr_items->get_clipboard
    *      EXPORTING
    *        iv_cross_tx  =
          receiving
            ro_clipboard = facade_clip.
    Unfortunately, the second method (get_clipboard) seems to be private/protected. Is there any other way to get info on the copied positions?
    Thanks in advance
    EDIT: moreover, I noticed also that IS_CLIPBOARD_FILLED is not relevant for my task, as it returns always abap_true even though no item was copied. I guess that clipboard can be filled with every kind of data... I have anyway a workaround which is based on a post-exit on the COPY_ITEM method, in which I mark a custom field in the context ("copy_pressed"), so I know in WDDOMODIFYVIEW whether the "Copy" button has been pressed.
    Edited by: Matteo Montalto on Mar 2, 2012 3:53 PM

    Hi all,
    back on the argument as I probably found a way to achieve the desiderata... only a little tile missing, hope someone could provide me an help.
    Basically, in WDDOMODIFYVIEW, I coded as follows:
    DATA: clipbrd TYPE REF TO /SAPSRM/IF_CH_WD_SETF_CLIPBRD.
    clipbrd = wd_this->mo_dodm_ctr_items->/sapsrm/if_cll_do_mapper~get_clipboard( iv_cross_tx = 'X' ).
    This gives correctly the clipboard object, that is however not usable as object of type /SAPSRM/IF_CH_WD_SETF_CLIPBRD.
    I should then use a method to retrieve the content of the clipboard in an usable format; I found out that the method
    CALL METHOD (of /SAPSRM/IF_CH_WD_SETF_CLIPBRD) get_clipboard_content
        EXPORTING
          io_set_facade        =
        receiving
          rt_clipboard_content = test (type ref DATA).
    is exactly what I'm looking for.
    The problem is: what's that io_set_facade intended for? As it's a mandatory parameter I have to pass it in order to retrieve clipboard's content, but don't have idea on how to get it in WDDOMODIFYVIEW as it seems an private attribute of the interface IF_CLL_DO_MAPPER.
    Any help is welcome.
    Thanks.

  • How to get object-path at runtime

    Hi, In my application paths of particular controls(radio buttons and links) get changed at runtime. Therefore I cant access those objects. It would be helpful if somebody guide me how to get paths of objects(controls) at runtime. To be more specific following are the paths procured on different time ie. on different runs.
    "window(name='incident173747')[1].window(name='ifrmTabWindow')[1].input(name='generateQuote')[1]"
    "window(name='incident173750')[1].window(name='ifrmTabWindow')[1].input(name='generateQuote')[1]"
    One can see only first window name is changed here.In first case it is :
    name='incident173747'
    while in the second one it's:
    name='incident173750'

    Hi Vivek555,
    How do you know which radio button or link you want to click on? If each one is called generateQuote, what is in on the page that says "This is the one I want to click on".
    Please give a snippet of the html for the page so that we can help you out.
    Thanks,
    Kevin Gehrke
    Empirix, Inc.

  • How to get return value from Java runtime.getRuntime.exec?

    I'm running shell commands from an Oracle db (11gr2) on aix.
    But, I would like to get a return value from a shell comand... like you get with "echo $?"
    I use a code like
    CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS
    import java.io.*;
    public class Host {
      public static int executeCommand(String command) {
        int retval=0;
        try {
            String[] finalCommand;
            finalCommand = new String[3];
            finalCommand[0] = "/bin/sh";
            finalCommand[1] = "-c";
            finalCommand[2] = command;
          final Process pr = Runtime.getRuntime().exec(finalCommand);
          pr.waitFor();
       catch (Exception ex) {
          System.out.println(ex.getLocalizedMessage());
          retval=-1;
        return retval;
    /but I do not get a return value... because I don't know how to get return value..
    Edited by: user9158455 on 22-Sep-2010 07:33

    Hi,
    Have your tried pr.exitValue() ?
    I think you also need a finally block that destroys the subprocess
    Regards
    Peter

  • How to get current view name on clicking device back button?

    Hi,
    iam wriing a function for handling device back button(in android) press in my app.controller.js .How to get current viewname when clicking device back button.
    code samples will be helpful.
    my app.controller.js looks like below
    sap.ui.controller("com.opensap.App", {
      onInit : function() {
      document.addEventListener("deviceready", onDeviceReady, false);
      onBeforeShow : function(evt) {
      navButtonTap : function(evt) { 
    function onBackKeyDown(){
      //alert("hai");
      //sap.ui.getCore().byId("SalesDetail").app.backToPage("ProductList");
      //sap.ui.getCore().byId("ProductList").app.backToPage("Dashboard");
      //sap.ui.getCore().byId("SupplierDetail").app.backToPage("Dashboard");
    function onDeviceReady(){
       document.addEventListener("backbutton", onBackKeyDown, false);

    I somehow managed to find the solution
    function onBackKeyDown(){
      var app = sap.ui.getCore().byId("LoginDetail").app;
      app.back();

  • How to get the PRIMARY KEY of a table at runtime ???

    Hi everybody,
    My requirement is to update a z-table at runtime according to the data given ata runtime. So the main difficulties for me is that whenever I tried to update the table based on the data given in UI many rows are getting updated as these fields are not unique. So I think if I can get the PRIMARY KEY along with these given fields then I can update only one row at a time.
    So Can anyone suggest me how to get PRIMARY KEY of a table based on the data in UI..??
    Any suggestions will be appreciated..
    Thanks,
    Sekhar

    U will get primary keys of transparent tables using FM "REUSE_FIELDCALATLOG_MERGE".
    pass tyour table name and u will get fieldcatalog filled. In tht their is a field called "KEY" if it has 'X' then tht field is a primary key of transparent tables & if it has "space" then it is not a primary key...
    Or else you can try with 'DDIF_TABT_GET'
    Or try this code
    PARAMETERS: p_table TYPE tabname OBLIGATORY.
    DATA: go_strucdescr   TYPE REF TO cl_abap_structdescr,
          gt_tab_fields   TYPE ddfields.
    FIELD-SYMBOLS: <gwa_tab_field> TYPE dfies.
    TRY .
    *   Get the details of the DDIC table
        go_strucdescr ?= cl_abap_elemdescr=>describe_by_name( p_table ).
      CATCH cx_sy_move_cast_error .
        MESSAGE 'Error while casting' TYPE 'S'. RETURN.
    ENDTRY.
    * Check if input is a DDIC table
    CHECK go_strucdescr->is_ddic_type( ) = 'X'.
    * Get the details of the table fields
    gt_tab_fields = go_strucdescr->get_ddic_field_list( ).
    * Display the Key fields of the table
    LOOP AT gt_tab_fields ASSIGNING <gwa_tab_field> WHERE keyflag = 'X'.
      WRITE: / <gwa_tab_field>-fieldname.
    ENDLOOP.

  • I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help :(

    I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help

    If you're syncing with a different iTunes library than the one you previously synced with, then there is no way around it. You're gonna loose the old data. The only way round it would be to make sure that all the music files on your iPhone is also in your iTunes library. If you still have access to the computer with the old library, you could copy the files on to an external harddrive, and then import them into your new iTunes library.
    If it is in fact the same library, then the music currently on your iphone, is also in your itunes library. Just make sure that the artists/albums/playlists, or whatever you sync contains these tracks, that you allready have on your phone and don't want deleted. What i do is, i create a playlist specifically for my iPhone, and i set it up to only sync with this playlist. Whenever i hear a track from my iTunes library or buy a new track that i want on my phone, i just drag it to this playlist and next time i synchronize, it's there without deleting anything else.

Maybe you are looking for

  • Hold on order line is visible as an order header hold in order organizer

    Hi, When we create a hold on a sales order line, then we can see in the order organizer at order header level that the order is on hold (with the check box). We don't want this because then it looks like the complete order is on hold. We only want to

  • Reader X automatically updates PDF Format V1.1 to 1.6

    Hi! After noticing that our customers often get a "Save File" prompt, after only watching a PDF-File, i investigated this, and it turned out, that the Adobe Reader X updates PDFs in File Format 1.1 automatically to PDF Format 1.6. Is there a way to p

  • IPhoto quits on first launch

    Hello, every first time (and indeed every odd time) I open iPhoto after login the application displays a message: 'Upgrading Library, Scanning Library' for a few seconds and then iPhoto quits. The second time (every even time) iPhoto launches without

  • Subcontracting POs -- planning components with MRP

    Hi! I would really appreciate getting your help to resolve the following issue. Ex: We use subcontracting to get our vendor to produce Part X with components A, B and C that we supply (we may have the components in stock or we may need to buy them ex

  • Problem building Muse Package

    Hi, I tried to make a PKGBUILD for Muse, it's not complete, no dependencies etc. but that's not the problem: pkgname=muse pkgver=0.7.0 pkgrel=1 url="http://lmuse.sourceforge.net/" depends=() source=($pkgname-$pkgver.tar.bz2) md5sums=() build() { cd $