Run through t-code

hi experts,
i got requirement, after we create report we assign that to t-code,  when we execute that t-code o/p will come.
when we execute report in se38 means it will get a error message that run through particulat t-code.
pls any one suggest ....
regards,
praveen

Hi,
Do you wanna print this error message  when executing the report in SE38. If yes
write below code in the AT SELECTION SCREEN event
if sy-ucomm EQ 'ONLI'.
Message ' Execute the program with T code' type 'E'.
Return.
Endif.
Regards
Pavan

Similar Messages

  • Problem with executing shell script on linux through java code.

    i am facing problem to kill jboss process on linux that is my application requirement. for that i created one shell script that will get all the process for jboss instance and kill them when i am running that script from command prompt on linux its working perfectly.
    The command i am using ---
    /opt/RW9/jboss/v4.0.5.GA/bin/restartjboss.sh.
    but when i am running through java code its not working.
    the java code i am using is:-
    pp = Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", "/opt/RW9/jboss/v4.0.5.GA/bin/restartjboss.sh"});
    could anyone tell me what is the problem ?
    Edited by: akm198110 on Sep 2, 2008 9:24 AM

    I got the problem after long struggle ,after doing proper path i am able to execute the shell script..

  • How to run a command prompt " command " through java code

    hi all,
    There is a command
    "java -jar selenium-server.jar -interactive"
    which i am running through command prompt after going to D:\MyFolder\Examples .
    i want to execute this command using java code .please help

    This has already been answered in your other two threads on this topic - http://forum.java.sun.com/thread.jspa?threadID=5221221&messageID=9898287#9898287 and http://forum.java.sun.com/thread.jspa?threadID=5221223&messageID=9898290#9898290.
    For some reason you don't want to read the reference that tells you exactly how to do what you want and how to avoid the pitfalls - http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html .

  • Running SQL queries through Xpress code

    Hi,
    Please give an idea to run the sql select, update queries through Xpress code.
    The code may be there in workflows or rulelibs...
    Any ideas are appreciated
    Thanks,
    Santoshanand

    There is a set of JDBC methods in the class com.waveset.util.JdbcUtil which certainly allows for selects to take place.
    check out the javadocs from the BFE especially the queryList and queryRecords methods.
    I guess the sql method could be used to run any sort of sql statement you like if you want to modify the database.
    From XPress these methods are invoked
    e.g.
    <invoke name='queryList' class='com.waveset.util.JdbcUtil'>
    </invoke>

  • Trying for Run Direct Cash Flow through Trasaction code FSI0

    Dear Friends,
    When I am trying for Run Direct Cash Flow through Trasaction code FSI0 then it is giving error Financial Statement veriosn INT doesnt exist...
    I want to Assign my Company Financial Statement veriosn MFSV instead of INT
    can u please tel me how to Assing my compnay Financial Statement veriosn
    please help me gurus...
    Thanks,
    Srem

    Hi
    Can get the output in the reort by assigning your Chart of account and GL accounts pertaining to your COA. You have to click on the change Icon otherwise it will show as greyed out.
    1) Preparation of FSV is a good option but how will you address "Change in receivables" like that items in FSV?
    2) GL's can be linked to the report as told earlier.
    3) Still in the process of exploring.
    4) "Relevance to Cash flow" tick has no relavance with the cash flow report.
    5) Activation of Cash management has no relevance with cash flow report.
    6) There is no special configuration required for Cash flow.
    The only problem here is getting the output for items like change in inventory etc. If this could also be brought in this report, it would be a wonderful report.
    GL accounts can be mapped with this report. The problem you may be facing is due to the reason that you might not have clicked the change icon, that is why it is showing as greyed out.
    Cheers
    V.Krishnan

  • Running windows command through java code

    Hello
    i want to execute jar.exe through java code , i have written following piece of code , but it isn't working
    ProcessBuilder processBuilder = new ProcessBuilder(new String[]{"cmd.exe","/c","%java_home%\\bin\\jar.exe"});
              Process process = processBuilder.start();
              BufferedReader inputReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
              String line = inputReader.readLine();
              while(line != null){
                   System.out.println(line);
                   line = inputReader.readLine();
    does anybody knows why
    Regards
    Edited by: Mayur Mitkari on Mar 5, 2013 10:19 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM

    sorry for that , but the
    Runtime runtime = Runtime.getRuntime();
              Process proc = runtime.exec(new String[]{"cmd.exe","/c","jar"});
              proc.waitFor();
    int i = proc.exitValue();
    this code was different from first one
    and in case of Process if runtime .exec is succesful it is wainting for long time , in this case i want if the runtime.exec is succesful something should be returned
    Regards

  • Insert statement not working when Interface is run through PI ..

    Hi Every one,
    There is an interface(Server proxy) which updates a ztable in the program. Updates are happening when we are running this interface manually(putting Payload manually) but in case there are already entries in ztable and we are trying to update these records, even after handling exception z table is not getting updated when run through PI and happening manually.
    Please suggest me for the same.
    Vivek

    Tobias from this forum had the answer!
    http://powershell.com/cs/forums/p/5438/8786.aspx#8786
    His fix:
    Whenyou putput text from powershell, the console width is assumed. Since task scheduler runs its own hidden console, the width of that console is used to truncate the text.
    You can work by this issue by setting the width yourself. Try using a combination of Format-Table -auto / Format-List -auto and Out-File -width like this:
    get-process | Format-Table -Auto | Out-File c:\test.txt -Width 10000
    The format-cmdlet with -Auto makes sure the file uses only as much width as is truly needed. The -Width parameter sets the maximum width available.
    If you must redirect the output to something else, replace Out-File with Out-String -Stream -Width 10000 and then redirect the result to whereever you want.
    Note that multiline strings will still be truncated after the first line.
    My code looks like this:
    #Export Dataset Table to a text file       
    $DataSet.Tables[0] | Format-Table -Auto | Out-File $rcvrFileName -Width 10000
    This worked like a charm.
    Thanks!

  • Crystal report run from ASP code significantly slower than when run in CRS

    We have CRS XI R2.  I developed a report that contains several on-demand sub-reports.  The report and sub-reports are very fast when run directly from CRS.  However, when I run from ASP (users run a link from the intranet), it takes 4 times longer (1 second on CRS, vs. 5-10 seconds on intranet).  The report takes longer, bringing up a sub-report takes longer and paging through sub-reports take longer.  What can be done to improve the speed of the report that is using the ASP code?  I used a sample program provided at this support site to develop the report and it is pretty basic code.  The only time I have a problem is when I have many sub-reports.  Since they are on-demand, I do not know why this would matter.

    This has been created as an incident with SAP support.  Things that you will want to check is making sure that you handle the postback to the code as you do not need to run your entire code on every postback.  This will help performance after the original load. 
    One other thing is to compare performance with the viewer within Infoview that uses the same backend server as your application, ie PSReportFactory uses the page server, so you'll want to test with the DHTML viewer.  RAS code (reportclientdocument) uses the Report Application Server so you will want to test with the Advanced DHTML viewer.

  • How can I put a limit on how many times my 'if' statement runs through?

              while (done == false)
                   testnumber++;               //Testing the next number
                   testdivisor = 1;          //Resetting the testdivisor
                   System.out.println("1st while statement");
                   if (testdivisor <= testnumber)
                        testdivisor++;
                        divisors = testdivisor % testnumber;
                        System.out.println("2nd while statement");
                        if  (divisors == 0)
                             divisor1= testdivisor/testnumber;
                             System.out.print (divisor1);
                             System.out.println("3rd while statement");I need to stop it after it goes through the 4th if statement 4 times. The specific code might not make sense because it's a rough copy, but it will give you an idea of the program real quick.
    So is there any way to make it stop after 4 runs through the last if statement?

    So is there any way to make it stop after 4 runs
    through the last if statement?If you seriously can't think of how to do that, are you sure programming is up your alley?
    int hits = 0;
    while (!done) {
      if (divisors == 0) {
        ++hits;
        ... // do your current stuff
        if (hits >= 4) break;

  • Unable to open PDF document when run through task/workflow

    Hi all,
    I am currently usign a background method to send a smartform as a PDF document to all the agents who approve.
    When i send the smartform in mail as a PDF documetn throught the task i get an error message when opening the PDF document which says that 'The file could nto be opened because it was either not a supported file type or because the file was damaged(for example, it was sent as an email attachment and wasn't decoded correectly'.
    The below is the code i am using to send the smartform
    { CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZFI_ASSET_PDA_NOTIF'
        IMPORTING
          fm_name            = lv_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.}
    { ls_ctrlop-getotf    = 'X'.
      ls_ctrlop-no_dialog = ''.
      ls_compop-tdnoprev  = 'X'.
    ls_ctrlop-DEVICE = 'LOCL'.
      ls_ctrlop-preview   = 'X'.
      ls_ctrlop-no_dialog = 'X'.}
      CALL FUNCTION lv_form_name
        EXPORTING
          control_parameters = ls_ctrlop
          output_options     = ls_compop
          user_settings      = 'X'
          gv_prctr_txt       = gv_prctr_txt
          gv_cc_text         = gv_cc_text
          gv_class_txt       = gv_class_txt
          gv_lname           = gv_lname
          gv_fname           = gv_fname
          gv_position        = gv_position
          gv_initiator       = gv_initiator
          gv_bookcost        = gv_bookcost
          gv_bookvalue       = gv_bookvalue
          gv_date            = gv_date
          gv_prctr           = gv_prctr
          gs_anla            = gs_anla
          gv_emv             = gv_emv
          gv_cond            = gv_cond
          gv_operable        = gv_operable
          gv_action          = gv_action
          gv_justify         = gv_justify
          gv_replace         = gv_replace
          gv_replace_comment = gv_replace_comment
          gv_process         = gv_process
        IMPORTING
          job_output_info    = lt_job_output
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S'  NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT lt_job_output-otfdata INTO ls_otf.
        lt_otf = ls_otf.
        APPEND lt_otf.
        CLEAR lt_otf.
      ENDLOOP.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lv_len_in
        TABLES
          otf                   = lt_otf
          lines                 = lt_tline
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
    Fehlerhandling
      IF sy-subrc EQ 0.
      ENDIF.
      LOOP AT lt_tline.
        TRANSLATE lt_tline USING '~'.
        CONCATENATE ls_buffer lt_tline INTO ls_buffer.
      ENDLOOP.
      TRANSLATE ls_buffer USING '~'.
      append ls_buffer TO lt_objbin.
    DATA  lv_counter         TYPE i.
      DO.
        lt_record = ls_buffer.
        APPEND lt_record.
        SHIFT ls_buffer LEFT BY 255 PLACES.
        IF ls_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Attachment
      REFRESH:
      lt_reclist,
      lt_objtxt,
      lt_objbin,
      lt_objpack.
      CLEAR ls_objhead.
      lt_objbin[] = lt_record[].
    lt_objhex[] = lt_record[].
      CLEAR lv_descp.
      CONCATENATE 'Asset'
                  gs_anla-anln1
                  'Approval details'
             INTO lv_descp
    SEPARATED BY space.
    Create Message Body
    Title and Description
      CONCATENATE  'Please find attached the approval details of asset : '
                   gs_anla-anln1
              INTO lv_mail_descp
             SEPARATED BY space .
      lt_objtxt = lv_mail_descp.
      APPEND lt_objtxt.
      CLEAR  lv_mail_descp .
    appending space lines into text of mail.
    DO 3 times.
      CLEAR lt_objtxt.
      APPEND lt_objtxt .
    ENDDo.
    CONCATENATE 'This is an automatically generated message.'
                 'Please do not reply to this mail.'
           INTO lv_mail_descp
         SEPARATED BY space .
    lt_objtxt = lv_mail_descp.
    APPEND lt_objtxt.
      DESCRIBE TABLE lt_objtxt LINES lv_lines_txt.
      READ     TABLE lt_objtxt INDEX lv_lines_txt.
      ls_doc_chng-obj_name = 'smartform'.
      ls_doc_chng-expiry_dat = sy-datum + 10.
      ls_doc_chng-obj_descr = lv_descp.
      ls_doc_chng-sensitivty = 'F'.
      ls_doc_chng-doc_size = ( lv_lines_txt - 1 ) * 255  + STRLEN( lt_objtxt ) .
    Main Text
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt ).
      CLEAR lt_objpack-transf_bin.
      lt_objpack-head_start = 1.
      lt_objpack-head_num = 0.
      lt_objpack-body_start = 1.
      lt_objpack-body_num = lv_lines_txt.
    lt_objpack-doc_type = 'RAW'.
        lt_objpack-doc_type = 'TXT'.
      APPEND lt_objpack.
    Attachment
    (pdf-Attachment)
      lt_objpack-transf_bin = 'X'.
      lt_objpack-head_start = 1.
      lt_objpack-head_num   = 0.
      lt_objpack-body_start = 1.
      DESCRIBE TABLE lt_objbin LINES lv_lines_bin.
      READ TABLE lt_objbin INDEX lv_lines_bin.
      lt_objpack-doc_size = ( lv_lines_bin - 1 ) * 255 + STRLEN( lt_objbin ) .
      lt_objpack-body_num = lv_lines_bin.
      lt_objpack-doc_type = 'PDF'.
      lt_objpack-obj_name = 'ATTACHMENT'.
      lt_objpack-obj_descr = lv_descp.
      APPEND lt_objpack.
      LOOP AT t_mail_addr.
        CLEAR lt_reclist.
        lt_reclist-receiver = t_mail_addr-mailid.
        lt_reclist-rec_type = 'U'.
        APPEND lt_reclist.
      ENDLOOP.
      IF t_mail_addr[] IS INITIAL.
        CLEAR lt_reclist.
        lt_reclist-receiver = mail id.
        lt_reclist-rec_type = 'U'.
        APPEND lt_reclist.
      ENDIF.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = ls_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = lt_objpack
          object_header              = ls_objhead
          contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          receivers                  = lt_reclist
         CONTENTS_HEX                = lt_objbin
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      DATA: l TYPE sy-subrc.
      l = sy-subrc.
    When i run the above code in Se38, I get an email with a attachment that i am able to open. The problem seems to be with user WF_BATCH.
    I have already checked all the existing threads on this. I did this coding as per one of the SDN threads itself.
    I am able to open the PDF attachment even when i test the method. The problem is only when it is run through a task/workflow.
    Please advice.
    Thanks and Regards,
    Soumya Gayatri.
    Edited by: Soumya Gayatri on Apr 14, 2009 8:40 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:44 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:45 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM

    Hello,
    You should see an "Edit" in the top right of your post, you can use that to edit it.
    As I said, use  before and after the coding, but without the spaces (after "{" and before "}" ).
    Try it!
    Testing:
    this is code
    regards
    Rick Bakker
    Hanabi Technology

  • Automatic payment run through F110

    Hi Everyone,
    During the aotumatic payment run via F110, after creating the proposals when i am trying to display the proposal, it is giving an error message that " Company Code XY12 / XY12 does not appearin proposal 08.07.2011 AB00; correct "
    But I already set company code XY12 , in the company code in the parameter tab. I ahve also set there payment methods and next payment date. Please help.

    Hi
    After you get the mesage
    Carried out Automatic Payment Run through F110
    Posting orders: 2 generated, 0 completed
    You need to refersh data by pressing Status or Pressing Enter.
    Regards
    Venkat

  • Electronic Bank Statement (EBRS) through T.Code: FF_5 Vs FF67

    Dear Experts
    My client so far BRS is doing manually through T.Code: FF67 or FF68.
    Initially the configuration is done wit two GL accounts, (1) Main bank account ending with +++++++0 ,(2) Outgoing clearing account ending with ++++++1 and there is no incoming clearing account, whenever the client issue the cheque credit to the outgoing clearing account and debit to the vendor account and whenever receive the cheque Debit to the Incoming clearing account is debit & Credit to the Customer. and the same manual BRS is completed very weel without problems.
    But now as per client requirement I have to do run Electronic bank reconcilation in the system using T.code : FF_5. I have received  file format SWIFT MT940 from banks about 5banks and rest of the banks around 25 babnks  they have to continue with manual BRS FF67 / 68 only.
    so i should not change the configuration , so i have to continue with existing configuration and have to complete the EBRS using with two GL account (main bank, outgoing clearing ) , if i continue with existing configuration shall i complete the EBRS with extra additional settings (Assign External Transaction Types to Posting Rules, and Assign Bank Accounts to Transaction Types ) using T.Code: FF_5.
    what is the impact, whether i can complete  EBRS or not, kindly advice on this how i have to procssed futher.
    Please advice on this and what is the impact on EBRS or manuall BRs.
    Regards
    Eswar

    Hi,
    no problem working with two accounts in your business process. In this case your reconciliation will be like  before.
    Anyhow FF_5 (FF.5) or FF67 do the same thing. Post transactions from the bank statement. To learn more about the accounts used in your company check the transaction OT83.
    regards

  • I need to be able to debug through cfc code

    I need to be able to debug through cfc code being called from a Flex app remote object. I know how to debug straight cfm code using cfeclipse for flex builder but am unable to figure how to get this working for cfc's. If I set a break point in my cfc and start my coldfusion debugging session in Flex Builder and run my flex app and get it to call the cfc the debugger doesn't stop.
    Any ideas? Do i need to modify the Flex-config?

    Write a simple cfm page that invokes the method in question.  Do whatever you have to do to get the cfc working properly.  After that, don't touch it.  Subsequent problems will be due to something else.

  • How to Increase Java Heap Size through Java Code. Increase inside Code?

    Hi All,
    I am using a third party tool. When i run a particular program it says OutOfMemory error. I like to increase heap size through Java Code before calling the particular Java application or Code..
    Is there is any way to set the Heap Size through Java Code in run time ???
    Pls Kindly help.
    Thanks.

    if you start the program with a -Xmx512m flag, the virtual machine gets half a gigabyte of memory to use (or that's the max it's allowed to use). All things run in the same virtual machine will have the same limit, third party tools run in the same virtual machine can't "not care about this" unless they're throwing OOMs themselves for some stupid reason.

  • Running the same code multiple times with different paramters automatica​lly

    Hi guys,
    I want to run the same code multiple times with different paramters automatically. Actually, I am doing some sample scans which takes around 2 hours n then I have to be there to change the paramters and run it again. Mostly I do use folowing paramters only
    X_Intial, X_Final, X-StepSize
    Y_Intial, Y_Final, Y-StepSize
       Thanks,
    Dushyant

    All you have to di is put all of the parameters for each run into a cluster array. Surround your main program with a for loop and wire the cluster array through the for loop. A for loop will autoindex an input array so inside the for loop you just have to unbundle the cluster to get the parameters for each run.
    Message Edited by Dennis Knutson on 07-13-2006 07:50 AM
    Attachments:
    Cluster Array.JPG ‏9 KB

Maybe you are looking for

  • ISE: advising users that only EAP-TLS can be used

    A large school board accepts only EAP-TLS connections.  This requirement is easily dissiminated to teachers, however not to students whose personal devices keep trying to connect using PEAP.   Once users connect with EAP-TLS, they are authenticated o

  • Large block of photos suddenly missing?

    Greetings to all those who are undoubtably more elements 7 savvy than I am. Without my opening, moving, renaming or otherwise molesting them, 2/3s of the photos in one of my two catalogs have suddenly gone missing. I have exhausted all the trouble sh

  • Aperture 3 & iPhoto - How to add photos w/o putting them into the library

    Hey Guys, I want to know if there is a way of using iPhoto or Aperture without having to store my photos into their library. I've been traditionally keeping my photos in my "Pictures" album by adding folders and numbering them accordingly to keep tra

  • Quickaccess and Formatting bar both missing in 7.2

    I was wondering if anyone had encountered this before: I just recently re-installed FrameMaker 7.2 on a XP SP2 machine and I am unable to get both the Quickaccess and Formatting bar to display. Both are set to "on" in the .ini files and when I try to

  • Video Capture/Tutorial Software Question

    (if this is in the wrong spot, forgive me) In looking at the tutorial videos on the Apple site, I was wanting to create something similar for some of the apps that I have been writing. Does anyone know what software Apple uses for their video capture