Long text  editor called  from report

Hi All,
I  have a requirement of displaying long text editor(like the one used for sap script) for maintaining the details for each PO in report column.A similar example is transaction SO10.I will be thankful  if anybody can help in this regard.
Thanks,
Sanjay.

Hi,
You will have to use the FM: READ_TEXT, EDIT_TEXT, SAVE_TEXT to achieve this functionality.
This will basically open the text editor as a pop up box ( size will be as sap script editor) for entering some comments against a Purchase Order.
For this FMs, you 'll require Text id, text name, text object and language as parameters to be passed.
thead-tdname = 'Purchase Order No'. " Name
thead-tdid = 'ZQH1'.               " Text ID - E.g. To be created in your system
thead-tdobject = 'VBBK'.   " Texts: application object
thead-tdspras = sy-langu.       " Language Key
Hope this helps.
Regards,
JLN

Similar Messages

  • Issue with Capturing Long text using CALL METHOD EDITOR- GET_TEXT_AS_STREAM

    HI Experts,
    Standard Long text is capturing using CALL METHOD EDITOR->GET_TEXT_AS_STREAM
         but not working for Custom Long text – Only changes
    Here is the Issue:
    1)      Created Custom Long text in TAB. --> Good
    2)      Entered few lines in custom Long text  --> Good
             Click on Standard Tab , Leaving Custom tab and Custom Long text-->Good
    4)      In PAI of Custom Tab – Changes captured using CALL METHOD 1 ( See below Code 1)--> Good
    5)      Entered few lines in Standard Long text in Standard Tab -->Good
    6)      Click another Standard Tab
    7)      In PAI of Standard Tab – Changes captured using CALL MEHTOD 2 ( See Below Code 2)-->Good
    8)      Come back to Standard Tab / Standard Long Text , Enter few more lines.
    9)      Change the Tab , IN PAI of Standard Tab/Standard Text , Changes Captured using CALL METHOD2 ( See Below CODE 3) --> Good
    10)   Go to Custom Tab , Custom Long text , Entered few more lines--> Good
    11)   Click on any other tab, Triggered again PAI of Custom tab / Custom Long text using Call Method1 ( See Below Code 4) -->Good triggered PAI same CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM.
    12)   But additional lines are not captured , saying ZERO LINES in Internal Table and IF_MODIFIED = NO  -->Issues lies here.
    CODE1 ( Custom Long text entry capturing – First Few Lines )
    Custom Long text Entries are stored in LS_OUTTAB-TEXT first time when entered few lines and LV_MOD is 1.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT ( FIlled with Lines entered in custom long text )
              IS_MODIFIED            = LV_MOD ( Value 1 , Modified )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    CODE2 ( Standard Long Text Entry Capturing – First Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT first time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE ( Value 1 , Modified )
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED.
    CODE 3 ( Standard Long Text Entry Capturing – Second time Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT  second  time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED. ( Value 1 , Modified )
    CODE4 ( Custom Long text entry capturing – Second Time Few Lines )
    Custom Long text Entries are not stored in LS_OUTTAB-TEXT Second Time when entered few lines and LV_MOD is 0.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT  ( ZERO ENTRIES )
              IS_MODIFIED            = LV_MOD   ( NOT MODIFIED Flag )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    Can anyone help me out of this.
    With Regards,
    Bala M

    Excellent Eitan,
    Here is what I am trying to Achieve.
    In Create Notification IW21 , They need 5 Long Text in Custom Tab ( Say Tab Name is MBR ).
    TAB1 NOTIFICATION Standard Information , TAB2 REFERENCE OBJ , TAB 3 MalFunction , Breakdown Standard one...... TAB 7 ( Custom Tab ).
    In Custom Tab , I added 5 LONG TEXT ( its 5 WHY Concept ).
    When the User enters data in 5 Long text , it should store long text along with Notification number when save.
    But Notification number will be generated @ the time of SAVE , but before that its just shows as
    %0000000001 ( and Number will be generated 1000065479) at Save.
    How to achive this .
    I did this:
    Added 5 Custom Container. and In PBO / PAI
      PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN PBO
       CREATE OBJECT TEXT_EDITOR1 ,    CREATE OBJECT TEXT_EDITOR2,    CREATE OBJECT TEXT_EDITOR3 like wise 5
       CALL METHOD TEXT_EDITOR1->SET_TEXT_AS_R3TABLE ,    CALL METHOD TEXT_EDITOR2->SET_TEXT_AS_R3TABLE .. Like wise 5 , So when the user Click on Custom Tab ( MBR ).
    It give 5 Long text.
    When he click tab1 or tab2 or tab3 .. and again tab MBR , still data is available.
    How to store this data for future retrival ( IW22 or IW23 ) ?
    Its working fine when I enter first time and goes here and there and finall save .
    IN SAVE BADI , I imported the Long text and created Standard Text SO10 with Notification Number with LONG1 , LONG2 .. means 1000065479LONG1 as standard text.
    But not working when I entered first time and go to tab1 and tab2 and then to MBR tab and added few more lines , its not exporting full lines and in IMPORT ( SAVE BADI ) giving ZERO Lines.
    Please help and thanks for your quick response.

  • POP UP LONG TEXT EDITOR

    Moderator message: please do not use ALL CAPITALS in your subject
    Hi all,
    I have a requirement to pop up a long text editor screen on clicking a PO in ALV column.
    Please guide for the same.
    Thanks.
    Edited by: Matt on Dec 16, 2008 11:25 AM

    hi .. check this ..
    REPORT ZEX_MINITEXTEDITOR .
    Parameters: P_title(10).
    Data: Begin of int_text occurs 0,
          Text(100),
          End of int_text.
    CALL FUNCTION 'TERM_CONTROL_EDIT'
    EXPORTING
       TITEL                = P_title
       LANGU                = 'E'
      TABLES
        TEXTLINES            = int_text
    EXCEPTIONS
       USER_CANCELLED       = 1
       OTHERS               = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    regards
    chinnaiya

  • Long text editor - sign problem

    Hi,
    Currently I am facing an issue that the & sign is not being displayed correctly in the Long text editor. It is shown as '<(>&<)>' in the transaction once I input my value in the graphical editor , save and come back.
    Please help...
    Thanks
    Praneeth

    Hi Sandra,
    I am also talking about the same issue in IW32 and the internal SAP program is not doing a correct conversion due to which the wild characters are entered into the long text window on IW32.
    I received an answer for my OSS note and they say it is how the system is ..please see the comments from SAP below ...
    26.08.2011 - 12:37:23 CET - Reply by SAP             
    Hi,
    I am sorry, but the behaviour which you describe is correct.
    I will try to explain the meaning of the special characters and
    why they have to be there: In Sapscript there are some characters,
    which have a special meaning. E.g. a '&' starts a symbol, a '<'
    starts a character format, etc. So if you use e.g. a '&' in your
    text, this Sapscript needs the information, whether the '&' shall
    start a symbol or whether it shall be printed as '&'.
    So if you want to print the '&' as '&', the character must be masked.
    This is done via the characters <(>...<)>. So when you enter
    a '&' (and when it is not sure, whether it may start a symbol),
    the Sapscript internally saves the character as <(>&<)>.
    Usually this should be no problem: If you process the text via
    the Sapscript, you will not notice the masking characters. The
    graphical editor will not display them. And if you print the text
    via a Sapscript form or a Smartform, you will not see them.
    Only if you look into the internal table, which is returned
    by EDIT_TEXT or READ_TEXT, you will see the characters.
    (and the old Sapscript editor displays them, too, because it
    is displays the text in the Sapscript-internal format).
    If you process the internal table yourself, you must take this
    into consideration. E.g. if you want to convert the
    Sapscript-internal ITF format which is returned by EDIT_TEXT
    into 'normal' text format, you can use the function module
    CONVERT_ITF_TO_ASCII.
    Kind Regards,
    Marian O'Connell
    Support Consultant
    AGS Primary Support
    Visit the Enterprise Asset Management (EAM) forums:
    Enterprise Asset Management (SAP EAM)

  • Char. formats(Bold, Underline) in Long text editor not visible in ABAP WD

    Hi ABAP experts,
    Problem:
    I have created long text with using bold and under line formats in long text editor (FM TEXT_ EDIT). I am trying to show same text in WebDynpro using READ_TEXT FM. But FM READ_TEXT is getting long text with HTML tags as shown below for bold and underline and it long text showed as same in WebDynpro application with HTML tags.
    Long text shown in webdynpro:
    Type your message using the form below. When finished, you can
    optionally preview your post by clicking on the <H>"Preview"</> tab.
    Otherwise, click the <U><H>"Post Message"</></> button to submit your
    message immediately.
    Is there any function module available to change format and pass to WebDynpro context?
    Thanks
    Rajesh Yadla

    The normal text editor in Web Dynpro won't handle HTML tags (they get safe encoded as you described).  In NetWeaver 7.01 we do introduce a FormattedTextEditor that allows for such formatting. There are APIs to convert from SAPScript based texts to the XHTML FormattedText tags.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm

  • Long Text Editor displaying & incorrectly.

    Hi Experts,
                    Currently I am facing an issue that the & sign is not being displayed correctly in the Long text editor. It is shown as '<(>&<)>' in some places and '&' in others. I understand that the <(> symbol is used as protection for special symbols like &, however this is occuring in some places and not in others. Is there any package which fixes this  problem??
                      Please help.
    Thanks,
    Aditya.

    Hi Naimesh,
                       My problem is not with the display of variables in the editor. Consider the case wherein transactional data is displayed in Long text. For example if you go to IW22 and decide to change the text for the notification description. In case you give a & sign in the long text -  it will be converted to  - '<(>&<)>' , when I log on to see the changes I made the next time. However I want the editor to stop this conversion. Please reply.
    Thanks ,
                 Aditya.

  • How to open "change long text" editor on a button click

    Hi,
    I have 4 long text boxes alligned vertically and a button beside them on a screen.
    My client has the following requirement:
    -- When this button is clicked, a "change long text" editor should open, the user will make his changes here and when back button is clicked, all the information in the editor should get transferred to the 4 text boxes.
       (the functionality should to similar to the big custom control box and the "Create Text" button beside it (in the Subject block) in IW52 transaction except that the custom control should be replaced with the 4 Text boxes).
    Please help, How could I achieve this?

    Cheacked the SAP given programs / pakages and solved the problem.
    Thanks.

  • I can't receive texts or calls from certain phones

    I can't receive texts or calls from at least 2 AT&amp;T phones and at least one sprint iphone...I've reset the settings, deleted threads, called my carrier (tmobile) to make sure there are no blocks in place. It's weird because I can't even receive texts from tmobile or my bank! My bill is paid and I do get messages from other numbers. Can anyone help?

    Finally got through to talk to a very helpful technician at EE by selecting account query rather than technical problem on the automated answering system on 150. A reset by EE sorted the problem out and the phone is working fine again.

  • Get the long text into BADI from text editor

    hi all,
    I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
    the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
    Can anybody help how can i get the long text to the BADI.
    Regards,
    Madhavi

    Hi
    Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
    IF_LONGTEXTS_MM~GET_TEXTOBJECT
    IF_LONGTEXTS_MM~GET_TYPES
    IF_LONGTEXTS_MM~GET_TEXT
    IF_LONGTEXTS_MM~SET_TEXT
    IF_LONGTEXTS_MM~ADOPT_TEXT
    IF_LONGTEXTS_MM~DELETE_TEXT
    IF_LONGTEXTS_MM~EDIT_TEXT
    Regards
    Eduardo

  • How to use long text editor in Webdynpro

    hi ,
    I want to use text editor in webdynpro.  I want to save the data in  long text.
    My requirement is the format of data should remain same(It should not get changed).
    Thanks
    SK

    Hi,
    use text editor uielement and bind it with a attribute of type string.  convert this string into a table using function module
    fill another internal table which is type compatible with table of SAVE_TEXT function module.
    CONVERT_STRING_TO_TABLE. Call the function module SAVE_TEXT to save this text. 
    you need to find proper tdobject and tdid value which is to be passed in importing parameter "header".
    similarly use FM "READ_TEXT" and convert the returned data into string using FM CONVERT_TABLE_TO_STRING.
    Bind the returned table to an attribute of your context. The data will be displayed in the same format in which you entered it.
    Thanks
    Vishal Kapoor
    Edited by: vishal kapoor on Oct 19, 2010 3:51 PM

  • How to add external call from Report Painter

    Hi experts,
    I'm working on a report painter, and I need to do an external call, from the generated code.
    add something like this    PERFORM Z_CALCULO_IMPORTE_COMPENSADO(ZCASS_FFMRBCS)
                                                                                    USING CUR-TAB
    Is there any way to do it without an SSCR key?
    Thanks in advance

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • URGENT: REGARDING SMART FORM CALLING FROM REPORT

    HI,
    I had made a report in which i have to display the output in smart form ,the problem is this i had delclared only 1 INTERNAL TABLE and i dont know how to display it in the smart form as i am new to it .
    if help me out with solution ,he or she will be definately rewarded.
    regards,
    ric.s
    Edited by: ric .s on Dec 21, 2007 10:22 AM

    Hi,
    You need to craete a SMARTFORM using transaction SMARTFORMS. In this trasaction under FORM INTERFACE give the variable which would be passed from your program.
    Then use these variables and pass the information in Windows which you will create in your smartforms.
    When you activate your SMART form it will create a Fucntion Module whihc you need to call from your report program.
    Please go through the information given in thread :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm
    /community [original link is broken] hreadID=187587&messageID=2096976#2096976
    /community [original link is broken]threadID=187587&messageID=2096976#2096976
    Refer to the following:
    http://esnips.com/doc/7e67af5c-6188-4252-8613-41816756d560/from-sappres.pdf
    http://esnips.com/doc/58566115-54a4-4405-8872-8de952e245e5/smartform.pdf
    http://esnips.com/doc/2276d194-dc47-4b1e-9c14-7af0ffe923ca/smartforms-xsf-output.pdf
    http://esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    Smartforms Step by Step...links
    Smartforms Step by Step...
    http://www.sapgenie.com/abap/smartforms_detail.htm
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    This would give you information about smartform.
    Though the info is bit extensive but will surely help you.
    Reward if u find this useful.
    Regards,
    Lalit

  • Long Text not transfered from Notification to Order

    Hi Experts,
    We have 4.6 c version where in the Long Text from Notification created does not gets transfereed to Order if Order is created through Notification.
    Does any one knows about any config missing or any note which needs to be applied.
    Also if we go for E.C.C 6.0 do we need to maintain the config
    Plant Maintenance and Customer Service->Maintenance and Service Processing->Maintenance and Service Order >Functions and Settings for Order Types>Define Notification and Order Integration
    instead of or in addition to the config
    Plant Maintenance and Customer Service->Maintenance and Service Processing->Maintenance and Service Notifications >Notification Creation>Notification Types-->Assign Notification Types to Order Types
    Appreciate your valuable input in this regards
    Thanks
    Manish

    Hi
    These are the some of the notes related to ur issue...
    I am not sure its gonna solve... but check it.. u might get some idea
    [445628|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=445628]
    [661800|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=661800]
    Pl Note : i think in 4.6c it not available kindly check in Define notification and order data in one screen whether option is available or not
    - Pithan

  • Routing long text editor change

    Hi,
    When we go to Routing long text and try to open it, it will open one word document.
    My requirement is, I want to change that word document as Notepad (text editor) for particular user.
    Please tell me is it possible to change that word doc to text doc, If yes then how to make settings?
    Regards,
    Chetan

    Hi Chetan,
    Even I have the same problem ! I had raised a SAP ticket & waiting for the response...
    Now can tell me how/what should i do to change to get a particular editor???
    Awaiting for your response..
    ~Guru

  • Long text editor

    Hi,
    i want to show/edit the long text for an maintenance order.
    Is there a function module where the editor is created?
    etc.
    regards

    Hi Wolfgang,
    Text functions are :
    READ_TEXT
    EDIT_TEXT
    SAVE_TEXT ( creation )
    To know what are the input parameters of thoses FM's, please display your text in <b>plain page mode</b>, then : GoTo -> Header
    Hope this helps,
    Erwan

Maybe you are looking for