Error in External programe

Dear All,
We are facing error in one of external programe; which is included in one of step of a job. the programe is 'sleep' which is resposible for inserting delay in job e.g. 300 sec. the value 300 is the parameter for the external programe.
when we run the job this program doesnt stop. keep on giving delay in job. or else in other job it doesnt run .... can any budy suggest hte troubleshooting of the same.
Thanks in advanse.
<b>Regards,</b>
Swapnil Lakhe

Hello Swapnil,
The most probable reason that I get from the description is that the counter is never passed back to the job control.
What you can do as an alternative is write an simple ABAP to loop for 300 secs and then write an message Like "Completed or finished" and enter this ABAP program as an step instead of the External program.
This should work 100 %.
Regards
Amit

Similar Messages

  • Error Message: External program terminated with exit code 2

    Hi ALL
    We are doing REORG tablespace in DB13 and i am getting below error message. Please help us to resolve the issue.
    20100430     113234     DB6PM     000     Reorg_Tbspc:Command DB6CLP failed on server
    20100430 103959 DB6PM 000 Reorg_Tbspc:Exitcode:Error
    20100430 103959 DB6PM 000 Reorg_Tbspc:ERRORMESSAGE: An SQL error occured. Will print output of the command
    20100430 103959 DB6PM 000 Reorg_Tbspc:External program terminated with exit code 2
    20100430 103959 DB6PM 000 REASON=C call failed
    Regards
    K.Gunasekar
    Edited by: KGUNASEKAR on Apr 30, 2010 6:55 AM

    Exitcode 2, if returned from the OS, means "No such file or directory". Note that as of SAP kernel release 7, you usually do not have DB6CLP any more. Can you check if the executable is available in the SAP exe directory ?
    If running SAÜ kernel 700 or higher, I suggest to apply a recent SP level.
    Malte

  • Returning Error Status back from Form to external program

    Question,
    I am trying to run a form essentially from the command line. I need to programatically catch any error codes that might have occured in the form by an external program. I can find nothing about returning errors back from the form or how to display it.
    Any assistance is appreciated.
    Andy Hendrickson
    null

    Hello Andreas,
    Ah, sorry, there was so much talk about user decisions that I assumed you were using a standard decision task.
    Still, I would be extra careful of changing the way workflow usually works because you have an unknown target audience that are based on the standard.
    The standard SAP philosophy is quite simple: cancel/F3 or do nothing and it stays reserved. If you do not want it reserved, you need to perform an action. This is based on a majority of processes: in most cases when you execute a work item you will also be the one who is going to completed it. Replacing it is the lesser used of the two alternatives, therefore it is the only one that requires an action on the part of the user.
    Again, this is intended as constructive input. Strange quirks and unusual behaviour tend to add a black mark to software if they do not make things easier to use. In many environments users are not even aware of the reserve/replace business, so there you would be adding an additional layer of complexity.
    Personally I would find an exit popup annoying as a regular workflow user - regular decisions can be approved with one click, or I can back out with a single click if I need to make a phone call or look up some info before approving - but with this new-fangled thing I've got an extra button to click and an extra thing to think about. This is especially the case in a payment approval scenario where you may have users in some departments who may approve hundreds of payments each week.
    My suggestion would be to leave it like that. By all means put an option into the user decision to put it back or to 'un-reserve' it (and loop round if the user chooses it). That way you are adding value and not clicks.
    Cheers,
    Mike

  • Error with triggering a external program

    I used the following codes to trigger an external program, it worked fine for microsoft word but netmeeting seems to have a problem. I used a button to trigger it.
    try {
    Runtime cpRunTime = Runtime.getRuntime();
    Process cpProcess = cpRunTime.exec("C:\\Program Files\\NetMeeting\\conf.exe");
    catch (Exception ex) {
         ex.printStackTrace();
    The following are the error, can anyone tell me what is wrong or perhaps a solution. The netmeeting program did load but my applet crashed.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D06353E
    Function=Java_sun_print_Win32PrintJob_printRawData+0x1ACA
    Library=C:\j2sdk14\jre\bin\awt.dll
    Current Java thread:
    at sun.awt.windows.Win32OffScreenSurfaceData.initSurface(Native Method)
    at sun.awt.windows.Win32OffScreenSurfaceData.createData(Win32OffScreenSu
    rfaceData.java:114)
    at sun.awt.windows.WVolatileImage.createHWData(WVolatileImage.java:87)
    at sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileIma
    ge.java:99)
    at sun.awt.image.SunVolatileImage.validate(SunVolatileImage.java:264)
    at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4681)
    at javax.swing.JComponent.paint(JComponent.java:794)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
    60)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
    at java.awt.Container.paint(Container.java:1268)
    at sun.awt.RepaintArea.paint(RepaintArea.java:180)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
    at java.awt.Component.dispatchEventImpl(Component.java:3586)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Window.dispatchEventImpl(Window.java:1581)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Dynamic libraries:
    0x00400000 - 0x00406000 C:\j2sdk14\bin\java.exe
    0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
    0x77DB0000 - 0x77E0D000 C:\WINNT\system32\ADVAPI32.dll
    0x77E80000 - 0x77F36000 C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77DA1000 C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
    0x6D330000 - 0x6D445000 C:\j2sdk14\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E75000 C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
    0x77570000 - 0x775A0000 C:\WINNT\System32\WINMM.dll
    0x6D1D0000 - 0x6D1D7000 C:\j2sdk14\jre\bin\hpi.dll
    0x6D300000 - 0x6D30D000 C:\j2sdk14\jre\bin\verify.dll
    0x6D210000 - 0x6D228000 C:\j2sdk14\jre\bin\java.dll
    0x6D320000 - 0x6D32D000 C:\j2sdk14\jre\bin\zip.dll
    0x6D000000 - 0x6D0F6000 C:\j2sdk14\jre\bin\awt.dll
    0x77800000 - 0x7781E000 C:\WINNT\System32\WINSPOOL.DRV
    0x76620000 - 0x76630000 C:\WINNT\system32\MPR.DLL
    0x75E60000 - 0x75E7A000 C:\WINNT\System32\IMM32.dll
    0x77A50000 - 0x77B45000 C:\WINNT\system32\ole32.dll
    0x6D180000 - 0x6D1D0000 C:\j2sdk14\jre\bin\fontmanager.dll
    0x728A0000 - 0x728A6000 C:\WINNT\System32\DCIMAN32.dll
    0x0CE20000 - 0x0CF98000 C:\WINNT\System32\nvoglnt.dll
    0x51000000 - 0x5104B000 C:\WINNT\System32\ddraw.dll
    0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000 C:\WINNT\System32\PSAPI.DLL
    Local Time = Sun Sep 15 23:38:46 2002
    Elapsed Time = 6
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)
    # An error report file has been saved as hs_err_pid1520.log.
    # Please refer to the file for further information.
    #

    Could anyone help me with this problem? Is there some additional codes to run the dll files?
    Wong Kwai Wing

  • SM69-Can't exec external program (Exec format error)

    Hi All,
    I am executing UNIX script on HP-UX system via SM69.
    But getting following error:
    u201CCan't exec external program (Exec format error)
    External program terminated with exit code 1u201D
    Also getting same error with FM-SXPG_COMMAND_EXECUTE & SXPG_COMMAND_EXECUTE
    Can any one guide what is the cause of error.
    Any help will be appreciated.
    Regards

    Check the Sample program. You can test or check the Unix commands using the below program.
    You can use the commands Like LS to list all the files.
    REPORT ZUNIX line-size 400
                    no standard page heading.
    data: unixcom like   rlgrap-filename.  
    "7 full perimission to read
    "7 full permission to change
    "7 full permission to delete
    unixcom = 'CHMOD 777 fillfullpath'.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].

  • External program interfaces SLIN Error

    Dear Experts,
                      I am getting SLIN External program interfaces error . could you please tell me how to correct the  error ?
      *LOOP AT lt_p0001 INTO ls_p0001."
          SUBMIT yhrin_rhstru00 WITH pchwegid = 'O_S_P' WITH pchobjid-low = ls_p0001-orgeh "#EC *
          WITH pchbegda = '19000101' WITH pchenda = '99991231' WITH pchplvar = '01'
          WITH pchotype = 'O' AND RETURN.
          EXIT.
        ENDLOOP.*
    Regards,
    Sivakumar.A

    Dear experts ,
      I am receiving the following SLIN Error Message.
    Program:  SAPLYHRIN_MSSDB_ENH  Include:  LYHRIN_MSSDB_ENHU06  Row:    129   (Prio 1)
    PCHOBJID-LOW is not a parameter or a select option in report YHRIN_RHSTRU00
    (The message can be hidden with "#EC *)
          Program:  SAPLYHRIN_MSSDB_ENH  Include:  LYHRIN_MSSDB_ENHU06  Row:    129   (Prio 1)
    PCHENDA is not a parameter or a select option in report YHRIN_RHSTRU00
    (The message can be hidden with "#EC *)
    Thanks and Regards,
    Sivakumar.A

  • SM69 error-Can't exec external program (Permission denied).with exit code 1

    Hi All,
    I am trying to execute UNIX script via creating commend line in SM69.
    But i am getting following error:
    "Can't exec external program (Permission denied)
    External program terminated with exit code 1"
    Can any one guide me what could be the cause of this error.
    Any Help will be appreciated.
    Thanks & Regards

    First use SU53, to see if you have all SAP-authoritys.
    But I think, you have no authority to execute UNIX-programs.
    or your UNIX-script is not executable?

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • Error opening external DTD 'Segnatura.dtd' using dbms_xmlsave.insertXML

    I've been trying to insert a document in a table. All works fine
    if the xml doesn't contains the doctype element!
    If I add the row
    <!DOCTYPE Segnatura SYSTEM "Segnatura.dtd">
    to my xml I get the error:
    oracle.xml.sql.OracleXMLSQLException: Error opening external DTD
    'Segnatura.dtd'.
    If I specify all the path "file:///temp/Segnatura.dtd" the insert
    works, but I don't want to do in that way beacause I don't want
    to modify the original xml that i'm inserting!
    In the package dbms_xmlsave I have no ways to change the
    basedir/baseurl
    or to setValidationMode to false like in xmlparser package.
    Is there any way to solve this problem??
    Thank's in advance
    Mauro
    This is an example scratch of my xml doc:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    <!DOCTYPE Segnatura SYSTEM "Segnatura.dtd">
    <Segnatura versione="2001-05-07"
    xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="it">
    </Segnatura>

    Hy Steven, thank's for your attention.
    I'm not using the xsql servlet.
    I'm reading an xml file coming from the file system and I want to
    import it in the db using a java stored proc.
    I also have the dtd file (Segnatura.dtd) but I don't know where
    to put in on the server.
    If I run my java program and I put Segnatura.dtd in the execution
    classpath on the program the xml is loaded fine.
    If I load the stored proc in the db then I don't know where to
    put the dtd. Do I have to put the directory containing the dtd in
    the server classpath and the restart the db maibe?
    thank's
    mauro

  • Call external program in background mode

    Hi,
    I am creating a PO using bapi BAPI_PO_CREATE1 in exit USEREXIT_SAVE_DOCUMENT_PREPARE.
    I dont want to write the code in my exit. Instead I want to write the code in a Z program and call it in my exit.
    My Problem.
    How do I call my z program in my exit so that I can pass internal tables from my exit to the z program. Also I want to schedule the call of my external program for background processing.
    I am trying with SUBMIT ZPROG AND RETURN. But not able to pass an internal table.
    I tried PERFORM BAPI_PO_CREATE IN PRGRAM ZPROG, but in this case not able to schedule it in background.
    Please advise.
    Regards,
    Shobhit

    Hi Rich,
    Im setting runtime error:
    My Code in Exit: (xvbfa is the table which i wanna pass)
    concatenate 'SERVICEPO' sy-datum into l_key.
    export xvbfa = xvbfa
                  to shared buffer indx(st) id l_key.
    My Code in the called program ZMM_SERVICE_PO
    Runtime Errors         CONNE_IMPORT_WRONG_OBJECT_TYPE
    Exceptn                CX_SY_IMPORT_MISMATCH_ERROR
    Date and Time          05.12.2005 21:41:54
    ShrtText
         Error when attempting to IMPORT object "XVBFA".
    What happened?
         Error in ABAP application program.
         The current ABAP program "ZMM_SERVICE_PO" had to be terminated because one of
          the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
         When importing the object "XVBFA", the object in the
         dataset had a different type from the target object in the program
         "ZMM_SERVICE_PO" (object types: field, field string/structure, table).
         table).
    Error analysis
         An exception occurred. This exception will be dealt with in more detail
         below. The exception, assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was
          not caught, which
          led to a runtime error. The reason for this exception is:
         The object "XVBFA" has a different object type in the dataset from
         that in the target program "ZMM_SERVICE_PO". (Object types: Field, flat
          structure,
         deep structure, flat table, deep table).
    Missing Handling of System Exception
        Program                                 ZMM_SERVICE_PO
    Trigger Location of Exception
        Program                                 ZMM_SERVICE_PO
        Include                                 ZMM_SERVICE_PO
        Row                                     43
        Module Name                             START-OF-SELECTION
    Source Code Extract
    Line  SourceCde
    REPORT  ZMM_SERVICE_PO.
    DATA: l_poheader      LIKE bapimepoheader.
    DATA: l_poheaderx     LIKE bapimepoheaderx.
    DATA: l_poitem        LIKE bapimepoitem     OCCURS 0 WITH HEADER LINE.
    DATA: l_poitemx       LIKE bapimepoitemx    OCCURS 0 WITH HEADER LINE.
    DATA: l_cond          LIKE BAPIMEPOCOND     OCCURS 0 WITH HEADER LINE.
    DATA: l_condx         LIKE BAPIMEPOCONDX    OCCURS 0 WITH HEADER LINE.
    DATA: l_poschedule    LIKE bapimeposchedule OCCURS 0 WITH HEADER LINE.
    DATA: l_poschedulex   LIKE bapimeposchedulx OCCURS 0 WITH HEADER LINE.
    DATA: l_purchaseorder LIKE bapimepoheader-po_number.
    DATA: l_return        TYPE BAPIRET2 OCCURS 0.
    DATA: l_error_found   TYPE c.
    DATA: l_show_messages TYPE c.
    DATA: l_eindt(10)     TYPE c.
    DATA: l_answer        TYPE c.
    DATA: l_VBAK          TYPE STANDARD TABLE OF VBAK WITH HEADER LINE.
    DATA: l_VBFA          TYPE STANDARD TABLE OF VBFA WITH HEADER LINE.
    DATA: xlips           TYPE STANDARD TABLE OF LIPS WITH HEADER LINE.
    *DATA: xvbfa           TYPE STANDARD TABLE OF vbfa WITH HEADER LINE.
    DATA xvbfa like vbfa.
    DATA: l_key(60) type c.
          concatenate 'SERVICEPO' sy-datum into l_key.
    >>>>> import xvbfa = xvbfa
                      from shared buffer indx(st) id l_key.
          delete from shared buffer indx(st) id l_key.
    Could you help.
    Regads,
    Shobhit

  • Context: Error loading external library

    Oracle 8.1.5EE, Solaris 8 (x86)
    create index quick_text on quick ( text )
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: ld.so.1: extprocPLSExtProc: fatal: relocation error: file
    /oracle/app/oracle/product/8.1.5/ctx/lib/libctxx8.so: symbol ociepgoe:
    referenced symbol not found
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    whats the problem ?!
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Omar Alonso ([email protected]):
    Make sure that the Net8 listener is running and is configured to invoke external procedures.<HR></BLOCKQUOTE>
    Of cause its running and configured as follows:
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM=extproc) (ORACLE_HOME=/oracle/app/oracle/product/8.1.5)
    (SID_NAME=PLSExtProc)
    tnsnames.ora:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    LD_LIBRARY_PATH - ok to lib and lib/ctx
    + /var/ld/ld.conf - correct
    + ENVS=LD_LIBRARY_PATH=... - set
    I dont understand whats the problem ;-(
    services looks like this:
    PHNET3 has 5 service handler(s)
    DEDICATED SERVER established:0 refused:0
    LOCAL SERVER
    DISPATCHER established:94 refused:0 current:13 max:254 state:ready
    D000 <machine: phnet3, pid: 19391>
    (ADDRESS=(PROTOCOL=tcp)(HOST=195.133.235.229)(PORT=34087))
    DISPATCHER established:162 refused:0 current:13 max:254 state:ready
    D001 <machine: phnet3, pid: 19393>
    (ADDRESS=(PROTOCOL=tcp)(HOST=195.133.235.229)(PORT=34088))
    DISPATCHER established:132 refused:0 current:13 max:254 state:ready
    D002 <machine: phnet3, pid: 19395>
    (ADDRESS=(PROTOCOL=tcp)(HOST=195.133.235.229)(PORT=34089))
    DEDICATED SERVER established:0 refused:0
    LOCAL SERVER
    PLSExtProc has 1 service handler(s)
    DEDICATED SERVER established:0 refused:0
    LOCAL SERVER
    null

  • Before calling an external program, check if the program is allready open

    I need to call an external program to print some labels, so i will use function WS_EXECUTE or the new one DSVAS_DOC_WS_EXECUTE_50 to call my program, but the problem that i have is:
    when I call this function, the program open a small window, and if i have to call it again, it will open another window, and so on... obviously this is not a good solution.
    Is there any one how knows how can i close the program, of perhaps it is enough if there is some way to know if the program is already open.
    Many thanks in advance,
    Miriam

    Hi
    you can use the ABAP Coverage Analyzer.
    OR
    This is a function module we use to limit the execution of a program to one instance at a time.
    DATA: PRG LIKE INDX-SRTFD. PRG = SY-CPROG.
    CALL FUNCTION 'ENQUEUE_ESINDX'
    EXPORTING RELID = 'ZZ'
    SRTFD = PRG
    SRTF2 = 0
    EXCEPTIONS FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2.
    IF SY-SUBRC NE 0.
    FORMAT COLOR COL_NEGATIVE INVERSE ON.
    WRITE: / 'ERROR: Program Is Already Running'.
    WRITE: / 'Program', PRG, 'has been stopped. Rerun in 1 minute.'.
    STOP.
    ELSE.
    WRITE: / 'OK ',PRG.
    ENDIF.
    Regards,
    Raj

  • ORA-06520: PL/SQL: Error loading external library

    Hi
    I am trying to use an external C program from sql using following steps.
    copy the dll in dir ORACLE/806/BIN
    create or replace library outs as
    'e$/ORACLE/806/BIN/SmlCrcChecking.dll'
    create or replace FUNCTION plsCheck_File_CRC (fname Varchar2)
    return boolean
    AS LANGUAGE C
    library outs
    name "Check_File_CRC";
    and call the dll using
    select plsCheck_File_CRC('c:\mttest.txt') from dual;
    The dll is notc alled the message is
    ERROR at line 1:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unable to load DLL
    Please help
    Prashant

    I am trying to create a Pl/SQL test env using
    create or replace procedure file_test
    (fname in varchar2,
    status out number)
    is
    begin
    If Check_File_CRC (fname) then
    status:=0;
    else
    status:=1;
    end if;
    end;
    However the following errros are displayed
    Errors for PROCEDURE FILE_TEST
    6/1 PL/SQL: Statement ignored
    6/4 PLS-00382: expression is of wrong type
    mY TNSNAMES.ORA contains following
    additions
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA = (SID = PLSExtProc)(PRESENTATION = RO))
    extproc_connection_data.world =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = extproc))
    (CONNECT_DATA =
    (SID = extproc)
    AND LISTNER.ORA
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\ora81)
    (PROGRAM = extproc)
    Message was edited by:
    prashant13

  • Error in external tax system

    Hi Guys
    I am getting an error when the BAPI is being called by webmethods. The order gets generated but when i go in to it to verify stuff and on running the incompleteness check i get pricing error. On checking the pricing the tax was found not be be getting updated by the system therfore i manually entered and hit enter but got error in taskbar 'Error in external tax system: Line: 0 - 0440 TxJCdST The Fleximodule fo'
    I then did a lookup for tax calculation in FI and found the table KOMK with field-TXJCD that updates the jurisdiction code for price calculation.
    SPRO>Financial Accounting > Financial Accounting global setting > Tax on sales purchase >Basic setting > Check calculation procedure
    The question is when we are calling the BAPI locally we are successfully created without error but calling the BAPI from webmethods its giving error.
    Could any one suggest anything???

    Hello Comes Naturally,
    There are 2 SAP Notes which talk abt the error 594847 and 500281 and both talk abt implementing the advance corrections given in them.
    I give you the details of the notes for your reference below
    <b><u>594847</u></b>
    Summary
    Symptom
    You enter a customer invoice with Transaction FB70 (this is also valid for a vendor invoice with Transaction FB60). You enter a G/L account item and derive a profitability segment (by choosing the profitability segment button on table control). The system generates error message FS861:
    'Error in external tax system: : & - 0440 TxJCdST...'
    Other terms
    CALCULATE_TAX_DOCUMENT, COPA_PROFITABILITY_SEGMENT, EnjoySAP, SAPMF05A
    Reason and Prerequisites
    This problem is caused by a program error.
    Solution
    Import the appropriate Support Package or implement the attached advance corrections.
    <u><b>500281</b></u>
    Symptom
    In an FI Enjoy transaction to post invoices, you enter data including a tax amount in the basic data screen, you enter a revenue line item and you choose the 'Profitability segment' pushbutton. As a result, the transaction terminates with message
    FS861  'Error in external tax system: 0 - 0440 TxJCdST The fleximap module to'.
    The problem also occurs, for example, if you select a screen variant or an account assignment template.
    Other terms
    FS861, COPA, screen variant
    Reason and Prerequisites
    If you use Vertex as an external tax system, a program error occurs in this manner.
    Solution
    Implement the attached program corrections.
    Thanks
    Murtuza
    Thanks
    Murtuza

  • SXPG_COMMAND_EXECUTE Can't exec external program (No such file or directory

    Hi Experts,
    I need to launch or terminate an external application (i.e. command prompt, notepad, etc.) in background job by using FM SXPG_COMMAND_EXECUTE. However, I am unable to proceed because of the following error occured after executing the command in SM69.
    Can't exec external program (No such file or directory)
    External program terminated with exit code 1
    I was using the following sample code. Can someone tell me what might be the cause of the problem?
    DATA: lv_status TYPE extcmdexex-status,
          lt_output TYPE TABLE OF btcxpm,
          lv_opsys  TYPE sy-opsys.
    lv_opsys = 'WINDOWS NT'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                   = 'ZIEXPLORE'
        additional_parameters         = '/c'
        operatingsystem               = lv_opsys
      IMPORTING
        status                        = lv_status
      TABLES
        exec_protocol                 = lt_output
      EXCEPTIONS
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        OTHERS                        = 15.
    ZIEXPLORE command
    Operating system command: cmd
    Parameters for operating system command: taskkill /f /im iexplore.exe
    Thanks and Regards,
    Louie

    Hi Louie,
    I am not able to assume the reason of the problem, If you say that its not getting executed in SM49 then the problem lies there.
    So I am providing you a link which might be helpful, just go through it and cross check. There is a parameter called "trace" in the fm mentioned.
    Secton Microsoft Windows NT - [Prerequisites for Running External Commands and External Programs|http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7fbb505211d189550000e829fbbd/content.htm]
    [Analyzing Problems with External Commands and Programs|http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a80c4505211d189550000e829fbbd/content.htm]
    May be you can post this question in [SAP AS General|SAP NetWeaver Application Server; also.

Maybe you are looking for