Issue on OOPS programing

Hi,
  I need Class name for pop up menu, input as internal table.
Thanks&
Regards
MAdhu

Hi check the following link,
http://help.sap.com/saphelp_47x200/helpdata/en/52/5f05fce02d11d2b47d006094192fe3/frameset.htm
please reward for the same.

Similar Messages

  • Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    okay I've finally been able to get tor and all the other programs to work according to my plan the only thing that's still making problems is that iptables doesn't work as I want it to, when I start chromium without proxy settings privoxy doesn't seem to forward the information to polipo.. do I need to add another rule to iptables.rules in order for the program to know it has to reroute the information again or how can I get this to work? and is there any way to run rtorrent with proxy support?
    anyway, problem 2 and 3 are still to be solved.
    and does anybody know where i can get a good dansguardian blacklist that was not designed for 6 year old children and for which I don't need to subscribe? I'm still getting these partypoker popups -.-
    //e: with iptables it's the same thing as described in the first post. https works, http doesnt. I get the output "Invalid header received from client." on http sites. still no idea why though.. (and the https-version of torcheck.xenubite says i'm tor unprotected while starting the browser with iptables)
    Last edited by deF291 (2011-04-23 16:16:31)

  • Error in simple oops program

    Hi experts,
    When executing a simple oops program ..i got the following error. Please correct the code.
    "VAR" is not type-compatible with formal parameter "I_DATA".          
          CLASS main DEFINITION
    CLASS main DEFINITION.
      PUBLIC SECTION.
        "// Instance Methods ( Note we use the statement 'METHODS'
        "// to define an instance method )
        METHODS set_data IMPORTING i_data TYPE string.
        METHODS get_data RETURNING value(r_data) TYPE string.
        METHODS print_attribute IMPORTING i_data TYPE string.
        "// Instance Methods ( Note we use the statement 'CLASS-METHODS'
        "// to define a static method )
        CLASS-METHODS set_classdata IMPORTING i_data TYPE string.
        CLASS-METHODS get_classdata RETURNING value(r_data) TYPE string.
        CLASS-METHODS print_classattribute IMPORTING i_data TYPE string.
      PROTECTED SECTION.
        "// Instance Attribute ( Note we use the statement 'DATA'
        "// to define an instance attribute )
        DATA attribute TYPE string.
        "// Static Attribute ( Note we use the statement 'CLASS-DATA'
        "// to define a static attribute )
        CLASS-DATA classattribute TYPE string.
      PRIVATE SECTION.
        "// Instace event ( Note we use the statement 'EVENTS'
        "// to define aN instance event )
        EVENTS event EXPORTING value(e_data) TYPE string.
        "// Instace event ( Note we use the statement 'CLASS-EVENTS'
        "// to define a static event )
        CLASS-EVENTS classevent EXPORTING value(e_data) TYPE string.
        "// For more informations about events see the following example:
        "// ABAP Objects - Creating your First Local Class - Using Events
    ENDCLASS.                    "main DEFINITION
          CLASS main IMPLEMENTATION
    CLASS main IMPLEMENTATION.
      METHOD set_data.
        CONCATENATE 'Instance Attribute value' i_data
                                   INTO attribute SEPARATED BY space.
      ENDMETHOD.                    "set_data
      METHOD get_data.
        MOVE attribute TO r_data.
      ENDMETHOD.                    "get_data
      METHOD set_classdata.
        CONCATENATE 'Static Attribute value' i_data
                                   INTO classattribute SEPARATED BY space.
      ENDMETHOD.                    "set_classdata
      METHOD get_classdata.
        MOVE main=>classattribute TO r_data.
      ENDMETHOD.                    "get_classdata
      METHOD print_attribute.
        WRITE: i_data, /.
      ENDMETHOD.                    "print_attribute
      METHOD print_classattribute.
        WRITE: i_data, /.
      ENDMETHOD.                    "print_classattribute
    ENDCLASS.                    "main IMPLEMENTATION
    DATA: var type char20.
    START-OF-SELECTION.
      "// Calling a Static method (note we don't have a object )
      "// instead we use the <class name>=><method name>.
      main=>set_classdata( 'SDN' ).
      var = main=>get_classdata( ).
      "// Print the var value
      main=>print_classattribute( var ).
      DATA: object_reference TYPE REF TO main.
      CREATE OBJECT object_reference.
      "// - Calling a Instance Method( Note we have to use a object to
      "// access the insntace components of class main )
      "// - Note we're using the statment "CALL METHOD", see looking for
      "// functional & General methods for more informations
      CALL METHOD object_reference->set_data( 'BPX' ).
      var = object_reference->get_data(  ).
      object_reference->print_attribute( var ).
    Thanks in Advance.
    Regards
    Nani

    Hi Nani,
    try changing your data definition for var from CHAR20 to STRING.
    regards,
    Peter

  • Issue in submit program

    Hi all,
    The following is the issue in submit program:
    I am calling two programs /PBS/RIQMEL20  ( /pbs/iw59 ) and  /PBS/RIAUFK20 ( /pbs/iw39 ) using submit programs in my z program.
    I have created a layout /ZDEL56  for both programs. If I run submit program for /PBS/RIAUFK20 ( /pbs/iw39 ) I am getting the o/p in desired format ( As specified in the layout ).
    How ever for program /PBS/RIQMEL20  ( /pbs/iw59 ) submit program is giving an error saying that layout is not found.
    There is no difference b/w these two programs except that submitting program name is different.
    The txn /pbs/iw59 when executed in background is giving the desired result. But when I try using submit program it is failing.
    Can you please tell what mite be the problem?
    Following is the sample piece of code.
    submit /PBS/RIQMEL20
    with pbs_apar EQ '1'
    WITH VARIANT EQ '/ZDEL56'
    Pointers will be highly appreciated.
    Thanks,
    Shiva.

    Hi,
    In this case you need to use another internal table which is of type S_VBELN . Ex : it_vbeln.
    In that you have to append the record
    wa_vbeln-sign = 'I'
    wa_vbeln-option = 'EQ'
    wa_vbeln-low = w_inv.
    append wa_vbeln to it_vbeln.
    now use this
    submit B VIA SELECTION-SCREEN
    with P_DAYS = '4'
    with P_KALSM = 'ZATCIN'
    with S_VBELN = it_vbeln.
    Now the new record will be appended with the values which are passing,. SO u wil have two rows in the S_VBELN.
    Regards,
    Venkatesh.

  • Oops programming in abap

    hi,
       i need oops programming in abap where in i need only programmin and coding tecnique strictly(dont want theory)means where oops programming needs in reporting,alv and bdc ,i need only programming related material,so if any body having the connecting links or material or objects regarding the above said things kindly reply me here or by sending mail to [email protected]

    Hi ...
    Here i am sending you one Link.....Follow this link and there you can find
    theory as well as the sample code examples for every technology in ABAP.
    Go for:-  http://abapprogramming.blogspot.com/2007/10/oops-abap-2.html.
    Regards,
    Mandeep.
    Note: Plz do not forget to award points if reply is useful.

  • Using field symbols in OOPs programming...have ur points.

    Hi all,
    I want to use field symbols in OOPS programming like this...
    But the system is giving me dump....help me.
    START-OF-SELECTION.
    CREATE OBJECT OBJ.
    FIELD-SYMBOLS : <AB> TYPE ANY.
    ASSIGN OBJ TO <AB>.
    CALL METHOD <AB>->add
      EXPORTING
        a      = 4
        b      = 6
      changing
        c      = Z
    WRITE : / Z.

    check the code below
    TYPES: BEGIN OF t_struct,
             col1 TYPE i,
             col2 TYPE i,
           END OF t_struct.
    DATA: dref1 TYPE REF TO data,
          dref2 TYPE REF TO data.
    FIELD-SYMBOLS: <fs1> TYPE t_struct,
                   <fs2> TYPE i.
    CREATE DATA dref1 TYPE t_struct.
    ASSIGN dref1->* TO <fs1>.
    <fs1>-col1 = 1.
    <fs1>-col2 = 2.
    dref2 = dref1.
    ASSIGN dref2->* TO <fs2> CASTING.
    WRITE / <fs2>.
    GET REFERENCE OF <fs1>-col2 INTO dref2.
    ASSIGN dref2->* TO <fs2>.
    WRITE / <fs2>.
    reward points if helpful.........

  • Events in OOPS Programming

    Dear all,
    Can anybody tell me please which events are being used in ABAP OOPS Programming ? Please , needful reply for same....

    check these links
    http://erpgenie.com/abaptips/content/view/394/61/
    http://erpgenie.com/abaptips/content/view/395/61/
    Thanks
    Bala Duvvuri

  • Hi all problem in demo OOPS program

    I have written small abap-oops program but it is giving error that
    The line type of "OBJ" must be compatible with one of the types
    "<b>OBJ_RECORD</b>".     
    Plz help me out.     
    REPORT zkclass1.
          CLASS number1 DEFINITION
    CLASS number1 DEFINITION.
      PUBLIC SECTION.
        METHODS : constructor IMPORTING x1 TYPE i
                                        y1 TYPE i.
        METHODS : findsum EXPORTING z TYPE i.
      PRIVATE SECTION.
        DATA : x TYPE i,
               y TYPE i.
    ENDCLASS.
          CLASS number IMPLEMENTATION
    CLASS number1 IMPLEMENTATION.
      METHOD constructor.
        x = x1.
        y = y1.
      ENDMETHOD.
      METHOD findsum.
        z = x + y.
        WRITE : / z.
      ENDMETHOD.
    ENDCLASS.
    DATA : obj TYPE REF TO number1.
    DATA : z1 TYPE i.
    PARAMETERS : s_x1 type i obligatory.
    PARAMETERS : s_y1 type i obligatory.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING x1 = s_x1
                                  y1 = s_y1.
      CALL METHOD OF OBJ -> FINDSUM EXPORTING x1 = s_x1
                                              y1 = s_y1.

    Hi,
    Try this way.
    * CLASS number1 DEFINITION
    CLASS number1 DEFINITION.
      PUBLIC SECTION.
        METHODS : constructor IMPORTING x1 TYPE i
                                        y1 TYPE i.
        METHODS : findsum EXPORTING z TYPE i
                                    y1 type i. "Changed
      PRIVATE SECTION.
        DATA : x TYPE i,
        y TYPE i.
    ENDCLASS.
    * CLASS number IMPLEMENTATION
    CLASS number1 IMPLEMENTATION.
      METHOD constructor.
        x = x1.
        y = y1.
      ENDMETHOD.
      METHOD findsum.
        z = x + y.
        y1 = me->y. "Changed
        WRITE : / z.
      ENDMETHOD.
    ENDCLASS.
    DATA : obj TYPE REF TO number1.
    DATA : z1 TYPE i.
    PARAMETERS : s_x1 TYPE i OBLIGATORY.
    PARAMETERS : s_y1 TYPE i OBLIGATORY.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING x1 = s_x1
                                  y1 = s_y1.
    "Use This way here.
      CALL METHOD obj->findsum IMPORTING z = s_x1
                                         y1 = s_y1.
    " Don't use this here.                       
    *CALL METHOD OF OBJ -> FINDSUM EXPORTING x1 = s_x1
    *y1 = s_y1.                          " 'OF' is used for OLE Objects
    Regards.
    Marcelo Ramos

  • Performance issue in customized program

    Hi,
    We have a performance issue in customized program.
    In this program he used do-enddo twice. I mean nested do-endo.
    How can we increase the performance.
    And when we did the code inspector it displays 9 errors 'Char. strings w/o text elements will not be translated'.
    Is there any performance issue for this error?
    Regards,
    Chandu.

    >  'Char. strings w/o text elements will not be translated'.
    > Is there any performance issue for this error?
    No, this is just not so clean programming. As for the rest, Please Read before Posting in the Performance and Tuning Forum and learn how to find out where the showstoppers really are.
    Thomas

  • Performance issue in customized program with do-enddo

    Hi,
    We have a performance issue in customized program.
    In this program he used do-enddo twice. I mean nested do-endo.
    How can we increase the performance.
    And when we did the code inspector it displays 9 errors 'Char. strings w/o text elements will not be translated'.
    Is there any performance issue for this error?
    Regards,
    Chandu.
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Oct 20, 2009 12:42 PM

    >  'Char. strings w/o text elements will not be translated'.
    > Is there any performance issue for this error?
    No, this is just not so clean programming. As for the rest, Please Read before Posting in the Performance and Tuning Forum and learn how to find out where the showstoppers really are.
    Thomas

  • OOP Programming Question

    Hi,
    Im new to oop in as3.0, just finished my first oop application but there is one thing that i don't understand.
    If i have movieclips on the stage and i want for ex. the display class to control there position and size then
    i need to send it from the document class to the display class using a public method on the display class.
    but after developing my first application i got to a point that all of my methods on the display class were public
    and i used a lot of repatitive code.... ive been told that i need to avoid public methods and try and keep most of the methods in
    the different classes private but the only way to do it is to find a way to pass the movie clip instance to the actual class and control it
    and this way most of the methods in the class will be private and the code on the document class will be a lot more cleaner, but i dont really
    know how to pass a display object to a different class and use it without passing it to a public method through the document class.

    I'm relatively new to OOP programming, so please
    excuse this newbish question :).
    I've been assigned to take over for a co-worker that
    has left for vacation. A class that he wrote is
    partially implemented, so I'm supposed to finish it
    up.
    One class in particular, his constructor is empty.That's fine, if that's what makes sense. I'd have one constructor that set all the private data members. Other constructors would call it using sensible defaults where needed.
    If the ctor is empty and data members are null, that's very bad. An object should be 100 percent ready to go when you create it.
    And to set the instance variables, the user class is
    setting them directly, not through accessor methods.So the data members are public? Oh, my. Where's the encapsulation?
    This seems like a bad idea, and defeats the whole
    purpose of encapsulation. Indeed. Sounds like you know more than your co-worker.
    I wanted to re-do some of the code, but are there any
    good reasons as to why he might be doing this?If it's a DTO C-struct with no other purpose than ferrying data it might be acceptable. I would say it's not acceptable, but that's my opinion.
    Saving some overhead maybe?No, the "overhead" is probably not measurable. I wouldn't optimize such a thing without data that told me it was the bottleneck, and I'd make sure that this "fix" did address the problem before I cast it in stone.
    %

  • Import issue for ABAP program in Production Server ?

    Hi Experts,
    I have an ABAP program which gets executed properly in BW Development server but getting the following error when I am trying to execute it in the BW Production while  I could activate the program successfully.
    Kindly help me to resolve this issue.
    Thanks in advance !!!
    Regards,
    Gokulkumar RD

    Hi Golkul,
    Can you debug the program while execute?
    I think there is some hardcoding in the program for checkiing the client and then raised a custom message in the program.
    Can you share the coding of the prorgam if possible?
    Try to check for any messages raised in the program. Also click on the on the message pop up and see the details on the message and let us know.
    Thanks
    Amit

  • Performance issue in abap program

    hi,
    how can we improve the performance of  abap program

    hi,
    read the follwing links
    ABAP provides few tools to analyse the perfomance of the objects, which was developed by us.
    Run time analysis transaction SE30
    This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.
    SQL Trace transaction ST05
    by using this tool we can analyse the perfomance issues related to DATABASE calls.
    Perfomance Techniques for improve the perfomance of the object.
    1) ABAP/4 programs can take a very long time to execute, and can make other processes have to wait before executing. Here are some tips to speed up your programs and reduce the load your programs put on the system:
    2) Use the GET RUN TIME command to help evaluate performance. It's hard to know whether that optimization technique REALLY helps unless you test it out.
    3) Using this tool can help you know what is effective, under what kinds of conditions. The GET RUN TIME has problems under multiple CPUs, so you should use it to test small pieces of your program, rather than the whole program.
    4) Generally, try to reduce I/O first, then memory, then CPU activity. I/O operations that read/write to hard disk are always the most expensive operations. Memory, if not controlled, may have to be written to swap space on the hard disk, which therefore increases your I/O read/writes to disk. CPU activity can be reduced by careful program design, and by using commands such as SUM (SQL) and COLLECT (ABAP/4).
    5) Avoid 'SELECT *', especially in tables that have a lot of fields. Use SELECT A B C INTO instead, so that fields are only read if they are used. This can make a very big difference.
    6) Field-groups can be useful for multi-level sorting and displaying. However, they write their data to the system's paging space, rather than to memory (internal tables use memory). For this reason, field-groups are only appropriate for processing large lists (e.g. over 50,000 records). If you have large lists, you should work with the systems administrator to decide the maximum amount of RAM your program should use, and from that, calculate how much space your lists will use. Then you can decide whether to write the data to memory or swap space.
    Use as many table keys as possible in the WHERE part of your select statements.
    7)Whenever possible, design the program to access a relatively constant number of records (for instance, if you only access the transactions for one month, then there probably will be a reasonable range, like 1200-1800, for the number of transactions inputted within that month). Then use a SELECT A B C INTO TABLE ITAB statement.
    8) Get a good idea of how many records you will be accessing. Log into your productive system, and use SE80 -> Dictionary Objects (press Edit), enter the table name you want to see, and press Display. Go To Utilities -> Table Contents to query the table contents and see the number of records. This is extremely useful in optimizing a program's memory allocation.
    9) Try to make the user interface such that the program gradually unfolds more information to the user, rather than giving a huge list of information all at once to the user.
    10) Declare your internal tables using OCCURS NUM_RECS, where NUM_RECS is the number of records you expect to be accessing. If the number of records exceeds NUM_RECS, the data will be kept in swap space (not memory).
    11) Use SELECT A B C INTO TABLE ITAB whenever possible. This will read all of the records into the itab in one operation, rather than repeated operations that result from a SELECT A B C INTO ITAB... ENDSELECT statement. Make sure that ITAB is declared with OCCURS NUM_RECS, where NUM_RECS is the number of records you expect to access.
    12) If the number of records you are reading is constantly growing, you may be able to break it into chunks of relatively constant size. For instance, if you have to read all records from 1991 to present, you can break it into quarters, and read all records one quarter at a time. This will reduce I/O operations. Test extensively with GET RUN TIME when using this method.
    13) Know how to use the 'collect' command. It can be very efficient.
    14) Use the SELECT SINGLE command whenever possible.
    15) Many tables contain totals fields (such as monthly expense totals). Use these avoid wasting resources by calculating a total that has already been calculated and stored.
    Some tips:
    1) Use joins where possible as redundant data is not fetched.
    2) Use select single where ever possible.
    3) Calling methods of a global class is faster than calling function modules.
    4) Use constants instead of literals
    5) Use WHILE instead of a DO-EXIT-ENDDO.
    6) Unnecessary MOVEs should be avoided by using the explicit work area operations
    see the follwing links for a brief insifght into performance tuning,
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_Introduction.asp
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f7c454211d189710000e8322d00/frameset.htm
    regards
    Rohan

  • Issue with ABAP program execution from process chains

    Hi All:
    We have a process chain with 3 steps, each of them executing the same program with three different variants. The program is ftp's the file from APO's dataexchange (mount) to another ftp server. The first variant transfers file A to a directory in the external ftp server (say /X) . The second and the third variants are supposed to transfer different files, B and C to the same directory.
    That is where the problem is. After the process chain is successful, I see two files B and C but the contents are same and that of C. So, if I switch the steps in the PC to bring in A then C and then B, I see files B and C with content of C. I tried C then A then B. I see the file names correct but now the contents are A, A then B.
    Have any of you come across this issue? Do you know that these is an existing problem? IF you have a solution, pl. let me know.
    Thanks
    Narayanan

    Narayanan,
    Instead of doing it in three steps - would it be possible for you to have one UNIX script or equivalent doing the above and calling the same from your process chain ...?
    We do a lot of FTPs but then our file names are standard and we have a UNIX script for the same executed using a system command through a process chain and it has been working without issues for the past 1 year ...
    Maybe I have not got your situation properly ... some more detail on the program details and what you are doing in more detail would help....  also SP levels please..

  • Non-English characters File issue with RSEINB00 Program

    Hi,
    We use RESEINB00 program to process IDoc files - to create Master data such as Material Master. Our IDoc file has some special characters - like crème. This letter 'è' would be treated as 'e#' and the Program terminates.
    Inside the program RSEINB00, they used READ DATASET . Had they used 'IN TEXT MODE', this issue would not have come, I guess.
    One option, the least preferred, is that to copy this program and change that line of code. But, is there any other option for this? Please advise.
    Thanks in advance,
    Ram.

    I am n't sure what SAP version you are using , check for OSS notes & update accordingly
    The code below is the latest code..
    clear l_rc.
    if l_unicode = c_true.
        catch system-exceptions convt_codepage_init = 9.
        open dataset l_filename for input in text mode encoding utf-8
           replacement character l_repchar message l_os_message.
        l_rc = sy-subrc.
        endcatch.
      else.
        catch system-exceptions convt_codepage_init = 9.
        open dataset l_filename for input in text mode encoding non-unicode
          replacement character l_repchar message l_os_message.
        l_rc = sy-subrc.
        endcatch.
      endif.
      if sy-subrc = 9.
        l_rc = sy-subrc.
      endif.

Maybe you are looking for

  • How to adapt Marty Hall's jsf-blank project to WebSphere 7?

    Marty Hall had a great idea for getting your feet wet in JSF2: He provides a project named jsf-blank that you deploy in Eclipse on a Tomcat container. In 10 minutes you are running a JSF 2 project! How can I deploy this jsf-blank project on WebSphere

  • Question for an administrator on this forum...

    Can you all add common questions to the top of the screen that are locked (similar to how automobile forums do it?) at the top of the screen and highlighted for users to read so the same question is not posted over and over again?  Add one that 8.0.2

  • Scheduled pickup and email of File from folder location

    Hi, I have a scenario where we need to pick up a file from a folder location on a particular date of a month and send it via email to an email id. For this, we have planned a design where I have a SQL receive adapter which will poll a table in SQL an

  • AIX 6.1 - Do we need HACMP to store the OCR and Voting Disks on Raw Logical

    We are planning to install 11G r1 rac on AIX 6.1. We will use clusterware and ASM. We would like to avoid GPFS and HACMP. We plan to put the Clusterware OCR and Voting Disks on Raw Logical Volumes. I do not believe we need HACMP. see the passage belo

  • Wavefrom graph time from .csv

    Hello everyone I use "read from spreadsheet file" to read a two column .csv file in a waveform graph. Time is defined in the first column and the Data is defined in the second column. The problem occurs in the x-axis of the graph (Time-axis). It does