How to use read_text...

Hello experts,
I have been tasked to get the start and end date from t-code FB03. Now my question is, what will I put in it? Here is my code where I plan to put the read text:
LOOP AT it_bsis ASSIGNING <fs_bsis>.
    SELECT SINGLE bukrs belnr gjahr budat bldat xblnr bktxt FROM bkpf
    INTO (bkpf-bukrs, bkpf-belnr, bkpf-gjahr, it_bseg-budat,
          it_bseg-bldat, it_bseg-xblnr, it_bseg-bktxt)
    WHERE bukrs = <fs_bsis>-bukrs
      AND belnr = <fs_bsis>-belnr
      AND gjahr = <fs_bsis>-gjahr.
    SELECT SINGLE bukrs belnr buzei gjahr shkzg dmbtr lifnr sgtxt
    FROM bseg INTO (it_bseg-bukrs, it_bseg-belnr, it_bseg-buzei,
                    it_bseg-gjahr, it_bseg-shkzg, it_bseg-dmbtr,
                    it_bseg-lifnr, it_bseg-sgtxt)
    WHERE bukrs = <fs_bsis>-bukrs
      AND belnr = <fs_bsis>-belnr
      AND gjahr = <fs_bsis>-gjahr
      AND koart = 'K'
      AND hkont = <fs_bsis>-hkont
      AND umskz = 'K'
      AND fdlev = 'DP'.
  ENDLOOP.
Again, thank you guys and have a great day!

First you need to find out exactly what text that you need to get.  The text headers are stored in STXH,  here you can see the object, id, and name of the text.  You can get the object and id by using transaction code SE75.  This will list all of the text objects and the ids underneath them.  The NAME is usually the key of the object.  For example, for Sales Document Header Text, the name is the sales document number.  Other NAMEs are a combination. For example, material memo text, It is a combination of material number and plant.  To find exactly what object, id, and how the NAME is built, I usually create a text using the standard transaction.  Then go to SE16, on table STXH, and do a query for "Created By" = me, and "Created Date" = today.  This will give me the header record of the text that I just created.  Now I can see what the Object, ID, and NAME is.  With this information, you can pass to the READ_TEXT function module and get your text.
Make sense?
Regards,
Rich Heilman

Similar Messages

  • How to use read_text function module

    Hi how to use read_text function module to read purchase order header text .what are all tht things to pass in ID,Name and Object
    thanks,
    Mahe

    Dear,
    Use below code.
    DATA:IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE,
    V_TDNAME LIKE THEAD-TDNAME.
    V_TDNAME = PO_NUMBER.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'F01'
        LANGUAGE                      = 'EN'
        NAME                          = V_TDNAME
        OBJECT                        = 'EKKO'
      TABLES
        LINES                         = IT_LINE.
    Thanks and Regards,

  • How to use Read_Text  in Smartforms

    Hi Experts,
    I am developed smartforms .My probelm is i need to use the read_text in smartforms . i am fetch the text in print program how to use this text in smartform.
    Pls suggest me.
    This is my print program .
    REPORT  zsd_invoice_text.
    PARAMETERS : p_vbeln TYPE vbrk-vbeln.
    DATA : fname TYPE rs38l_fnam.
    DATA:BEGIN OF i_vbrk OCCURS 0,
         vbeln type VBELN_VF,
         END OF i_vbrk.
    DATA: lt_lines  TYPE STANDARD TABLE OF tline,
          wa_lines  TYPE tline.
    DATA: ld_text(18) TYPE c.
    *DATA: tdobname TYPE tdobname.
    CONSTANTS: c_id TYPE thead-tdid VALUE  '0002',
                          c_object TYPE thead-tdobject VALUE 'VBBK'.
    DATA: lv_name TYPE tdobname.
    select vbeln from vbrk into table i_vbrk where vbeln eq p_vbeln.
    loop at i_vbrk.
    read table i_vbrk with key vbeln = i_vbrk-vbeln.
    endloop.
    lv_name = i_vbrk-vbeln.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id        = c_id
          language  = sy-langu
          name      = lv_name
          object    = c_object
    *  IMPORTING
    *    header    = ld_header
        TABLES
          lines     = lt_lines
        EXCEPTIONS
          id        = 1
          language  = 2
          name      = 3
          not_found = 4
          object    = 5.
        IF sy-subrc <> 0.
        ELSE.
          LOOP AT lt_lines INTO wa_lines.
            CONCATENATE ld_text wa_lines-tdline INTO ld_text.
          ENDLOOP.
        ENDIF.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZSD_INVOICE_TEXT'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
    IMPORTING
       fm_name                  = fname
    EXCEPTIONS
       no_form                  = 1
       no_function_module       = 2
       OTHERS                   = 3
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION fname
      EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
        p_vbeln                    = p_vbeln
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Thanks in Advance
    purnaneelu
    Edited by: Purnaneelu on Jun 9, 2009 7:11 AM

    Hi,
    Used below code:
    1) Call FM READ_TEXT and pass
    DATA :
    T_LINES
    TYPE TABLE OF
    TLINE
    W_TDLINES
    TYPE
    TLINE
    V_WORK
    TYPE
    CHAR255
    CALL FUNCTION 'READ_TEXT'
       EXPORTING
        CLIENT                         = SY-MANDT
         ID                                = 'Z038'
         LANGUAGE                 = sy-langu
         NAME                         =  BIL_NUMBER
         OBJECT                      = 'VBBK'
       TABLES
         lines                            = T_LINES
    IF sy-subrc = 0.
    loop at t_lines INTO W_TDLINES.
       CONCATENATE V_WORK W_TDLINES-TDLINE INTO V_WORK SEPARATED BY SPACE.
       CONDENSE V_WORK.
       CLEAR W_TDLINES.
    ENDLOOP.
    REFRESH T_LINES.
    ENDIF.
                                                                          OR
    2 ) See below attached screen shot

  • How to use Read_text in Smart Forms for printing Header Texts

    Dear ALL,
    I want to print Header Texts in SmartForms, For that
    I am using T/Code VL02N .. and choosed  Header ..
    got this details...  from Text Header.
    Text Name       :0080000441
    Language         :EN
    Text ID             :Z002
    Text Object       :VBBK.
    So in Smart forms Under Template i have created a text and Program Code .
    Inside that I have used this below code .
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    *CLIENT= SY-MANDT
    ID = 'Z002'
    LANGUAGE =  SY-LANGU
    NAME = NAME
    OBJECT = 'VBBK'
    TABLES
    LINES = IT_TLINE
    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.
    CLEAR IT_TLINE.
    ENDIF.
    Kindly suggest me, Where  to declare the variables and loops for using this Read_Text Syntax in Smartforms .
    Response to this will be highly appreciated........  
    Regards ,
    Vinoth.

    hi
    good
    please check this code
    CONSTANTS:
    *For text reading like in LCNMMFTX / FORM SET_CONTROL_TEXT
               text_id  like thead-tdid     value 'MATK',
               text_obj like thead-tdobject value 'AUFK  '.
    data tlines like tline occurs 0 with header line.
    data tdname like thead-tdname.
    data tdheader like thead.
    if not it_proj-ltxsp is initial.
    refresh tlines.
            tdname = sy-mandt.
            tdname+3 = it_proj-rsnum.
            tdname+13 = it_proj-rspos.
            tdname+17 = it_proj-rsart.
            call function 'READ_TEXT'
                 exporting
                    id        = text_id
                    language  = it_proj-ltxsp
                    name      = tdname
                    object    = text_obj
                 importing
                    header    = tdheader
                 tables
                    lines     = tlines.
                exceptions
                   not_found = 01.
    thanks
    mrutyun^

  • HOW TO READ FILE AND HOW TO USE IT IN PATTERN EX. READ_TEXT

    I WANT TO USE A PROGRAM'S CONTENT ND I WANT TO PASS AS PARAMETER IN A PATTERN..HOW TO DO THT.PLZZ REPLY...
    EX. I HAV CREATED A STANDARD TEXT ZCREATE_TEXT AND I WANT TO SEND THIS AS A PARAMETER TO READ_TEXT...HOW TO DO THIS..

    Hi,
    When you create a Std Text in SO10 and save, it is saved with 4 parameters
    like TEXT NAME, LANGUAGE, TEXT OBJECT, TEXT  ID. these are the four parameters by default will be created for any std text when you create a TEXT in SO10 or in any document.
    You will know this 4 parameters from SO10 screen.
    enter text, display.
    from Menu -> GOTO -> HEADER, see them.
    Next when you wants to fetch this text using READ_TEXT fun module
    yopu have to pass this 4 parameters to that fun module.
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    reward points
    regards,
    ANJI

  • How to Use Function Module READ_TEXT

    Hi
    Anyone give me code or link or example for how to use function module READ_TEXT
    and what are the parameters which we have to pass in module.
    Regards.
    Mohsin

    Hi,
    refer the given below code.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        id                            = 'KOPF'uF0E0 these details we will get thru transaction , where we enter these details.
        language                      = 'EN'uF0E0 these details we will get thru transaction , where we enter these details.
        name                          = TNAME  "table name
        object                        = 'AUFK'    " these details we will get thru transaction , where we enter these details.
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        = HTEXT
      tables
        lines                          = LTEXT
    * 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.
    Thanks
    Arun

  • How to read text in Production Memo tab of Production Order using READ_TEXT

    Hi all,
    Please help me, I was able to develop a program that using READ_TEXT function module to read the Production Order long text.
    Now my requirement is to read the text in the Production memo tabe of production order.
    Can some one tell mee how to do it? the same program is now not working.
    do i need to do any changes?

    Hi,
    TDOBJECT --> AUFK
    TDID -->KOPF
    IF your given same means it's correct i think check your coding
    i will give u sample coding analyze .
    REPORT  z_test1.
    TABLES:
      thead.
    PARAMETERS:
      p_vbeln TYPE vbak-vbeln.
    PARAMETERS:
      p_textid TYPE thead-tdid.
    DATA:
      BEGIN OF t_thead OCCURS 0.
            INCLUDE STRUCTURE thead.
    DATA:
    END OF t_thead.
    DATA:
      w_line TYPE i,
      w_idx TYPE i,
      w_flag TYPE i.
    DATA:
      BEGIN OF t_tline OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA:
    END OF t_tline.
    DATA:
      w_test TYPE thead-tdname,
      w_temp TYPE string VALUE 'TEST'.
    START-OF-SELECTION.
      w_test = p_vbeln.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = p_textid
          language                = sy-langu
          name                    = w_test
          object                  = 'VBBK'
        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.
      IF sy-subrc NE 0.
        MESSAGE 'HEADER TEXT NOT FOUND' TYPE 'I'.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT t_tline.
        IF t_tline-tdline = w_temp.
          w_flag = 1.
        ENDIF.
      ENDLOOP.
      IF w_flag NE 1.
        t_tline-tdline = w_temp.
        APPEND t_tline.
      ENDIF.
      REFRESH t_thead.
      t_thead-tdobject = 'VBBK'.
      t_thead-tdname = w_test.
      t_thead-tdid =   p_textid.
      t_thead-tdspras = sy-langu.
      APPEND t_thead.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client          = sy-mandt
          header          = t_thead
          savemode_direct = 'X'
        TABLES
          lines           = t_tline
        EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4.
      IF sy-subrc NE 0.
        WRITE: / 'ERROR'.
      ELSE.
        COMMIT WORK.
        WRITE: / 'TEXT SAVED'.
      ENDIF.
      LOOP AT t_tline.
        WRITE: / t_tline-tdline.
      ENDLOOP.
    Regards
    swamy

  • How to use standard texts in smartforms

    Hi Friends,
          How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
    thanks in advance,
    regards,
    sharma.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • How to use Standard Text in ALV

    How to use Standard Text in ALV header part? Can you please help me by giving the answer?

    Hi ,
           You can read the Standard text using read_text function module and then print in LV header part.

  • How to use perform and endperform in scripts

    Can anybody cleaerly explains me how to use perform and endperform in scripts with an example to add something extra dynamically to the standard script (like rvorder01).
    thanks in advance.
    regards
    anil.

    Check this example:
    In form
    PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
    USING &EKKO-EKORG&
    USING &EKPO-WERKS&
    USING &EKKO-EKGRP&
    USING &EKKO-BSTYP&
    CHANGING &COMPNAME&
    CHANGING &SENDADR&
    CHANGING &INVCADR&
    CHANGING &COMPADR&
    CHANGING &COVERLTR&
    CHANGING &SHIPADR&
    CHANGING &REMINDER&
    CHANGING &REJECTION&
    CHANGING &POSTADR&
    CHANGING &LOGO&
    ENDPERFORM
    In program
    FORM READ_TEXTS TABLES IN_PAR   STRUCTURE ITCSY
                           OUT_PAR  STRUCTURE ITCSY.
      DATA : L_EKORG TYPE EKORG,
             L_WERKS TYPE WERKS_D,
             L_BSTYP TYPE BSTYP,
             L_EKGRP TYPE BKGRP.
      READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
      CHECK SY-SUBRC = 0.
      L_EKORG = IN_PAR-VALUE.
      READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
      CHECK SY-SUBRC = 0.
      L_WERKS = IN_PAR-VALUE.
      READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
      CHECK SY-SUBRC = 0.
      L_EKGRP = IN_PAR-VALUE.
      READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
      CHECK SY-SUBRC = 0.
      L_BSTYP = IN_PAR-VALUE.
      CLEAR Z08M1_ORG_TEXTS.
      SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
                                              AND WERKS = L_WERKS
                                              AND EKGRP = L_EKGRP
                                              AND BSTYP = L_BSTYP.
      IF SY-SUBRC NE 0.
        SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
                                               AND WERKS = L_WERKS
                                               AND EKGRP = L_EKGRP
                                               AND BSTYP = SPACE.
      ENDIF.
      READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'SENDADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'INVCADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'COMPADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'REMINDER'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'REJECTION'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'POSTADR'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
      MODIFY OUT_PAR INDEX SY-TABIX.
      READ TABLE OUT_PAR WITH KEY 'LOGO'.
      OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
      MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Check and let me know if u face any problem.
    Regards

  • How to Use Save_Text

    HI Friends,
              i have downloaded material code, material type and po text in one text file by using read_text function.
            now i want to upload it into new system how can i do that?
    i am using save_text function to  save it into new SAP system[ECC6.0].
    but i am not getting that which parameters i can pass to function.
    my code is given below please given me modified code for my code or sample code for saving text.
    this is me code . but it is showing error message that text object is not available
    *& Report  ZUPLOADPO
    REPORT  ZUPLOADPO.
    tables : tline , mara.
    data : begin of itpo occurs 0,
            matnr like mara-matnr,
            mtart like mara-mtart,
            tdline like tline-tdline,
            end of itpo.
    DATA : LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
    DATA : ITAB_HEAD LIKE THEAD OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'c:\purtxt.txt'
      TABLES
        DATA_TAB                      = itpo
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at itpo.
    itab_head-tdobject = 'MATERIAL'.
    itab_head-tdname = itpo-matnr.
    itab_head-tdid = 'BEST'.
    itab_head-tdspras = 'EN'.
    lines-tdline  = itpo-tdline.
    append itab_head.
    append lines.
    delete itab_head where tdname = ''.
    clear itab_head.
    clear lines.
    endloop.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
       CLIENT                = SY-MANDT
        HEADER                = itab_head
      INSERT                = ' '
      SAVEMODE_DIRECT       = ' '
      OWNER_SPECIFIED       = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      TABLES
        LINES                 = lines
    EXCEPTIONS
      ID                    = 1
      LANGUAGE              = 2
      NAME                  = 3
      OBJECT                = 4
      OTHERS                = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Message was edited by:
            vinod parhad

    Hi,
    Refer Following codes, which are exclusivly used for data upload:
    *& Form upload_file
    form upload_file using p_p_file
    p_p_file1.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    * CODEPAGE = ' '
    FILENAME = P_P_FILE
    FILETYPE = 'DAT'
    * HEADLEN = ' '
    * LINE_EXIT = ' '
    * TRUNCLEN = ' '
    * USER_FORM = ' '
    * USER_PROG = ' '
    * DAT_D_FORMAT = ' '
    * IMPORTING
    * FILELENGTH =
    TABLES
    data_tab = IT_VENDOR
    * EXCEPTIONS
    * CONVERSION_ERROR = 1
    * FILE_OPEN_ERROR = 2
    * FILE_READ_ERROR = 3
    * INVALID_TYPE = 4
    * NO_BATCH = 5
    * UNKNOWN_ERROR = 6
    * INVALID_TABLE_WIDTH = 7
    * GUI_REFUSE_FILETRANSFER = 8
    * CUSTOMER_ERROR = 9
    * NO_AUTHORITY = 10
    * OTHERS = 11.
    IF sy-subrc <> 0.
    MESSAGE I000(ZZ) WITH 'UNABLE TO UPLOAD'.
    STOP.
    ENDIF.
    Jogdand M B

  • How to use function:MLApp_DIMLAppPutWorkspaceData?

    how to use function:MLApp_DIMLAppPutWorkspaceData?
    MLApp_DIMLAppPutWorkspaceData is a function of MATLAB ACTIVE 
    在LABWINDOWS/CVI调用MATLAB的控件生成的函数有下面一个
    MLApp_DIMLAppGetWorkspaceData (CAObjHandle objectHandle,ERRORINFO *errorInfo,const char *name,const char *workspace,VARIANT data);
    在使用过程中应该如何用?
    定义了一个VARIANT *DATA=NULL,无法获得数据,应该如何处理?

    Hi,
    refer the given below code.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        id                            = 'KOPF'uF0E0 these details we will get thru transaction , where we enter these details.
        language                      = 'EN'uF0E0 these details we will get thru transaction , where we enter these details.
        name                          = TNAME  "table name
        object                        = 'AUFK'    " these details we will get thru transaction , where we enter these details.
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        = HTEXT
      tables
        lines                          = LTEXT
    * 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.
    Thanks
    Arun

  • How to use one email adress for multiple recipients

    Hello,
    I'd like to know how to use one email adress for multiple recipients. 
    this would be very useful or projects. for example;
    if i send one mail to [email protected], all people in this project get an email.
    I will add the people in this project myself. 
    I know it is possible, but I don't know how to do it ;-)
    please help me! 

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

  • Can't figure out how to use home sharing

    Since the latest couple iTunes updates, my family and I can not figure out how to use home sharing. Everyone in our household has their own iTunes, and for a long time we would just share our music through home sharing. But with the updates, so much has changed that we can no longer figure out how to use it.
    I have a lot of purchased albums on another laptop in the house, that im trying to move it all over to my own iTunes, and I have spent a long time searching the internet, and everything. And I just can't figure out how to do it. So.... how does it work now? I would really like to get these albums from my moms iTunes, onto mine. I would hate to have to buy them all over again.
    If anyone is able to help me out here, that would be great! Thanks!

    The problem im having is that after I am in another library through home sharing, I can't figure out how to select an album and import it to my library. They used to have it set up so that you just highlight all of the songs you want, and then all you had to do was click import. Now I don't even see an import button, or anything else like it. So im lost... I don't know if it's something im doing wrong, or if our home sharing system just isn't working properly.
    Thanks for the help.

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

Maybe you are looking for

  • CRM 7.0 installation failed on Windows 2008 R2  SQL Server 2008 SP1

    Hello I'm currently trying to install CRM 7.0 on a windows 2008 R2 (64B) plateform  with SQL Server 2008 SP1 as database engine while launching sapinst.exe i'm facing this issue  that i cannot get rid of it  Could someone Help , would really be appre

  • Backspace key: Can it have a shortcut?

    Since making changes to my Custom Set of Keyboard Shortcut commands I seem to have lost the backspace key's function of deleting frames, though the key still deletes in type mode and works like it should in, say, Illustrator. I can't recall how I mig

  • Compcln cannot work in my system windows Server 2008 SP2

    Hi Experts, I met a difficult problem with compcln tool. It cannot work for my Windows Server 2008 SP system. I executed it with option "/verbose:<logfile>" but the log file was hard for me to analyze and no information related to the log file analys

  • Is it possible to delete or change your @icloud e-mail?

    I have been getting spam e-mails or e-mails saying I'm signing up to websites (that I've never even heard of before). I think someone hacked my e-mail address? Or someone is using it to sign up for websites somehow? I never use this e-mail (I've neve

  • Use Compact Express slot to interface eSATA

    Hi, I'm using an Embedded Controller PXI 8108, with a Compact Express slot. I want to place the hard drive in an external enclosure and use an eSATA Compact Express interface to connect to the enclosure. There is a NI white paper (http://www.ni.com/w