Import and Export Parameters READ_TEXT

Hi ALL
I have to read Standard Text through this Function Module and populate that Standard Text into an Internal Table. Kindly let me know about the Import and Export parameterto do this. Also pls let me know a way to accomplish this
Thanks

What text are u reading and from which transaction.
The following are the main parameters,
ID:
this is text id(U can find it in ur transaction,generally it will start with z)
LANGUAGE:
This depends on the language in which the text is maintained.For example En(english)
NAME:
No for which the text id is maintained,it may be deliver no or transport no.Depends on ur case.
OBJECT:
This represents mostly wether it is header data or item data respectively.so u can check this in ur transaction.
A short example as follows,
FORM read_text1 TABLES   g_t_lines STRUCTURE tline
                USING    p_var TYPE c
                         p_obj TYPE c.
  READ TABLE xvttp INDEX 1.
  g_f_tdname1 = xvttp-vbeln.
  g_f_obj1 = p_obj.
  g_f_langu1 = 'DE'.
  REFRESH g_t_lines.
  CLEAR g_t_lines.
  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            id                      = p_var
            language                = g_f_langu1
            name                    = g_f_tdname1
            object                  = g_f_obj1
       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.
endform.
Check this and let me know if u face any problenm.
Regards

Similar Messages

  • Difference between Import and Export parameters in Function Module

    Hi All,
    I am unclear about the import and export parameters, when i create a function module. Can anyone explain abt this. However when i call the function module in any program the import parameters in Function module are displayed as exporting in program amd the export parameters as importing.
    Any help on this would be appericiated.
    Shejal.

    HI,
    Import parameter in FM is the value u provide to FM for processing.
    export is the value u get from FM after processing.
    when u call a FM in a progam the import parameter will appear as Export bcos u r giving value to the FM.
    and u r getting value from FM in import parameter(bcos u r importing).
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

  • Import and export parameters of an FM are passed by value---why?

    Q]      By default the import and export parameters of an FM are passed by value---what is  the advantage of this system?

    Hi,
    Import and export parameters are, by default, passed by value. However, they can also be passed by reference. Tables parameters can only be passed by reference.
    Pass by reference means, passing the address itself rather than passing the value.
    I guess passing by value is easier and advantageous

  • Import and export parameters.

    Hi Experts,
    If I am using import n export parameters for getting data from a different program into my main program, do i have to declare the variables again in the second program.
    For ex:
    The main report has the following piece of code:
    data: int1 type I,
            int 2 type I.
    export: int1 to memory id 'mem1',
               int2 to memory id 'mem2'.
    submit report 'call_report' and return.
    The call_report has the following piece of code:
    import: int1 from memory id 'mem1',
               int2 from memory id 'mem2'.
    So if I am not declaring int1 n int2 explicitly in this report, i get the syntax error that they r not defined.
    My confusion is that when v r exporting int1 n int2 from the main report, then y is the explicit declaration required?
    Is ther no other way out than decalring int1 n int2 in the call_report.
    I will reward all the helpful answers.
    Thanks,
    Ajay.

    Hi Ajay,
    With EXPORT u r not exporting the variable and its definition but the content(data) of the variable u r exporting. So if u want to get the content in another program then u have to declare the variables of same type in the calling program also. Similarly with IMPORT u are not downloading the attributes of the field but only the content of variable u exported earlier.
    Another point to remember is u have declare the variable in the second report with the same name and type as of first report.
    Also check below piece of code which is similar to ur req
    First report
    REPORT Z75694_TEST .
    DATA: i_data TYPE i VALUE '1111'.
    EXPORT i_data TO MEMORY ID 'VINOD'.
    CHECK sy-subrc IS INITIAL.
    WRITE: 'Exported'.
    SUBMIT Z75694 AND RETURN.
    Second report
    REPORT z75694.
    DATA i_data TYPE i.
    IMPORT i_data FROM MEMORY ID 'VINOD'.
    WRITE:/ i_data.
    It is working fine.
    Hope this clarified ur doubt.
    Thanks,
    Vinod.
    Edited by: Vinod Kumar Vemuru on Apr 11, 2008 10:35 AM
    Edited by: Vinod Kumar Vemuru on Apr 11, 2008 10:44 AM

  • Table in import and export parameters

    Hi,
    this is a general doubt. can we pass an internal table in import/export parameters of FMs. I know there are table parameters, but can this be done in import export parameters.
    Regards,
    Vijay

    Hi vijay,
    1. if we pass thru TABLES,
      then we can pass an internal table,
      WITH HEADER LINE
    2. But if we use import/export,
       it has to be a TABLE TYPE
       defined in the data dictionary.
      (This table type will not have any header line).
    regards,
    amit m.

  • Internal table with Import and Export

    Hi All,
    Hi all
    Please let me know the use of <b>Internal table with Import and Export parameters and SET/GET parameters</b>, on what type of cases we can use these? Plese give me the syntax with some examples.
    Please give me detailed analysis on the above.
    Regards,
    Prabhu

    Hi Prabhakar,
    There are three types of memories.
    1. ABAP MEMORY
    2. SAP MEMORY
    3. EXTERNAL MEMORY.
    1.we will use EXPORT/ IMPORT TO/ FROM MEMORY-ID when we want to transfer between ABAP memory
    2. we will use GET PARAMETER ID/ SET PARAMETER ID to transfer between SAP MEMORY
    3. we will use EXPORT/IMPORT TO/FROM SHARED BUFFER to transfer between external memory.
    ABAP MEMORY : we can say that two reports in the same session will be in ABAP MEMORY
    SAP MEMORY: TWO DIFFERENT SESSIONS WILL BE IN SAP MEMORY.
    for ex: IF WE CALL TWO DIFFERENT TRANSACTIONS SE38, SE11
    then they both are in SAP MEMORY.
    EXTERNAL MEMORY: TWO different logons will be in EXTERNAL MEMORY.
    <b>Syntax</b>
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    Saving Data Objects in Memory
    To read data objects from an ABAP program into ABAP memory, use the following statement:
    Syntax
    EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ... TO MEMORY ID <key>.
    This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM <f i >, the data object <f i > is saved under its own name. If you use the FROM <g i > option, the data objet <g i > is saved under the name <f i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    Check this link.
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    Thanks,
    Susmitha.
    Reward points for helpful answers.

  • How to import and export the screen parameters

    hi all
    how to import and export the parameters of the screen
    i need to export all the parameters and then import it
    and also how to export and import a variable to the memory
    thanks and regards
    naval bhatt

    Hi,
    Check this example for exporting and importing to memory..
    DATA: V_VALUE(2) VALUE '2'.
    EXPORT V_VALUE = V_VALUE TO MEMORY ID 'ZTEST'.
    IMPORT V_VALUE = V_VALUE FROM MEMORY ID 'ZTEST'.
    Thanks,
    Naren

  • Any example to import and export itab to function module

    hi all,
    as the table parameter in function module is obsolete, please advise an example on how to pass in an internal table
    and return back the result in an internal table as well.
    for example, i have itab1 and itab2. By using table parameters i got the following code. Please advise alternative way by using import and export.
    ""Local Interface:
    *"  TABLES
    *"      itab1 STRUCTURE  Zitab1
    *"      itab2 STRUCTURE  Zitab2
    loop at itab1 into wa_itab.
    **do some logic here to assign value to itab2 and return.
      wa_itab2-a = xxx .
      wa_itab2-b = xxx.
    append wa_itab2 to itab2.
    endloop.
    thank you.

    hi,
    suppose you have two structure name struc1 and struc2.
    create table type zitab1 & 2 for both.
    please do the following:
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(itab1) TYPE  Zitab1
    *"  EXPORTING
    *"     VALUE(itab2) TYPE  Zitab2
    you can avoid to use the obsolete table parameters as well as LIKE in function module creation.
    cheers

  • Regarding import and export statement

    hi experts,
    how to import and export the internal table between programs...
    Nice solutins with maximum points.....

    Example of a program exporting an internal table to ABAP memory.
    Prog 1
    parameters: pa_vbeln like vbak-vbeln.
    data: itab type standard table of vbak.
    * get data to fill the table
    select * from vbak into table itab
                where vbeln = pa_vbeln.
    * now store the internal table to ABAP memory
    export itab to Memory ID 'table''.
    * here we call another program, prog 2
    submit prog2 and return.
    Prog 2  -> This imports the internal table exported by prog 1 and writes the content of the internal table to a list
    data: jtab type standard table of vbak,
           wa_vbak type vbak.
    * importing the itab that was exported by prog1
    import itab to jtab from memory id 'table'.
    loop at jtab into wa_vbak.
    write:/ wa_vbak-vbeln,
            wa_vbak-erdat.
    endloop.
    * clear the specific memory id after required processing is complete
    free memory id 'table'
    Hope this solves your problem.
    Cheers,
    Sougata.
    Subas,
    Copy/paste your code, I'll have a look. First check if data is being selected before Export command.
    Edited by: Sougata Chatterjee on Jan 11, 2008 12:31 PM
    Also make sure you create prog2 as an executable program. Then, run prog1 with a valid Sales Order number. To understand it more clearly run it in debugging mode and step through. It should work fine in any system.
    Edited by: Sougata Chatterjee on Jan 11, 2008 12:42 PM

  • Import and Export Script

    Hello All Readers,
    Here I want to know all the parameters of Database Import and Export Command and all the possible methods of Imp/Exp. Please help me to find those.
    Thanks in Advance.......

    May be u can read this to get fair knowledge
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96652/part1.htm#435787

  • Find import and export for method

    Hi,
    i wont to use method in se24 , how i now the import and export and ... for Method?
    Regards

    Hi,
    for an easy use of methods i recommend using the button "pattern" in SE80. If you choose "ABAP Objects Patterns" the source of a method call is generated and all existing Parameters are listed.
    You can display the parameters also within SE24. Call the Class of the Method. Then click on "Methods". Set the mouse focus on the method you are interested in and click the button "Parameters".
    Hope this helps!
    Regards
    Mark-André

  • Importing and Exporting Data with a Clob datatype with HTML DB

    I would like to know what to do and what to be aware of when Importing and Exporting data with a Clob Datatype with HTML DB?

    Colin - what kind of import/export operation would that be, which pages are you referring to?
    Scott

  • I get this error when I go to imovie, I have instalerat on via appstore, but it does not work. The QuickTime components necessary to view, edit, import and export various types of films are not installed. The components included in the iMovie installer. R

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

  • Problem with Import and Export Data Wizard

    Downloaded and installed SQL Server Express 2008 R2 today because I want to explore how Access interacts with SQL Server (using my home computer). I'm using Access 2010 (under Windows 7), so the 2008 version of SQL Server Express seemed to be the version
    to use.
    After a couple of false starts, installation appeared to go okay. After the installation. My Start menu listed Microsoft SQL Server 2008 and Microsoft SQL Server 2008 R2. The latter listed Import and Export Data (64-bit). When I clicked that, the first Import
    and Export Data Wizard page was displayed. I wasn't ready at that time to explore the wizard, so I closed it. An hour or so later I again attempted to open the Import and Export Data wizard. This time, the wizard didn't open. Instead this error message was
    displayed: "The SSIS Runtime object could not be created. Verify that DTS.dll is available and registered."
    I found DTS.dll on my computer at C:\Program Files\Microsoft SQL Server\100\DTS\Binn, so the file is available, but don't know whether it is registered.
    How can I correct this problem?

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

  • What is the best way to import and export footage from the 5D Mark II?

    Hello,
    I've just finished shooting what I am considering to be my directorial masterpiece.  Shot it on the Canon 5D (1080p, 24fps), and the footage looks amazing.  Now I am ready to start editing and have been using premiere lately, but I have yet to figure out the proper pipeline.  I want to know the best way to retain resolution before I delve into this project.
    My questions:
    1)  What is the best way to start a new project and import the footage without having to render whilst editing, so as to retain all resolution and originality of the source footage?
    2)  What is the best way/ codec/ format to export this same footage once editing is complete so as to retain that crisp 1080p for which the 5D is so recognized?
    3)  What is the best way/ codec/ format to import and export/ render between premiere and after effects?  I am speaking mostly of vfx and color correction.  I also have some 30fps footage that I intend to slow down in AE and then import into premiere.
    I know this is pretty broad, but as a solo filmmaker I really need someone's guidance.  I rarely ever finish my films with the same, crisp look as the footage.  I need pipeline help, and really appreciate it!

    ascreenwriter wrote:
    Hello,
    I've just finished shooting what I am considering to be my directorial masterpiece.  Shot it on the Canon 5D (1080p, 24fps), and the footage looks amazing.  Now I am ready to start editing and have been using premiere lately, but I have yet to figure out the proper pipeline.  I want to know the best way to retain resolution before I delve into this project.
    My questions:
    1)  What is the best way to start a new project and import the footage without having to render whilst editing, so as to retain all resolution and originality of the source footage?
    2)  What is the best way/ codec/ format to export this same footage once editing is complete so as to retain that crisp 1080p for which the 5D is so recognized?
    3)  What is the best way/ codec/ format to import and export/ render between premiere and after effects?  I am speaking mostly of vfx and color correction.  I also have some 30fps footage that I intend to slow down in AE and then import into premiere.
    I know this is pretty broad, but as a solo filmmaker I really need someone's guidance.  I rarely ever finish my films with the same, crisp look as the footage.  I need pipeline help, and really appreciate it!
    1. Follow the advice above. Also use the Media Browser to import the footage in case you have spanned media files. Import files with the Media Browser.
    2. It largely depends on what you wish to ouput to: Blu-ray, web, etc. This FAQ gives the best answer: What are the best export settings?
    3. Use the Replace with Adobe After Effects Composition function.

Maybe you are looking for

  • Pb avec facetime sur mon mac (suis pas visible mais audible)

    Bonjour, j'ai un problème. Lorsque j'utilise facetime avec mon mac, les gens m'entendent mais ne me voient pas. Moi je les entends et les vois parfaitement. J'ai pensé que c'était peut être lié à ma connexion wifi chez moi mais lorsque sur le même ré

  • PreparedStatement.setTimestamp does not allo use of DATE index..

    (...although they' re not suposed be related) Hi; I use Oracle 10g with Java JDBC driver ojdbc14.jar and I have a PreparedStatement on which among other "bind" JDBC parameters I have a java.util.Date. The ORM that we use (Hibernate 2.0.3) passes this

  • Ive been told to rebuild my site, should I use Muse or Dreamweaver?

    Hi everyone, Just recently I had someone perform an audit on my website and the results that came back weren't good. It seems I have all sorts of problems with my site, mainly from an SEO perspective. The guys that did the audit said they could rebui

  • Battery Packs for MuVO V

    Is there going to be exchangable battery packs for the MuVo V200? I'm thinking about buying one and I like to have at least a bit of color. Most of the MuVos sold in Europe are either black, white, or grey.

  • Scale on variable layouts

    text disappears when creating iphone variable layout. Used to do it with v20 with scale and it worked perfectly well. What could it be?