Executing SCM transactions using /n prefix vs executing from your favorites

I am working on the U.S. Navy ERP project. We are using ECC 5.0 and SCM 5.10. I would like to know why when manually entering the transaction code in the command line from the main menu  in SCM I have to prefix the transaction code with /N otherwise I get the error message Transaction does not exist. If I try to create a favorite manually using insert transaction and input the transaction code using the /n prefix I get the error message transaction does not exist. If I go to the SAP menu tree and find the transaction it is not listed with the /N prefix.Any explanation as to why SCM doesn't recognize the transaction when entered in the command line without the /N and doesn't recognize the transaction with the /N when manually entered as a favorite would be greatly appreciated.  l

Hi,
This is a good question and  a basis expert may be in a position to explain more.
I understand that, in APO start screen since the transactions are not in the main SAP menu, we need to  prefix the transaction with a /N ( for APO functionality related transactions) and also for other applications like EM, EWM, SNC etc.
Examples: /SAPAPO/SDP94
If  we are at the main SAP menu, then we do not need to prefix the transaction with a /N.
Some of the basis related or generic  transactions are placed on SAP Main menu.
Examples are as below:
SMQ1, SMQ2,SM37,SU01, SE38, S_AP9_75000094, LC10, ST06, SM50
For the above transactions you try, and you will notice that you do not require to prefix /N.
When we create the favorites , the transactions are placed on SAP main menu.
Therefore, we do not need to prefix /N.
Regards
Datta

Similar Messages

  • Error while executing from the Favorites Menu

    Hi Experts,
    I am getting error while Excuting the Favorite from SAP Menu Screen ( SAP Easy Access ) ..
    After clicking , one Internet Explorer screen is appearing .. And after few seconds, I am getting the error.
    The detail is as follows :
    The system is trying to execute the program/display the file
    http://dbcibwp:8100/sap/bw/BEx?cmd=ldoc&infocube=ZMTOWN&query=ZMTOWNS_SALE_AC_PL&sap-language=EN
    ATTENTION : The object that will be executed could not be determined !Do you want to grant access to this file ?
    There was a problem sending the command to the program ..
    Please suggest
    Thanks,
    Sanjana

    Hi Durgesh,
    If I am running the same query through RRMX . There is no problem. In transaction RSRT, Its running fine.  
    Can you tell me , how to check the Query in "DBCIBWP"  where it is located exactly ??
    Thanks,
    Sanjana

  • Using Adobe Kuler in All of Your Favorite Apps

    Just thought that I would let you all know i just posted a video tutorial on using Kuler in all of your mac apps, it's free and easy to do. Just go here:
    http://library.creativecow.net/gaton_jiggy/adobe-kuler/1
    Enjoy!
    Jigs

    Suppose you should have all your songs and apps in your iTunes. If so, just get the new iPod synced with your computer, everything can be synced.
    If your old iPod is an iPod Touch, you can restore from a backup of your old iPod if the old iPod used to be synced with your computer.
    But, the items will be deleted if your old iPod was synced / copied songs / apps from the other computer, and those items is purchased by other iTunes account, and your computer is not authorized.

  • What formats do you use for offering download samples from your website?

    I want to add a few small video's to add to my portfolio web page so people can view them on-line from my website. Do I need to use a couple of formats like QuickTime and Windows Media or can I get away with one?
    Thanks,
    Nick

    We only do Quicktime and have never had a problem, but most computers in the entertainment industry tend to be Mac, so I'm not sure if that is why I've never had a complaint.
    Patrick

  • How to execute Transaction Using JCO

    Hello Developper;
      Is it possible to execute Transactions using JCO API's or not ?
    If yes, can you please provide me with a snippets, from conecting to executing the Transaction and then getting the result.
    Regards
    Anis

    Hi Anis,
    I really don't understand the use of JCO if you to use it in the same SAP Box. As JCO is basically to have some front end applications without SAP GUI Client,
    Could you please let me know if I am not on the same level.
    Thanks,
    Hamendra

  • Can I use SubPanels to display and run multiple executables from the same GUI?

    I have two Labview executables that performs some A/D I/O, each using an independent USB-6008.  I would like to run both of these executables from a single UI.  Is this possible usin SubPanels?  Or some other method?
    I found KB regarding exe's and VI Server but can't seem to get the suggested workarounds implemented.
    http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C?OpenDocument
    I am using Labview2009
    Thanks
    Dan
    Solved!
    Go to Solution.

    DBerry wrote:
    No, of course I am not sure yet.  I have only begun testing this method. 
    Not sharing common hardware (separate USM-6008s).
    Here is the whole picture:
    I have developed a top-level VI that performs Daqmx IO using a single USB-6008.  The top-level VI references a Project Daqmx Task that points to the desired 6008.  I would like to create a single UI that uses this top-level VI to control twoUSB-6008s simultaneously.  I thought I could build the top-level VI into 2 separate exes, where the only difference between the exes is the hardware it points to (one exe to each of the 6008s).  But I have been unsuccessful at running these two exes within a single UI.  I attempted use subpanels on a tab control to do this but I am unable to obtain a reference to the top-level vis once they have been built into an exe.  I have also tried building a dll and exporting the top-level vi from the dll build but i can't seem to get that to work either.  In both of these cases my Open VI reference function returns errors (Error 1445).  I am aware of the changes in referencing VIs from within an exe/dll since LV8.2 - http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C
    The link seems to suggest that I should be able to obtain a reference to the top-level vi within the dll but I can't get it to work.
    So I then moved on to the above method (making all the subvis reentrant).  I just haven't figured this all out yet.
    If you have suggestions on other problems I may run into please share.  I think I can eliminate my FGs but haven't gotten back to this yet.
    Thanks
    Dan
    When I am designing apps of the type you described I have kept the ned goal in mind from the begining since of the issue you are mentioning. I also don't want to tell you to throw it all away and start over. So with that in mind I have been looking at your posts and only offering the least destrutive ideas first. With that in mind I would like to invite yo uto look at the code i posted in this thread (reply #18 has a zip).
    That code shows how to realize un-dockable GUI regions but it passes the ref of the top level VI to a reentrant VI it instanciate for each undockable region. It may have enough hints and technique to give you some ideas that will work for you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • Transaction using which an IDOC can be processed in Foreground mode

    Hi,
    Can you please suggest a transaction using which an IDOC can be processed in Foreground mode? We have seen that from SAP Inbox, it is possible to navigate and process IDOC in Foreground mode. We are looking for a Transaction code which will allow us to do the same.
    We tried using BD87 but we did not find an option which allows processing an IDOC in Foreground mode.
    Kindly help.
    Regards

    BD87 should let you do this.
    Execute BD87 to select the failed IDOC.
    click on the line with the failed IDOC, then use menu option Edit -> Restrict and Process.
    On the next screen the IDOC number will show, and un-check the "Bkgd processing" check box at the bottom of the screen and execute.
    The next screen will display the status record for the IDOC, then select menu entry Edit ->Process -> Foreground Processing.
    This will then reprocess the IDOC in foreground mode.

  • XA transaction using weblogic.jdbc.oci.xa.XADataSource

    Hi everyone, I am trying to execute XA transaction using the driver XA compatible
    driver
    weblogic.jdbc.oci.xa.XADataSource. I have added c:\bea7.0SP4
    \weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll in the PATH in my
    weblogic managed server startup script.
    When I start managed server, I get the error saying that weblogicoci38.dll
    is not in java.library.path. I checked the server log file and in that
    it clearly shows that java.library.path contains this file. Please suggest
    me what to do.
    I have weblogic 7.0 with SP4 and databse is oracle 8i.
    thanks,
    jyothi
    ####<Mar 1, 2004 9:52:36 AM EST> <Error> <JDBC> <temp1> <server1> <main> <kernel
    identity> <> <001060> <Cannot startup connection pool "ConnPool1" java.sql.SQLException:
    System.loadLibrary(weblogicoci38) threw java.lang.UnsatisfiedLinkError: no weblogicoci38
    in java.library.path>
    ####<Mar 1, 2004 9:52:49 AM EST> <Info> <Management> <temp1> <server1> <main>
    <kernel identity> <> <141187> <Java system properties are defined as follows:
    awt.toolkit = sun.awt.windows.WToolkit
    bea.home = c:\bea7.0SP4
    file.encoding = Cp1252
    file.encoding.pkg = sun.io
    file.separator = \
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = c:\bea7.0SP4\jdk131_08\lib\tools.jar;c:\bea7.0SP4\weblogic700\server\lib\weblogic_sp.jar;c:\bea7.0SP4\weblogic700\server\lib\weblogic.jar;c:\bea7.0SP4\weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll;C:\bea7.0SP4\user_projects\jytDmnCluster\lib\parser.jar.jar;C:\bea7.0SP4\user_projects\jytDmnCluster\lib\xml4j_1_1_16.jar;C:\bea7.0SP4\user_projects\jytDmnCluster\p6spy.jar
    java.class.version = 47.0
    java.ext.dirs = c:\bea7.0SP4\jdk131_08\jre\lib\ext
    java.home = c:\bea7.0SP4\jdk131_08\jre
    java.io.tmpdir = C:\DOCUME~1\jshanbag\LOCALS~1\Temp\
    java.library.path = c:\bea7.0SP4\jdk131_08\bin;.;C:\WINNT\System32;C:\WINNT;.;c:\bea7.0SP4\weblogic700\server\bin;c:\bea7.0SP4\jdk131_08\bin;c:\bea7.0SP4\weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll;\jpda\bin;C:\Oracle\Ora81\bin;C:\Program
    Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\PVCS\VM\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;c:\;c:\vslick\win

    jyothip wrote:
    Hi everyone, I am trying to execute XA transaction using the driver XA compatible
    driver
    weblogic.jdbc.oci.xa.XADataSource. I have added c:\bea7.0SP4
    \weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll in the PATH in my
    weblogic managed server startup script.
    When I start managed server, I get the error saying that weblogicoci38.dll
    is not in java.library.path. I checked the server log file and in that
    it clearly shows that java.library.path contains this file. Please suggest
    me what to do.Hi. This error message can be confusing for some OSes. If the process tries to
    load a method from XYZ.DLL, and finds the DLL, but in order to load that method,
    it finds it needs to also load ABC.DLL (such as the Oracle OCI DLL or the OS C libraries)
    and doesn't find that lower-level DLL, the user can get a message mentioning only the
    first (present) DLL. Please print out your full java.library.path. Does it correctly
    list all the basing OS C libraries, and the Oracle Clint library path?
    thanks,
    Joe
    >
    I have weblogic 7.0 with SP4 and databse is oracle 8i.
    thanks,
    jyothi
    ####<Mar 1, 2004 9:52:36 AM EST> <Error> <JDBC> <temp1> <server1> <main> <kernel
    identity> <> <001060> <Cannot startup connection pool "ConnPool1" java.sql.SQLException:
    System.loadLibrary(weblogicoci38) threw java.lang.UnsatisfiedLinkError: no weblogicoci38
    in java.library.path>
    ####<Mar 1, 2004 9:52:49 AM EST> <Info> <Management> <temp1> <server1> <main>
    <kernel identity> <> <141187> <Java system properties are defined as follows:
    awt.toolkit = sun.awt.windows.WToolkit
    bea.home = c:\bea7.0SP4
    file.encoding = Cp1252
    file.encoding.pkg = sun.io
    file.separator = \
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = c:\bea7.0SP4\jdk131_08\lib\tools.jar;c:\bea7.0SP4\weblogic700\server\lib\weblogic_sp.jar;c:\bea7.0SP4\weblogic700\server\lib\weblogic.jar;c:\bea7.0SP4\weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll;C:\bea7.0SP4\user_projects\jytDmnCluster\lib\parser.jar.jar;C:\bea7.0SP4\user_projects\jytDmnCluster\lib\xml4j_1_1_16.jar;C:\bea7.0SP4\user_projects\jytDmnCluster\p6spy.jar
    java.class.version = 47.0
    java.ext.dirs = c:\bea7.0SP4\jdk131_08\jre\lib\ext
    java.home = c:\bea7.0SP4\jdk131_08\jre
    java.io.tmpdir = C:\DOCUME~1\jshanbag\LOCALS~1\Temp\
    java.library.path = c:\bea7.0SP4\jdk131_08\bin;.;C:\WINNT\System32;C:\WINNT;.;c:\bea7.0SP4\weblogic700\server\bin;c:\bea7.0SP4\jdk131_08\bin;c:\bea7.0SP4\weblogic700\server\bin\ntvinv\oci817_8\weblogicoci38.dll;\jpda\bin;C:\Oracle\Ora81\bin;C:\Program
    Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\PVCS\VM\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;c:\;c:\vslick\win

  • Set transaction use roll back segmet

    Hi all:
    I have lot of packages with the statement set transaction use roll back segment RBS_BIG.I am working on upgrade project and using undo tablespaces.
    Is there a quick way to grep the this statement from all the packages and remove off.Does the presence of this statement in packages of new database cause compilation errors ?
    Thanks,
    Ganesh

    Hi,
    Set init.ora parameter as follows and restart database. All SET TRANSACTION USE ROLLBACK SEGMENT statements will have no effect and ignored.
    UNDO_SUPPRESS_ERRORS=TRUE
    You may use ALTER SYSTEM rather than restart db. If your database use spfile.ora, you have to execute:
    ALTER SYSTEM SET UNDO_SUPPRESS_ERRORS=TRUE SCOPE=BOTH;
    Best regards,
    Dima

  • How to find the transactions used by a user

    Hi experts,
    How can I find which transactions used by a user. In which SAP table could I look after?

    Hi ,
    You can use transaction code ST03N.
    1. Go to tx code - ST03N
    2. Under "Workload" you can select your "Instance or Total" so that it expands and shows you Days, Week, Month.
    3. If you want to look at the transactions executed for a particular day, lets say, then double click on any day.
    4. At the bottom left you get "Analysis Views"
    5. Select & expand "User and Settlement Statistics"
    6. Double click on "User Profile"
    7. On the right side of the window you get a list of all the users
    8. Double click on a particular user you want to view the details of.
    9. The new screen will display the "Transactions/Reports Utilized by User XXX"
    If you wanna track which users executed a particular transacation then follow this:
    10. In "Analysis Views" expand "Transaction Profile"
    11. Double click on "Standard"
    You can view the list of Transactions and Reports.
    12. Double click on the Tx Code or Report you wanna check and it will show the Use of it.
    This will help you.
    Reward if helpful.
    Thankyou,
    Regards.

  • How can I call a LabVIEW executable from within another LabVIEW executable?

    I have a customer requirement for two LabVIEW executables. Based on their current setup, they need to run executable "A" or "B", both of which are under independent revision control. I have created a third "selection" executable that allows the operator to choose between one of the two, but I am receiving errors when I attempt to call a LabVIEW executable from within a LabVIEW executable using either the "System exec" VI or the "Run Application" VI. If I call a non-LabVIEW executable (such as Windows Explorer) everything works fine.

    > I have a customer requirement for two LabVIEW executables. Based on
    > their current setup, they need to run executable "A" or "B", both of
    > which are under independent revision control. I have created a third
    > "selection" executable that allows the operator to choose between one
    > of the two, but I am receiving errors when I attempt to call a LabVIEW
    > executable from within a LabVIEW executable using either the "System
    > exec" VI or the "Run Application" VI. If I call a non-LabVIEW
    > executable (such as Windows Explorer) everything works fine.
    As with the other poster, I suspect a path problem. You might try the
    path out in a shell window, and if it works, copy the complete absolute
    path to LV to see if that works. LV is basically passing the comma
    nd to
    the OS and doesn't even know what is in it, so you should be able to get
    it to work.
    The other poster commented on subpanels, which is a good suggestion, but
    without going to LV7, an EXE can have open more than one VI. You can
    use the VI Server and the Run method to fire up another top-level VI.
    The decision is whether you want both to be in unique processes.
    Greg McKaskle

  • PO Response approval Work item is not executing from approver inbox.

    Hi,
    PO Response approval Work item is not executing from approver inbox. After click the approve button system is not showing any error and also work item is not clearing from user inbox. When we checked the status of the work item in SWI1 Transaction is still READY.
    Standard Task: TS14508055 - Transfer purchase order response data to purchase order
    Business Object: BUS2209
    Scenario:
    1. Create PO in SRM System, Vendor belongs to SUS System Vendor
    2. SUS Vendor creates the PO Response SUS system, POR Value is greater Than PO Value
    3. Approval Work item will go to Buyers of purchasing group
    4. Buyer trying to approving The PO Response from his approval inbox
    Regards,
    Surya Sankar

    what all buttons do you see when you open the workitem in the approval inbox.
    as far as i know , there will only button 'transfer response to purchase order'..
    what happens if you click the above button.

  • Linux net command showing incorrect output if executing from java.

    I am trying to execute a net rpc registry on red hat linux box from java using Runtime. I have stored the command in a String variable. When the execute the command from java it throws an error saying that "Invalid registry path" however the same command works fine when executed from linux command terminal.
    CODE
    import java.io.*;
    public class ChkBpower {
         public static void main(String[] args) {
         checkBpower(128);
         public static void checkBpower (int TTL){
              int ttl = TTL;
              System.out.println("Hello3");
              String ip = "20.198.36.28";
              String[] reg={"\\","HKLM","\\","SOFTWARE","\\","Marimba"};
              System.out.println(reg);
              String credentials ="bpwrlab/Administrator%Confmgmt1";//"asiapac/gjagdeosingh%M@nu2281";
              String chkBcmd = "net rpc registry enumerate '\\HKLM\\SOFTWARE\\Marimba' -I " + ip + " -U " + credentials ;
              String chkBstatus = "net rpc service status cscmarimba -I " + ip + " -U " + credentials + "| grep -b 'service' | awk '{print $4}'";
              String startBpower = "net rpc service start cscmarimba -I " + ip + " -U " + credentials;
              if (ttl>=100 && ttl<=128){
              System.out.println(ttl);     
              System.out.println(chkBcmd);
              try {
                   Runtime r = Runtime.getRuntime();
                   Process p = r.exec(chkBcmd);
                   InputStream stderr = p.getErrorStream();
         InputStreamReader isr = new InputStreamReader(stderr);
         BufferedReader br = new BufferedReader(isr);
         String line = null;
         System.out.println("<ERROR>");
         System.out.println(br.readLine());
         while ( (line = br.readLine()) != null)
         System.out.println(line);
              System.out.println("</ERROR>");
              int exitVal = p.waitFor();
              System.out.println("Process exitValue: " + exitVal);
              catch (Throwable t)
         t.printStackTrace();
    }

    Use exec(String[]), not exec(String), whenever you have argue,nets. Saves all that mucking around and second-guessing and escaping ...

  • Calling DOS executable from TestStand

    I have read the forum under TestStand.  I have version 3.0-- I am unable to get a DOS executable tool to work when I call it.  I can create a seperate seq file and call Notepad fine but when in that seperate and unique seq file I put the call to my tool and try and pipe (>) the results to a screen it doesn't work-I've tried what seems like every option for threading etc .  So I even put my DOS program under a directory and naming structure that conforms to the old 8.3 DOS standard.  I try to pipe(>) information to a text file and it doesn't work.  It also doesn't wait the 30 seconds that I tell it to either despite trying every option etc.  I've done everything I've seen in the help but have had no luck.  Do I need to create a VB or C++ DLL wrapper, if I do then what challenges do I face?  I am close to telling my manager that TestStand is not a tool that we can use.
    Thanks
    JL

    I got it working.  Thanks for you input.  I believe I simply was missing a command on the command line (it takes about 5 parameters).  It was falling through and I wasn't able to catch what was going on.  I thought it was a thread issue within teststand that I needed to set.  I also didn't realize the default location that it executes from any my paths were explicit.  I also wasn't clear on some other details but have now figured them out pretty much.
    Thanks again
    Jim
    ~~~~~~~~~~~
    Are you using the call executable step type? If so please provide more informations about how you have it configured, if not please explain what you are doing. By DOS executeable do you mean an old 8-bit DOS program (what version of windows are you running this on?)? Or do you mean a windows console application? Are you getting any error messages? How are you verifying that your executeable isn't being called? Or is the problem just with the IO redirection?
    -Doug

Maybe you are looking for