Prblm in create_text or save_text

Hi Folks,
Iam uploading long text using  a call transaction program.
case1:  selection screen
                 version : N0
                  fiscal year : 2007
in coding tried both FM (save_text or create_text).
result if check the tcode 'kp06' the text is uploaede successfully wrking with any FM.
case2 selection screen
                 version : 001
                  fiscal year : 2007
inthis case i used same data
result if i check the t code 'kp06' except long text other fileds uploaded successfully.
in the debugging the FM is working properly but the text is not visible in KP06.
please tell me the problem is with FM? or the selection screen data?
Thanks
niru

Hi Beena,
While passing the text to the FM CREATE_TEXT, why dont you search and replace '##' with a single blank space?
Or, you dont have control over the text passed to the FM?
Understood that you dont find them while creating, then use FMs READ_TEXT modify the text, so that these are removed('##') and again use FM SAVE_TEXT, to save the text.
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi

Similar Messages

  • Use CREATE_TEXT on VA01 user exits

    Hi,
    I need to write item text using FM CREATE_TEXT in VA01 user exits. The FM required VBELN and I don't have when creating order.
    How can I create item text in VA01 user exits ?
    Thanks,
    Quincy

    Hi,
    i have a similar requirement where i need to copy custom populated fields of vbap table into item->text->item notes tab.
    i tried with both create_text and save_text. but i couldn't see the item in the item->texts->item notes.
    here is my code:
    CONCATENATE vbap-zzrelid vbap-zzsorg2 vbap-zzsorg3
                  vbap-zzsorg4 vbap-zzsorg5 vbap-zzsorg6
                  vbap-zzsorg7 vbap-zzsorg8 vbap-zzsorg9
                  vbap-zzsorg10 INTO gt_textname.
      gt_textobject-tdid  = c_0002.
      gt_textobject-tdname     = gt_textname.
    gt_textobject-tdobject   = c_vbbp.
      gt_textobject-tdspras    = sy-langu.
      APPEND gt_textobject.
      CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            header          = gt_textobject
            savemode_direct = 'X'
          TABLES
            lines    = gt_text
          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.
    kindly resolve the problem with the above code.
    Thanks,
    Preethi.

  • Function Module To Check and Make changes

    hi
    i have created a FM which have following code , i have created that one for updating header data of Notification
    the Fm module are as following code
    Import
    Notif      Type    qmnum      (check box pass value) 
    Export
    TT_data  type   zNotif_data    (where ZNotif_data is a table type which having fields qmnum qmart priok etc....)
    source code:---
    select qmnum
           qmart
           priok
           ernam
           qmdat
           from qmel
           into table tt_data
           up to 1000 rows.
    data : it_tlines like tline occurs 0 with header line.
    data : it_text1 like thead occurs 0 with header line.
    data : x_header type thead.
          x_header-tdobject = 'feature'.
          x_header-tdname  = '99999996020000'.
          x_header-tdid    = 'head'.
          x_header-tdspras = 'D'.
          loop at it_tlines.
          it_tlines-tdformat = '*'.
          it_tlines-tdline = it_text1-tdtxtlines.
          append it_tlines.
          endloop.
          CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
            CLIENT                = SY-MANDT
              HEADER                = x_header
             INSERT                = ' '
             SAVEMODE_DIRECT       = 'X'
            OWNER_SPECIFIED       = ' '
            LOCAL_CAT             = ' '
          IMPORTING
            FUNCTION              =
            NEWHEADER             =
            TABLES
              LINES                 = it_tlines
           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.
          commit work and wait.
          update stxh set tdobject = 'D'
          where tdobject = notif.
            ENDIF.
    ENDFUNCTION.
    I M rtying it but it is not working.
    if any one have idea please help me.
    Edited by: Thomas Zloch on Apr 25, 2011 10:50 PM - please cut it down with the exclamation marks

    Hi,
    Please find a piece of working code for your requirement as mentioned below. This code is working fine in my system.
    Edit Text
    HEADER-TDOBJECT = 'QMEL'.       "Should be given as QMEL in capital letters
    HEADER-TDNAME = gfl_notif-QMNUM.     "Should pass the Notification number with leading zeros.
    HEADER-TDSPRAS = 'E'.                          "Should be given as E in capital letters
    HEADER-TDID = 'LTXT'.                             "Should be given as LTXT in capital letters
    header-tdlinesize = '072'.
    >Text1
    lines-TDFORMAT = '*'.
    lines-TDLINE = 'Text1'.            "Pass the Header text values one by one.
    APPEND lines to git_lines.
    CLEAR lines.
    >Text2
    lines-TDFORMAT = '*'.
    lines-tdline = 'Text2'.            "Pass the Header text values one by one.
    APPEND LINES to git_lines.
    CLEAR lines.
    >Text3
    lines-TDFORMAT = '*'.
    lines-tdline = 'Text3'.            "Pass the Header text values one by one.
    APPEND LINES to git_lines.
    CLEAR lines.
    Here call function CREATE_TEXT ior SAVE_TEXT
    CALL FUNCTION 'CREATE_TEXT'
    EXPORTING
    FID = HEADER-TDID
    FLANGUAGE = HEADER-TDSPRAS
    FNAME = HEADER-TDNAME
    FOBJECT = HEADER-TDOBJECT
    SAVE_DIRECT = 'X'
    FFORMAT = '*'
    TABLES
    FLINES = GIT_LINES
    EXCEPTIONS
    NO_INIT = 1
    NO_SAVE = 2
    OTHERS = 3
    OR
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    HEADER = HEADER
    INSERT = ' '
    SAVEMODE_DIRECT = 'X'
    TABLES
    LINES = GIT_LINES
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    OBJECT = 4
    OTHERS = 5
    HERE PUT A BREAK POINT AND SEE WHETHER SY-SUBRC IS EQUAL TO ZERO OR NOT. IF NOT EQUAL TO ZERO, THEN CHECK WHAT IS THE ERROR MESSAGE AND CORRECT THE SAME.
    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 'COMMIT_TEXT'
    EXPORTING
    OBJECT = header-tdobject
    NAME = header-tdname.
    set long text flag because create text does not do it
    SELECT SINGLE indtx INTO long_text_ind FROM qmel WHERE qmnum = gfl_notif-QMNUM.     "PROVIDE THE NOTIFICATION NUMBER WITH LEADING ZEROS.
    IF long_text_ind IS INITIAL.
    UPDATE qmel SET indtx = 'X' WHERE qmnum = gfl_notif-QMNUM.  "PROVIDE THE NOTIFICATION NUMBER WITH LEADING ZEROS.
    ENDIF.
    Thanks & Regards,
    Harish

  • Upload purchase order text through LSMW

    Please tell me procedure for uploading sales order & purchase order text in material master through lsmw

    Hi
    Long Texts are stored in STXH table with 4 parameters TEXTNAME,OBJECT,ID and LANGUAGE
    You can't find the complete text in any table
    You will find these 4 parameters in the table STXH.
    Texts are created using the fun module CREATE_TEXT and SAVE_TEXT and these texts are fetched using READ_TEXT fun module
    For uploading these long texts using LSMW see
    for Long texts Upload
    Please take a look at this..
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • PR item text to be updated on Process order release

    Hi Experts,
    The scenario is mentioned below :
    The purchase requisitions would be created on the release of PRocess order.
    My requirement is to update the item text of the Purchase requisition ( with the process order data such as BATCH & Material ) on release.
    I have already tried quiet a few user exits, but beacuse the PR number is not yet generated in these exits,hence  I cannot use create_text or save_text.
    Please let me know if someone has any idea on how this can be solved.
    Hoping for a quick response.
    Warm Regards

    Hi
    Check the exits related to PR for Process order
    COZF0001
    COZF0002
    Try to fetch the Long texts of the PR's using the READ_TEXT and use the fun module
    CREATE_TEXT for saving the same in Process order by using the Right parameters like OBJECTName,ID,OBJECT and LANG in bothe cases for PR and process order.
    The tables link between the PR and the order is
    AFKO-AUFNR  = EBKN-NPLNR  ( process order number) in PR account assignment table
    use this link and try to save the text as mentioned above
    Reward points if useful
    Regards
    Anji

  • How to create a long text in VF01 before saving the document

    Hi,
      Im tring to create a perfama invoice with the help of delivery number and document type (F8) , by pressing the enter key im going to the second screen, once i get into the second screen im suppose to get the Header text and Item text, i.e long text for both header and item..
    Can u please help me to solve this issue.
    Thanks,
    Reni

    Hi
    Generally in the Sales Flow all the Header and Item texts from sales order are copied into Delivery when it is created and when you create a Invoice using that delivery all those texts are copied into the invoice. check with functioanl consultant once and see.
    We can also create/upload  the texts explicitely using the fun modules
    CREATE_TEXT and SAVE_TEXT .
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to upload text in va01 for item details

    Hi Experts
    I have used FM INIT_TEXT , CREATE_TEXT and SAVE_TEXT.
    for one sales order it's getting created but more than one am getting error
    I/O error for text VBBP 0201000473000020 0001 EN .
    how to solve this issue

    hi Pradeep,
    Go through the following link
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f8283ca1-0601-0010-e285-e8974f8dd360

  • Long text indicator against Notification task & SubOrder creation

    Hi all,
    We are using BAPI_ALM_NOTIF_ADD to create long texts against the notification tasks. Though the long texts are created and can be viewed through IW22, the long text indicator in QMSM table is not set and hence when I display the notification through IW23 and navigate to the tasks, the long text available icon is not displayed. I tried to use CREATE_TEXT and SAVE_TEXT as well. Somehow the long text indicator doesn't get set. Do I need to explicitly set this indicator after the BAPI call? Please provide your valuable inputs.
    Also, I have one more issue. Is there a way of creating Sub Order against the PM order through a BAPI? We have a requirement to create a Sub Order against the superior PM order through transaction IW36. Could you please suggest if any of you have come across any BAPI that supports this requirement?
    Thanks & Regards,
    Vidya

    I know I am posting answer to very old thread as did not find any answer so far, so giving clue. See if new solution seekers this helps you now…
    Cause:
    As the create_text or save_text  does creation of text at data base level and does not pass through all the screens of the particular transaction, so the text editor icon is not enabled  [like in tcode IW23 (IW33) Notification display text editor, tables holding damage text and cause text indicator qmfe-indtx & qmur-indtx I ]
    Solution:
    Read existing text using FM READ_TEXT i.e. retain existing text in internal table, say IT_READ
    Delete existing text using FM 'DELETE_TEXT'. Remember to set save_direct = x
    Perform BDC to add dummy text doing call transaction. This will set text indicator to ‘X’.
    Append your new ext to IT_READ.
    Now create text again using FM 'CREATE_TEXT'. Remember to set save_direct = x
    If you have requirement that created text should not be editable then you need to change format of IT_READ.
    Like IT_READ-tdformat = ‘>X’ & IT_READ-tdline = ‘*<one space><your text>’ [may use CONCATENATE '*' IT_READ-tdline INTO IT_READ-tdline SEPARATED BY space.].
    Below are above steps code snap shots.
    Bdc part for IW22
    PERFORM bdc_dynpro USING 'X' 'SAPLIQS0' '7200'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=TXPS'. "DAMAGE_TXT icon
    or   PERFORM bdc_field USING 'BDC_OKCODE' '=TXUR'. "CAUSE_TXT icon
    Based on your text editor configured to keep track of timestamp log, use one of the option. My case first two lines of text editor shown timestamp log lines and they are non editable.
    *  PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
    *  PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(02)'.
    *  PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
    *  PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(02)' '*'.
    *  PERFORM bdc_field USING 'RSTXT-TXLINE(02)' 'Dummy text for indicator line 2'.
    *  PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
    *  PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(03)'.
    *  PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
    *  PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(03)' '*'.
    *  PERFORM bdc_field USING 'RSTXT-TXLINE(03)' 'Dummy text for indicator line 3'.
    PERFORM bdc_dynpro USING 'X'  'SAPLSTXX' '1100'.
    PERFORM bdc_field USING 'BDC_CURSOR'  'RSTXT-TXLINE(04)'.
    PERFORM bdc_field USING 'BDC_OKCODE'  '=POSF'.
    PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(04)' '*'.
    PERFORM bdc_field USING 'RSTXT-TXLINE(04)' 'Dummy text for indicator line 4'.
    PERFORM bdc_field       USING 'BDC_OKCODE'  '=TXBA'.
    FORM bdc_dynpro USING    value1
    value2
    value3.
    CLEAR bdcdata.
    bdcdata-dynbegin = value1.
    bdcdata-program = value2.
    bdcdata-dynpro = value3.
    APPEND bdcdata.
    ENDFORM.                               " BDC_DYNPRO
    form DELETE_EXISTINGTEXT.
    CALL FUNCTION 'DELETE_TEXT'
    EXPORTING
    CLIENT          = sy-mandt
    ID              =   LTXT
    LANGUAGE        =   E
    name            =   <notification number + suffix>
    –  determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
    object          =   QMFE = damage or QMUR = CAUSE
    savemode_direct = 'X'
    *     TEXTMEMORY_ONLY = ' '
    *     LOCAL_CAT       = ' '
    EXCEPTIONS
    not_found       = 1
    OTHERS          = 2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT          = gc_x
    endform.                    " DELETE_EXISTINGTEXT
        CALL FUNCTION 'CREATE_TEXT'
    EXPORTING
    fid         = LTXT
    flanguage   = E
    fname       = <notification number + suffix>
    –  determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
    object          =   QMFE = damage or QMUR = CAUSE
            fobject     = QMFE = damage or QMUR = CAUSE
    save_direct = x
    fformat     = ‘>X’
    TABLES
    flines      = t_editor_text
    EXCEPTIONS
    no_init     = 1
    no_save     = 2
    OTHERS      = 3.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = gc_x.

  • Updating text to SAP purchace order

    Hi,
      i am working on an inbound idoc , related to purchace order.
      i have a requirement of updating the header and item text to the SAP purchace order . how is this done , should i use a bapi for this .Please reply to me as soon as possible .
    Thanks in advance!

    Hi
    Long Texts are stored in tables
    STXH - header
    STXL - details.
    if you want to read the texts you can use Fun Module  READ_TEXT
    Any Application document Header and Item Long texts are stored in STXH table with the 4 parameters OBJECT,ID,NAME and LANG
    These texts are fetched from database using READ_TEXT fun module by passing the above 4 parameters.
    Double click on the text, from the text editor menu GOTO-> HEDAER
    you will find the all above 4 parameters
    so accordingly you have to pass to the fun module READ_TEXT to fetch the texts.
    To Upload these Long Texts into the system use the fun modules
    CREATE_TEXT and SAVE_TEXT fun module for the creation of Header and Item texts
    for HEADER
    OBJECT = EKKO
    OBJECTNAME  = PO Number (ekko-EBELN)
    ID = (take the number from the system from the Text editor GOTO->HEADER)
    LANG  = SY-LANgu
    for Item
    OBJECT = EKPO
    OBJECTNAME  = PO Number + Item Number  (ekko-EBELN + ekpo-ebelp)
    ID = (take the number from the system from the Text editor GOTO->HEADER)
    LANG  = SY-LANgu
    Pass these parameters and create the text.
    sample code
    REPORT zmm_longtext
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab1 OCCURS 0,
            matnr    LIKE mara-matnr,    " Material
            text     LIKE tline-tdline,  " Long Text
          END OF itab1.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,    " Material
            text  LIKE tline-tdline,  " Long Text
          END OF itab.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline.   " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname,   " Object Name
           dl_lan TYPE thead-tdspras,   " Language
           gv_matnr TYPE matnr.
    Constants
    CONSTANTS:
    Object ID for Long Text of Material Basic Data 1
      c_best     TYPE thead-tdid VALUE 'GRUN',
      c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
    Parameters
    PARAMETERS p_file LIKE rlgrap-filename.
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab1
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      SORT itab1 BY matnr.
      LOOP AT itab1.
        CLEAR gv_matnr.
        SELECT SINGLE matnr INTO gv_matnr
           FROM mara WHERE bismt = itab1-matnr.
        IF itab1-text NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text.
          APPEND itab.
        ENDIF.
        CLEAR itab.
      ENDLOOP.
      DELETE itab WHERE matnr EQ ' '.
    Upload the Texts
      SORT itab BY matnr.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        dl_name = itab-matnr.
    Call the Function Module to Create Text
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid         = c_best
            flanguage   = dl_lan
            fname       = dl_name
            fobject     = c_material
            save_direct = 'X'
            fformat     = '*'
          TABLES
            flines      = dt_lines
          EXCEPTIONS
            no_init     = 1
            no_save     = 2
            OTHERS      = 3.
        IF sy-subrc <> 0.
          WRITE:/ 'Long Text Creation failed for Material'(001),
                 itab-matnr.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Material'(002),
                 itab-matnr.
        ENDIF.
        AT END OF matnr.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    Regards
    Anji

  • Create text with default values

    Hi,
    I need to copy values(ID, description , dates , status text)  from current document to follow up document ' text ' .
    I have defined text determination procedure->text type-> access sequence->function ( copy of COM_TEXT_DETERMINE_TEXT)
    , but this function only copies SO10 text to next document.
    I need to pass values to the text.
    Please suggest how to achieve this.
    Regards
    Pratyush

    Hi,
    you can use screen fields in BDC to update short text. you need CREATE_TEXT or SAVE_TEXT function module to update long text. Transaction may any. You have to pass some parameter to update long text.First try to use READ_TEXT to get existing text for practice.You will get some idea of long text, then create your own long text for any transaction

  • Reading Texts longer than 132 Characters

    Hello Seniors,
    I am working on Reading Texts more that 132 characters long.Texts should include Symbols also.I want to <b>Create and Save</b>the texts and then <b>read</b> them wherever I want from ABAP functions.
    I want to know the Transports information relating to this.
    Could there be any function modules (with relevant parameter passing)to create long texts and then read them where ever I need.
    Thank You,
    cnc.

    HI
    Check the fun module <b>READ_TEXT</b>, CREATE_TEXT and SAVE_TEXT and EDIT_TEXT etc related to the Std texts
    Have to pass the parameters like OBJECT,ID, OBJECTNAME,LANGUAGE
    You can transport these texts using the program <b>RSTXTRAN</b>
    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).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Updating purchase infor record short text (EINE-TXZ01)

    Hi all,
    I am creating a purchase info record through BDC where i have to update the purchase info record short text manually(CREATE_TEXT Function module) with some default values'XXXX'.
    Can any one provide me some information how to achieve that??
    Thanks

    Hi,
    you can use screen fields in BDC to update short text. you need CREATE_TEXT or SAVE_TEXT function module to update long text. Transaction may any. You have to pass some parameter to update long text.First try to use READ_TEXT to get existing text for practice.You will get some idea of long text, then create your own long text for any transaction

  • Differences between the FMs of SAVE_TEXT and CREATE_TEXT.

    Hi Experts,
    Let me know that, the differences between the FMs of SAVE_TEXT and CREATE_TEXT.
    Like, Wht Wht scenarioes demand each FM?
    Which is best one, if both perform same functionality.
    replies appreciated.
    thanq

    CREATE_TEXT is used to create a new Text. It uses the SAVE_TEXT inside it.
    SAVE_TEXT is used to update the existing text.
    Regards,
    Naimesh Patel

  • After using SAVE_TEXT in VA01 getting problem

    Hi Friends ,
    As per below link i have used SAVE_TEXT with vbeln "XXXXXXXXXX"
    'SAVE_TEXT' or 'CREATE_TEXT' unable to use
    But text is copied default to other orders also in VA01 ..
    I tried using CALL FUNCTION 'FREE_TEXT_MEMORY' but it did not worked .
    Please help .
    Regards ,
    Kumar.

    hi...
    where u getting the user input text and which field......
    where u done the coding for this.....can u tell me user exit name....
    if u use the user exit no need to use save_text . just modify that field which u get input text...
    just send ur coding...

  • Upload Task List Operation long Text using SAVE_TEXT-Urgent

    Hi ,
    I am trying to create Task List Operation Long text using the function module ..
    SAVE_TEXT .I am passing the following keys
    Text Name       300ATEST057 0000000900000009
    Language        EN
    Text ID            PLPO Long Text
    Text Object     ROUTING    Texts for task list types
    But the long texts are not getting updated in the Task lists operations .
    Can anyone please suggest whether SAVE_TEXT will work for Operation long Texts or not Are we missing something
    .This is pretty urgent requirement .Award points are assured.
    Regards
    Sam

    hi,
    use function module create text
    check the sample code
    DATA: BEGIN OF itab OCCURS 0,
          asnum LIKE asmd-asnum, " Service No
          text(5000)  TYPE c, " Long Text
          END OF itab.
    *DATA: itab1 LIKE itab OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF itab1 OCCURS 0,
          asnum LIKE asmd-asnum, " Service No
          sequ  type i,          " Text Sequence
          text(5000)  TYPE c, " Long Text
          END OF itab1.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline. " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname, " Object Name
           dl_lan TYPE thead-tdspras. " Language
    Constants
    Object ID for Long Text of Service Master
    CONSTANTS:c_best TYPE thead-tdid VALUE 'LTXT',
              c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
    for file splitting.
    DATA: start TYPE i,
          len   TYPE i VALUE 92,
          totlen TYPE i,
          n TYPE i.
    PARAMETERS p_file LIKE rlgrap-filename."input file
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      LOOP AT itab.
        itab1-asnum = itab-asnum.
        CLEAR: totlen,n, start.
        totlen = STRLEN( itab-text ).
        n = totlen / len.
        n = n + 1.
        DO n TIMES.
          itab1-text  = itab-text+start(len).
          itab1-sequ  = sy-index.
          start = start + len.
          APPEND itab1.
        ENDDO.
      ENDLOOP.
      delete itab1 where text is initial.
      SORT itab1 BY asnum sequ.
      LOOP AT itab1.
        dt_lines-tdformat = '*'.
        dt_lines-tdline = itab1-text.
        APPEND dt_lines.
    Call the Function Module to Create Text
        AT END OF asnum.
          dl_lan = sy-langu.
          WRITE : / itab-asnum.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = itab1-asnum
            IMPORTING
              output = itab1-asnum.
          MOVE itab1-asnum TO dl_name.
          CALL FUNCTION 'CREATE_TEXT'
            EXPORTING
              fid         = c_best
              flanguage   = dl_lan
              fname       = dl_name
              fobject     = c_material
              save_direct = 'X'
              fformat     = '*'
            TABLES
              flines      = dt_lines
            EXCEPTIONS
              no_init     = 1
              no_save     = 2
              OTHERS      = 3.
          IF sy-subrc <> 0.
            WRITE:/ 'Long Text Creation failed for Service No'(001),
            itab1-asnum.
          ELSE.
            WRITE:/ 'Long Text Created Successfully for Service No'(002),
            itab1-asnum.
          ENDIF.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    in text file give first field records in capitals
    regards
    siva

Maybe you are looking for

  • [Solved] Pacman mounts partition on checking available disc space

    Hi, hope this is the right subforum. First, pacman doesn't directly mount any partition. My partition, located at /dev/sdb1, is automounted if somenone request access to /media/datengrab. Fstab-entry looks like this: /dev/sdb1 /media/datengrab ext4 n

  • SBO 2005 problem in DBDataSource InsertRecord

    Hello all, My add on runs on 2004 version, but when I try it with 2005 version, it does not work. When I    oDBDataSource2.Query(oConditions1)    oDBDataSource2.InsertRecord(oDBDataSource2.Size)    oMatrix1.LoadFromDataSource()    oMatrix1.Columns.It

  • What OS will work on PowerMac G5

    I just bought a Power Mac G5 and it came with no OS. I just installed a new 500 GIG hard drive and tried installing Snow Leopard. However the OS would not load. I did a little more research and found that only Intel base Mac can support OS X (Snow Le

  • Unity self-enrollment error

    hello, we are currently using a fresh new unity server (Cisco Unity Connection version: 7.1.3ES26.32900-26 ) user are unable to complete the self enrollment. after being  prompted to leave a personal greeting  they get a " this system is temporaly un

  • XCode Error Persists through uninstall reinstall

    Headline says it all.. Half way through a semester of C++ part 2 and my compiler wont work. forced to run bloodshed in parallels to get anything done. √ archives √ googled errors and console logs √ gone to apple store √ asked instructor √ uninstalled