Problem in SAVE_TEXT  usage

I am facing problem in displaying the Long text in Open Maintenance orders IW31 Sscreen.
i am uploading the long text using SAVE_TEXT function module.
i can see the data in STXL table but i am not able to see the data on the transaction screen display or change mode.
I am using correct object name ,id and etc..in header table objectid: AUFK, TEXTID: AVOT ,tdname:clintidroutingnumber(afvc table aufpl field sequence(like 0001.. ), language: EN.
Text line also i am passing and i am enering the direct saving mpde.
i am getting sy-subrc eq = 0.
and i am able to get the data by READ_TEXT table.
my problem is why the Long text data is not diaplying on the scrreen(TEXT editor).
same thing happening in COmponents LONG TEXT in the same TCODE
Please Help me.

Hi Srinivas,
I've been facing similar problem.I followed the procedure that you've mentioned , but still couldn't display the long text on the transaction IW32.I've attaching the code as well.
*&  Include           ZXWO1U05
DATA:text_object_name LIKE stxh-tdname.
DATA: BEGIN OF ltxt_lines OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA: END   OF ltxt_lines.
DATA:p_object LIKE   thead-tdobject VALUE 'AUFK',
     p_name LIKE   thead-tdname,
     p_language LIKE   thead-tdspras VALUE 'E',
     p_type LIKE   thead-tdid VALUE 'KOPF',
     p_header LIKE   thead .
TYPES: BEGIN OF lt_edit_line,
         line LIKE rssource-line,                           "c(72)
       END OF lt_edit_line.
DATA lt_edit_table TYPE TABLE OF lt_edit_line.
DATA:ls_efindpar TYPE efindpar.
DATA:t_trace TYPE TABLE OF ewffndtrac,
     t_result TYPE TABLE OF efindres.
TYPES:BEGIN OF ty_eablg,
      ablbelnr TYPE ablbelnr,
      anlage   TYPE anlage,
      ablesgr      TYPE ablesgr,
      ableinh  TYPE ableinh,
      adatsoll TYPE adatsoll,
      END OF ty_eablg.
DATA:t_eablg  TYPE TABLE OF ty_eablg,
     ls_edit_table TYPE c LENGTH 132.
FIELD-SYMBOLS:<fs_eablg> TYPE ty_eablg,
              <fs_trace> TYPE ewffndtrac.
CONSTANTS:lc_instln TYPE efindres-objtype VALUE 'INSTLN'.
CONSTANTS:lc_period TYPE ablesgr VALUE '01',
          lc_moveout TYPE ablesgr VALUE '03',
          lc_movein TYPE ablesgr VALUE '06'.
CALL FUNCTION 'CO_ZK_TEXTKEY_CAUFV'  "Gets me the thead-tdname
  EXPORTING
    aufnr = caufvd_imp-aufnr
  IMPORTING
    ltsch = text_object_name.
p_name = text_object_name.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
    language        = p_language
    id              = p_type
    name            = p_name
    object          = p_object
  IMPORTING
    header          = p_header
  TABLES
    lines           = ltxt_lines
  EXCEPTIONS
    id              = 01
    language        = 02
    name            = 03
    not_found       = 04
    object          = 05
    reference_check = 06.
IF sy-subrc IS INITIAL.
  REFRESH lt_edit_table.
ENDIF.
ls_efindpar-l_devloc = caufvd_imp-tplnr.
*get the installation
CALL FUNCTION 'ISU_FINDER'
  EXPORTING
    x_objtype                   = lc_instln
    x_findpar                   = ls_efindpar
  TABLES
    yt_result                   = t_result
    yt_trace                    = t_trace
  EXCEPTIONS
    insufficient_selection      = 1
    objtype_not_supported       = 2
    additional_selection_needed = 3
    OTHERS                      = 4.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*get the 13 meter reads.
DATA:lv_calc_date TYPE bkpf-bldat,
     lv_tabix     TYPE sy-tabix,
     lv_text(100) TYPE c.
CONSTANTS:lc_read TYPE bseg-dtws2 VALUE '13'.
CALL FUNCTION '/SAPHT/DRM_CALC_DATE'
  EXPORTING
    date      = sy-datum
    days      = '00'
    months    = lc_read
    sign      = '-'
    years     = '00'
  IMPORTING
    calc_date = lv_calc_date.
READ TABLE t_trace ASSIGNING <fs_trace> WITH KEY objtype = lc_instln.
IF sy-subrc = 0.
  SELECT ablbelnr anlage ablesgr ableinh adatsoll
  FROM eablg
  INTO TABLE t_eablg
  WHERE anlage = <fs_trace>-objkey
  AND adatsoll BETWEEN lv_calc_date AND sy-datum
  AND ( ablesgr = lc_period OR ablesgr = lc_moveout OR ablesgr = lc_movein ).
  IF sy-subrc = 0.
    LOOP AT t_eablg ASSIGNING <fs_eablg>.
      AT FIRST .
        CONCATENATE ls_edit_table 'MR unit         ' INTO ls_edit_table SEPARATED BY space.
        CONCATENATE ls_edit_table 'Installation    ' INTO ls_edit_table SEPARATED BY space.
        CONCATENATE ls_edit_table 'MRU reason      ' INTO ls_edit_table SEPARATED BY space.
        CONCATENATE ls_edit_table 'Scheduled MR Dt ' INTO ls_edit_table SEPARATED BY space.
        APPEND ls_edit_table TO lt_edit_table.
      ENDAT.
      CLEAR: ls_edit_table.
      CLEAR lv_text.
      lv_text = <fs_eablg>-adatsoll.
      CONCATENATE lv_text '                 ' ls_edit_table INTO ls_edit_table SEPARATED BY space.
      CLEAR lv_text.
      lv_text = <fs_eablg>-ablbelnr.
      CONCATENATE lv_text '                 ' ls_edit_table INTO ls_edit_table SEPARATED BY space.
      CLEAR lv_text.
      lv_text = <fs_eablg>-anlage.
      CONCATENATE lv_text '                 ' ls_edit_table INTO ls_edit_table SEPARATED BY space.
      CLEAR lv_text.
      lv_text = <fs_eablg>-ableinh.
      CONCATENATE lv_text '                 ' ls_edit_table INTO ls_edit_table SEPARATED BY space.
      APPEND ls_edit_table TO lt_edit_table.
      CLEAR: ls_edit_table,lv_text.
    ENDLOOP.
  ENDIF.
ENDIF.
TYPES:BEGIN OF ty_elev,
      anlage TYPE anlage,
      vstelle TYPE vstelle,
      vbsart TYPE vbsart,
      eigent TYPE e_gpartner,
      END OF ty_elev.
DATA:t_elev TYPE TABLE OF ty_elev.
FIELD-SYMBOLS:<fs_elev> TYPE ty_elev.
IF t_eablg IS NOT INITIAL.
  SELECT elanlage evvstelle evvbsart  eveigent
  FROM eanl AS el
  INNER JOIN evbs AS ev
  ON elvstelle = evvstelle
  INTO TABLE t_elev
  FOR ALL ENTRIES IN t_eablg
  WHERE el~anlage = t_eablg-anlage.
ENDIF.
LOOP AT t_elev ASSIGNING <fs_elev>.
  AT FIRST.
    ls_edit_table = 'Premise'.
    CONCATENATE ls_edit_table 'Premise Type' 'Owner Allc' INTO ls_edit_table SEPARATED BY space.
    APPEND ls_edit_table TO lt_edit_table.
    CLEAR ls_edit_table.
  ENDAT.
  ls_edit_table = <fs_elev>-eigent.
  CONCATENATE ls_edit_table <fs_elev>-vbsart <fs_elev>-vstelle INTO ls_edit_table SEPARATED BY space.
  APPEND ls_edit_table TO lt_edit_table.
  CLEAR ls_edit_table.
ENDLOOP.
LOOP AT lt_edit_table INTO ltxt_lines-tdline.
  ltxt_lines-tdformat = '*'.
  APPEND ltxt_lines.
ENDLOOP.
if p_header is not initial.
CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
  CLIENT                = SY-MANDT
    header                = p_header
  INSERT                = 'X'
   SAVEMODE_DIRECT       = 'X'
  OWNER_SPECIFIED       = ' '
  LOCAL_CAT             = ' '
IMPORTING
  FUNCTION              =
  NEWHEADER             =
  tables
    lines                 = ltxt_lines
EXCEPTIONS
   ID                    = 1
   LANGUAGE              = 2
   NAME                  = 3
   OBJECT                = 4
   OTHERS                = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
UPDATE AUFk SET ltext = 'X' where aufnr = caufvd_imp-aufnr .
ENDIF.
else.
   p_header-tdobject = p_object.
  p_header-tdname   = p_name.
  p_header-tdspras  = p_language.
  p_header-tdid     = p_type.
  p_header-TDFUSER  = sy-uname.
  p_header-TDFRELES = '701'.
  p_header-TDFDATE  = sy-datum.
  p_header-TDFTIME  = sy-uzeit.
CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
  CLIENT                = SY-MANDT
    header                = p_header
   INSERT                = 'X'
   SAVEMODE_DIRECT       = 'X'
  OWNER_SPECIFIED       = ' '
  LOCAL_CAT             = ' '
IMPORTING
  FUNCTION              =
  NEWHEADER             =
  tables
    lines                 = ltxt_lines
EXCEPTIONS
   ID                    = 1
   LANGUAGE              = 2
   NAME                  = 3
   OBJECT                = 4
   OTHERS                = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
UPDATE AUFk SET ltext = 'X' where aufnr = caufvd_imp-aufnr .
endif.
endif.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
   OBJECT                = p_object
   NAME                  = p_name
   ID                    = p_type
   LANGUAGE              = 'E'
   SAVEMODE_DIRECT       = 'X'
  KEEP                  = ' '
  LOCAL_CAT             = ' '
IMPORTING
  COMMIT_COUNT          =
TABLES
  T_OBJECT              =
  T_NAME                =
  T_ID                  =
  T_LANGUAGE            =
Kindly request you to provide a suitable solution at your earliest convenience.
Thanks,
Chakram Govindarajan

Similar Messages

  • Problem with SAVE_TEXT Usage

    Hi,
    I'm starting a new thread because this is a different issue than my original problem.
    I am using our BW system to save texts.  Calls to the function return with sy-subrc=0.  However, no data is added to STXH and STXL.
    We have never before saved texts to the TDOBJECT that I'm trying to save to now.
    I have used txn SM75 to create the TDOBJECT and IDs.
    Is there something that I need to set up before I can use the object and texts?
    Thank you.

    Fong,
    I am not sure if the transaction SM75 is the right one, I could not find that in my system. Usually you create texts using SO10 transaction.After using SAVE_TEXT if you commit the same, usually the text is saved.
    While retrieving using READ_TEXT you will have to pass the same objects used while saving.
    Regards,
    Ravi

  • URGENT : Problem in DataSource usage in Client applIcation

    URGENT : Problem in DataSource usage in Client applIcation
    Hi ALL
    I have deployed a EJB(Session Bean) in Oracle-OC4J Container.I am using datasources, in my bean as well as in my client
    application.Here Client is deployed along with bean in container.
    I am using "ejb-location"JNDI Name inside Client to get connection.
    (Which is mentioned in datasource element of datasources.xml)
    For this i have configured datasources.xml also.
    If i use "oracle.jdbc.pool.OracleDataSource" in datasources.xml then ClassNotFoundException is coming.
    But i have included classes12.jar in home/lib directory
    But if i use "com.evermind.sql.ConnectionDataSource" then i am getting connection.But if i do some operations(Even
    setAutoCommit(false))its giving NULL PointerException.
    Why this is happening?
    Thanx in advance
    Venky

    Hi Venkastesh,
    There are two issues. If your entry is like this....
    location="microDS"
    xa-location="jdbc/xa/MicroXADS"
    ejb-location="MicroPool"
    ...then use ejb-location for database calls through ejb and location when you try to get through normal java client.
    This will help you.
    regards,
    Vijay
    null

  • [5800xm] Problem with rSAP usage in Skoda nav-syst...

    Hello,
    like in the topic: I have a problem with rSAP usage in Skoda nav-system Columbus: it stays ON searching for the car nav-system & eats battery level (just being standby): within 24 hrs completely empty. With bluetooth turned on, without previously connecting to my Skoda nav-system, the phone can run for about 10 days standby.
    I tried every setting without improvement, I run the latest firmware/software on my 5800 XM.
    Only if I turn off manually the bluetooth subsystem (not just the nav-system connection, but completely turn off bluetooth), then the phone doesn't eat through my battery-level. I dont want that, because it's not neccessary (I have to turn it back on again later & forget to do that), sometimes I forget and find out people can't reach me coz my phone is battery-empty.
    Anyways, this situation is already since the beginning when I bought the phone from Nokia store. No improvement since.
    Please can anybody help out?
    Thnx
    Solved!
    Go to Solution.

    Well, since a few days we're testing the default setting from  aspergerguy  and now it seems the battery problem doesn't occur no more. Amazing how such a small change of unexpected / undocumented setting can give a device real purpose instead of almost uselessness.
    For clarity, again the problem: I am able to use the phone with the carkit-nav system, but after using (ergo: getting out of the car, into our home), the phone eats through the battery within 24hrs.
    This now no longer happens with   Wireless car kit   set as default.
    Thanks aspergerguy for your help!
    Less thanks Nokia for creating this problem in the first place.
    Regards,
    Quan

  • Does anyone have problems with data usage with att and Iphone5?

    Hello, Does anyone have problems with data usage or non usage I should say with Iphone 5 and AT&T?

    After 4+ months of dealing with this data usage and battery drain problem that included 3 data captures of my wife's iMac, the trigger for us regarding the problems syncing with iCloud, and 5 hours of logs off my iPhone 6 to be analyzed by Apple engineers that included times my wife's computer was both on and off to demonstrate the difference in data usage and battery drain under those conditions, I can say with very reasonable certainty that the iOS 8.3 and corresponding Mac OS 10.10.3 update has solved the problem. 
    We have now been running for about 2 weeks and data usage with the iCloud Servers attempting to sync has dropped from a rate of 31 GBs to under 15 MBs per month.  Yes, you read it right.  We were burning 2000 times as much data doing absolutely nothing important on both of our phones, a 5s and a 6.  Just imagine what that does to battery life!  The 5s would last about 5 hours and the 6 was dead in less than 14.
    The distasteful aspect of this process was how the engineers were quietly fixing the problem at the same time sending messages to my contact person within Apple that were dismissive in nature in the face of indisputable unreasonable results. I must say, this experience with the multiple times the engineers' responses were inappropriate put a little tarnish on the old Apple shine of the ‘It just works’ mantra. This was my first experience in 34 years that caused me to stop recommending Apple products without reservations and with a disclaimer.
    Since the update solved the problem, then I can only conclude that there was a logic bug regarding the reaction within the process to the incoming data that was corrected.  There was noting short of logging out of iCloud that circumvented the problem for us, Gator5000e and probably many others noted on other threads.  I am not trying to imply that this is the cause of everyones battery use problem, but it is reasonable that it was a cause for many.

  • Problem with memory usage and CPU usage

    Hello,
    i have a problem with the memory usage and cpu usage in my project!
    My application must run for more than 24 hrs. The problem is that the longer it runs the bigger is the memory and cpu usage!
    It starts with ~15% CPU usage and ~70 MBytes memory usage. After ~ 24hrs the CPU usage is ~60% and the memory usage is ~170 MBytes!
    After  3 days the CPU usage is almost about 70% and the memory usage is about 360 MBytes!
    What can I do to reduce this huge recource usage?
    Thank you!

    Hi Pahe,
       I think the issue is memory usage, since CPU usage can increase due to greater memory requirements.
       Anyway, it's difficult to debug without seeing your code, can you post it (possibly for LV 7.1 compatibility)?  Or just post a JPEG of the piece of code that can give problems...
       I guess you're appending data to an array instead of replace data elements, but I can't be sure...
       Have a nice day!
    graziano

  • Problem with Clip Usage and merged clips in CS6

    The 'Clip Usage' drop-down menus don't seem to work in Premiere CS6 for merged clips. The info bar at the top of the project window correctly lists the number of times the viedo and audio from the clip has been used, and the downward-pointing arrow appears, but when you click on it... nothing happens. Same's true of the 'Video Usage' column in the main body of the project window. Non-merged clips work just fine.
    Anyone know if this is just a problem with my project, or if it's a bug in Premiere? Had a lot of trouble with merged clips in CS5.5, and was hoping they'd be solved by CS6 - I've been using Creative Suite for a long time, and the lack of good merged clips support was always one of the challenges in persuading other indie editors to switch over from FCP...
    Thanks!

    ...and the lack of good merged clips support was always one of the challenges in persuading other indie editors to switch over from FCP...
    I guess they just have to weigh that up against the lack of support they got from Apple for FCP in its entirety.

  • Problem in SAVE_TEXT function module

    Hi all,
    I am facing problem in updating the text to PO when using the FM SAVE_TEXT. The first line of the header text is being populated but not second line. I am putting sqnumber as 2, but still it is not populating. I am using correct object name , id and etc..
    any idea.
    Sri

    Hi,
      Try something like:
    FORM update_text  USING    fp_rec_text  TYPE ty_text
                           fp_rec_vbeln_vbeln TYPE vbeln_va.
    *Local declaration
      DATA: l_header   TYPE thead,  "Header text
            l_rec_line TYPE tline.  "Text
      DATA: l_i_line TYPE STANDARD TABLE OF tline
                   INITIAL SIZE 0. " Internal Table for l_line
      l_header-tdobject = c_object.
      l_header-tdname = fp_rec_vbeln_vbeln.
      l_header-tdid = fp_rec_text-tdid.
      l_header-tdspras = c_lang.
      l_rec_line-tdformat = c_format.
      l_rec_line-tdline = fp_rec_text-tdline.
      APPEND l_rec_line TO l_i_line.
    *Call subroutine to modify text
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client          = sy-mandt
          header          = l_header
          savemode_direct = c_flag
        TABLES
          lines           = l_i_line
        EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH 'Standard text not saved'(075).
        LEAVE SCREEN.  "Leave screen
      ELSE.
    *Commit the Save of the Text
        CALL FUNCTION 'COMMIT_TEXT'
          EXPORTING
            name            = l_header-tdname
            savemode_direct = c_flag.
      ENDIF.
    ENDFORM.                    " update_text

  • Problem:100 % cpu usage with tcp server dll

    Hello,
     I am trying to write a dll with labwindows/cvi that allows me to create a TCP Server. This dll is integrated in labview.I created this Dll with example provides by Labwindows/cvi(rtserver.dll).
    Description of my problem: when i execute this dll in a "While Loop" in labview,the TCp server wait a connection and 100% cpu usage occurs. However when a client is connect to the server,the CPU is normaly used because the program stop when he meets the timeout of the tcpread() function. I would like to know how i could limit CPU usage  when the server is awaiting a client in the labview "While loop".
    I know I could use a DELAY() to limit Cpu usage ,but I would like to know if there are any others solutions.
    thank you.

    i dont know your exact application, but i generally use Q to transfer data to TCP loop in my prgram it helps me in two ways.
    1. it automatically restricts the iteration when ther is no data (Less CPU Usage, Less Unnecessary Trafic)
    2. Q can eliminate problems arising due to non synchronization of loop
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • Problem in Concurrent usage

    Hello friends
                      I have a group of 25 users in SAP BW 3.5 and I want them to create their own InfoArea. However the problem here is that when one starts creating his InfoArea, all the other users are denied access or locked i.e only one user can create a InfoArea at a time. How can I enable concurrent access so that all of them can create their InfoAreas at the same time.
    As of now the roles assigned to the users are:
    IDES_BW_ACRM_DEMO,  IDES_BW_ALL, IDES_BW_CO_MANAGER, IDES_BW_RETAIL.
    Thanks in Advance

    Hi All
    I am using std component HRASR00_EMPLOYEE_SEARCH in my custom comp. i craated view container ui element, and i done embed view. in view i created controller usage in used controllers of view. same part i done in component controller and window controller as well. but when i am trying to execute i am not getting component usage view?? i have to done any initialization for this component? anyone have any idea in this component?? please help me...
    Thanks,
    kris.

  • Problem in component usage

    Hi All
    I am using std component HRASR00_EMPLOYEE_SEARCH in my custom comp. i craated view container ui element, and i done embed view. in view i created controller usage in used controllers of view. but when i am trying to execute i am not getting component usage view?? any problem?
    Thanks,
    kris.

    Hi All
    I am using std component HRASR00_EMPLOYEE_SEARCH in my custom comp. i craated view container ui element, and i done embed view. in view i created controller usage in used controllers of view. same part i done in component controller and window controller as well. but when i am trying to execute i am not getting component usage view?? i have to done any initialization for this component? anyone have any idea in this component?? please help me...
    Thanks,
    kris.

  • I have a huge problem with memory usage.

    I am having two very huge problems with the amount of memory the game I'm working on is using. The first is that the background image for a part of my game takes up ~45mb of memory, but believe it or not, that's not my worst problem. i'm not worried about that right now.
    The really, really big problem does involve that image, though.
    Whn I'm done using the image, I can't get the resources it uses to be freed. As a result, the program uses more and more memory every time you go into that area of the game, because the memory used by tha area is just sitting there.
    I used Jprofiler to figure out exactly what wasn't getting released, because I do everything I know how to make everything be garbage collected, including setting all the references to the image to null after you leave that area of the game, but nothing worked.
    After I leave the area with the huge memory leak and give everything time to garbage collect, the main screen for memory usage shows about 45mb of memory used by 20 or so instances of int[], which is obviously the image.
    However, this obscenely huge int array doesn't show up in the heap snapshot, which according to them means there's no reference to it or the image anywhere in the program.
    Here's my question: If there's no reference anywhere to this int array, then why isn't it being garbage collected?

    Maybe you haven't actually released all references to that data.
    Or if you have one 45mb image, maybe you have a bunch of other huge ones and you're just seeing those.
    Why do you have a 45mb background image, though? Can't you use a standard technique like tiling it?

  • Problems in general usage and syncing

    I am having problems both ways with my iPod. In the usage part, my iPod will show that I have songs uploaded on it, but when I choose to listen to it it will just kick me back to the main menu. Also in several instances when something is supposed to have cover art associated with it, it will show the wrong artwork. When it comes to syncing it to my computer, it will not update and gives me a -50 Error. I have tried deauthorizing my computer and restoring my iPod to its factory settings. Any help is appreciated.

    Have confidence in your own experience. Those who do have problems are (rightly) loud in their complaints. With 4.0 it was more than expected, now with 4.1 it's much less, almost down to normal.
    As for Book, I have lost more than one book, but it is a rare problem and very difficult to pin down (even for someone like me who knows LR and Book well and would normally expect to have a good chance of figuring out where the problem lies). On the other hand, I don't think the risk of losing books is so great that it prevents me from using this method . I just make duplicates of the book collection and change between books in Library (because I'm convinced that changing between books had sparked the problem). So if it's any encouragement to you, I think it's good enough to put my own time into it - only last week I unwrapped another book from Blurb.
    John

  • Problem with save_text

    Hi all,
    when I drop PR to PO in ME21N, the text of PR needs to be displayed in PO header text.
    Im reading the text of  PR, using READ_TEXT.
    and I  have used SAVE_TEXT to populate the header text of PO.
    The problem is the text is not displaying on the header text.
    But, when I double click the header text, it takes me to change editor,after coming back from change editor the text is displaying.
    Pls let  me know what would be the problem.
    Thankyou,
    Priya

    Hi Dzed n Vinod,
    Here is the code which im using after reading the text.
    Pls let me know where it is going wrong.
    ***populate the text for PO
      IF NOT t_potext[] IS INITIAL.
        header_po-tdobject = 'EKKO'.
        header_po-tdid  = 'F02'.
        header_po-tdspras = v_spras.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
           client                = sy-mandt
            header                = header_po
           insert                = 'X'
             savemode_direct       = 'X'
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    IMPORTING
    *   FUNCTION              =
       NEWHEADER             = header_new
          TABLES
            lines                 = t_potext[]
         EXCEPTIONS
           id                    = 1
           language              = 2
           name                  = 3
           object                = 4
           OTHERS                = 5
        IF sy-subrc = 0.
        CALL FUNCTION 'COMMIT_TEXT'
         EXPORTING
           OBJECT                = header_po-tdobject
           NAME                  = '*'
           ID                    = header_po-tdid
           LANGUAGE              = header_po-tdspras
           SAVEMODE_DIRECT       = 'X'
    *       KEEP                  = ' '
    *       LOCAL_CAT             = ' '
    *     IMPORTING
    *       COMMIT_COUNT          =
    *     TABLES
    *       T_OBJECT              =
    **       T_NAME                =
    *       T_ID                  =
    *       T_LANGUAGE            =
        ENDIF.
    Thankyou,
    Priya

  • Problem with SAVE_TEXT FM

    Hello,
    I am having a problem with using the SAVE_TEXT FM.
    Here is the scenario.
    I am trying to populate the Long Text on a PM work order component line for a reservation.
    Prior to populating this field, no text will exist in this field.
    I create the name key using the following:
    sy-mandt + resb-rsnum + resb-rspos + resb-rsart
    The object id AUFK and the ID is MATK.
    INSERT =  X
    SAVEMODE_DIRECT =  X
    OWNER_SPECIFIED = space            
    LOCAL_CAT  = space          
    When I call the FM I get a return code of 0 and when I do a READ_TEXT FM using this key I can see that the text exists in table STXH.
    However, when I go to view the long text for the reservation component in IW32 there is no text there.
    If I now manually add text to the long text and save, if I now run the SAVE_TEXT FM with the same key, the FM overwrites the value of the text which was manually entered with the value from the FM.
    So, does anyone know why the FM writes an entry to STXH which isn't visible in IW32 prior to manually adding text, but is visible after manually adding text?
    Has anyone experienced this problem before?
    I would appreciate any help anyone could give me.
    thanks,
    Kevin

    Sorry table was RESB, but answer is correct anyway,
    field is RESB-LTXSP.
    Look at <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/corr_instr/correction_detail.htm?_CINSTA=0120061532&_CALEID=0000356881&_CPAKID=1&_PGMID=LIMU&_OBJ=REPS&_OBJNAM=ZDELRESBLTXSP&tab=2">Example of program updating flag long text</a> or note <a href="https://service.sap.com/sap/support/notes/706261">Note 488862 - No long text for component although long text flag existing</a>
    Regards

Maybe you are looking for

  • My email account was hacked. Had to change email password, now unable to send email from my ipad

    My email account was hacked. Had to change email password, now unable to send email from my ipad. I am such a novice technically, and have no clue what to do. Please help!

  • Calculation in header in sap script!

    friends... i have designed a form z_pm_common..which i have copied from standard.pm_common. i have made some changes to the layout. now at the header i have a field : DURATION OF JOB :&AFVGD-ARBEI& &AFVGD-ARBEH& AFVGD-ARBEI IS WORK DURATION.I.E 6.3 A

  • Inventory analysis Cube 0IC_C03

    Hi Experts, I am unable to work with 0IC_C03 cube in BI 7.0. I didn't find standard transformations for this cube. Please let me know the data flow for  0IC_C03 cube in BI 7.0. Advanced Thanks, Chandra

  • Bug with binding / statement cache?

    And the next trouble... :( When Sql on two different OracleCommand's is equals, but parameter types differs, exceptions raised. Two different exception raised, depends of AddToStatementCache property, on call ExecuteReader or on call Read(). Test cas

  • Making the "next" button inactive until video ends

    I am new to Captive and have downloaded the trial version to test out to set up an e-learning module.  I have managed to create my first quiz and was able to get it to work fine.  I used one of the pre made templates and I inserted a flv video.  The