How to get the text from me52n/me52?

I used rp-read-infotype in getting the text in HR. Please guide me how to get it in ME52. Thanks!

HI
GOOD
CAN YOU GIVE SOME MORE BRIEF ABOUT YOUR REQUIREMENT.ANYWAY YOU CAN GO THROUGH THIS REPORT HOPE CAN HELP YOU SOMETHING
REPORT Z_LEAVES_AND_COMMENTS  line-size 255 line-count 65 no
standard page heading .
=====================================================
DATA DECLARATIONS
=====================================================
infotypes : 0002 ,
            2001 .
TABLES : t554t .
DATA : BEGIN OF ITAB_LEAVES OCCURS 100 ,
       PERNR LIKE P2001-PERNR ,
       NACHN LIKE P0002-NACHN ,
       VORNA LIKE P0002-VORNA ,
       SUBTY LIKE P2001-SUBTY ,
       ATEXT LIKE T554T-ATEXT ,
       YEAR(4) TYPE C ,
       SEQNR LIKE P2001-SEQNR ,
       BEGDA LIKE P2001-BEGDA ,
       ENDDA LIKE P2001-ENDDA ,
       KALTG LIKE P2001-KALTG .
DATA : END OF ITAB_LEAVES .
DATA : S_DATE_LOW LIKE SY-DATUM .
=====================================================
SELECTION SCREEN - DEFAULT
=====================================================
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
parameters : P_PERNR LIKE Pa0002-PERNR 
             MATCHCODE OBJECT PREM  OBLIGATORY.
PARAMETERS : S_DATE LIKE SY-DATUM DEFAULT SY-DATUM .
SELECTION-SCREEN END OF BLOCK B1 .
=====================================================
TOP-OF-PAGE
=====================================================
TOP-OF-PAGE .
  WRITE : 'Report of Leaves - Infotype 2001'  COLOR COL_HEADING .
  ULINE .
  WRITE : /
     'CODE' COLOR COL_HEADING ,
     'DESCRIPTION OF LEAVE     '  COLOR COL_HEADING ,
     'YEAR'  COLOR COL_HEADING ,
     'STARTING  '  COLOR COL_HEADING ,
     'ENDING    '  COLOR COL_HEADING  ,
     'DURATION '  COLOR COL_HEADING .
  ULINE .
======================================================
START OF SELECTION
======================================================
START-OF-SELECTION .
  S_DATE_LOW = S_DATE - 365 .
  CLEAR : P2001 , P2001[] .
  RP-READ-INFOTYPE P_PERNR 2001 P2001 S_DATE_LOW S_DATE .
  IF SY-SUBRC = 0 .
    LOOP AT P2001 .
      CLEAR : ITAB_LEAVES .
      ITAB_LEAVES-PERNR = P2001-PERNR .
      ITAB_LEAVES-SUBTY = P2001-SUBTY .
      ITAB_LEAVES-SEQNR = P2001-SEQNR .
      clear t554t .
      select single * from t554t
      where MOABW = '99'
      and   awart = P2001-SUBTY
      and   sprsl = SY-LANGU .
      if sy-subrc eq 0 .
        ITAB_LEAVES-ATEXT = T554T-ATEXT .
      endif .
      ITAB_LEAVES-BEGDA = P2001-BEGDA .
      ITAB_LEAVES-ENDDA = P2001-ENDDA .
      ITAB_LEAVES-YEAR = P2001-BEGDA(4) .
      ITAB_LEAVES-KALTG = P2001-KALTG .
      CLEAR P0002 .
      REFRESH P0002 .
      RP-READ-INFOTYPE P_PERNR 0002
      P0002 '18000101' '99991231'.
      IF SY-SUBRC = 0 .
        ITAB_LEAVES-NACHN  = P0002-NACHN .
        ITAB_LEAVES-VORNA  = P0002-VORNA .
      ENDIF .
      APPEND  ITAB_LEAVES .
    ENDLOOP .
  ENDIF .
======================================================
END OF SELECTION
======================================================
END-OF-SELECTION .
  LOOP AT ITAB_LEAVES .
    WRITE : /
         ITAB_LEAVES-SUBTY ,
         ITAB_LEAVES-ATEXT ,
         ITAB_LEAVES-YEAR  ,
         ITAB_LEAVES-BEGDA ,
         ITAB_LEAVES-ENDDA ,
         ITAB_LEAVES-KALTG .
    PERFORM GET_NOTES_OF_AN_INFOTYPE
    USING '2001'
           ITAB_LEAVES-SUBTY
           ITAB_LEAVES-PERNR
           ITAB_LEAVES-BEGDA
           ITAB_LEAVES-ENDDA
           ITAB_LEAVES-SEQNR .
  ENDLOOP .
  uline .
  write : ' *** End of Report *** '  COLOR COL_HEADING .
  uline .
*======================================================
=========> FORM GET_NOTES_OF_AN_INFOTYPE <===========
*======================================================
FORM GET_NOTES_OF_AN_INFOTYPE
USING MINFTY MSUBTY MPERNR MBEGDA MENDDA MSEQNR .
  DATA: TX-KEY LIKE PSKEY.
  DATA: BEGIN OF TEXT-VERSION,
         NUMMER TYPE X VALUE '02',
        END OF TEXT-VERSION.
  DATA: BEGIN OF PTEXT OCCURS 200.
  DATA:  LINE(78).
  DATA: END OF PTEXT.
  data : is_first type i .
  DATA : LINES_OF_NOTES TYPE I .
Preparing Key for Reading Texts of
Infotype
  CLEAR TX-KEY .
  CLEAR:   PTEXT             .
  REFRESH: PTEXT             .
  TX-KEY-PERNR = MPERNR .
  TX-KEY-INFTY = MINFTY .
  TX-KEY-SUBTY = Msubty .
  TX-KEY-ENDDA = MENDDA .
  TX-KEY-BEGDA = MBEGDA .
  TX-KEY-SEQNR = MSEQNR .
READING CLUSTER TX - (Texts)
  IMPORT TEXT-VERSION
         PTEXT
  FROM DATABASE PCL1(TX)
  ID TX-KEY
  USING PCL1_EXP_IMP(SAPFP50P)  .
  IF SY-SUBRC NE 0        .
    CLEAR:   TEXT-VERSION      .
    CLEAR:   PTEXT             .
    REFRESH: PTEXT             .
    SY-SUBRC = 4               .
  ENDIF          .
Writing texts retrieved
  DESCRIBE TABLE PTEXT LINES LINES_OF_NOTES .
  IF  LINES_OF_NOTES GT 0 .
    is_first = 1 .
    LOOP AT PTEXT .
      if is_first = 1 .
        WRITE : /  'Comments' , ptext-line  .
        is_first = 0 .
      else .
        WRITE : /  '        ' , ptext-line  .
      endif .
    ENDLOOP .
  ENDIF .
ENDFORM.
THANKS
MRUTYUN

Similar Messages

  • How to get the values from html:select? tag..?

    i tried with this, but its not working...
    <html:select styleClass="text" name="querydefs" property="shortcut"
                 onchange="retrieveOptions()" styleId="firstBox" indexed="true">
    <html:options collection="advanced.choices" property="shortcut" labelProperty="label" />
    </html:select>
                        <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>

    <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>This java script is not working at all..its not printing anything in document.write();
    This is code..
    <td class="rowcolor1" width="20%">
    <html:select styleClass="text" name="querydefs" property="shortcut"
                             onchange="retrieveSecondOptions()" styleId="firstBox"
                             indexed="true">
                             <html:options collection="advanced.choices" property="shortcut"
                                  labelProperty="label"  />
                        </html:select>i tried with this also. but no use..i'm not the getting the seleced option...
    function retrieveOptions(){
    firstBox = document.getElementById('firstBox');
                             if(firstBox.selectedIndex==0){
          return;
        selectedOption = firstBox.options[firstBox.selectedIndex].value;
    }actually , how to get the values from <html:select> ...?
    my idea is to know which value is selected from the combo box(<html:select> ) if that value is equal some string i have enable a hyperlink to open a popup window

  • How to get the text in a label which is imbeded in a JTextPane

    I have created a JTextPane that has 5 JLabels inserted in the text. I have attempted to get the text with the following code snippet.
    Component[] lbl = new Componennt[DisplayLetterPane.getComponentCount()];
    //         JTextPane DisplayLetterPane; is defined previously
             lbl = DisplayLetterPane.getComponents();
             int componentIndex = 0;
             String lblText = new String(((JLabel)lbl[componentIndex]).getText());I have run a dump of the sytledDocument of the JTextPane and I see the JLabel listed as a component.
    When this snippet is executed I get the following:
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.text.ComponentView$Invalidator
    When I check the character where the component for the JLabel is located in the styled document it does not find an instanceof JLabel.
    How can I get the text from the labels.
    Thank you in advance!

    JTextPane jtp = new JTextPane();
              for (int i = 0; i <5; i++) {
                   jtp.add(new JLabel("labelText"+i));
              Component[] lbl = new Component[jtp.getComponentCount()];
    //      JTextPane DisplayLetterPane; is defined previously
          lbl = jtp.getComponents();
          int componentIndex = 0;
          for (int i = 0; i < lbl.length; i++) {
               System.out.println(((JLabel)lbl).getText());
    When I do like the above, it just works fine. Can u share a little bit more of your code?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Getting the text from a JTextArea...

    hi, I'm making a perfect calculator program and I'm trying to add a Note Pad function to it, I also want to hide that so the other interface can be used; I can get it hided and come again but I'm wondering how could I get the text from the JTextArea INCLUSIVE the enters that are made withing it, so:
    theString = jTextArea1.getText();only gives me the text and no enters; suggestions?

    I think I displayed it wrongTwo things to keep in mind...
    Certain Swing components will just ignore newlines, so you have to be careful where/how you're displaying your multiline text strings. Some components will display it all as one line, some will only display the top line, some will even show \n instead of doing the newline. It all just depends.
    And JTextArea does support word wrapping, so just because it looks like there's a newline, there may not be one.

  • Need how to get the data from the external file in eCatt

    Hi ,
      Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
    Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
    But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
    Appreciate response on this

    Hi
    See the links they may be useful
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    hope this helps.
    Reward points for useful Answers
    Regards
    Anji

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • How to get the value from databank

    Hi,
    How to get the value from databank? and how to set the same value to visual script object?
    thanks,
    ra

    Hi,
    You can use GetDatabankValue(HeaderName, Value) to get the value from databank and SetDataBankValue(HeaderName, Value) to set the value to databank.
    You can refer to the API Reference to see list of associated functions and techniques we can use with related to Data Bank.
    This is the for OFT but if you are using Open Script then you have direct access for getting the databank value but when it comes to setting a value you have to use File operation and write you own methods to do the set operation.
    Thanks
    Edited by: Openscript User 100 on Nov 13, 2009 7:01 AM

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • How to get the values from repeated frame?.

    Hi
    how to get the values from repeated frame?. i have to disply the first 3 digits in another place in my report.
    i have field empno in repeated frame and i want to disply first 3 digits in another place in the same report.
    thanks

    How often do you need to display it? It sounds like you might want to base a summary on that formula with a function of first or last. If it's a per page basis, it can be a page level summary. If it's at a higher level repeating frame, then you can create the summary at that level. I'd suggest taking a look at the online help for summaries using the first/last functions.
    Hope that helps,
    Toby

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • How to get the data from pcl2 cluster for TCRT table.

    Hi frndz,
    How to get the data from pcl2 cluster for tcrt table for us payroll.
    Thanks in advance.
    Harisumanth.Ch

    PL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
    ~Suresh

  • How to get the data from Pooled Table T157E.

    Hi Experts,
    How to get the data from Pooled Table T157E.
    Any help.
    Thanks in Advance,
    Ur's Harsha.

    create some internal table similar to T157E and pass all data as per SPRAS.
    After that use internal table in your program as per the requirement.
    Regds,
    Anil

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

Maybe you are looking for

  • How to view animated gif files?

    When I open them in Preview, each frame of the animation is displayed as its own image, rather than displaying as an animation.

  • Desktop keeps freezing

    My laptop's desktop keeps freezing. All my icons become inactive and the only way I can access them is via the folders on my toolbar. Any advice? Also, my Internet explorer CONTINUALLY freezes up or takes FOREVER to load any data. I have been using G

  • HT200154 Need some info/help

    The light on my atv2 came on out of nowhere, but i didnt turn it on at any point, i switch my TV input to see if it's on (the atv) but it isnt, what is going on!! Anyone??! TX

  • Different languages without using SAP authentication

    Hi folks, is it possible to leverage the language capabilities of BW in WebI through an Universe WITHOUT using SAP authentication (means having a fixed user in the underlaying BW connection and NOT SSO)?? We are facing this requirement in a POC havin

  • Webceneter content patch and Webcenter capture patches

    Hi Expert, There is latest patch for webcenter capture is : Patch for Bug 19856709  Date:  12/08/2014   CUMULATIVE Oracle WebCenter Enterprise Capture PATCH 11.1.1.8.0 NUMBER 7   and there is an another latest bundle patch for webcenter content is :