Long text in shipment creation VT01N

Hi All,
I have requirement that I have to place some default  text into texts tab after pressing 'Planning' Button  in shipment when creating shipment using VT01N .
I tried to save the text using SAVE_TEXT in  exit but at the time of creation the shipment no is populated as '$0001'.
Actually I have to place delivery header text into shipment text and can be seen in texts tab while creating shipment.
your quick responses will be appreciated and reward points are awarded.

Hi,
Are you creating "shipment" with reference to "delivery"? If you are doing so, you can use "data transfer" routines.
Check transaction <b>VOFM</b>. Here, go to <b>menu "Data transfer --> Texts".</b> There will be two routine ( 1 & 2 ) here. This are just the sample routine without any code. You can copy one of then in customer name space ( 600 -999 ) and code as per your requirement.
Work with your functional owner to configuring this routine. This solution requires both configuration and some development so work with your functional owner.
This is waht SAP says about "text" routines.
Text data transfer routines are used to fine tune text transferred during the copying process from a selected reference document into the target. This is done via data transfer routines that can transfer and manipulate texts in the copy procedure. These data transfer routines are assigned, in customizing, to the access sequence field for data transfer for the text type.
When creating a new document with reference to an existing document, the system first checks the copy requirement assigned to the access sequence of the text type to determine if the corresponding texts should be automatically transferred. If the requirement is met, then the transfer of data begins from the reference document into the target. It is in this second step that the text data transfer routines defined here are called.
When looking at the code for the standard delivered text data transfer routines, or when writing your own, four standard work areas are used. These include:
FTVCOM - Communications block
FXTHEAD - Text header
FXVBPA - Partner
REFERENZ - Work area for text module
Note that SAP does not deliver any standard manipulations for data transfer of text, but rather delivers two viable user exit template routines for the user. Moreover, neither of the generic routines are assigned to the delivered text types. As a result, standard delivered texts are automatically transferred from document to document, without changes, if the assigned copy requirement is met.
Let me know if you need any other information.
Regards,
RS

Similar Messages

  • How to validate long text in me31k( contract creation)

    Hi,
       I want to validate the long text in creation of contract(T_code - ME31k). In creation it self i want to get the long text for validation. How to get the long text value. For eg. "Release order text'  i am giving the value as '10'. While saving the document in ME31k i need to get the long text. Please do the needful.
    Thanks
    Jag
    Moderator Messag: Do not expect the forums to do your work for you.
    Edited by: kishan P on Jan 19, 2011 4:33 PM

    Use Read_text function module.
    you need to pass
    ID
    LANGUAGE
    NAME
    OBJECT   to the function moduel
    To find the Text id name language and object these are the following steps. Example: FB02
    1. goto FB02, Enter Document number
    2. from menuselect Goto>Header-->header Text..... New window will be displayed 
    3. select the Header Text. here you can see all the text. 
    4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper. 
    5. in the Next window you will find Text Name. Text ID, Language. etc...
    Regards,
    Lalit Mohan Gupta.

  • 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.

  • Creation of short text and long text?

    Hi,
    We create short text by using oe_fnd_attachments_pub.create_short_text_document and oe_fnd_attachments_pub.add_attachment API and to create long text we use fnd_documents_pkg.insert_row .
    Why is it that we have different approaches for creation of short text and long text?
    I know that oe_fnd_attachments_pub.add_attachment is used to attach a short text to some entity,but then why we dont do the same for long text?
    Please lemme knw urgently ...
    Thanks and Regards
    Amar

    Thanks for the help,
    I looked into the document and i got to know few things as to how short and long text are created, but can u tell when the records are inserted into fnd_attached_documents, because i can see that records are inserted into fnd_attached_short_text and fnd_attached_long_text, fnd_documents but i dont see any insertion into fnd_attached_documents, can u lemme knw how and when it is done?

  • Operation Long text creation problem in IW32

    Hi experts,
    I have a requirement of showing a checklist pop up for all the new external operations in creating a MPA work order(IW32). And when the user answers the questions on the checklist, I have to copy all the questions and answers into the long text of the corresponding operation.
    The problem here is,
    for a case when the long text is not yet created for a new line item, when the pop up is shown and answers are filled, I am creating a new standard text using SVE_TEXT(setting the insert paramter 'X'), but the standard text is getting created in the database i.e a record is getting created in STXH with the text id, text name, text object of the operation. But when I go to IW32 and see the operation line it shows the create long text icon which says that the text is not created at all.
    In a case where the long text is already created for the operation, and then the pop up is shown with the questions and answers are filled, the questions and answers are copied into the operation long text which is already created. So this works fine.
    If any pointers regarding this please let me know.
    Thanks and Regards,
    Asha

    Hi,
    Try passing SAVEMODE_DIRECT = 'X' and check..
    also check if the text exists using the function module READ_TEXT once you do the SAVE_TEXT..
    Thanks,
    Naren

  • Creation of New Message by Customer - No Long Text

    I am creating test messages as an end-user in our Service Desk. After I send the message and review it, the long text has disappeared. Has anyone else experienced this?
    Thanks.
    Jackie

    Hi Jackie,
    Is your Basis part of the message is getting created.
    Are you using the standard transaction type.
    Check the Text in the Transaction data ---Overview tab
    Both short text and long text should be present with other system details.
    Regards
    Prakhar

  • After creation producton order long text not visible inCO03

    Hi
    while creating production order with co01 i entered long text in longtext tab of the production order
    after that  in display mode  co03  that long text is not visilbe. tell me why and what are the setting required.
    thanks
    RAVI

    when i am creating production order
    i enter materil, plant, order type
    after that  in producto header screen
    i enter total quantiy 1 and scheduling type current date  in genaral tab
    after that i go to  long text tab i enterd long text and  i saved the order
    then i check in co03  the long text in entered  not visible.
    i am  in single tc code that time co01
    thanks
    ravi

  • Long text creation in custom screens

    Hi
    Can we add the functionality of adding a long text in the custom screen.
    The long text should be same as the one which SAP provides in standard transactions.
    If possible please tell me the solution.
    Thanks & Regards
    Kapil

    HI,
    yes you can add using TEXT AREA control here is the sample code.
    insert a custom control area in the screen and create a object of the text editor.
    check this code for PBO and PAI.
    here TEDITOR is the custom contorl area name on screen
    <b>MODULE PBO OUTPUT.
      IF EDITOR IS INITIAL.
    *   set status
    SET pf-status '1111'.
    *   create control container
        CREATE OBJECT TextEdit_Custom_Container
            EXPORTING
                CONTAINER_NAME = 'TEDITOR'
            EXCEPTIONS
                CNTL_ERROR = 1
                CNTL_SYSTEM_ERROR = 2
                CREATE_ERROR = 3
                LIFETIME_ERROR = 4
                LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        if sy-subrc ne 0.
    *      add your handling
        ENDif.
        mycontainer = 'TEDITOR'.
    *   create calls constructor, which initializes, creats and links
    *   TextEdit Control
        create object editor
              exporting
               parent = TextEdit_Custom_Container
               WORDWRAP_MODE =
    *               cl_gui_textedit=>wordwrap_off
                  cl_gui_textedit=>wordwrap_at_fixed_position
    *              cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
               WORDWRAP_POSITION = line_length
               wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *   to handle different containers
        container_linked = 1.
        refresh mytable.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    MODULE pai INPUT.
    case ok_code.
    WHEN 'SAVE'.
    *   retrieve table from control
    clear: txt.
          call method editor->get_text_as_r3table
                  importing table = mytable.
          loop at mytable into wa.
             concatenate txt wa into txt
             separated by '|'.
          endloop.
          shift txt left.
          length = strlen( txt ).
          ztext-CLUSTR = length.
          ztext-text   = txt.
          modify ztext.
          clear: ztext.
          refresh: mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
          Message s000(zwa).
    when 'DISP'.
          select single * from
          ztext
          where fund = ztext-fund.
         SPLIT ztext-text AT '|' INTO TABLE mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
    endcase.
    clear: ok_code.
    ENDMODULE.                 " pai  INPUT</b>
    Regards,
    Wasim Ahmed

  • Promotion creation via BAPI - long text issue

    I am going to use BAPI_PROMO_CREATE to create a promotion.  Unfortunately this BAPI does not handle the long text piece of the promotion, and that is a requirement.  Does anyone know of a BAPI that will create the long text for a promotion, or is there a generic BAPI for this functionality?  I couldn't find one.
    Thanks,
    Tami

    This will resolve the issue
    SAP Note 1452700 - "New" button is disabled after
    displaying text
    Note Language: English Version: 1 Validity: Valid Since 03/25/2010
    Summary
    Symptom
    In display mode you navigate via the text hyperlink to the text view.
    When you navigate back, the "New" button on the "Notes" assignment block is
    disabled.

  • Copy delivery header text to shipment header text

    Hi All,
    Please let me know the user/customer exit to copy the header text of delivery to shipment while creation(VT01N) or deletion(VT02N) of shipment for deliveries.
    Please provide the code samples or procedure, if you have any.
    Thanks in advance and points will be rewarded
    -Venkat

    Hi
    Use these User exit and write the code for the same in one perform of its include this is having the delivery details and capture the same into your shipping
    EXIT_SAPLV56F_010
    regards
    Shiva

  • How to keep long text in bdc using create_text  function module

    hi,
    ihave bdc in that i having field like long text i have to upload the long text using create_text function module how to use and where to use in bdc. wat parameters i have to pass exactly.
    i need some other information like how can i pass this to BDC i got like this .
    can u plz check it.
    its a length of 255 chaters
    perform bdc_field using 'RSTXT-TXLINE(02)'
    'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'
    & 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.
    perform bdc_field using 'RSTXT-TXLINE(03)'
    'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    & 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.
    perform bdc_field using 'RSTXT-TXLINE(04)'
    'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
    & 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'.
    perform bdc_field using 'RSTXT-TXLINE(05)'
    'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'
    & 'hhhhhhhhhhhhhhhhhhhhhh'.

    Hi,
    Use this coding where do u want,
    data: begin of textline occurs 10.
            include structure tline.
    data: end of textline.
    start-of-selection.
    textline-tdformat = '*'.
    textline-tdline = 'TESTING FOR CREATION OF TEXT'.
    append textline.
    clear textline.
        call function 'CREATE_TEXT'
             exporting
                  fid       = '0013'
                  flanguage = sy-langu
                  fname     = '0095000501'
                  fobject   = 'VBBK'
             tables
                  flines    = textline
             exceptions
                  no_init   = 01
                  no_save   = 02.
    end-of-selection.

  • How to add long text in bdc for transaction fb01 ?

    IN the existing program of bdc fb01
    i have to add a long text field
    but it gets stuck while i process in sm35
    is there a fm to add the field directly
    thanks in a advance

    Hi
    You can upload the Long texts separately into the transaction using the CREATE_TEXT fun module
    Need to pass the correct parameters like OBJECT,ID, OBJECTNAME and LANGuage with the proper declarations.
    see the sample code and do accordingly
    REPORT zmm_longtext_sm
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Description :   This Program is used to Upload the Service Master
                 :   Long Texts using the Fun Module CREATE_TEXT
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            asnum like asmd-asnum,    " Service No
            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
    Constants
    CONSTANTS:
    Object ID for Long Text of Service Master
      c_best     TYPE thead-tdid VALUE 'LTXT',
      c_material TYPE thead-tdobject VALUE 'ASMD'. " 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                = itab
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
    Upload the Texts
      SORT itab BY asnum.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        concatenate '00000000000' itab-asnum into dl_name.
    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 Service No'(001),
                 itab-asnum.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Service No'(002),
                 itab-asnum.
        ENDIF.
        AT END OF asnum.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Error while saving Long Texts

    Hello
    We are using SRM7 Extended classic scenario.
    We don't use shopping carts, rather create POs directly in SRM which will be transferred to ECC as per the standard.
    Error:
    I am getting an error "Error while saving Long Texts" during my PO creation. I get this message in a small pop-up screen. As soon as i click ok or close the pop up screen it kicks me out of the PO creation screen back into the main SRM screen.
    When:
    During the PO Creation
    Any specific situation:
    Yes, only for Material POs
    This is happening when I am creating the PO with a Material code. I can create free text PO without any issues.
    This is a standard message and the message number is 022.
    Thaks for the help guys.

    Hi,
    To confirm can you check commeting "getOADBTransaction().commit();" gives any error message?
    If yes then you can try the following option:
    Have you checked whether the "/" is changed to "\" in the dbc file?
    In the following two entries the slash has to be made as shown below:
    APPS_JDBC_URL=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS_LIST\=(LOAD_BALANCE\=YES)(FAILOVER\=YES)(ADDRESS\=(PROTOCOL\=tcp)(HOST\=10.100.503.6)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=VIS)))
    JDBC\:processEscapes=true
    Thanks and Regards,
    Lacman

  • How to add the long text in Production order through FM

    Hi,
    Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
    Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
    One option is after creation of Production order, through BDC(calling CO02 and update the long text) we  can update the long text and client doesn't want this option.
    Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
    If any one of you came across this requirement, pl share with me how you addressed it.
    Regards
    A.Sureshbabu

    Hi,
    The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
    At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
    Order No.
    Line - 1
    Line - 2
    Line - 3
    Line - 4
    Line - 5
    12345
    txt - 1
    txt - 2
    txt - 3
    txt - 4
    txt - 5
    67890
    txt - a
    txt - b
    txt - c
    txt - d
    txt - e
    Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
    Regards,
    Vivek

  • 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

  • Events in ical on my macbook get deleted when I sync w/my iphone5.

    Been having problems getting ical events to merge between iphone5 and macbook.  After some suggestions from the community, I discovered I have no icloud in ical system preferences, and events scheduled in ical on macbook gets deleted when syncing to

  • Oracle 9.0.1.1.1 For Windows/2000 HTTP server

    I can not start Oracle HTTP Server after Oracle 9.0.1.1.1 installation . I am getting error : The application or DLL $ORA_HOME\Apache\JServ\ApacheModuleJServ.dll is not a Valid Windows Image . Bad dll file in install disks ? File ApacheModuleJServ.dl

  • How do I determine what is causing Screen pixilating and jumping on my G5

    I have an IMAC-G5 that is now causing problems. Screen is pixilating, vibrating and freezing. Any ideas on repairs?

  • BI Settings performance

    Hi , Thank alot for such a wonderful suggestions, We have 25 millions of records going to cube so for high load performance . Can u tell me where and which trancation code  to set the setting below 1.Export/Import Buffer 2. Program Buffer 3.Extended

  • 10.7.4 has killed my SMB Shares

    I updated a server to 10.7.4 this weekend based on the release notes: - Address an issue that may prevent files from being saved to an SMB server. Instead, now my Windows users can't connect at all. I've manually restarted the SMB service - sudo laun