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

Similar Messages

  • 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

  • SAVE TEXT not updating the database for Recipe Operation Long Texts

    Hi,
    We are trying to update the Recipe Operation long text using the FM SAVE_TEXT.
    The FM is not throwing any error, but the changes are not reflecting in the database.
    Text ID: PLPO
    Text Object: ROUTING
    Language: EN
    Text Name: Concatenated string of ARBPL,PLNNR,OPRATIONCOUNTER
    If someone faced similar scenarios, please share your inputs.
    Thanks in advance,
    Anand

    After some more R & D, i got to know that the Long Text indicator should be enabled to get the changes reflected in the C203 recipe operation details.
    In C202, if you pass two text lines for Operation long text, this Long text indicator is automatically enabled and its a non editable field.
    Can some one provide inputs how to enable this through program?
    Regards,
    Anand

  • Displaying operation long text in results recording screen

    Hi, all!
    I am trying to understand why I cannot display the operation long text when in results recording screen (either QE51N or QE01 transaction will not support displaying of operation long text).
    I have checked all areas that I could think of in config to see if there is a display setting that will require to be activated and I could not find anything under Results recording, Inspection planning or General settings. I also tried to see if user settings may be making a difference and it did not. The SAP Help portal when talking of long texts available in results recording lists the following: Long texts for inspection lot, inspection method and inspection charcateristic. Nothing about operation long text.
    However, the text is printed on the inspection instruction standard form.
    SAP Notes has nothing on the subject that I could find.
    So, as a last resort, I would like to ask if any other Quality Management specialist came across this and spent any time in determining if this can be done and why the information would not be displayed standard in the transactions. My client would prefer not to have to print the instructions in order to see the entire text. However, I do not see any standard way to have it displayed.
    Any help would be greatly appreciated.
    Thank you in advance!

    Hi Senthil,
    Don't know it will help or not. But if your MIC is qualitative then you can use the long text of catalog code in QS42.
    Please refer below screen,
    Click on the which help to maintain the long text.
    Regards,
    Sandip

  • Error loading file in the operation long text in the General task list

    Hi all,
    I couldnt upload the detailed check lists in the operations (operation tab) of the general task lists through the long text uplaod via Text->Upload->RTF---> .System is throwing the following Information...
    1.Error loading file " specified path with filename.rtf"
    Could you please give me any idea to eliminate this.The client is having the detailed check list for each and every operation with safety measures to be taken.
    Plz help.
    Regards,
    Suresh.

    Hi all,
    It was an authorisation object missing and the problem got solved.
    Regards,
    Suresh.

  • Operation long text not coming in print priview of maintenance order

    Hi Experts,
    I am facing problem in getting the long text of operation of maintenance order( generated from maintenance plan) in the print preview because of which long text of opeartion is not showing in the print out of order but other things are coming in the printout except the long text.This is happening for the first time.Earlier long text was coming in the print of order.Can anybody suggest the possible cause behind this & solution for this problem asap.
    Thanks.

    Hello,
    Please check The IP30 batch job schedule in which LOG IN language it is schedulde for those manitenance plan.If same it is diffrent what as Long text language then it will not come in Ordre OpRN long text.
    Reagrds,
    Rakesh
    Edited by: RAKESH ASHOK MANE on Aug 18, 2010 3:46 PM

  • Locking / grey out long text data in transaction IW32

    Hi, I read in Locking/grey out long text data (From Coding point of view ) that there is a way to block the long text description via configuration.
    Well. Could you tell me how to do this, please???
    Thanks a lot!

    I set a breakpoint there and the program never stop there.
    I'll try to describe my problem.
    I go to IW32 transaction, at the components tab I click on the Long Text button of each component of the order and I can modify it. Well, the client doesn't want that.For a type of order, the user cannot modify that text.
    The more strange thing is that I tried to get the text with READ_TEXT function with the same parameters as the standard and it tells me that the text doesn't exists.
    I'm starting to hate this module....

  • Long text uploading problem in BDC

    Hai Gurus
    please help me, it is urgent
    i want to upload more than 200 characters filed from flat file to every inspection lot record usage decision(QA11) through BDC for every inspection lot
    Brief description about my problem:  
    in the transaction QA11 , enter any new inspection lot number and press enter , in this next screen (after pressing enter) in  usage decision sub screen , create long text for UD icon is there in that we can enter long text(any number of characters ) through manually for single inspection lot but i want to enter long text for UD through BDC for more than one inspection lot automatically
    points will be rewarded
    Thanks

    Hai Gurus
    please help me, it is urgent
    i want to upload more than 200 characters filed from flat file to every inspection lot record usage decision(QA11) through BDC for every inspection lot
    Brief description about my problem:  
    in the transaction QA11 , enter any new inspection lot number and press enter , in this next screen (after pressing enter) in  usage decision sub screen , create long text for UD icon is there in that we can enter long text(any number of characters ) through manually for single inspection lot but i want to enter long text for UD through BDC for more than one inspection lot automatically
    points will be rewarded
    Thanks

  • Long Text getting truncated in IW32

    We are using BAPI_ALM_ORDER_MAINTAIN to createa orders with long text.
    When reviewing the long text in the Office integration screen, We can see that all text is there.
    If, a user modifies the long text in the long text window of IW32, any text that does not display is lost when the order is saved
    If a user modifies teh long text in the office integartion screen, no text is lost.
    Any help on the cause and how to prevent this would be appreciated.
    Scott

    hi ,
    thanx for the reply,
    text gets truncated in print preview itself.
    i put breakpoint in  se38  and in sapscript.
    in se38 the variable shows full text, but in sapscript, it gets truncated.
    coding in sapscript
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN
    /:           SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN
    /:           BOX HEIGHT '9.0' LN FRAME 10 TW
    /:           PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER
    /:           USING  &EKKO-EBELN&
    /:           CHANGING &PO_TEXT&
    /:           ENDPERFORM
    /:           IF &PO_TEXT& NE ''
    S7           &PO_TEXT&
    /:           ELSE
    /:           ENDIF
    regards
    senthil

  • 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

  • Long Text creation of Delivery using DELVRY03

    Hi Gurus,
        I'm using Delvry03 basic type to create ASN in SAP. It is an Inbound processing. Here the problem as I'm not able to create HEADER text's using the segment E1TXTH8. wghen i try to create using SAVE_Text function module texts are getting created, Also i didn't find any E1TXTH8 realated code in the inbound function module idoc_input_delvry. is there any way to create header text without going for user-exits.
    Thanks&Regards,
    Naren.

    hi naren,
                 to say in detail about ur doubt i need ur code.u can send ur code to my mail-id [email protected]

  • IW22/IW23 Long text font error

    Hi,
    I'm not sure whether this is the right thread to post this question, maybe it is about general basis, I'm not sure.
    In the IW22/23 notification screen, the Turkish characters in the long text are displayed wrong, like in the picture.
    The Sap GUI setting fonts are Turkish.
    We are having this problem after the ECC EHP7 upgrade.
    What can be done to resolve this issue?
    Thanks,

    Koray Tulumen,
    Is it the same issue for other long-texts e.g. order header/operation long-texts?
    I would discuss this issue with you ABAP/BASIS team.
    PeteA

  • BDC-Long-Text

    Hi All,
    When Uploading the Data for FB02, i am facing problem with long-text.I have used FM SAVE_TEXT.But How to Save all the lines Data.Please send me the code for FB02,where all lines data has to be saved.
    Thanks&Regards.

    Sri,
    check this code for more than 5K char:
    TABLES : MARA, TLINE, THEAD.
    DATA: BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR, " MATERIAL NUMBER
    TEXT(5000) TYPE C, " Long Text
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0,
    MATNR LIKE MARA-MATNR, " Material No
    SEQU TYPE I, " Text Sequence
    TEXT(5000) TYPE C, " Long Text
    END OF ITAB1.
    DATA:BEGIN OF DT_LINES OCCURS 0.
    INCLUDE STRUCTURE TLINE. " Long Text
    DATA:END OF DT_LINES.
    DATA : P_FILE1 TYPE STRING.
    DATA : DL_NAME TYPE THEAD-TDNAME, " Object Name(material no)
    DL_LAN TYPE THEAD-TDSPRAS. " Language
    CONSTANTS:C_BEST TYPE THEAD-TDID VALUE 'BEST',
    C_MATERIAL TYPE THEAD-TDOBJECT VALUE 'MATERIAL'. " OBJECT
    DATA: START TYPE I,
    LEN TYPE I VALUE 92,
    TOTLEN TYPE I,
    N TYPE I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-101.
    PARAMETERS P_FILE LIKE RLGRAP-FILENAME."input file
    SELECTION-SCREEN : END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    PERFORM FETCH_FILE USING P_FILE.
    *& Form fetch_file
    text
    -->P_FILE text
    FORM FETCH_FILE USING P_FILE.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    IMPORTING
    FILE_NAME = P_FILE.
    ENDFORM. "fetch_file
    START-OF-SELECTION.
    PERFORM UPLOAD USING P_FILE. " *To Upload Flat file
    PERFORM UPLOAD_TEXT.
    *& Form UPLOAD
    text
    -->P_FILE text
    FORM UPLOAD USING P_FILE.
    P_FILE1 = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = P_FILE1
    FILETYPE = 'DAT'
    HAS_FIELD_SEPARATOR = ' '
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    TABLES
    DATA_TAB = ITAB
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17
    IF SY-SUBRC EQ 0.
    *message i001 with p_file .
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. "UPLOAD
    *& Form UPLOAD_TEXT
    text
    FORM UPLOAD_TEXT.
    LOOP AT ITAB.
    ITAB1-MATNR = ITAB-MATNR.
    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 MATNR SEQU.
    LOOP AT ITAB1.
    DT_LINES-TDFORMAT = '*'.
    DT_LINES-TDLINE = ITAB1-TEXT.
    APPEND DT_LINES.
    AT END OF MATNR.
    DL_LAN = SY-LANGU.
    WRITE : / itab-MATNR.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT = ITAB1-MATNR
    IMPORTING
    OUTPUT = ITAB1-MATNR.
    MOVE ITAB1-MATNR 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:/10 'Long Text Creation failed for Material No', ITAB1-MATNR.
    ELSE.
    WRITE:/10 'Long Text Created Successfully for Material No', ITAB1-MATNR.
    ENDIF.
    REFRESH DT_LINES.
    ENDAT.
    ENDLOOP.
    ENDFORM. "UPLOAD_TEXT

  • Formatting Long Text gets disturbed during Adobe form Printing

    Hi Guru's,
    I have developed Adobe Form for PM work Orders (IW32) printing using Code u2018SFPu2019. The Order Contains order Long Text or Operation Long Text.
    In my case the user maintains some table like structure in the Long text .e.g. ( Here the tab means the actual space and the text length can vary. So basically he will draw a table cells one below another by adjusting tab's)
    Text 2 Tab Tab   |___|___|
    Te TabTab Tab |___|___|
    I am reading this using READ_TEXT and it gets perfectly read.( I mean the tab positions will be intact. Also it will remain intact by the time ADS will get called)
    When i submit this for generating Adobe Form the formatting of the tab positions gets disturbed and it prints something like
    Text 2 |___|___|
    Te |___|___|
    How to keep the Tab positions intact while printing the Adobe Form? For SAP script printing it comes perfectly but for Adobe form printing it gets disturbed. Any idea how to handle this situation?
    Thanks
    Pradeep

    Tough request!
    You have to calculate the widths of texts so that to determine to which tab position refers each tab character.
    You might print the sapscript to OTF format, and read the OTF to get the exact positions (based on top left border of the page).
    But now comes the second big issue: how to position a text in Adobe form at a dynamic position. That, I don't know. You might ask a question about this 2nd issue in forum

  • 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

Maybe you are looking for

  • Users prompted to log in to view public pages

    I have a page in my app called "publicHome.jspx". It has a pageDef file for it. In the Application | Secure | Resource Grants, I've granted View access to that page to the "anonymous-role" role. This should mean that anyone can view the page without

  • FCP user preference question

    I got a project from overseas, gotta fly there to edit a video. they provide my basic facilities. I used to edit on my own machine....because the short cuts and whole the favorite effects and transitions that I saved in my FCP. So my question is, sin

  • Lightroom 3.3 and New Preset for External Editor

    I have a strange problem here. Using Windows XP Profesional, SP3 4gb Ram. When I want to add a new External Editor, I open Edit -> Preferences ->Additional External Editor. I set my parameteres, choosing Photoshop CS4...same as in the Edit In Photosh

  • Is it possible to download OS X Lion?

    Had some issues with Mountain Lion and a couple of my Apps so I reinstalled Lion from a DVD drive.  Having strange behaviors with both iMac and MBP.  Did a permissions repair and there were numerous permission errors in the /System directory.  Reran

  • Error when updating, now computer wont recognise.

    I was updating my iPod touch today, itunes downloaded the update for the ipod and when it went to install it apparently had an error and now it wont do squat. It doesnt show up under "my computer" nor iTunes (using usb cable of course).. i have a new