Error with small sap script program

REPORT  ZFORM1                                  .
TABLES : ZGTABLE.
types:begin of warea,
      trackid type zgtable-trackid,
      artist type zgtable-artist,
      end of warea.
data:itable like zgtable occurs 0 with header line.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
*   APPLICATION                       = 'TX'
*   ARCHIVE_INDEX                     =
*   ARCHIVE_PARAMS                    =
*   DEVICE                            = 'PRINTER'
   DIALOG                            = 'X'
   FORM                              = 'ZFORM1'
   LANGUAGE                          = SY-LANGU
*   OPTIONS                           =
*   MAIL_SENDER                       =
*   MAIL_RECIPIENT                    =
*   MAIL_APPL_OBJECT                  =
*   RAW_DATA_INTERFACE                = '*'
* IMPORTING
*   LANGUAGE                          =
*   NEW_ARCHIVE_PARAMS                =
*   RESULT                            =
* EXCEPTIONS
*   CANCELED                          = 1
*   DEVICE                            = 2
*   FORM                              = 3
*   OPTIONS                           = 4
*   UNCLOSED                          = 5
*   MAIL_OPTIONS                      = 6
*   ARCHIVE_ERROR                     = 7
*   INVALID_FAX_NUMBER                = 8
*   MORE_PARAMS_NEEDED_IN_BATCH       = 9
*   SPOOL_ERROR                       = 10
*   CODEPAGE                          = 11
*   OTHERS                            = 12
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
   ELEMENT                        = 'MAIN'
*   FUNCTION                       = 'SET'
*   TYPE                           = 'BODY'
   WINDOW                         = 'MAIN'
* IMPORTING
*   PENDING_LINES                  =
* EXCEPTIONS
*   ELEMENT                        = 1
*   FUNCTION                       = 2
*   TYPE                           = 3
*   UNOPENED                       = 4
*   UNSTARTED                      = 5
*   WINDOW                         = 6
*   BAD_PAGEFORMAT_FOR_PRINT       = 7
*   SPOOL_ERROR                    = 8
*   CODEPAGE                       = 9
*   OTHERS                         = 10
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CLOSE_FORM'
* IMPORTING
*   RESULT                         =
*   RDI_RESULT                     =
* TABLES
*   OTFDATA                        =
* EXCEPTIONS
*   UNOPENED                       = 1
*   BAD_PAGEFORMAT_FOR_PRINT       = 2
*   SEND_ERROR                     = 3
*   SPOOL_ERROR                    = 4
*   CODEPAGE                       = 5
*   OTHERS                         = 6
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Inside sapscript:
/E MAIN
P1 <B> Track id : </> &ITABLE-TRACKID&
P1 <B> Artist   : </> &ITABLE-ARTIST&
output:
Trackid : 00000000000
Artist  :
Why the output is like that? I expect the output to be first record of the table.Please help me.

Where is loop ( Internal table ),Just see the bold code
REPORT  ZFORM1                                  .
TABLES : ZGTABLE.
<b>data : begin of itable occurs 0,
          trackid type zgtable-trackid,
          artist type zgtable-artist,
         end of itable .</b>
CALL FUNCTION 'OPEN_FORM'
EXPORTING
  APPLICATION                       = 'TX'
  ARCHIVE_INDEX                     =
  ARCHIVE_PARAMS                    =
  DEVICE                            = 'PRINTER'
   DIALOG                            = 'X'
   FORM                              = 'ZFORM1'
   LANGUAGE                          = SY-LANGU
  OPTIONS                           =
  MAIL_SENDER                       =
  MAIL_RECIPIENT                    =
  MAIL_APPL_OBJECT                  =
  RAW_DATA_INTERFACE                = '*'
IMPORTING
  LANGUAGE                          =
  NEW_ARCHIVE_PARAMS                =
  RESULT                            =
EXCEPTIONS
  CANCELED                          = 1
  DEVICE                            = 2
  FORM                              = 3
  OPTIONS                           = 4
  UNCLOSED                          = 5
  MAIL_OPTIONS                      = 6
  ARCHIVE_ERROR                     = 7
  INVALID_FAX_NUMBER                = 8
  MORE_PARAMS_NEEDED_IN_BATCH       = 9
  SPOOL_ERROR                       = 10
  CODEPAGE                          = 11
  OTHERS                            = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>select  track id artist from zgtable into table itable.
if sy-subrc ne 0.
*message
endif.
loop at itable .
CALL FUNCTION 'WRITE_FORM'
EXPORTING
   ELEMENT                        = 'MAIN'
  FUNCTION                       = 'SET'
  TYPE                           = 'BODY'
   WINDOW                         = 'MAIN'
IMPORTING
  PENDING_LINES                  =
EXCEPTIONS
  ELEMENT                        = 1
  FUNCTION                       = 2
  TYPE                           = 3
  UNOPENED                       = 4
  UNSTARTED                      = 5
  WINDOW                         = 6
  BAD_PAGEFORMAT_FOR_PRINT       = 7
  SPOOL_ERROR                    = 8
  CODEPAGE                       = 9
  OTHERS                         = 10
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 itable.
endif.</b>
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
  RESULT                         =
  RDI_RESULT                     =
TABLES
  OTFDATA                        =
EXCEPTIONS
  UNOPENED                       = 1
  BAD_PAGEFORMAT_FOR_PRINT       = 2
  SEND_ERROR                     = 3
  SPOOL_ERROR                    = 4
  CODEPAGE                       = 5
  OTHERS                         = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks
Seshu

Similar Messages

  • Calling SAP script program in BAPI and want to display in html format

    Dear All,
    I am writing bapi and calling sap script program in it.
    I want output in html format pl suggest me
    same coding is working for report giving error in sapscript only.
    types: begin of tt_html,
                 html type w3html,
           end of tt_html.
    data: list_tab type standard table of abaplist.
    SELTAB-SELNAME = 'S_INVNO'.
    SELTAB-KIND = 'S'.
    SELTAB-SIGN = 'I'.
    SELTAB-OPTION = 'EQ'.
    SELTAB-LOW =  INVOICE_NUM1.
    SELTAB-HIGH = INVOICE_NUM2.
    APPEND SELTAB.
    submit ZSDRDINVPNBRPT with selection-table seltab
    exporting list to memory and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = MTAB_REPORT_LIST
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
        CALL FUNCTION 'WRITE_LIST'
         EXPORTING
           WRITE_ONLY       = 'X'
          TABLES
            listobject       = MTAB_REPORT_LIST
         EXCEPTIONS
           EMPTY_LIST       = 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.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
           TABLES
                HTML   = MTAB_REPORT_HTML
           EXCEPTIONS
                OTHERS = 1.
    LOOP AT MTAB_REPORT_HTML.
    ENDLOOP.

    For displaying output in html format,
    u can either use BSP ( Business Server Pages)
    or Webdynpro.
    Reward if helpful.

  • Sap script program without Nast

    Hi Friends,
    can we right a sap script program without taking nast table into consideration???
    Thanks and Best Regards.
    Kusum.

    Hi,
    Yes you can create an ABAP report with normal selection screen and output will be a sap script.

  • Getting the error in the sap script

    Hi,
    I am running the Tcode f.26, which uses the standard sap script named F_DUZI_01. When running I am getting the error:
    Element 0031 window INFO is not defined for
    F_DUZI_01
    Please suggest what should i do or what could be the reason behind the problem.

    Hi,
    Check the Script whether that element is being used or not. Such  errors raise when you called the elements in the program without delcaring in the script.
    Please close the thread, if solved
    Regards,
    Aditya

  • Error when including SAP Scripting Control

    Hello,
    I was using SAP Scripting Control in VB with SAPGUI 620 without any problems. I upgraded my SAPGUI to 640 (patch level 8). Now, I am not able to include the SAP Scripting Control (sapfewse.ocx) in Visual Basic. Whenever I try to include it, I get an error "Circular dependencies between modules". Am I doing something wrong?
    I also installed the patch level 20 but I still get the same error.
    Any help would be highly appreciated.
    Thanks.

    Hi Vishal,
    please upgrade to the latest 640 patch. The problem was fixed, I think patch 11 should work fine.
    Best regards,
    Christian

  • Error while displaying SAP script

    Hi,
      I was trying to display a SAP script by passing the values.
    When i click the preview button from the Dialog window It's displaying error called "CALL CONTAINED error (ADS(2)) "
    Can anyone explain why this problem is coming and what we want to do for making it work.

    Hi,
    Check for the data types of the variables you are passing values.
    There can be any data miss match.
    Regards,
    Rajesh Kumar

  • SAP Script Program Code

    Hello,
    I want to write a patch of code in SAP SCript which will fetch multiple lines of data(no of lines fetch is unknown). How can I do it? I tried Perform Endperform but it had limit to the varibales it can send back. I don't know the line items(values) it will return.
    i cannot modify print program? How can I do it?
    Thanks,
    Amol..

    If you do not want to modify the standard program and achive to display you can use sub-routine calls... firstly, you should identify the element that is displaying the line items and use your sub-routine call inside that element and display all the required fields.
    Note: you there is no element which call for line items, I guess there is no other alternative then modifying the driver program.
    Regards,
    SaiRam

  • Error in printing SAP Script

    Dear All,
    I need some help frm u gurus.
    Theres a Z-SAP Script that I made.........the same is running fine in quality but when transported to production client it gives error in PERFORM START_FORM USING FORMNAME LANG 'MAIN'. saying that the form doesnot exist in language 'EN'.
    What can be the problem?? Any suggestion....?
    Thnx.

    just check it out whether you will have properly released and whether it is reached to the destination client.
    one more thing check in language option of that script in se71 screen in language option whether english is maintained.
    if further information please reply
    rewards points if useful

  • Standard Runtime error with no SAP notes in OSS

    Hi All,
    Am getting a runtime error in standard sap functionality.
    I serched in market place for solution.
    I will be thankful for suggesting any other approach solution for standard runtime error?
    Thanks.
    Moderator message: please do not open multiple threads for the same or similar issue.
    Edited by: Thomas Zloch on Dec 12, 2011 6:31 PM

    Hi,
    I tried undoing note implemented.
    many dependent nots were inplemented along with note.
    Kindly guide how these notes can be unimplemented.
    Thanks.

  • Sap Script Programming.

    Hi Frnd's
    Can anybody send me the link to learn abt SAP Script.
    thanks in advance
    suganya.d

    Hi,
    check these links,
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    Regards,
    Wasim Ahmed

  • Errors with small program

    Ok, I'm trying to get a small program to compile on my windows box. I'm a student and in the lab (on a linux box) the program compiled fine. I keep getting this error:
    Easypieces.java:52: cannot resolve symbol
    symbol : variable volume
    location: class EasyPieces
    System.out.println("Volume:" + volume);
    ^
    2 errors
    Here's the code:
    * Student should complete the five methods, document the class
    * and the methods, and test this well. You may remove the instructor
    * comments.
    public class EasyPieces {
    * Student should complete and document this method
    public void waterBalloons(int radius) {
         double cubedRadius = Math.pow(radius, 3);
         double volume;
         double volume = 4/3 * Math.PI * cubedRadius ;
    * Student should complete and document this method
    public void upsLoad(double computer, double monitor, double other) {
    * Student should complete and document this method
    public void carpool(int people) {
    * Student should complete and document this method
    public void checksum(int number, int base) {
    * Student should complete and document this method
    public void combinationLock() {
    * Instructor provided test cases. Student should add additional
    * test cases as necessary to make sure the program functions as
    * intended.
    public static void main(String[] args) {
    //Create an object of type EasyPieces to use for the testing
    EasyPieces testPiece = new EasyPieces();
    //Instructor provided test for waterBalloons
    testPiece.waterBalloons(6);
    System.out.println("Volume:" + volume);
    //Instructor provided test for upsLoad
    //testPiece.upsLoad(1.2,0.8,1.4);
    //System.out.println("----------------------------------------------------------------------");
    //Instructor provided test for carpool
    //testPiece.carpool(15);
    //System.out.println("----------------------------------------------------------------------");
    //Instructor provided test for checksum
    //testPiece.checksum(156,7);
    //System.out.println("----------------------------------------------------------------------");
    //Instructor provided test for combinationLock
    //testPiece.combinationLock();
    //System.out.println("----------------------------------------------------------------------");
    For some reason it doesn't want to print the variable out...
    Any help?
    Thanks, Greg

    << That code didn't compile on your linux box, guaranteed. :o) >>
    This program didn't but one similiar to it did, and I get the same error message when I try to compile it on my windows box:
    public class zeller {
         public static void main(String args[]) {
              int month = 2;
              int day = 29;
              int year = 2000;
              if (month == 2) {
                   year = year -1;
                   day = day +3;
              if (month == 1) {
                   year = year -1;
                   day = day;
              if (month == 3) {
                   year = year;
                   day = day + 2;
              if (month == 4) {
                   day = day + 5;
              if (month == 5) {
                   day = day;
              if (month == 6) {
                   day = day + 3;
              if (month == 7) {
                   day = day + 5;
              if (month == 8) {
                   day = day +1;
              if (month == 9) {
                   day = day +4;
              if (month == 10) {
                   day = day +6;
              if (month == 11) {
                   day = day +2;
              if (month == 12) {
                   day = day +4;
              int sum = year + year/4 - year/100 + year/400 + day;
              int dayOfWeek = sum % 7;
              System.out.println(dayofweek);
    I get this error in windows (the same error I get with the other program):
    D:\JAVA\jdk142\bin>javac zeller.java
    zeller.java:67: cannot resolve symbol
    symbol : variable dayofweek
    location: class zeller
    System.out.println(dayofweek);
    ^
    1 error
    Greg

  • 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

  • Error in customised SAP script for F-58

    Hi experts,
    I'm facing one strange error.
    While doing F-58 transaction along with any Z-sapscript , the values are getting populated into fields of table REGUH (Settlement data from payment program).
    One field REGUH-ZADNR (Payee's Address Number) the value coming as 'XXXXXXXXXX'.
    while processing this value ...It results in runtime error as "CONVT_NO_NUMBER"
    Unable to interpret "XXXXXXXXXX" as a number.
    What could be the reason.
    Any useful inputs on this will be rewared points.
    Thanks
    Lakshmiraj A

    Well it is actually the functional guys task. For the payment run transaction F110 they have to do many configurations to maintain the payee, bank, cheque lot, company details etc. So better ask them to check the configuration of payment run, in that check if the payee has the correct address.
    Hope it helps.
    Please inspire by rewarding points.
    FY

  • Cannot create client error with sample SAP JCO code

    Hi,
    I am encountering the following error when trying to connect to a R/3 system using the WAS 6.40 on my laptop. I have cut and pasted the Example1 code from the SAPJCO into my NetWeaver developer studio IDE.
    java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)
         at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)
         at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)
         at com.sap.mw.jco.support.JRfcTest.correctProperties(JRfcTest.java:1043)
         at com.sap.mw.jco.support.JRfcTest.initCall(JRfcTest.java:1072)
         at com.sap.mw.jco.support.JRfcTest.runConnectionTest(JRfcTest.java:735)
         at com.sap.mw.jco.support.JRfcTest.main(JRfcTest.java:202)
    Cannot create client, error message:
    java.lang.NoClassDefFoundError occured:
       Message:null
    I have a system user defined in R/3 but still this isn't working. I am new to Java so any light you could shed would be greatly appreciated.
    Cheers and TIA,
    Rich

    The unsatisfied link error should be because sapjco.jar cannot link to the sapjco.dll.
    I tried to simulate the problem by
    1) Opening a java perspective.
    2) Create a new 'java' project.
    3) Add libraries sapjco.jar from the path <Drive>:\Program Files\SAP\JDT\eclipse\plugins\com.sap.mw.jco\lib
    You will see sapjcorfc.dll in this path
    4)Add a new class file ,Wrote a sample jco code and executed and it worked..
    The key is to have the sapjcorfc.dll in the same directory as sapjco.jar
    I hope this helps

  • Error with ConfigureGC.pl script

    Hi i have installed enterprise grid control 10.2.0.5 in SUSE 10(64 bit), i want configure the Grid Control installation using the Perl script ConfigureGC.pl, but obtain the following error:
    oracle@gridcontrol:~/product/oms10g/opmn/bin> /opt/oracle/product/oms10g/perl/bin/perl /opt/oracle/product/oms10g/sysman/install/ConfigureGC.pl /opt/oracle/product
    Base Directory: /opt/oracle/product
    No file exists. Can't rename
    Starting ito execute Configuration Assistants:
    Running the configuration assistants using the following command:
    /opt/oracle/product/oms10g/oui/bin/runConfig.sh INV_PTR_LOC=/opt/oracle/product/oms10g/oraInst.loc ORACLE_HOME=/opt/oracle/product/oms10g ACTION=configure MODE=perform COMPONENT_XML={encap_oms.1_0_0_0_0.xml} RESPONSE_FILE=/opt/oracle/product/agent10g/responsefile
    perform - mode is starting for action: configure
    perform - mode finished for action: configure
    You can see the log file: /opt/oracle/product/oms10g/cfgtoollogs/oui/configActions2009-12-07_08-44-43-PM.log
    Configuration Assistants failed with errors. Please check the above log.
    For more details also check /opt/oracle/product/oms10g/cfgtoollogs/cfgfw/CfmLogger_<LATEST_TIME_STAMP>.log
    the log show this:
    ions2009-12-07_08-44-43-PM.log
    The action configuration is performing
    The plug-in Web Cache Configuration Assistant is running
    2
    Failed in smi manipulation().
    A problem has occurred reading the initial configuration and storing it into rep
    ository
    Resolution:
    Please refer to the base exception for resolution, or call Oracle support.
    Base Exception:
    /opt/oracle/product/oms10g/Apache/Apache/bin/httpd: error while loading shared l
    ibraries: libdb.so.2: cannot open shared object file: No such file or directory
    Resolution:
    Please make sure the values entered in OHS configuration files are correct.
    oracle.ias.sysmgmt.exception.InvalidConfigurationException: Base Exception:
    /opt/oracle/product/oms10g/Apache/Apache/bin/httpd: error while loading shared l
    ibraries: libdb.so.2: cannot open shared object file: No such file or directory
    Resolution:
    Please make sure the values entered in OHS configuration files are correct.
    at oracle.ias.sysmgmt.repository.plugin.advanced.apache.StateTranslator.
    checkConfigFileValidity(Unknown Source)
    at oracle.ias.sysmgmt.repository.plugin.advanced.apache.StateTranslator.validateConfigDuringEvaluate(Unknown Source)
    at oracle.ias.sysmgmt.repository.plugin.advanced.apache.PlugInImpl.localConfigValidation(Unknown Source)
    at oracle.ias.sysmgmt.repository.DcmPlugin.localConfigValidation(Unknown Source)
    at oracle.ias.sysmgmt.repository.RepositoryImpl.performLocalValidation(Unknown Source)
    at oracle.ias.sysmgmt.repository.SyncUpHandler._updatePluginConfigData(Unknown Source)
    at oracle.ias.sysmgmt.repository.SyncUpHandler.syncUpFromLocalFiles(Unknown Source)
    at oracle.ias.sysmgmt.repository.RepositoryImpl.syncUpFromLocalFiles(Unknown
    Source)
    at oracle.ias.sysmgmt.utility.editpropagator.PropagateLocalEdit.repositoryInit(Unknown Source)
    at oracle.ias.sysmgmt.persistence.utility.PMUtility.initConfiguration(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.initConfiguration(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
    at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
    at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
    at oracle.ias.sysmgmt.EntryPoint.init(Unknown Source)
    at oracle.ias.webcache.config.WebcacheConfig.smiSetup(WebcacheConfig.java:483)
    at oracle.ias.webcache.config.WebcacheConfig.smiEnableWebcache(WebcacheConfig.java:454)
    at oracle.ias.webcache.config.WebcacheConfig.enableConfiguration(WebcacheConfig.java:299)
    at oracle.ias.webcache.config.WebcacheConfig.main(WebcacheConfig.java:87)
    The plug-in Web Cache Configuration Assistant has failed its perform method
    The action configuration has failed its perform method
    Thanks any reply

    create a sysmbolic link as below and rerun ConfigureGC.pl
    ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2

Maybe you are looking for

  • Invoke Bpel Processes via API or Web Service Proxy Clients

    Hi all, I was wondering if any of the felow community members have found information regarding best practices in invoking bpel processes from a user interface other than ADF Faces? Currently I'm using Web Service Proxy Clients to invoke my bpel proce

  • InDesign all versions: is there a rectangle widget...

    I need to draw a rectangle on a dialog, fill it with white background and then place a text box and another custom widget on top of it.  Is therea already a widget that will provide me with this functionality, or do I need to write my own custom widg

  • Error in  implementing the Export excel functionality

    Hi All, I have an issue an implementing the  "Exporting the Table data to Excel." My VC version is 7.0 Portal version NW 2004s. By refering the following link, i have implemented Export To Excell functionality in VC. 2) Another one that's in the Visu

  • Document link to Func loc / equipment / work order

    Hi We need to print the documents attached in functional location/ equipment via work order. Kindly guide the process to implement the same. or I need the tables to link the document attached in functional location, equipment with work order / functi

  • Safari browser no longer works on my macbook pro.

    I no longer can use safari browser on my macbook pro. It doesn't recognize server xfinity comcast? I have been using firefox. I also re-instaleed it and still won't work.~ thanks, Vic