How to read the texts

i defined standard e-mail text in SO10.
which consist of 35 lines content.
I want to read this texts and pass this to the function
module to sent as an external e-mail
Could you please help with a function module to do so ?

hi use the fm read_text..like this..
CALL FUNCTION 'READ_TEXT'
  EXPORTING
   CLIENT                        = SY-MANDT
    id                               = C_TEXT_ID_0001
    language                      = I_WWMV-SPRAS
    name                          = TEXT_NAME
    object                        = C_TEXT_OBJECT_WLB
IMPORTING
   HEADER                        = THEAD
TABLES
    lines                         = t_tline
EXCEPTIONS
   ID                            = 1
   LANGUAGE                      = 2
   NAME                          = 3
   NOT_FOUND                     = 4
   OBJECT                        = 5
   REFERENCE_CHECK               = 6
   WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8

Similar Messages

  • 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

  • Function and Department of contactpersons - how to read the texts

    Hello,
    we use at the level of contact person the fields FUNCTION and DEPARTMENT where codes represent a function or department.
    My question is how could we read the texts in users language for the codes in this fields?
    Are there function modules we could use?
    Thank you.
    Kind regards
    Manfred

    hi,
    Use FM BUPR_CONTP_GET_DETAIL to get the codes of Function and department.
    Read the language of the user
    Pass those codes along with language to TB911 --> Departments and TB913 --> functions to get the descriptions repectively
    Regds,
    Raghu

  • How to read the text file present in the Al11 server through our program?

    My requirement is that , i have one file already present in the AL11 server. Now i want to take this file so that I can read this file .
    So will you please help me , how to read the file from AL11 server in our program ?
    Thankx in advance

    Hi..
    I too agree to the above post .. SEARCH in SCN before posting..
      DATA: lv_filename  TYPE string, "File name
            lv_line      TYPE string. "One line entry in a file
      lv_filename = iv_file_name.
      IF iv_location = gc_application.
        IF iv_record_count IS SUPPLIED.
      Open file
          IF gv_file IS INITIAL.
            OPEN DATASET lv_filename FOR INPUT IN TEXT MODE
                                     ENCODING DEFAULT.
                                     ENCODING DEFAULT
                                     IGNORING CONVERSION ERRORS.
            IF sy-subrc <> 0.
              RAISE file_open_error.
            ENDIF.
            gv_file = gc_check.
          ENDIF.
      Read data
          DO iv_record_count TIMES.
            READ DATASET lv_filename INTO lv_line.
            IF sy-subrc <> 0.
      Close file
              CLOSE DATASET lv_filename.
              IF sy-subrc NE 0.
                RAISE file_close_error.
              ENDIF.
              CLEAR gv_file.
    Exit from the loop
              EXIT.
            ENDIF.
    Regards
    Ansari

  • How to Read the text enetered in Notes Tab of Invoice Doc. ( FB60, MIRO  )

    Hi All,
    We are trying to read the Text Entered in Notes Tab of Invoice Doc using the tcode FB60, MIRO..
    We are able to see the text when we use these tcode but can you please help us how to read these deatils in a program..
    We wanted to download these notes corresponding to the Invoivces..
    Thanks in Advance....
    Regards,
    Vidya.

    Hmm..you will get lots of links if you search the forum/google..
    Anyway - keep a breakpoint in SAVE_TEXT/READ_TEXT function module and create/display MIRO and FB60 documents - this tell you how it stores and reads long text.
    You should use READ_TEXT in your program with same header inputs with respective TDOBJECT and TDNAME parameters.

  • How to read the text in a link present in a web site ?

    An excellent example I can think of ..is this forum. Using a Java program I need to access/read
    the text present in all the topics posted here (in one page) and put them into a file. In this way if suppose the network goes down, I can still read the entire topic stored in the text file. This program can be scheduled to run daily.
    Can anyone give any sample code/hints to do this ?
    Thanks in advance.

    You need to make a URLConnection to the page you want, and get the input stream from that page.
    The contents of the input stream (use a reader to get them) will give you the raw HTML code. Use a parser to get the actual content. I dont know of a parser offhand, but you can search for one.

  • How to read the TEXT TABLE (or) .CSV in HSQLDB Standalone using Java

    Hi, I like to use the text tables in our application. And like to use the HSQL Database Engine as Standalone. I created the text tables, those are stored in the disk as ".CSV" files. But i am unable to read that text table (.CSV) when i relogin and gave the CSV file path as URL along with "jdbc:hsqldb:file". So can anybody give me the tips how use the text tables.
    Regards,
    Vinay

    You need to make a URLConnection to the page you want, and get the input stream from that page.
    The contents of the input stream (use a reader to get them) will give you the raw HTML code. Use a parser to get the actual content. I dont know of a parser offhand, but you can search for one.

  • How to read the text from the item text of the purchase order

    i want to extract the text which is maintained in the purchase order item text. i used the function module read_text but it reads only the header text. can anyone help.

    u have to chek the following parameters  
      ID: this textid
      language:language u maintained the text,this also important
       name: The no in which text-id is maintained
             Usually we make mistake here,the no is          combination of purchase order no and item no.
    Example:420000210000010(Puchase orderno:4200002100 item no:00010)
        Object:it change based on the text-id so u can check it the document no.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Pass the varibles as i have said and let me know if u face any problem.
    Regards

  • How to read the TEXT TABLES (Or) .CSV in HSQLDB using JAVA

    Hi,
    I want to use the HSQLDB instead of mdb in our application. I am using the HSQLDB Engine Standalone mode, and given a file name "TEMP" in URL along with the "jdbc:hsqldb:file:". Then a I created a TEXT TABLE, that table was created as a .CSV file in the Disk. But I am unable to read that CSV, I tried that file in the database URL. But its not working. Can anubody give me the suggestions.
    Thankyou,
    Regards,
    Vinay.

    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

  • How to read the text shown in the "Look in" field in a JFileChooser?

    Hello,
    I work on a windows environment and I have a network drive mapped on my computer.
    The mapped network drive letter is: X:\
    When I open the JFileChooser and point to this drive and choose it ,in the JFileChooser's "Look in" field this is what is written: Version6.1 on server(X:) but when I choose it and print the pathName it returns only the mapped network drive letter (i.e. X:\) (which is of course understandable).
    The user wants to see the name of the folder he has chosen and not just the drive's letter.
    How can I possibly get the exact test shown in the JFileChooser before returning?
    Thanks.

    >
    When I open the JFileChooser and point to this drive and choose it ,in the JFileChooser's "Look in" field this is what is written: Version6.1 on server(X:) but when I choose it and print the pathName it returns only the mapped network drive letter (i.e. X:\) (which is of course understandable).
    The user wants to see the name of the folder he has chosen and not just the drive's letter.
    How can I possibly get the exact test shown in the JFileChooser before returning?
    >
    Your question is confusing. If the user chose a folder then they will see the name of the folder and the full path.
    You might be referring to the system display name for the drive itself. If that is what you want you will need to add code to get that name and display it to the user. The dialog isn't going to include the display name.
    For example if I map drive z to the c drive of another machine I can get that drive name the way it is displayed:
    restoreFolderChooser.getFileSystemView().getSystemDisplayName(new File("z:\\"))
    "c$ on 'blade1' (Z:)"Is that was you are looking for?
    See the FileSystemView class in the Javadocs
    http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/filechooser/FileSystemView.html
    >
    getSystemDisplayName
    public String getSystemDisplayName(File f)Name of a file, directory, or folder as it would be displayed in a system file browser. Example from Windows: the "M:\" directory displays as "CD-ROM (M:)" The default implementation gets information from the ShellFolder class.
    Parameters:
    f - a File object
    Returns:
    the file name as it would be displayed by a native file chooser
    See Also:
    JFileChooser.getName(java.io.File)

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

  • How to read the whole text file lines using FTP adapter

    Hi all,
    How to read the whole text file lines when error occured middle of the text file reading.
    after it is not reading the remaining lines . how to read the whole text file using FTP adapter
    pls can you help me

    Yes there is you need to use the uniqueMessageSeparator property. Have a look at the following link for its implementation.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CIACDAAC
    cheers
    James

  • 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 do I make just a section of a photo opaque in Pages? So that I an read the text I'm placing over it.

    How do I make just a section of a photo opaque in Pages? So that I an read the text I'm placing over it.

    If you're asking about Pages for iOS (this forum is for iWork for iOS), I don't see an option to make part of an image transparent.
    If you're asking about Pages for your Mac, you can use the instant alpha tool to make the background transparent. There is a separate forum for Pages on the Mac here.

Maybe you are looking for

  • Bluetooth Not Available on Intel Mac mini

    I keep losing the Bluetooth wireless connection between my Apple wireless mouse and keyboard and my Intel Mac mini (which is running Mac OSX 10.5.5) Tried re-booting but it doesn't always come back. Looked in System Preferences, but if the connection

  • Bold 9930 no longer connecting to Skype

    I can no longer connect to Skype since recent changes. I have downloaded and installed the latest app version available from Verizon, but everytime I connect I get an error stating that the "Connection failed. Please check your connection settings an

  • How to save music on nano after HD crash?

    My wife's Mac Mini crashed recently and we replaced the hard drive with a new one.  Her iTunes Library was unfortunately not on the Time Machine backup when I restored it to the new HD.  This means all the music she has left is what was on her early

  • ABAPer to SAP FI Functional

    hi  all,              i am a abaper with around 4 yrs experience. I want to shift the gear and move to SAP FI  functional .              i did a certification also.  But  its very hard to move to that side as companies are looking for prior accountin

  • Is this variable allowed in java?

    i had create some variable in the following int student_no,no_of_course; String s,family_name , first_name, degree_course; boolean studentNo_valid= false; is underscore allowed in naming variable? it working fine as i run my program. but can i use un