How to read the method and put that code in 1 internal table

Hi,
Actually in the normal ABAP, if we want to read the report,  then we will write read report statement.
If we want to read method then this statement will not work.
So, to read the method and put that code in 1 internal table , which statement we need to write?
Regards,
Radhika

Hi Naimesh,
Thanks for your reply.
As, i am not aware of ABAP Objects i am having some issues:
Actually that is working for some methods in some classes.
Here 1 issue is there:
In se24 1 method is there in 1 class.
Even by using that FM in SE37 i am able to get the program name by giving class and method name,
but while using that FM in the program i am not able to get that program name.
so, i am unable to read the source code of the program?
1 example here:
Class name is CL_GUI_FRONTEND_SERVICES.
in this class, methods like FILE_EXIST , FILE_GET_SIZE, etc are there.
By giving the class name and method name i am able to get the program name also,
but while using that FM in the program i am not able to get that program name.
so, i am unable to read the source code of the program?
Here is my code:
REPORT  Z16059_SCAN_METHOD.
DATA: BEGIN OF I_PROGRAM OCCURS 0,
      LINE(256) TYPE C,
      END OF I_PROGRAM.
DATA METHOD TYPE PROGRAM.
DATA: BEGIN OF I_STRUCTURE,
      CLS_NAME(30) TYPE C,
      METH_NAME(61) TYPE C,
      END OF I_STRUCTURE.
I_STRUCTURE-CLS_NAME = 'CL_GUI_FRONTEND_SERVICES'.
I_STRUCTURE-METH_NAME = 'CL_GUI_FRONTEND_SERVICES-FILE_EXIST'.
CALL FUNCTION 'SEO_METHOD_GET_INCLUDE_BY_NAME'
  EXPORTING
  MTDKEY             =  I_STRUCTURE
IMPORTING
   PROGNAME          = METHOD
EXCEPTIONS
   INTERNALMETHOD_NOT_EXISTING      = 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.
READ REPORT METHOD INTO I_PROGRAM.
Please help me out in this regard.
Thanks & Regards,
Radhika

Similar Messages

  • How to read the date and time information of a file by labview

    how to read the date and time information of a file by labview? for example, created time and modified time.
    Solved!
    Go to Solution.

    if you need to know the last modification date of file:-
    "Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
    This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
    Thanks as kudos only

  • How to select the data from a Maintainance View into an internal table

    Hi All,
    Can anybody tell me how to select the data from a Maintainance View into an internal table.
    Thanks,
    srinivas.

    HI,
    You can not retrieve data from A mentenance view.
    For detail check this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Regards,
    Anirban

  • How to read the power and status LEDs on cFP2020

    Can the cFP2020 Power and Status LEDs be monitored by a host program? Also, can the Power and Ready LEDs be monitored from the other cFP Modules?

    You can not directly read the Network Module Power or Status LED from a host program. Likewise, you can not directly read the Power and Ready LED of an IO module.
    However, even though you can not directly ready the LED status, there are ways of finding out most of the information that the LEDs convey.
    For the Network Module Power LED, you can infer the status of the Power LED by looking at the channel status for any/all items that are on the bank. If the items have errors indicating that a communication timeout has occured or an addressed item does not exist, then it is probable that the unit is offline (either because of no power or a fault). The Status LED indicates the current operating status of the Network module and in most cases, if it is flashing
    , then a fault has occured that shutdown the processor. In most cases, you will not be able to determine that the Status LED is flashing, as the Status LED indicates a fault condition which will put the unit into a non-standard operating mode (e.g. firmware corruption, unassigned IP Address, or an OS fault).
    For the IO modules, each channel on a module can report status, and based upon the status you can infer the state of the LEDs. If the module does not have the Power LED lit, the most likely status will be "Addressed item does not exist". If the module has the Power LED but no Ready LED, then the status will indicate that the "item is unconfigured". If the module has both a Power and Ready LED, than the channel should report either a good status, or a channel specific error (if applicable).
    Regards,
    Aaron

  • How to read the Domain and Port of our server

    hi guru,
    Is there any method to get the portal Domain and Port .
    http://<domain>:<port>/irj/portal
    http://<Domain><port>  /irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=NIB_Aliase&SAP_TCode=se80
    in our project  we are hard coded the Domain and port .
    if we transfer the application is some other server again we want to change.
    So is there any solution for that.Please help me in this situation
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;
    import com.sap.tc.webdynpro.services.task.TaskBinder;
      WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();
      String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
      int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
    With the above code you can get the host name, and port.
    If your problem is solved, award me the points.
    Thanks,
    Srini

  • How to read the time and then run different parts of the codes?

    I am new to LabView. I want to read the program running time and then decide what to do.
    For exaple, if time is less than 1s, output sin signal;if time is more than 1s, output sawteeth signal. It is easy to be implemented in C or Simulink, but seems difficult for me in LabView.
    Thanks.

    Hi, Bill,
    Thank you very much for your help.
    I changed your sample codes a little bit to get moving graph. I have three more questons:
    (1) If there are more cases, such as one for t=1s, the second for t=3.2s,and a third for t=6.9s, do I have to use multi-layer case structure, since it only checks the result if it is true or false?
    (2)Does labview provide us something to have the function such as 'switch...case' or 'if..else' in C/C++?
    (3)Is there anything for a time-based multi-segment function?
    Best wishes,
    Attachments:
    example2.vi ‏55 KB

  • How to read the long text in Transaction Code : VA02 at runtime??????

    Hi,
    I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
    If any body has soluntion, please provide me. I would really be  greatfull if any body provide the solution.
    Deepak Kumar
    E-Mail: [email protected]

    Hi Sudheer,
    Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
    Couuld you send me some sample code? I would appreciate if you reply at the earliest.
    Deepak Kumar.

  • How to change the data  type of a field in an internal table dynamically ?

    I have an internal table :
    Data: Begin of itab_data occurs 0,
    field1 type i,
    field2 type p decimals 2,
    end of itab_data.
    My requirement is to decide the number of decimals of "field2" dynamically .
    ie. based on the input in selection-screen , the declaration has to change .How can this be done ?
    Hope the question is clear..
    Its urgent. Please help me.
    Thanks in advance .
    Shankar

    I dont think you can change it dynamically...but as per your requirement ...why dont you define the variable with maximum decimal length and depending on the parameter(from your selection-screen) use the WRITE command to populate it with the specified decimals.
    Example
    begin of itab
    field2 type p decimals 5.
    end of itab.
    write itab-field2 to lfield decimals p_dec.
    Message was edited by: Anurag Bankley

  • How to Read the String and break them in to TUPULES

    HI ALL,
    i have one String like THE STRING IS --- ---- --- >>
    3122078,12/12/2005
    3122079,12/1/1988
    3122076,12/12/1999
    I want to break them into STR :=3122078 and STR1:=12/12/2005 .

    SQL> select substr('3122078,12/12/2005',1,instr('3122078,12/12/2005',',')-1) from dual;
    SUBSTR(
    3122078
    SQL> select substr('3122078,12/12/2005',instr('3122078,12/12/2005',',')+1) from dual;
    SUBSTR('31
    12/12/2005
    SQL>

  • How to Read the "text file and csv file" through powershell Scripts

    Hi All
    i need to add a multiple users in a particular Group through powershell Script how to read the text and CSV files in powershell
    am completly new to Powershell scripts any one pls respond ASAP.with step by step process pls
    Regards:
    Rajeshreddy.k

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • I have 2 apple ID's and one I could not access that had $15 and for some reason it made me create a new apple id, I now have $25 on both accounts. how do I take the money and put it on one account?

    I have 2 apple ID's and one I could not access that had $15 and for some reason it made me create a new apple id, I now have $25 on the new account. How do I take the money and put it on one account? 

    You can't merge Apple IDs.  What you could do is set up your phone to use the same iCloud accout you are using on your Mac.  To do this, go to Settings>iCloud and turn all synced data (Contacts, Calendars, etc.) to Off.  When prompted, choose to keep the data on the phone.  When everything is off, scroll to the bottom and tap Delete Account.  Now add the iCloud account you set up on your Mac (with the same Apple ID) and turn syncing back on for Calendars, Contacts, etc.  When prompted, you will probably want to choose merge, to merge the data on your phone with the existing data on this iCloud account.

  • When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?!

    When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?! and then I'd like to erase the original files since the space requirement is huge!!!! Why is upgrading software iPhoto such a pain. I've gotta get a presentation done and all I get for my money is roadblock!!!

    hello, it sounds like the library is damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 

  • How to read the data in spectrum analyzer (Anritsu MS2661C) and put it in Excel using Labview

    Hi all, I'm new to using the labview, and I have some trouble doing my project using the labview software.
    I have been trying to use the spectrum analyzer (Anritsu MS2661C) which connect to computer using the GPIB connection.
    I have got the instrument driver which can write and control the instrument using Labview 2010.
    and my Question is how do read the data or result from the spectrum analyzer and send it to the microsoft excel?
    Do I need to use other software or programming to do this step?
    If anyone know how is this done, please let me know.
    Regards,
    Ery

    Hi ery,
    In order to send data that you have read in from an instrument to Excel, the most convenient way to do this would be to use our Report Generation Toolkit.  The Report Generation Toolkit is a very useful tool that allows you to interface to Microsoft Office software from LabVIEW, including Word and Excel.  I am not sure if you are familiar with this, but I have attached a link that explains more about the Report Generation Toolkit below.  
    Another way would be to use the Write To Spreadsheet File VI.  While this will store your data to a spreadsheet data file, it will not allow you to programmatically perform any Excel formatting like the Report Generation Toolkit offers.  I have also attached a link to some information on the Write To Spreadsheet VI below.  
    Also, be sure to check out the Example Finder in LabVIEW for a number of examples on how to write data to a spreadsheet file.  From LabVIEW, you can go to Help»Find Examples to launch the Example Finder.  From there, you can search for "spreadsheet," which should populate examples for use in different applications.  I hope this helps, ery.  Please let me know if you have any further questions about these!
    NI LabVIEW Report Generation Toolkit for Microsoft Office
    Write To Spreadsheet File VI 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • Dear sir, i used this apple id in my IPAD 4,But some how i forgot the apple id password that was stored in my iPad. i reset the same in my another device. I put the new password in my I pad. Due to mismatching of

    Dear sir,
    i used this apple id in my IPAD 4,But some how i forgot the apple id password that was stored in my iPad. i reset the same in my another device. I put the new password in my I pad. Due to mismatching of password that was stored in iPad and new password ,it does not accept it. very unfortunately i also unable to connect my iPad with internet because it does not allow me to connect. In every second message displayed for apple id password. i am helpless. please help to get rid opt from this problem.
    rgds
    R K Hazarika
    <Email Edited by Host>

    you manage the appleID on this site
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • I have a macbook thats running lion, and i want to take an iso i have on the mac and put it on my pc, i know i need to reformat it to work on macs, but i need to put it on a pc, please help!

    i have a macbook thats running lion, and i want to take an iso i have on the mac and put it on my pc, i know i need to reformat it to work on macs, but i need to put it on a pc, please help!

    Creative Cloud Help | Creative Cloud / Common Questions
    "Can I use the software I download from Creative Cloud on more than one machine?
    Yes. Creative Cloud desktop applications can be downloaded and installed on multiple computers, regardless of operating system. However, activation is limited to two machines per individual associated with the membership. See the terms of use for more information. Learn how to deactivate a Creative Cloud license on a machine."

Maybe you are looking for