Long text in operation

I am developing a smartform with help of abaper for pm check list.
in the task list operation i can select maximum of 40 characters,but my tasks are more than 40 characters.
what ever is written in the operation should show  in my smartform.
but how do i tackle where my operations text is longer than 40 characters.
if i use long text how can i read the long text with the help of function module READ_TXT
Edited by: Mohammed Iqbal on Sep 28, 2011 11:40 AM

Hi
you can use the function module READ_TEXT and reference tables are STXH,STXL.
input the following
CLIENT- actual
ID             - PLPO
LANGUAGE- EN
NAME-- Text name from tables STXH
OBJECT - ROUTING
Regards
Seenu

Similar Messages

  • Long text for Operation in Tranasction IW32

    Hello Experts,
    I nned to display the short text and the Long text of Operations on a print out.For short text, I am importing data from memory using table AFVGD but i am not able to find out the data which is there in the long text.Kindly suggest how can i get the data like from which table or memory ID.
    Thanks ,
    Sahil

    SAPscript long texts header are stored in  STXH and lines are stored in non-transparent table ([Storing Text Components|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db668494511d182b70000e829fbfe/frameset.htm]), The FM [READ_TEXT|http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db8c8494511d182b70000e829fbfe/content.htm] is called to get those texts in an internal table.
    To get the long texts id (OBJECT, NAME, ID, and LANGUAGE), call transaction IW33 (or 32) and display the text of an operation, then in the menu : goto, header data, you will get the constants "AUFK" and "AVOT",  and the current language code and the "key" that you will have to interpret. When the text is not displayed in the sap script editor, you will need to debug the program to find the key, or use the search tool at sdn of course
    Some samples for IW32/33 are :
    - Order header:  "AUFK",  MANDT+AUFNR, "KOPF", "E"
    - Operation: "AUFK", MANDTAUFPLAPLZL, "AVOT", "E"
    - Material:  "AUFK", MANDTRSNUMRSPOS, "MATK", "E"
    - Utilities: "AUFK", MANDTAUFPLPZLFH, "FHMT", "E"
    Regards,
    Raymond

  • Error While uploading Long Text for Operations in IA05 Transaction.

    Dear Team,
    Good Day.
    While we are trying to upload the Long Text through BDC for IA05 operations  the text is updating in Database but it is not visible in the long Text field. Is it possible to upload the long text through BDC or any bapi's which can be used for the same. Any configuration needed for this please do the needful.
    Regards,
    Bhanu.

    Hi Bhanu
    correct me if im wrong, the long text is a multiline text, its an object for text, this cant be filled with BDC since this object can not be created in background mode, so i think the bdc skip the routines to fill this object, you can use the save_text function right after the transaction ends
    Regards
    MC

  • 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

  • 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

  • Retrieving Old Long Text

    Hi,
    Please consider the following scenario:
    I am entering long text for a text field and save it.
    If I exit/cancel the screen,changes done to Long Text will be lost.
    Upon saving it will save the Long Text.
    Now upon saving , based on some condition i want changes done to Long Text should be lost.
    Please let me know whether it is feasible, if yes how to achieve this. Any suggestions/advice will be highly appreciated.
    Regards,
    Akash Modi

    Hi all,
    I am entering Long texts for operations in standard SAP Transaction IW32.(Work Order Change)
    On click of SAVE, user exit will be called, where we will check certain conditions for each operation.If condition doesn't satisfy, i have to rollback the changes done to Long Text for that operation, keeping the other changes done to Order intact.
    Please let me know if any more clarification is required.
    Akash

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

  • 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

  • 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

  • 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

  • Maintenance order - Copy header long text in first operation.

    Hi gurus,
    I have the following requirement I dont know hoy to solve it.
    In our system, there is a certain maintenance order class for corrective operations. During creation, the short text in order header is transferred automatically to the first operation one.
    But this behaviour doesn´t works with long text, although for each operation there is the possibility to enter a long text.
    Any ideas? Thanks in advance.

    Hi Ole,
                This is the standard Behaviour of the system as the system is designed to make sure that there are some Operation maintained in the Operation Tab, and if not maintained then copy the Header Text, that too for the Short Text only.
    please make sure that you are calling the Task List or maintaining the operation in the Operation Tab.
    Hope it helps you.
    regards,
    yawar Khan

  • How to upload long text in CA02 Transaction

    Hi,
    I am getting a file with the following format.
    Input File Record Layout:
    Group#                  like PLKO-PLNNR,     
    Group Counter             like PLKO-PLNAL,
    Operation#          like PLPO-VORNR,     
    Work Center#          like PLPOD-ARBPL,
    Control Key          like PLPO-STEUS,     
    Short-text          like PLPO-LTXA1,
    Long-text          type c(1000).     
    i have to upload the long text in the CA02 transaction. Could you please let me know the procedure that i should follow in uploading this in doing a call transaction in BDC.
    Thanks in Advance,
    Suresh

    Take a look at FM SAVE_TEXT
    To get the parameters of the FM :
    Goto the long text in CA02 and then via the menu :
    Goto --> Header .
    A popup is displayed containing the input parameters  :
    Text Name
    Language
    Text ID 
    Text object.
    Hope it helps,
    Erwan.
    Message was edited by: Erwan LE BRUN

  • Error while uploading Long Text in IA05 through BDC.

    Dear Team,
    Good Day.
    While we are trying to upload the Long Text through BDC for IA05 operations  the text is updating in Database but it is not visible in the long Text field. Is it possible to upload the long text through BDC or any bapi's which can be used for the same. Any configuration needed for this please do the needful.
    Regards,
    Bhanu.

    Bhanu,
    I've modified the previous message with a correction that, I had used this for uploading Activity lines Longtexts.
    One more thing: After I faced some problem, I used split text  in the code. i.e., Splitting the longtext into several lines (72 char each). Show these code lines to your ABAPer, may be he might be able to draw some clues.
    In the BDC lines alongwith other fields the gold line below
    PERFORM FILL_BDC_DATA       USING  ' '  ' '  ' '  'BDC_OKCODE'  '=MX07'.
    PERFORM FILL_BDC_DATA       USING  ' '  ' '  ' '   'BDC_CURSOR' 'QMICON-LTAKTION(07)'.
    PERFORM FILL_BDC_DATA       USING ' '  ' '  ' '   'VIQMMA-MATXT(07)' FS_FIELD-MNTXT7.
    PERFORM SPLIT_LONGTEXT USING COL_COUNT.
    Code for Form SPLIT_LONGTEXT is attached herewith (MATXT1 to MATXT7 are longtext split into 7lines )
    Best of luck
    KJogeswaraRao

  • How to get Material long text / Sales Text

    Hi,
    when I have created a service order I have enter Long text in Tab Item Details , i.e in sales Text I have entered some text , So can any one tell me how to get this text as I have to show this text in invoice printing
    Thanks
    Bobby

    600101202274700000001
    For a Particular Text name Of Item Level operations
    1st 3 character denotes client id in this case 600 +
    2nd 10 character denotes AFKO-AUFPL with respect to the production order  in this case
    1012022747 +
    last 8 character denotes the operation line item numebr

Maybe you are looking for

  • Modbus ip shared variable network failure

    I am using lab view 8.6 DSC module to communicate to a watlow system which contains five watlow 96 controllers and an EM gateway.  I have created shared variables for the process temperatures and setpoints for each of the five controllers using watlo

  • Unable to connect to Admin Server from second machine using WLST

    Hello, PROBLEM Can't get WLST to connect to admin server from 2nd host to register the domain. SETUP I have 2 Centos VMs running on Oracle Virtual box in a single laptop. Both the VMs use "Bridged Networking". VM-1 CONFIG cat /etc/hosts 192.168.1.17

  • Clone tool broken for large images

    The clone tool from the retouch brick hangs Aperture 3 every time when applied to large images. By large I mean .tiff files that exceed a 100MB or so. When adding strokes with the clone brush, at some point the thumbnail processing hangs and the brow

  • HT201412 stop apps from uploading in middle of process

    Live and Learn. My daugther, hit multiple apps to download at the same time. There are 8 trying to upload right now. I want to stop the process. How can I do it? I tapped and held on one and they all shook but I could not do anything with them. Any s

  • PowerMac G3 B&W and Radeon 7000 PCI Low Performance :(

    Hello guys. Lats week I bought Radeon 7000 PCI Mac Edition for my B&W. In my B&W I've got G4 XLR8 400@500MHz, 320MB RAM in Micron modules, Radeon 7000 PCI ME, USB 2.0 card on NEC chipset, ATTO SCSI PSC card witch system disk connected to it. When I p