Error in main program assignment of enhancement

Hi all,
I have to create an enhancement in an include RFITEM_INC for tcode FBL1n & FBL3N.
The objective is to populate data in a newly added field to the output of above transactions.
For the purpose, enhancement is to be written in same form statement for both the programs, also the code required is same.
I have created it for one program (FBL3N : RFITEMGL); and now whenever i try to create another enhancement at same location for  other program (FBL1N : RFITEMAP)  the enhancement is created again for the previous program  (RFITEMGL) for which the enhancement alreasy exists.
Therefore, is there any method to attach same enhancement to two main programs or to successfully create two enhancements at same location attached to two different programs.
Please note taht I have been able to create it successfully on sandbox but the above problem is occuring on client's server...anything specific?
Please Help.
Thanks.
Edited by: Rekha Singh on Mar 3, 2009 2:03 PM

answered

Similar Messages

  • Runtime Errors SYSTEM_RUDI_INVALID main program /CRYSTAL/PUBLISHER

    Hello,
    we try to publish reports with transaction /CRYSTAL/RPTADMIN.
    If we publish only one report in dialog we don't have problem. Also if we publish a few report in background.
    But if we try to publish more than one report in dialog (publish (F8) or overwrite (F6) we get a runtime error SYSTEM_RUDI_INVALID.
    Extraction from the error:
    Short text
    Invalid addressig handle "RUDI_NULL".
    What happened?
    Error in the SAP kernel.
    The current ABAP "SAPLSH3A" program had to be terminated because the
    ABAP processor detected an internal system error.
    Error analysis
    Invalid runtime object addressed.
    How to correct the error
    The internal system error cannot be fixed by ABAP means only.
    You may be able to find a solution in the SAP note system. If you have
    access to the SAP note system, try searching for the following terms:
    "SYSTEM_RUDI_INVALID" " "
    "SAPLSH3A" or "LSH3AU06"
    "LOGONDATA_GET_A"
    Information on where terminated
    Termination occurred in the ABAP program "SAPLSH3A" - in "LOGONDATA_GET_A".
    The main program was "/CRYSTAL/PUBLISH_WORKER ".
    In the source code you have the termination point in line 1
    of the (Include) program "LSH3AU06".
    We've got a Netweaver 7.02 BW system with Kernel 7.20 PL 86
    We found several notes with the error SYSTEM_RUDI_INVALID, which all are related to kernel patches. But nothing which match to our problem.
    Any ideas?
    Best regards
    Petra Wöritz

    Hi,
    I would suggest you open a message with support so that they can take a look at the system.
    Ingo

  • How do I creaet Enhancement Implementations for multiple main programs?

    I need to implement an enhancement (ENHANCEMENT-SECTION buchen_03 SPOTS es_mm06ef0b_buchen INCLUDE BOUND.) in an include (MM06EF0B_BUCHEN) that is used by 2 different main programs (SAPLMEPO & SAPMM06E).
    When I create an implementation, it is created for a specific main program.
    How can I create an implementation that is executed irrespective of which main program calls the include?
    Thanks
    Rajeev Natarajan

    Hello,
    plaese apply my note 1020176.
    Read the note carefully. It is absolutly necessary to activate the object in the specified order when appling the note!
    Alternativly: Import SP12 when it is avialable.
    Best Regards
    Michael

  • Automatic Remittances Creation Program (SRS) fails with ARZCAR: Error from main.

    Gurus:
    We have this request that fails - but only at 4am (other scheduled runs it completes fine)
    The error is
    ARZCAR: Error from main.
    Any ideas much apperciated!!
    11.2.0.3
    11.5.10.2
    RHEL 5

    +---------------------------------------------------------------------------+
    Receivables: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    ARZCAR_REMIT_SRS module: Automatic Remittances Creation Program (SRS)
    +---------------------------------------------------------------------------+
    Current system time is 11-NOV-2013 04:00:24
    +---------------------------------------------------------------------------+
      BATCH Date : 2013/11/10 00:00:00
    Convert date parm
    prepay_flag: <N>
    Exception Code <1>
    Batch ID: <>
    main: Error from Batch Id Generation.
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    04:00:24 :Auto Remittance Batch Generation
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Successfully resubmitted concurrent program ARZCAR_REMIT_SRS with request ID 19366567 to start at 12-NOV-2013 04:00:00 (ROUTINE=AFPSRS)
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Finished executing request completion options.
    ARZCAR: Error from main.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 11-NOV-2013 04:00:24
    +---------------------------------------------------------------------------+

  • Error  : No framework program was found for include

    Hi All,
    A web UI enhancement worked perfectly fine in a development system. However, after transporting it to a quality system, it did not work as expected. All transports were error free and all the developed items could be seen in the quality system.
    When trying to keep a breakpoint in the redefined method of a controller class, I get the error "No framework program was found for include <> "; where <> is the z implementation class that was created.
    Any suggestions/ideas on how to resolve this error?

    Hi,
    Check the entries in sm30 bspwdv_ehset_asg if the enhacement is assigned to client in Q system..
    Hope this helps..
    Cheers,
    Sumit Mittal

  • Screen does not seem to reflect changes when called from main program.....

    Hi all,
            here's an issue that i've been trying to solve for a few days now,
    i had created a screen in the screen painter, inside which i've included a table control (screen number 100: ).
    i, then created a second screen pointing to the same program as screen 100 and assigned screen number 200 to it. so both scrn 100 and scrn 200 has got table controls and the validations occur in modules from the same program.
    the issue i face is that, while any changes i make in screen 100 works fine when i call screen 100 from the main program;  it does not work when i try to modify the table control in screen 200. for example, if i were to add a new column, it messes up the allignment of the other columns in screen 200, i can't seem to assign fixed colums, etc....
    has anyone come across similar issues? if so how can i solve it? could it be an error with the SAP GUI?
    any response will be appreciated. points will be rewarded as well... if that's how things work here.
    Thanks,
    David.
    Edited by: david joseph on Aug 14, 2008 2:33 AM

    >
    david joseph wrote:
    > Hi all,
    >         here's an issue that i've been trying to solve for a few days now,
    > i had created a screen in the screen painter, inside which i've included a table control (screen number 100: ).
    >  i, then created a second screen pointing to the same program as screen 100 and assigned screen number 200 to it. so both scrn 100 and scrn 200 has got table controls and the validations occur in modules from the same program.
    >
    > the issue i face is that, while any changes i make in screen 100 works fine when i call screen 100 from the main program;  it does not work when i try to modify the table control in screen 200. for example, if i were to add a new column, it messes up the allignment of the other columns in screen 200, i can't seem to assign fixed colums, etc....
    >
    > has anyone come across similar issues? if so how can i solve it? could it be an error with the SAP GUI?
    >
    > Thanks,
    > David.
    >
    > Edited by: david joseph on Aug 14, 2008 2:33 AM
    Hi David,
    The description of the problem is not so clear.
    Let me know where I'm wrong, you have 2 screens and 2 different tablecontrols ? When you do any changes from the sapgui to the screen 100 there is no problem. But when you do that to the screen 200 is messes up ?
    My logic with table controls
    if you want 2 screens to share the same control then add the control to a subscreen
    when you want to have 2 screens with 2 differents controls :
    in main program
    CONTROLS : tc_100 type TABLEVIEW USING SCREEN 100.
    CONTROLS : tc_200 type TABLEVIEW USING SCREEN 200.
    In screen 100 / 200 assure the name of the controls are tc_100 / tc_200....
    Using this method I never have any problem....

  • RUNTIME ERROR IN GENERATED PROGRAM. Overflow converting ''

    Hi,
    While executing the below code i am getting the error
    " RUNTIME ERROR IN GENERATED PROGRAM. Overflow converting ' ' am new to ABAP , can anyone kindly help me where i have went wrong ? .
    IF ( V_DO_CDS_NAME_MAIN <> '' ).
        ABAP.
            DATA: ref_it_tab TYPE REF TO data,
                  ref_wa TYPE REF TO data.
            FIELD-SYMBOLS: <fs_itab> TYPE ANY TABLE.
            FIELD-SYMBOLS: <fs_wa> TYPE ANY.
            FIELD-SYMBOLS: <fs_field> TYPE ANY.
            CREATE DATA ref_it_tab TYPE STANDARD TABLE OF (V_DO_CDS_NAME_MAIN) WITH NON-UNIQUE DEFAULT KEY.
            ASSIGN ref_it_tab->* TO <fs_itab>.
            SELECT * FROM (V_DO_CDS_NAME_MAIN) INTO TABLE <fs_itab> where C1 = V_WORK_ITEM_ID_MAIN.
            CREATE DATA ref_wa LIKE LINE OF <fs_itab>.
            ASSIGN ref_wa->* TO <fs_wa>.
            loop at <fs_itab> assigning <fs_wa>.
                assign component 'CLIENT' of structure <fs_wa> to <fs_field>.
                V_CLIENT = <fs_field>.
                assign component 'C0' of structure <fs_wa> to <fs_field>.
                V_C0 = <fs_field>.
                assign component 'C1' of structure <fs_wa> to <fs_field>.
                V_C1 = <fs_field>.
                assign component 'C2' of structure <fs_wa> to <fs_field>.
                V_C2 = <fs_field>.
                assign component 'C3' of structure <fs_wa> to <fs_field>.
                V_C3 = <fs_field>.
                assign component 'C4' of structure <fs_wa> to <fs_field>.
                V_C4 = <fs_field>.
                assign component 'C5' of structure <fs_wa> to <fs_field>.
                V_C5 = <fs_field>.
                assign component 'C6' of structure <fs_wa> to <fs_field>.
                V_C6 = <fs_field>.
                assign component 'C7' of structure <fs_wa> to <fs_field>.
                V_C7 = <fs_field>.
                assign component 'C8' of structure <fs_wa> to <fs_field>.
                V_C8 = <fs_field>.
                assign component 'MESSAGE_ID' of structure <fs_wa> to <fs_field>.
                V_MESSAGE_ID = <fs_field>.
                assign component 'TIMESTAMP' of structure <fs_wa> to <fs_field>.
                V_TIMESTAMP = <fs_field>.
                assign component 'EXTRACTKEY' of structure <fs_wa> to <fs_field>.
                V_EXTRACTKEY = <fs_field>.
                assign component 'STATEID' of structure <fs_wa> to <fs_field>.
                V_STATEID = <fs_field>.
                assign component 'DEVICE_ID' of structure <fs_wa> to <fs_field>.
                V_DEVICE_ID = <fs_field>.
            ENDLOOP.
        ENDABAP.
    ENDIF.

    Hi Mubeen,
    While Copying the cotes have come closer otherwise its working fine , i was able to find the error .
    There are ten predefined ABAP data types. There are 100 possible type combinations between these elementary data types. ABAP supports automatic type conversion and length adjustment for all of them except type D (date) and type T (time) fields which cannot be converted into each other.
    I commented the TimeStamp part where i had given the ABAP Type as D and it started working .
    But now i want to display the content of  "TimeStamp"  field but i am not able to do so .
    This is the format in which it has to be displayed 2009.011.915.3353.
    Which ABAPTYPE i need to use ?.
    i am able to display in this format 20090119153353
    regards
    Harsha

  • How to get return values from a button to main program.

    hello,
    I have a main program which has a button Authenticate. On click of authenticate open a form for auth which has USERNAME FIELS AND PASSWORD.
    If entered fields are true then enable editing of jtable in main program..
    Basically something like this :
    //main program
    Authenticate.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    UpdateAuth ua=new UpdateAuth();// opens form which has username and pass for authentication
    ua.setVisible(true);
    //need code here for enabling table
    if(s=="mactus")
    enable table editing
    //table.repaint();
    // form open for auth..(class UpdateAuth )
    private String SigninMouseClicked(java.awt.event.MouseEvent evt) {
    String aname=Aname.getText();
    String apass=Apassword.getText();
    if(aname.equals("") && apass.equals(""))
    JOptionPane.showMessageDialog(null,"Enter login name or password","Error",JOptionPane.ERROR_MESSAGE);
    if(!(aname.equals("") && apass.equals("")))
    if(aname.equals("harshil") && apass.equals("harshil123"))
    String s="mactus"; /// if username and password is success enable table editing in main program
    return s;
    else if (!aname.equals("mactus") && !apass.equals("mactus123"))
    Aname.setText("");
    Apassword.setText("");     
    return null;
    }

    986154 wrote:
    hello,
    I have a main program which has a button Authenticate. On click of authenticate open a form for auth which has USERNAME FIELS AND PASSWORD.
    If entered fields are true then enable editing of jtable in main program..Well, you might be in over your head.
    //need code here for enabling table
    if(s=="mactus") If you don't know how to correctly test for String equality, you will have no chance of getting this to work.
    You need to hit the tutorials. First the basic one, then the Swing one.

  • Issue in connecting sub VI programs through the main program

    Sir/Madam,
                       I have made a few sub VI  programs of 'Keithley 2400', but I am having problem in connecting them together through the main program. Actually the created sub VI programs are not showing  any activation button when I connect 'action.vi' file in 'read.vi' file (attachted). 
    Please give suggestions.
    Regards
    Yachika Manglik
    Solved!
    Go to Solution.
    Attachments:
    action.vi ‏24 KB
    read.vi ‏14 KB
    write.vi ‏24 KB

    Hello
    Thanks for your suggestion.
    I have successfully implemented connections in my code according to your given suggestion .
    Now I am facing problem to link a file named 'control1.ctl'(attached) that I have made for selecting option 'select type of action' and need to add' control1.ctl' in  'read.vi' file. It is showing  following error( below).
    Error: " required input ' GPIB action' is not wired.
                     OR
               "Enumeric conflict"
    So can you please suggest how this error can be removed?
    Attachments:
    Control 1.ctl ‏5 KB
    read.vi ‏13 KB

  • Can't call or execute of different class files in a main program

    Hi, I got a main program which can call 3 different classes. The main program have an implicit-choice List as a starting menu. If one of the file is selected, the files will call out and display it. However, i managed to call the 1st 2 files, and the 3rd files can't display anything after selected.
    I enclosed my code as below:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class Catalogues extends Form implements CommandListener {
         private Displayable parent;
         private Display display;
         private List Cata;
         private Boots bo;
         private Higheels hHeels;
         private Sandals sand;
         private Slippers sp;
        private Command backCommand = new Command("Back", Command.BACK, 1);
        private Command viewCommand = new Command("View", Command.SCREEN, 1);
        private String[] options = {"Boots", "High Heels","Sandals", "Slippers"};
         public Catalogues(Display d, Displayable p) {
              super("Welcome to Footwear World");
              Cata = new List("Select Option", List.IMPLICIT, options, null);
              display = d;
            parent = p;
              addCommand(backCommand);
              addCommand(viewCommand);
              setCommandListener(this);
         public void commandAction(Command c, Displayable d) {
         if(d==parent && c==List.SELECT_COMMAND){
              switch(parent.getSelectedIndex()){
                   case 0:
                           if(bo==null){
                              bo = new Boots(display,parent);
                             display.setCurrent(bo);
                              break;
                   case 1:
                           if(hHeels==null){
                              hHeels = new Higheels(display,parent);
                             display.setCurrent(hHeels);
                              break;
                   case 2:
                           if(sand==null){
                              sand = new Sandals(display,parent);
                             display.setCurrent(sand);
                              break;
                   case 3:
                           if(sp==null){
                              sp = new Slippers(display,parent);
                             display.setCurrent(sp);
                              break;
                   default:
             else if (c==backCommand) {
                       display.setCurrent(parent);
    }If the 3rd option is selected, i'll display above mentioned layout which contain a list to select too.
    After build this project on WToolkit. It shown an error message which is as below:
    Project settings saved
    Building "SelectCustest"
    C:\WTK22\apps\SelectCustest\src\Catalogues.java:29: cannot resolve symbol
    symbol : method getSelectedIndex ()
    location: class javax.microedition.lcdui.Displayable
    switch(parent.getSelectedIndex()){
    ^
    1 error
    com.sun.kvem.ktools.ExecutionException
    Build failed
    May i know what is problem am i facing now? And how to solve it.
    Thanks.

    Thanks to all for your thoughts and replies. I liked the xargs suggestion, so I tried that first. I would have (may still) try the stdin suggestion, followed by writing the grep output to a file.
    xargs does work, in a way I didn't expect it to, but that could be due to my inexperience with the workings of the shell.
    here's a line from my test script
    cat file | grep foo | xargs java com.company.test.TEchoArghere's the contents of 'file'
    123foo
    abc
    qafoozv
    qaz
    wsx
    qwefoort
    zxcfooh
    sdfghhere's the output from the test class, which just echos any arguments
    ::number of args: 4
    ::args[0] 123foo
    ::args[1] qafoozv
    ::args[2] qwefoort
    ::args[3] zxcfoohso xargs appends all the values from grep into an argument list and call the java class once.
    when I took xargs out of the script, nothing was passed to the class:
    ::number of args: 0this was really interesting and something to keep in my back pocket for future use.
    Thanks again to all.
    Tom

  • How do I get the methods to respond to my main program?

    I have created 3 classes,where class Kunde is my base class and class PudsPrAreal and PudsPrTid are derived classes from class Kunde.
    All my classes went through my compiler without error, but my main program is not able to read the methods from my classes.How do I fix that??
    my base class:
    navn = nyNavn;
    adresse = nyAdresse;
    rabat = nyRabat;
    public void readInput()
    System.out.println("Indtast kundens navn:");
    navn = SavitchIn.readLine();
    System.out.println("Indtast kundens adresse:");
    adresse = SavitchIn.readLine();
    System.out.println("Modtager " + navn + " en form for rabat?");
    System.out.println("(j/n):");
    char answer = SavitchIn.readNonwhiteChar();
    if (answer == 'j'||answer == 'J')
    System.out.println("Indtast den procentsats som " + navn + " modtager:");
    rabat = SavitchIn.readLineDouble();
    public void writeOutput()
    System.out.println("Navn: " + navn);
    System.out.println("Adresse: " + adresse);
    if (rabat > 0)
    System.out.println("Rabat: " + rabat);
    public Kunde()
    navn = "no record";
    adresse = "no record";
    rabat = 0;
    public String getNavn()
    return navn;
    public String getAdresse()
    return adresse;
    public double getRabat()
    return rabat;
    derived class # 1:
    public class PudsPrAreal extends Kunde
    private double areal; //i kvadratmeter
    private String kunde;
    private String pudsningsdato;
    private double kvadratmeterPris;
    private double pris;
    public PudsPrAreal()
    super();
    kunde = "no record";
    pudsningsdato = "no record";
    kvadratmeterPris = 0;
    pris = 0;
    areal = 0;
    public PudsPrAreal(String initialKunde, String initialPudsningsdato, double initialAreal,
    String initialNavn, String initialAdresse, double initialRabat)
    super(initialNavn, initialAdresse, initialRabat);
    set(initialKunde, initialPudsningsdato, initialAreal);
    public void set(String nyKunde, String nyPudsningsdato, double nyAreal)
    kunde = nyKunde;
    pudsningsdato = nyPudsningsdato;
    areal = nyAreal;
    public void readInputPrAreal()
    System.out.println("Indtast datoen hvor vinduespudsningen er blevet foretaget:");
    pudsningsdato = SavitchIn.readLine();
    System.out.println("Hvor mange kvadratmeter skal der afregnes for:");
    areal = SavitchIn.readLineDouble();
    public double pris(double areal)
    double pris;
    double kvadratmeterPris;
    if (areal > 100)
    kvadratmeterPris = 7.0;
    else if (areal >= 500)
    kvadratmeterPris = 6.5;
    else
    kvadratmeterPris = 6.0;
    double prisEks = areal * kvadratmeterPris; //pris eksclusiv rabat
    pris = prisEks * ((100 - getRabat())/100); //pris inclusiv rabat
    return pris;
    public void writeOutputPrAreal()
    System.out.println("Dato for vinduespudsning: " + pudsningsdato);
    System.out.println("Navn: " + getNavn());
    System.out.println("Adresse: " + getAdresse());
    System.out.println("Prisberegningsgrundlag: pr kvadratmeter");
    System.out.println("Antal kvadratmeter: " + areal);
    System.out.println("Pris pr kvadratmeter: " + kvadratmeterPris + " kr.");
    if (getRabat() > 0)
    System.out.println("Rabat: " + getRabat());
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    else
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    public String getkunde()
    return kunde;
    public String getPudsningsdato()
    return pudsningsdato;
    public double getAreal()
    return areal;
    derived class # 2:
    public class PudsPrTime extends Kunde
    private int minuter; //tid for vinduespudsningen angives i minuter
    private double tid; //tid for vinduespudsningen i timer
    private String kunde;
    private String pudsningsdato;
    private double pris;
    public PudsPrTime(String initialKunde, String initialPudsningsdato, int initialMinuter,
    String initialNavn, String initialAdresse, double initialRabat)
    super(initialNavn, initialAdresse, initialRabat);
    set(initialKunde, initialPudsningsdato, initialMinuter);
    public void set(String nyKunde, String nyPudsningsdato, int nyMinuter)
    kunde = nyKunde;
    pudsningsdato = nyPudsningsdato;
    minuter = nyMinuter;
    public void readInputPrTime()
    System.out.println("Indtast datoen hvor vinduespudsningen er blevet foretaget:");
    pudsningsdato = SavitchIn.readLine();
    System.out.println("Hvor mange minuter skal der afregnes for:");
    minuter = SavitchIn.readLineInt();
    public double pris(int minuter)
    int kvarter;
    int minuterTilOvers;
    double pris;
    kvarter = minuter / 15;
    minuterTilOvers = minuter % 15;
    if (minuterTilOvers > 0)
    kvarter++;
    tid = kvarter * 0.25;
    double prisEks = tid * 375; //pris eksclusiv rabat
    pris = prisEks * ((100 - getRabat())/100);
    return pris;
    public void writeOutputPrTime()
    System.out.println("Dato for vinduespudsning: " + pudsningsdato);
    System.out.println("Navn: " + getNavn());
    System.out.println("Adresse: " + getAdresse());
    System.out.println("Prisberegningsgrundlag: pr time");
    System.out.println("Antal timer: " + tid);
    System.out.println("Pris pr time: 375 kr.");
    System.out.println("Der afregnes pr p�begyndt 15 minuter.");
    if (getRabat() > 0)
    System.out.println("Rabat: " + getRabat());
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    else
    System.out.println("Pris for vinduespudsningen: " + pris + "kr.");
    public String getKunde()
    return kunde;
    public String getPudsningsdato()
    return pudsningsdato;
    public int getMinuter()
    return minuter;
    my main program:
    public class Glasklart
    public static void main(String[] args)
    Glasklart kunde = new Glasklart();
    System.out.println("Indtast datoen for idag:");
    String dato = SavitchIn.readLine();
    kunde.readInput();
    System.out.println("Hvad er prisberegningsgrundlaget?");
    System.out.println("Skriv 'k' for pr kvadratmeter eller 't' for pr time:");
    char svar = SavitchIn.readNonwhiteChar();
    if (svar == 'k'||svar == 'K')
    kunde.readInputPrAreal();
    System.out.println("Afregningsdato: " + dato);
    kunde.writeOutputPrAreal();
    else if (svar == 't'||svar == 'T')
    kunde.readInputPrTime();
    System.out.println("Afregningsdato: " + dato);
    kunde.writeOutputPrTime();
    else
    System.out.println("Forkert svar. Pr�v igen.");
    System.out.println("Skriv 'k' for pr kvadratmeter eller 't' for pr time:");
    svar = SavitchIn.readNonwhiteChar();
    error message for my main program:
    "Glasklart.java": Error #: 300 : method readInput() not found in class Glasklart at line 10, column 9
    "Glasklart.java": Error #: 300 : method readInputPrAreal() not found in class Glasklart at line 16, column 13
    "Glasklart.java": Error #: 300 : method writeOutputPrAreal() not found in class Glasklart at line 18, column 13
    "Glasklart.java": Error #: 300 : method readInputPrTime() not found in class Glasklart at line 22, column 13
    "Glasklart.java": Error #: 300 : method writeOutputPrTime() not found in class Glasklart at line 24, column 13

    The problem is that your main class isn't even trying to read the methods in your other classes. In your main() method in Glasklart.java, you do this:
    Glasklart kunde = new Glasklart();
    System.out.println("Indtast datoen for idag:");
    String dato = SavitchIn.readLine();
    kunde.readInput();But you didn't define readInput() in Glasklart, you defined it in your "base class" which you didn't quote enough of us to know the name for sure, but I presume is called Kunde.java.
    But I also see that you named the variable "kunde". It looks like maybe you're confusing the names of classes with the names of variables that happen to hold objects instantiated from those classes.
    If I define classes:
    public class Dog {
    public class Cat {
    }and later do this:
      Cat dog = new Cat();The methods defined in Dog cannot be invoked from from "dog", because "dog" is really a Cat. Just because you called it "dog", it doesn't necesarily mean it's an instance of Dog.

  • Abap Error CALL_FUNCTION_WAIT_ERROR in program SAPMSSY1

    I am getting abap error " CALL_FUNCTION_WAIT_ERROR  ".
    The termination occurred in the ABAP/4 program "SAPMSSY1 " in
    "REMOTE_FUNCTION_CALL".
    The main program was "SAPMSSY1 ".
    The termination occurred in line 69
    of the source code of program "SAPMSSY1 " (when calling the editor 690).
    Regards,
    Arundhati

    Hello,
    If CALL_FUNCTION_WAIT_ERROR occurs only at the server side for
    Remote Function Call (RFC) communication when the server gets
    the message that the client side is not reachable any more.
    This can happen if there exists an communication interruption (CPIC /
    TCP/IP network problems) or a client is not any more active.
    Therefore please check the gateway, workprocess and rfc traces
    (dev_rd,  dev_w* and dev_rfc*) and SM21 for possible problems. Could
    you find the origin of the rfc connection? Is it an external RFC
    program? Then you may need to install the most recent rfc library
    on external side according to SAP notes:
    413708  RFC library current at present
      27517  Installation RFCSDK
    Regards,
    David

  • How to pass the caught exception in Thread.run back to the main program?

    I have following three Java files (simplified from a real world application I am developing, see files at the end of this posting):
    1. ThreadTest.java: The main program that invokes the Manager.run()
    2. Manager.java: The manager that creates a thread to execute the Agent.run() for each agent
    3. Agnet.java: The run() method can throw Exception
    My goal is twofold:
    1. To execute the run() method of an Agent in a thread (the reason for this is there are many Agents all managed by a Manager)
    2. To catch the exception thrown by Agent.run() in the main program, ThreadTest.main() -- so the main program can alert the exceptions
    My problem:
    Bottomline: I cannot pass the exception thrown by Agent.run() in the Thread.run() back to the main program.
    Explanation:
    The signature of Thread.run() (or Runnable.run()) is
    public void run();
    Since it does not have a throws clause, so I have to try/catch the Agent.run(), and rethrow a RuntimeException or Error. However, this RuntimeException or Error will not be caught by the main program.
    One work-around:
    Subclass the ThreadGroup, override the ThreaGroup.uncaughtException() methods, and spawn the threads of this group. However, I have to duplicate the logging and exception alerts in the uncaughtException() in addition to those already in the main program. This makes the design a bit ugly.
    Any suggestions? Am I doing this right?
    Thanks,
    Xiao-Li "Lee" Yang
    Three Java Files:
    // Agent.java
    public class Agent {
    public void run() throws Exception {
    throw new Exception("Test Exception"); // Agent can throw execptions
    // Manager.java
    public class Manager {
    public void run() throws Exception {
    try {         // <===  This try/catch is virtually useless: it does not catch the RuntimeException
    int numberOfAgents = 1;
    for (int i = 0; i < numberOfAgents; i++) {
    Thread t = new
    Thread("" + i) {
    public void run() {
    try {
    new Agent().run();
    } catch (Exception e) {
    throw new RuntimeException(e); // <=== has to be RuntimeException or Error
    t.start();
    } catch (Exception e) {
    throw new Exception(e); // <== never got here
    // ThreadTest.java
    public class ThreadTest {
    public static void main(String[] args) {   
    try {
    Manager manager = new Manager();
    manager.run();
    } catch (Throwable t) {
    System.out.println("Caught!"); // <== never got here
    t.printStackTrace();

    The problem is, where could you catch it anyway?
    try {
    thread.start();
    catch(SomeException e) {
    A thread runs in a separate, er, thread, that the catch(SomeException) isn't running within. Get it?
    Actually the Thread class (or maybe ThreadGroup or whatever) is the one responsible for invoking the thread's run() method, within a new thread. It is the one that would have to catch and deal with the exception - but how would it? You can't tell it what to do with it, it (Thread/ThreadGroup) is not your code.

  • Runtime Errors         ITAB_DUPLICATE_KEY ABAP Program           CL_BSP_WD_REPOSITORY==========CP

    We are doing the CRM Upgrade from EHp1 to EHp3
    after running the TC: WCF_CC as post upgrade activity
    Enhancement Set      ZXXX  and UI Component BP_ADDR  i got a short dump while trying to open the views in the component workbench as following
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_BSP_WD_REPOSITORY==========CP" had to be
         terminated because it has    come across a statement that unfortunately cannot be executed.
    Error analysis
        An attempt was made to insert an entry into table
         "\CLASS=CL_BSP_WD_REPOSITORY\METHOD=CREATE_INSTANCE_FROM_XML\DATA=LT_VIEWS".
         Updating
        unique table key "PRIMARY_KEY" resulted in a duplicate entry however. The key
         in
        question could be either the primary key or a secondary key.
        The key components of the duplicate entry have the values "{BP_A;X}" " " " "
        With primary keys, termination can occur during block insert
        operations. The can affect numerious statements, for example
        (1) MOVE
        (2) INSERT/APPEND ... LINES OF ... INTO/TO
        (3) SELECT ... INTO/APPENDING ...
        With secondary keys, termination can also occur due to a single record
        insert operation. In particular, the following modifying statements can
        cause the system to terminate due to duplicate key values as soon as
        the key is used again (delayed update):
     Please advice me how to solve it

    Hello Madhuri,
    Can you please deactivate your enhancement via setting user parameter WCF_IGNORE_ENHANCEMT =A using transaction code SU3? Then retest the issue? If it's works, then the error is happening due to your enhancement.
    If the error persist please check if note 1941320 can be applied in your system.
    thanks
    Willie

  • PeopleCode - commit/rollback subprogram without committing or rolling back the data in the main program

    Hi,
    Is there a way in PeopleSoft/PeopleCode to do some database transactions in a subprogram (peoplecode function or method in Application Package) and commit that transaction without committing the things that are happening in the main program?
    you can compare it with a "autonomous_transaction" ( http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/autonotransaction_pragma.htm ) / ( http://oracle-base.com/articles/misc/autonomous-transactions.php )
    or with what is happening in the database when using "GetNextNumberWithGapsCommit"
    or what happens when you turn on the logging in PeopleTools > Integration Broker > Integration Setup > Routingyou put a button on a page and write some PeopleCode on the FieldChange
    you first do a update statement with sqlexec
    you call the webservice (data is inserted in the PSIBLOGDATA and PSIBLOGINFO and committed)
    you generate a "Error" in PeopleCode
    => result: the update from the sqlexec is not committed, but the logging data (PSIBLOGDATA and PSIBLOGINFO) IS committed
    Kind regards, Bart

    Hi,
    Please take a look at the javadoc for the following BC4J API:
    ApplicationModule.passivateStateForUndo(String, byte[], int)
    ApplicationModule.activateStateForUndo(String, int)
    These APIs may not however be used to manage a DB savepoint -- they assume that all state is managed by the BC4J transaction.
    Hope this helps,
    JR

Maybe you are looking for